hh-doctor-sdk 0.3.9 → 0.4.1
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.
|
@@ -60,15 +60,15 @@ function _videoMenus(order) {
|
|
|
60
60
|
}
|
|
61
61
|
const isSetTime = order.provideTime || 0 > 10000
|
|
62
62
|
const needMore = order.orderMessage.replyShowNeedMoreButton || false //专家是否显示需要补充按钮
|
|
63
|
+
if (order.serviceGroupName != 'MDT' && (order.orderMessage.askButtion || false)) {
|
|
64
|
+
menus.push(_menu(ChatEventType.endConsultation, "结束咨询"))
|
|
65
|
+
}
|
|
63
66
|
if (needMore) {
|
|
64
67
|
menus.push(_menu(ChatEventType.eAddSupply, '需要补充'))
|
|
65
68
|
}
|
|
66
69
|
if (isSetTime) {
|
|
67
70
|
menus.push(_menu(ChatEventType.startVideo, '发起视频'))
|
|
68
71
|
menus.push(_menu(ChatEventType.reply, '回复意见', 1))
|
|
69
|
-
if (order.serviceGroupName != 'MDT' && (order.orderMessage.askButton || false)) {
|
|
70
|
-
menus.push(_menu(ChatEventType.endConsultation, "结束咨询"))
|
|
71
|
-
}
|
|
72
72
|
} else {
|
|
73
73
|
menus.push(_menu(ChatEventType.refuse, '拒绝'))
|
|
74
74
|
menus.push(_menu(ChatEventType.reply, '回复意见', 1))
|
|
@@ -94,12 +94,12 @@ function _feidaoMenus(order) {
|
|
|
94
94
|
// })
|
|
95
95
|
// isSetTime = index >= 0
|
|
96
96
|
// }
|
|
97
|
+
if (order.serviceGroupName != 'MDT' && (order.orderMessage.askButtion || false)) {
|
|
98
|
+
menus.push(_menu(ChatEventType.endConsultation, "结束咨询"))
|
|
99
|
+
}
|
|
97
100
|
menus.push(_menu(ChatEventType.visitConfirm, '可行手术'))
|
|
98
101
|
menus.push(_menu(ChatEventType.visitReject, '无法手术', 1))
|
|
99
102
|
menus.push(_menu(ChatEventType.reply, '回复意见', 1))
|
|
100
|
-
if (order.serviceGroupName != 'MDT' && (order.orderMessage.askButton || false)) {
|
|
101
|
-
menus.push(_menu(ChatEventType.endConsultation, "结束咨询"))
|
|
102
|
-
}
|
|
103
103
|
return menus
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -128,13 +128,13 @@ function _normalMenus(order) {
|
|
|
128
128
|
menus.push(_menu(ChatEventType.reply, '回复意见', 1))
|
|
129
129
|
break
|
|
130
130
|
case OrderState.finished:
|
|
131
|
+
if (order.serviceGroupName != 'MDT' && (order.orderMessage.askButtion || false)) {
|
|
132
|
+
menus.push(_menu(ChatEventType.endConsultation, "结束咨询"))
|
|
133
|
+
}
|
|
131
134
|
if (haveInvite) {
|
|
132
135
|
menus.push(_menu(ChatEventType.discuss, '内部讨论'))
|
|
133
136
|
}
|
|
134
137
|
menus.push(_menu(ChatEventType.reply, '回复意见', 1))
|
|
135
|
-
if (order.serviceGroupName != 'MDT' && (order.orderMessage.askButton || false)) {
|
|
136
|
-
menus.push(_menu(ChatEventType.endConsultation, "结束咨询"))
|
|
137
|
-
}
|
|
138
138
|
break
|
|
139
139
|
default:
|
|
140
140
|
menus.push(_menu(ChatEventType.reply, '回复意见', 1))
|
|
@@ -29,7 +29,7 @@ module.exports = Behavior({
|
|
|
29
29
|
wx.statLog.sendStatLog(null, '获取订单详情数据完成')
|
|
30
30
|
// wx.hideLoading()
|
|
31
31
|
const order = res.data.order
|
|
32
|
-
|
|
32
|
+
console.error(`order info ==> ${JSON.stringify(order)}`)
|
|
33
33
|
const feedbackStar = res.data.feedbackStar
|
|
34
34
|
let notifySetVideoTime = false
|
|
35
35
|
if (order && order.orderService && order.orderService.provideType === 'video') {
|