hh-doctor-sdk 0.2.4 → 0.2.6
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/behaviors/consultation-reply-behaviors.js +13 -0
- package/components/consultation/detail/consultation-detail-page.js +0 -2
- 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
|
@@ -39,6 +39,19 @@ module.exports = Behavior({
|
|
|
39
39
|
wx.showToast({
|
|
40
40
|
title: update ? '更新时间完成' : '设置时间完成',
|
|
41
41
|
})
|
|
42
|
+
wx.requestSubscribeMessage({
|
|
43
|
+
tmplIds: ['wsBcrNpvBt8a8pneIRNY8JdHKXYxhHxjONrelT8K5zQ'],
|
|
44
|
+
success: (res) => {
|
|
45
|
+
wx.showToast({
|
|
46
|
+
title: '订阅成功',
|
|
47
|
+
})
|
|
48
|
+
},
|
|
49
|
+
fail: (error) => {
|
|
50
|
+
wx.showToast({
|
|
51
|
+
title: error,
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
})
|
|
42
55
|
setTimeout(() => {
|
|
43
56
|
this.loadOrderInfo()
|
|
44
57
|
}, 1000);
|
|
@@ -3,7 +3,6 @@ var currentPlayUrl
|
|
|
3
3
|
var currentPlayIndex = -1
|
|
4
4
|
var audioAnimationInterval
|
|
5
5
|
|
|
6
|
-
const hhDoctor = require('../../hh-doctor')
|
|
7
6
|
const hhNavigation = require('../../hh-navigation')
|
|
8
7
|
const doctorLoader = require('../../public/doctor-loader')
|
|
9
8
|
|
|
@@ -20,7 +19,6 @@ Page({
|
|
|
20
19
|
* 生命周期函数--监听页面加载
|
|
21
20
|
*/
|
|
22
21
|
onLoad(options) {
|
|
23
|
-
hhDoctor.initSDK()
|
|
24
22
|
wx.statLog.sendStatLog(options.orderId, '打开咨询单详情界面')
|
|
25
23
|
const doctorId = options.doctorId
|
|
26
24
|
doctorLoader.loadDoctor({
|
|
@@ -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 {
|