调整了页面命名和组织
This commit is contained in:
14
app.json
14
app.json
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
"pages/index/index",
|
"pages/home/index",
|
||||||
"pages/mine/mine",
|
"pages/mine/mine",
|
||||||
"pages/itemdetail/itemdetail",
|
"pages/ai/aichat",
|
||||||
"pages/healthrecord/main/healthrecord",
|
"pages/escort/itemdetail",
|
||||||
"pages/ai/aichat/aichat",
|
"pages/escort/itemlist",
|
||||||
"pages/escort_record_list/escort_record_list"
|
"pages/escort/recordlist"
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"backgroundTextStyle": "light",
|
"backgroundTextStyle": "light",
|
||||||
@@ -20,13 +20,13 @@
|
|||||||
"borderStyle": "black",
|
"borderStyle": "black",
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/home/index",
|
||||||
"text": "首页",
|
"text": "首页",
|
||||||
"iconPath": "images/home.png",
|
"iconPath": "images/home.png",
|
||||||
"selectedIconPath": "images/home-active2.png"
|
"selectedIconPath": "images/home-active2.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/ai/aichat/aichat",
|
"pagePath": "pages/ai/aichat",
|
||||||
"text": "AI客服",
|
"text": "AI客服",
|
||||||
"iconPath": "images/ai.png",
|
"iconPath": "images/ai.png",
|
||||||
"selectedIconPath": "images/ai-active.png"
|
"selectedIconPath": "images/ai-active.png"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const API = require('../../../utils/api.js')
|
const API = require('../../utils/api.js')
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
@@ -1117,7 +1117,7 @@ Page({
|
|||||||
} = this.data
|
} = this.data
|
||||||
return {
|
return {
|
||||||
title: `${service.title} - 专业陪诊服务`,
|
title: `${service.title} - 专业陪诊服务`,
|
||||||
path: `/pages/itemdetail/itemdetail?id=${service.id}`
|
path: `/pages/escort/itemdetail?id=${service.id}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// pages/healthrecord/healthrecord.js
|
// pages/escort/itemlist.js
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
2
pages/escort/itemlist.wxml
Normal file
2
pages/escort/itemlist.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<!--pages/escort/itemlist.wxml-->
|
||||||
|
<text>pages/escort/itemlist.wxml</text>
|
||||||
1
pages/escort/itemlist.wxss
Normal file
1
pages/escort/itemlist.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* pages/escort/itemlist.wxss */
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
<!--pages/healthrecord/healthrecord.wxml-->
|
|
||||||
<text>pages/healthrecord/healthrecord.wxml</text>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/* pages/healthrecord/healthrecord.wxss */
|
|
||||||
@@ -31,13 +31,13 @@ Page({
|
|||||||
goToDetail(e) {
|
goToDetail(e) {
|
||||||
const id = e.currentTarget.dataset.id;
|
const id = e.currentTarget.dataset.id;
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `/pages/itemdetail/itemdetail?id=${id}`
|
url: `/pages/escort/itemdetail?id=${id}`
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
goToAIChat() {
|
goToAIChat() {
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: '/pages/ai/aichat/aichat'
|
url: '/pages/ai/aichat'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -135,7 +135,7 @@ Page({
|
|||||||
|
|
||||||
onTapEscortRecord() {
|
onTapEscortRecord() {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: '/pages/escort_record_list/escort_record_list'
|
url: '/pages/escort/recordlist'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user