hh-doctor-sdk 0.2.7 → 0.2.9
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 +5 -26
- package/components/consultation/detail/widget/chat-bottom/chat-bottom.js +5 -1
- package/components/consultation/detail/widget/chat-bottom/chat-bottom.wxml +1 -0
- package/components/consultation/detail/widget/chat-cell-template/chat-cell-template.wxml +1 -0
- package/components/utils/permission-utils.js +18 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ 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')
|
|
8
9
|
|
|
9
10
|
Page({
|
|
10
11
|
|
|
@@ -204,20 +205,11 @@ Page({
|
|
|
204
205
|
|
|
205
206
|
},
|
|
206
207
|
|
|
208
|
+
tapSetDate() {
|
|
209
|
+
permission.subscriptionVideoTime()
|
|
210
|
+
},
|
|
211
|
+
|
|
207
212
|
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
|
-
})
|
|
221
213
|
this._changeDateTime(e)
|
|
222
214
|
},
|
|
223
215
|
|
|
@@ -226,19 +218,6 @@ Page({
|
|
|
226
218
|
},
|
|
227
219
|
|
|
228
220
|
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
|
-
})
|
|
242
221
|
this._changeDateTime(e.detail, false)
|
|
243
222
|
},
|
|
244
223
|
|
|
@@ -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')
|
|
4
3
|
const hhNavigation = require('../../../../hh-navigation')
|
|
4
|
+
const permission = require('../../../../utils/permission-utils')
|
|
5
5
|
|
|
6
6
|
Component({
|
|
7
7
|
|
|
@@ -95,6 +95,10 @@ Component({
|
|
|
95
95
|
*/
|
|
96
96
|
changeDateTimeColumn(e) {
|
|
97
97
|
this.triggerEvent('changeDateTimeColumn', e)
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
tapSetDate() {
|
|
101
|
+
permission.subscriptionVideoTime()
|
|
98
102
|
}
|
|
99
103
|
}
|
|
100
104
|
})
|
|
@@ -157,8 +157,25 @@ 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
|
+
|
|
160
176
|
module.exports = {
|
|
161
177
|
checkMediaPermission: checkMediaPermission,
|
|
162
178
|
checkScopeRecord: checkScopeRecord,
|
|
163
|
-
checkScopeCamera: checkScopeCamera
|
|
179
|
+
checkScopeCamera: checkScopeCamera,
|
|
180
|
+
subscriptionVideoTime: subscriptionVideoTime,
|
|
164
181
|
}
|