hh-doctor-sdk 0.2.9 → 0.3.0
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 +0 -5
- package/components/consultation/detail/widget/chat-bottom/chat-bottom.js +1 -5
- package/components/consultation/detail/widget/chat-bottom/chat-bottom.wxml +0 -1
- package/components/consultation/detail/widget/chat-cell-template/chat-cell-template.wxml +0 -1
- package/components/consultation/list/behaviors/consultation-list-base-behaviors.js +5 -5
- package/components/consultation/list/consultation-list-page.js +22 -0
- package/components/consultation/list/consultation-list-page.wxml +4 -8
- package/components/consultation/list/consultation-list-page.wxss +4 -19
- package/components/utils/permission-utils.js +1 -18
- package/package.json +1 -1
|
@@ -5,7 +5,6 @@ var audioAnimationInterval
|
|
|
5
5
|
|
|
6
6
|
const hhNavigation = require('../../hh-navigation')
|
|
7
7
|
const doctorLoader = require('../../public/doctor-loader')
|
|
8
|
-
const permission = require('../../utils/permission-utils')
|
|
9
8
|
|
|
10
9
|
Page({
|
|
11
10
|
|
|
@@ -205,10 +204,6 @@ Page({
|
|
|
205
204
|
|
|
206
205
|
},
|
|
207
206
|
|
|
208
|
-
tapSetDate() {
|
|
209
|
-
permission.subscriptionVideoTime()
|
|
210
|
-
},
|
|
211
|
-
|
|
212
207
|
changeDateTime(e) {
|
|
213
208
|
this._changeDateTime(e)
|
|
214
209
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const menuBuilder = require('./chat-menu-builder')
|
|
2
2
|
const cache = require('../../../../public/cache-data')
|
|
3
|
+
const base = require('../../../../hh-doctor')
|
|
3
4
|
const hhNavigation = require('../../../../hh-navigation')
|
|
4
|
-
const permission = require('../../../../utils/permission-utils')
|
|
5
5
|
|
|
6
6
|
Component({
|
|
7
7
|
|
|
@@ -95,10 +95,6 @@ Component({
|
|
|
95
95
|
*/
|
|
96
96
|
changeDateTimeColumn(e) {
|
|
97
97
|
this.triggerEvent('changeDateTimeColumn', e)
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
tapSetDate() {
|
|
101
|
-
permission.subscriptionVideoTime()
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
100
|
})
|
|
@@ -52,9 +52,9 @@ module.exports = Behavior({
|
|
|
52
52
|
// console.error(JSON.stringify(orderModel))
|
|
53
53
|
if (orderModel) {
|
|
54
54
|
var orderGroups = []
|
|
55
|
-
if (orderModel.requestOrderList && orderModel.requestOrderList.length > 0) {
|
|
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: false,
|
|
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,3 +1,4 @@
|
|
|
1
|
+
const hhDoctor = require('../../hh-doctor')
|
|
1
2
|
const doctorLoader = require('../../public/doctor-loader')
|
|
2
3
|
const cache = require('../../public/cache-data')
|
|
3
4
|
|
|
@@ -83,9 +84,16 @@ Page({
|
|
|
83
84
|
complete: (res) => {
|
|
84
85
|
if (wx.loginConfig && wx.loginConfig.judgeLogin) {
|
|
85
86
|
if (res.cancel) {
|
|
87
|
+
// wx.switchTab({
|
|
88
|
+
// url: '/pages/recommend/recommend',
|
|
89
|
+
// })
|
|
86
90
|
wx.loginConfig.directLogin(false)
|
|
87
91
|
}
|
|
92
|
+
|
|
88
93
|
if (res.confirm) {
|
|
94
|
+
// wx.navigateTo({
|
|
95
|
+
// url: '/pkgMine/pages/mine/loginpage',
|
|
96
|
+
// })
|
|
89
97
|
wx.loginConfig.directLogin(true)
|
|
90
98
|
}
|
|
91
99
|
}
|
|
@@ -113,4 +121,18 @@ Page({
|
|
|
113
121
|
onPullDownRefresh() {
|
|
114
122
|
this.loadList()
|
|
115
123
|
},
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 页面上拉触底事件的处理函数
|
|
127
|
+
*/
|
|
128
|
+
onReachBottom() {
|
|
129
|
+
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 用户点击右上角分享
|
|
134
|
+
*/
|
|
135
|
+
onShareAppMessage() {
|
|
136
|
+
|
|
137
|
+
}
|
|
116
138
|
})
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
<view class="match-parent">
|
|
2
|
-
<view wx:if="{{!showEmpty}}" class="
|
|
2
|
+
<view wx:if="{{!showEmpty}}" class="chatting-body">
|
|
3
3
|
<block wx:for="{{orderGroup}}" wx:key="orderGroup" wx:for-item="group">
|
|
4
|
-
<view
|
|
5
|
-
|
|
6
|
-
wx:if="{{group.showSection}}"
|
|
7
|
-
class="order-group"
|
|
4
|
+
<view wx:if="{{group.showSection}}" class="order-group"
|
|
5
|
+
>{{group.title}}</view
|
|
8
6
|
>
|
|
9
|
-
|
|
10
|
-
</view>
|
|
11
|
-
<view class="order-list">
|
|
7
|
+
<view class="chatting-body">
|
|
12
8
|
<block
|
|
13
9
|
wx:for="{{group.list}}"
|
|
14
10
|
wx:key="order"
|
|
@@ -6,32 +6,17 @@ page {
|
|
|
6
6
|
height: 100%;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
10
|
-
width: 100%;
|
|
11
|
-
padding-bottom: constant(safe-area-inset-bottom); /* 兼容 IOS<11.2 */
|
|
12
|
-
padding-bottom: env(safe-area-inset-bottom); /* 兼容 IOS>11.2 */
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.order-list {
|
|
16
|
-
width: 100%;
|
|
9
|
+
.chatting-body {
|
|
17
10
|
display: flex;
|
|
18
11
|
flex-direction: column;
|
|
12
|
+
padding-bottom: constant(safe-area-inset-bottom); /* 兼容 IOS<11.2 */
|
|
13
|
+
padding-bottom: env(safe-area-inset-bottom); /* 兼容 IOS>11.2 */
|
|
19
14
|
}
|
|
20
15
|
|
|
21
16
|
.order-group {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
width: calc(100% - 30rpx);
|
|
25
|
-
position: sticky;
|
|
26
|
-
top: 0;
|
|
27
|
-
height: 80rpx;
|
|
28
17
|
font-size: 32rpx;
|
|
29
|
-
font-weight: bold;
|
|
30
18
|
color: #333333;
|
|
31
|
-
padding:
|
|
32
|
-
background-color: #f3f5fb;
|
|
33
|
-
align-items: center;
|
|
34
|
-
z-index: 2;
|
|
19
|
+
padding: 20rpx 0 20rpx 30rpx;
|
|
35
20
|
}
|
|
36
21
|
|
|
37
22
|
.order-item {
|
|
@@ -157,25 +157,8 @@ function showPermissionTip(error, ...scopes) {
|
|
|
157
157
|
})
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
function subscriptionVideoTime() {
|
|
161
|
-
wx.requestSubscribeMessage({
|
|
162
|
-
tmplIds: ['wsBcrNpvBt8a8pneIRNY8JdHKXYxhHxjONrelT8K5zQ'],
|
|
163
|
-
success: (res) => {
|
|
164
|
-
wx.showToast({
|
|
165
|
-
title: '订阅成功',
|
|
166
|
-
})
|
|
167
|
-
},
|
|
168
|
-
fail: (error) => {
|
|
169
|
-
wx.showToast({
|
|
170
|
-
title: error,
|
|
171
|
-
})
|
|
172
|
-
}
|
|
173
|
-
})
|
|
174
|
-
}
|
|
175
|
-
|
|
176
160
|
module.exports = {
|
|
177
161
|
checkMediaPermission: checkMediaPermission,
|
|
178
162
|
checkScopeRecord: checkScopeRecord,
|
|
179
|
-
checkScopeCamera: checkScopeCamera
|
|
180
|
-
subscriptionVideoTime: subscriptionVideoTime,
|
|
163
|
+
checkScopeCamera: checkScopeCamera
|
|
181
164
|
}
|