diff --git a/app.json b/app.json
index 50d188f..186000c 100644
--- a/app.json
+++ b/app.json
@@ -14,7 +14,9 @@
"pages/wzai/wzai",
"pages/askingSy/askingSy",
"pages/askingSyAdd/askingSyAdd",
- "pages/askingSyDetails/askingSyDetails"
+ "pages/askingSyDetails/askingSyDetails",
+ "pages/expert/expert",
+ "pages/expertChat/expertChat"
]
},
{
diff --git a/pages/home/home.js b/pages/home/home.js
index 4109991..b5acc83 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -55,6 +55,13 @@ Page({
})
},
+ // 找专家
+ bindZj(){
+ wx.navigateTo({
+ url: '/pagesA/pages/expert/expert',
+ })
+ },
+
//获取当前位置信息
getLocation() {
diff --git a/pages/home/home.wxml b/pages/home/home.wxml
index 3e3905c..5bf2d73 100644
--- a/pages/home/home.wxml
+++ b/pages/home/home.wxml
@@ -47,7 +47,7 @@
平均5分钟恢复
-
+
找专家
智能匹配医生
diff --git a/pagesA/images/1.png b/pagesA/images/1.png
new file mode 100644
index 0000000..f9941f7
Binary files /dev/null and b/pagesA/images/1.png differ
diff --git a/pagesA/images/2.png b/pagesA/images/2.png
new file mode 100644
index 0000000..acf3554
Binary files /dev/null and b/pagesA/images/2.png differ
diff --git a/pagesA/images/3.png b/pagesA/images/3.png
new file mode 100644
index 0000000..d68f2f7
Binary files /dev/null and b/pagesA/images/3.png differ
diff --git a/pagesA/images/dzyx.png b/pagesA/images/dzyx.png
new file mode 100644
index 0000000..6e0a09a
Binary files /dev/null and b/pagesA/images/dzyx.png differ
diff --git a/pagesA/images/gzdw.png b/pagesA/images/gzdw.png
new file mode 100644
index 0000000..147ec33
Binary files /dev/null and b/pagesA/images/gzdw.png differ
diff --git a/pagesA/images/kzt.png b/pagesA/images/kzt.png
new file mode 100644
index 0000000..39886b6
Binary files /dev/null and b/pagesA/images/kzt.png differ
diff --git a/pagesA/images/phone.png b/pagesA/images/phone.png
new file mode 100644
index 0000000..839e24c
Binary files /dev/null and b/pagesA/images/phone.png differ
diff --git a/pagesA/images/ss.png b/pagesA/images/ss.png
new file mode 100644
index 0000000..57d5a60
Binary files /dev/null and b/pagesA/images/ss.png differ
diff --git a/pagesA/pages/askingSy/askingSy.js b/pagesA/pages/askingSy/askingSy.js
index 32e9cdc..41b2732 100644
--- a/pagesA/pages/askingSy/askingSy.js
+++ b/pagesA/pages/askingSy/askingSy.js
@@ -1,64 +1,29 @@
+import http from '../../../utils/api'
Page({
data: {
- diagnosisList: [
- {
- id: 1,
- status: 'replied',
- createdAt:'2025-02-12',
- userInfo: {
- avatar: '/pages/images/tx.png',
- nickName: '张小明'
- },
- petInfo: {
- type: '狗',
- age: 3,
- gender: '公'
- },
- description: '最近三天食欲不振,精神萎靡,偶尔呕吐黄色泡沫,大便偏软带血丝,体温正常但鼻头干燥。',
- images: ['/images/pet1.jpg', '/images/pet2.jpg'],
- replies: [{}, {}, {}]
- },
- {
- id: 2,
- status: 'pending',
- createdAt: '2025-02-12',
- userInfo: {
- avatar: '/pages/images/tx.png',
- nickName: '李小花'
- },
- petInfo: {
- type: '猫',
- age: 2,
- gender: '母'
- },
- description: '今天发现眼睛有黄色分泌物,频繁抓挠眼睛周围,食欲正常但饮水量减少。',
- images: ['/images/cat1.jpg'],
- replies: []
- },
- {
- id: 3,
- status: 'replied',
- createdAt: '2025-02-12',
- userInfo: {
- avatar: '/pages/images/tx.png',
- nickName: '王先生'
- },
- petInfo: {
- type: '狗',
- age: 5,
- gender: '公'
- },
- description: '狗狗最近走路跛脚,右前腿不敢着地,触摸时会叫。之前从沙发上跳下来可能受伤了。',
- images: [],
- replies: [{}, {}]
- }
- ]
+ diagnosisList: []
},
onLoad: function() {
- // 页面加载
+ this.getwzd()
},
+
+ // 问诊单
+ getwzd(){
+ http.wzd({
+ data:{},
+ success:res=>{
+ console.log(1111,res);
+ this.setData({
+ diagnosisList:res.rows
+ })
+ }
+ })
+ },
+
+
+
// 格式化日期显示
formatDate: function(dateString) {
const date = new Date(dateString);
@@ -85,7 +50,7 @@ Page({
}
},
- // 显示创建问诊单
+ // 新增问诊单
showCreateModal: function() {
wx.navigateTo({
url: '/pagesA/pages/askingSyAdd/askingSyAdd',
@@ -94,11 +59,23 @@ Page({
// 查看详情
viewDetail: function(e) {
- const index = e.currentTarget.dataset.index;
- const item = this.data.diagnosisList[index];
- wx.navigateTo({
- url: `/pagesA/pages/askingSyDetails/askingSyDetails`,
- });
+ console.log(1111,e);
+ const status = e.currentTarget.dataset.value.status
+ const data = e.currentTarget.dataset.value
+ console.log(data);
+
+ if(status=='已回复'){
+ wx.navigateTo({
+ url: `/pagesA/pages/askingSyDetails/askingSyDetails?data=${encodeURIComponent(JSON.stringify(data))}`,
+ });
+ }else{
+ wx.showToast({
+ title: `无回复内容`,
+ icon: 'none',
+ duration: 1000
+ });
+ }
+
},
});
\ No newline at end of file
diff --git a/pagesA/pages/askingSy/askingSy.wxml b/pagesA/pages/askingSy/askingSy.wxml
index 91c517e..5c3cfe6 100644
--- a/pagesA/pages/askingSy/askingSy.wxml
+++ b/pagesA/pages/askingSy/askingSy.wxml
@@ -17,7 +17,7 @@
-
+
暂无问诊记录
开始您的第一次问诊吧
@@ -29,26 +29,43 @@
{{diagnosisList.length}}条
-
+