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