hh-doctor-sdk 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/consultation/detail/consultation-detail-page.js +26 -0
- package/components/consultation/list/behaviors/consultation-list-base-behaviors.js +5 -5
- package/components/consultation/list/consultation-list-page.js +0 -22
- package/components/consultation/list/consultation-list-page.wxml +8 -4
- package/components/consultation/list/consultation-list-page.wxss +19 -4
- package/package.json +1 -1
|
@@ -205,6 +205,19 @@ Page({
|
|
|
205
205
|
},
|
|
206
206
|
|
|
207
207
|
changeDateTime(e) {
|
|
208
|
+
wx.requestSubscribeMessage({
|
|
209
|
+
tmplIds: ['wsBcrNpvBt8a8pneIRNY8JdHKXYxhHxjONrelT8K5zQ'],
|
|
210
|
+
success: (res) => {
|
|
211
|
+
wx.showToast({
|
|
212
|
+
title: '订阅成功',
|
|
213
|
+
})
|
|
214
|
+
},
|
|
215
|
+
fail: (error) => {
|
|
216
|
+
wx.showToast({
|
|
217
|
+
title: error,
|
|
218
|
+
})
|
|
219
|
+
}
|
|
220
|
+
})
|
|
208
221
|
this._changeDateTime(e)
|
|
209
222
|
},
|
|
210
223
|
|
|
@@ -213,6 +226,19 @@ Page({
|
|
|
213
226
|
},
|
|
214
227
|
|
|
215
228
|
changeDateTimeControl(e) {
|
|
229
|
+
wx.requestSubscribeMessage({
|
|
230
|
+
tmplIds: ['wsBcrNpvBt8a8pneIRNY8JdHKXYxhHxjONrelT8K5zQ'],
|
|
231
|
+
success: (res) => {
|
|
232
|
+
wx.showToast({
|
|
233
|
+
title: '订阅成功',
|
|
234
|
+
})
|
|
235
|
+
},
|
|
236
|
+
fail: (error) => {
|
|
237
|
+
wx.showToast({
|
|
238
|
+
title: error,
|
|
239
|
+
})
|
|
240
|
+
}
|
|
241
|
+
})
|
|
216
242
|
this._changeDateTime(e.detail, false)
|
|
217
243
|
},
|
|
218
244
|
|
|
@@ -52,9 +52,9 @@ module.exports = Behavior({
|
|
|
52
52
|
// console.error(JSON.stringify(orderModel))
|
|
53
53
|
if (orderModel) {
|
|
54
54
|
var orderGroups = []
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
if (orderModel.requestOrderList && orderModel.requestOrderList.length > 0) {
|
|
56
|
+
orderGroups.push(this._buildGroup(true, '我的咨询', orderModel.requestOrderList))
|
|
57
|
+
}
|
|
58
58
|
if (orderModel.responseOrderList && orderModel.responseOrderList.length > 0) {
|
|
59
59
|
orderGroups.push(this._buildGroup(false, '我的回复', orderModel.responseOrderList))
|
|
60
60
|
}
|
|
@@ -74,7 +74,7 @@ module.exports = Behavior({
|
|
|
74
74
|
return {
|
|
75
75
|
title: title,
|
|
76
76
|
list: list,
|
|
77
|
-
showSection:
|
|
77
|
+
showSection: true,
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
|
|
@@ -158,6 +158,6 @@ module.exports = Behavior({
|
|
|
158
158
|
clickOrderItem: function (event) {
|
|
159
159
|
var orderId = event.currentTarget.dataset.orderid
|
|
160
160
|
hhNavigation.orderDetail(orderId.trim(), cache.doctorId(), cache.isTest())
|
|
161
|
-
}
|
|
161
|
+
},
|
|
162
162
|
}
|
|
163
163
|
})
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const hhDoctor = require('../../hh-doctor')
|
|
2
1
|
const doctorLoader = require('../../public/doctor-loader')
|
|
3
2
|
const cache = require('../../public/cache-data')
|
|
4
3
|
|
|
@@ -84,16 +83,9 @@ Page({
|
|
|
84
83
|
complete: (res) => {
|
|
85
84
|
if (wx.loginConfig && wx.loginConfig.judgeLogin) {
|
|
86
85
|
if (res.cancel) {
|
|
87
|
-
// wx.switchTab({
|
|
88
|
-
// url: '/pages/recommend/recommend',
|
|
89
|
-
// })
|
|
90
86
|
wx.loginConfig.directLogin(false)
|
|
91
87
|
}
|
|
92
|
-
|
|
93
88
|
if (res.confirm) {
|
|
94
|
-
// wx.navigateTo({
|
|
95
|
-
// url: '/pkgMine/pages/mine/loginpage',
|
|
96
|
-
// })
|
|
97
89
|
wx.loginConfig.directLogin(true)
|
|
98
90
|
}
|
|
99
91
|
}
|
|
@@ -121,18 +113,4 @@ Page({
|
|
|
121
113
|
onPullDownRefresh() {
|
|
122
114
|
this.loadList()
|
|
123
115
|
},
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* 页面上拉触底事件的处理函数
|
|
127
|
-
*/
|
|
128
|
-
onReachBottom() {
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* 用户点击右上角分享
|
|
134
|
-
*/
|
|
135
|
-
onShareAppMessage() {
|
|
136
|
-
|
|
137
|
-
}
|
|
138
116
|
})
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<view class="match-parent">
|
|
2
|
-
<view wx:if="{{!showEmpty}}" class="
|
|
2
|
+
<view wx:if="{{!showEmpty}}" class="order-list-body">
|
|
3
3
|
<block wx:for="{{orderGroup}}" wx:key="orderGroup" wx:for-item="group">
|
|
4
|
-
<view
|
|
5
|
-
|
|
4
|
+
<view
|
|
5
|
+
id="{{group.sectionId}}"
|
|
6
|
+
wx:if="{{group.showSection}}"
|
|
7
|
+
class="order-group"
|
|
6
8
|
>
|
|
7
|
-
|
|
9
|
+
{{group.title}}
|
|
10
|
+
</view>
|
|
11
|
+
<view class="order-list">
|
|
8
12
|
<block
|
|
9
13
|
wx:for="{{group.list}}"
|
|
10
14
|
wx:key="order"
|
|
@@ -6,17 +6,32 @@ page {
|
|
|
6
6
|
height: 100%;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
flex-direction: column;
|
|
9
|
+
.order-list-body {
|
|
10
|
+
width: 100%;
|
|
12
11
|
padding-bottom: constant(safe-area-inset-bottom); /* 兼容 IOS<11.2 */
|
|
13
12
|
padding-bottom: env(safe-area-inset-bottom); /* 兼容 IOS>11.2 */
|
|
14
13
|
}
|
|
15
14
|
|
|
15
|
+
.order-list {
|
|
16
|
+
width: 100%;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
.order-group {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
width: calc(100% - 30rpx);
|
|
25
|
+
position: sticky;
|
|
26
|
+
top: 0;
|
|
27
|
+
height: 80rpx;
|
|
17
28
|
font-size: 32rpx;
|
|
29
|
+
font-weight: bold;
|
|
18
30
|
color: #333333;
|
|
19
|
-
padding:
|
|
31
|
+
padding: 0 0 0 30rpx;
|
|
32
|
+
background-color: #f3f5fb;
|
|
33
|
+
align-items: center;
|
|
34
|
+
z-index: 2;
|
|
20
35
|
}
|
|
21
36
|
|
|
22
37
|
.order-item {
|