hh-doctor-sdk 0.2.0 → 0.2.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.
- package/components/consultation/detail/consultation-detail-page.wxss +1 -1
- package/components/consultation/detail/widget/chat-base-cell/chat-base-cell.wxml +12 -8
- package/components/consultation/detail/widget/chat-base-cell/chat-base-cell.wxss +3 -3
- package/components/consultation/detail/widget/chat-cell.wxss +42 -29
- package/components/consultation/detail/widget/detail-media/detail-media.wxss +2 -2
- package/components/consultation/detail/widget/detail-text/detail-text.wxss +1 -1
- package/components/consultation/evaluate/evaluate-page.wxss +6 -6
- package/components/consultation/list/consultation-list-page.js +23 -8
- package/components/consultation/list/consultation-list-page.wxss +10 -11
- package/components/consultation/reply/consultation-reply-page.wxss +3 -3
- package/components/consultation/reply/widget/audio-record-view/audio-record-view.wxss +3 -3
- package/components/video-chat/callback/callback.wxss +1 -1
- package/components/video-chat/calling/calling.wxss +2 -2
- package/components/video-chat/controller/controller.wxss +2 -2
- package/components/video-chat/video-chat.wxss +1 -1
- package/components/video-chat-page/behaviors/chat-files-behaviors.js +43 -43
- package/components/video-chat-page/case-group-view/case-group-view.wxss +1 -1
- package/components/video-chat-page/video-chat-page.js +3 -0
- package/package.json +1 -1
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
<view class="chat-time-container">
|
|
2
|
-
<text class="chat-time">{{createtime}}</text>
|
|
2
|
+
<text wx:if="{{createtime}}" class="chat-time">{{createtime}}</text>
|
|
3
3
|
</view>
|
|
4
4
|
|
|
5
5
|
<view class="chat-cell {{isSend ? 'sender' : ''}}">
|
|
6
6
|
<view class="{{isSend ? 'chat-cell-sender-photo' : 'chat-cell-photo'}}">
|
|
7
7
|
<image class="chat-cell-photo-image" src="{{photo}}"></image>
|
|
8
8
|
</view>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
class="
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
<view class="chat-cell-body">
|
|
10
|
+
<text wx:if="{{!isSend}}" class="chat-cell-name">{{name}}</text>
|
|
11
|
+
<view class="chat-cell-body-content">
|
|
12
|
+
<view class="chat-triangle {{isSend ? 'sender' : ''}}"></view>
|
|
13
|
+
<view
|
|
14
|
+
class="{{isSend ? 'chat-cell-sender-content' : 'chat-cell-content'}}"
|
|
15
|
+
catch:tap="clickCell"
|
|
16
|
+
>
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
16
20
|
</view>
|
|
17
21
|
</view>
|
|
@@ -3,28 +3,24 @@
|
|
|
3
3
|
width: 0px;
|
|
4
4
|
border-width: 12rpx;
|
|
5
5
|
border-style: solid;
|
|
6
|
+
margin-top: 10rpx;
|
|
6
7
|
border-color: transparent white transparent transparent;
|
|
7
|
-
position: relative;
|
|
8
|
-
left: -22rpx;
|
|
9
|
-
float: left;
|
|
10
8
|
top: 5rpx;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
.chat-triangle.sender {
|
|
14
12
|
border-color: transparent transparent transparent #c6e2fe;
|
|
15
13
|
left: auto;
|
|
16
|
-
float: right;
|
|
17
|
-
right: -22rpx;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
.chat-cell {
|
|
21
|
-
|
|
22
|
-
font-size: 28rpx;
|
|
17
|
+
font-size: 32rpx;
|
|
23
18
|
margin-left: 10rpx;
|
|
24
19
|
}
|
|
25
20
|
|
|
26
21
|
.chat-cell.sender {
|
|
27
22
|
float: right;
|
|
23
|
+
direction: rtl;
|
|
28
24
|
margin-right: 10rpx;
|
|
29
25
|
}
|
|
30
26
|
|
|
@@ -38,9 +34,11 @@
|
|
|
38
34
|
float: left;
|
|
39
35
|
}
|
|
40
36
|
.chat-cell-content {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
41
39
|
background-color: white;
|
|
42
|
-
margin: 0
|
|
43
|
-
padding: 10rpx 20rpx 10rpx
|
|
40
|
+
margin: 0 0 10px 0rpx;
|
|
41
|
+
padding: 10rpx 20rpx 10rpx 20rpx;
|
|
44
42
|
border-radius: 7px;
|
|
45
43
|
width: fit-content;
|
|
46
44
|
min-height: 30rpx;
|
|
@@ -51,9 +49,11 @@
|
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.chat-cell-sender-content {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
54
|
background-color: #c6e2fe;
|
|
55
|
-
margin: 0px
|
|
56
|
-
padding: 10rpx
|
|
55
|
+
margin: 0px 0 10px 50px;
|
|
56
|
+
padding: 10rpx 20rpx 10rpx 20rpx;
|
|
57
57
|
border-radius: 7px;
|
|
58
58
|
width: fit-content;
|
|
59
59
|
min-height: 30rpx;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
.chat-time {
|
|
70
70
|
justify-content: center;
|
|
71
|
-
font-size:
|
|
71
|
+
font-size: 28rpx;
|
|
72
72
|
color: white;
|
|
73
73
|
background-color: rgba(0, 0, 0, 0.3);
|
|
74
74
|
padding: 4rpx 8rpx 4rpx 8rpx;
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
position: absolute;
|
|
101
101
|
right: 0;
|
|
102
102
|
bottom: 0;
|
|
103
|
-
font-size:
|
|
103
|
+
font-size: 28rpx;
|
|
104
104
|
color: white;
|
|
105
105
|
background-color: rgba(0, 0, 0, 0.3);
|
|
106
106
|
padding: 2rpx 8rpx 2rpx 10rpx;
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.pdf-name {
|
|
128
|
-
font-size:
|
|
128
|
+
font-size: 28rpx;
|
|
129
129
|
color: #333333;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.pdf-size {
|
|
133
|
-
font-size:
|
|
133
|
+
font-size: 28rpx;
|
|
134
134
|
color: grey;
|
|
135
135
|
margin-top: 10rpx;
|
|
136
136
|
}
|
|
@@ -144,13 +144,13 @@
|
|
|
144
144
|
|
|
145
145
|
.chatting-text {
|
|
146
146
|
display: contents;
|
|
147
|
-
font-size:
|
|
147
|
+
font-size: 28rpx;
|
|
148
148
|
color: #333333;
|
|
149
149
|
word-break: break-all;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.chatting-text.link {
|
|
153
|
-
font-size:
|
|
153
|
+
font-size: 28rpx;
|
|
154
154
|
color: #1482f0;
|
|
155
155
|
text-decoration: underline;
|
|
156
156
|
word-break: break-all;
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
.msg-sound-text {
|
|
167
167
|
margin-top: 2rpx;
|
|
168
168
|
position: absolute;
|
|
169
|
-
font-size:
|
|
169
|
+
font-size: 30rpx;
|
|
170
170
|
color: #333333;
|
|
171
171
|
left: 40rpx;
|
|
172
172
|
}
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
margin-left: 10px;
|
|
238
238
|
line-height: 40px;
|
|
239
239
|
height: 40px;
|
|
240
|
-
font-size:
|
|
240
|
+
font-size: 20px;
|
|
241
241
|
color: #969696;
|
|
242
242
|
}
|
|
243
243
|
|
|
@@ -246,8 +246,19 @@
|
|
|
246
246
|
margin-right: 10px;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
.chat-cell-body {
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-direction: column;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.chat-cell-body-content {
|
|
255
|
+
display: flex;
|
|
256
|
+
flex-direction: row;
|
|
257
|
+
}
|
|
258
|
+
|
|
249
259
|
.notify-end-time-body {
|
|
250
260
|
display: flex;
|
|
261
|
+
direction: ltr;
|
|
251
262
|
justify-content: center;
|
|
252
263
|
align-items: flex-start;
|
|
253
264
|
}
|
|
@@ -259,7 +270,7 @@
|
|
|
259
270
|
}
|
|
260
271
|
|
|
261
272
|
.notify-end-time-text {
|
|
262
|
-
font-size:
|
|
273
|
+
font-size: 32rpx;
|
|
263
274
|
color: #333333;
|
|
264
275
|
margin-left: 10rpx;
|
|
265
276
|
margin: auto 0 auto 10rpx;
|
|
@@ -272,14 +283,16 @@
|
|
|
272
283
|
}
|
|
273
284
|
|
|
274
285
|
.notify-time-edit {
|
|
275
|
-
|
|
286
|
+
display: flex;
|
|
287
|
+
font-size: 32rpx;
|
|
276
288
|
color: #0096f0;
|
|
277
|
-
margin:
|
|
289
|
+
margin: 0 0 10rpx 0;
|
|
290
|
+
align-self: flex-start;
|
|
278
291
|
}
|
|
279
292
|
|
|
280
293
|
.notify-time-join {
|
|
281
294
|
width: 100%;
|
|
282
|
-
font-size:
|
|
295
|
+
font-size: 32rpx;
|
|
283
296
|
color: white;
|
|
284
297
|
background-color: #1482f0;
|
|
285
298
|
padding: 16rpx 0rpx;
|
|
@@ -301,7 +314,7 @@
|
|
|
301
314
|
background-color: white;
|
|
302
315
|
padding: 10rpx 20rpx;
|
|
303
316
|
border-radius: 10rpx;
|
|
304
|
-
font-size:
|
|
317
|
+
font-size: 32rpx;
|
|
305
318
|
color: #0592f5;
|
|
306
319
|
}
|
|
307
320
|
|
|
@@ -324,7 +337,7 @@
|
|
|
324
337
|
background-color: #c6e2fe;
|
|
325
338
|
text-align: center;
|
|
326
339
|
padding: 10rpx 0;
|
|
327
|
-
font-size:
|
|
340
|
+
font-size: 32rpx;
|
|
328
341
|
font-weight: bold;
|
|
329
342
|
color: #333333;
|
|
330
343
|
}
|
|
@@ -332,7 +345,7 @@
|
|
|
332
345
|
.message-tip-content {
|
|
333
346
|
width: 100%;
|
|
334
347
|
margin: 20rpx 20rpx 0 20rpx;
|
|
335
|
-
font-size:
|
|
348
|
+
font-size: 32rpx;
|
|
336
349
|
color: #333333;
|
|
337
350
|
text-align: center;
|
|
338
351
|
padding-bottom: 20rpx;
|
|
@@ -348,7 +361,7 @@
|
|
|
348
361
|
|
|
349
362
|
.message-tip-button {
|
|
350
363
|
width: 30%;
|
|
351
|
-
font-size:
|
|
364
|
+
font-size: 32rpx;
|
|
352
365
|
text-align: center;
|
|
353
366
|
color: #0096f0;
|
|
354
367
|
border: #0096f0 1rpx solid;
|
|
@@ -383,12 +396,12 @@
|
|
|
383
396
|
|
|
384
397
|
.evaluate-to {
|
|
385
398
|
color: #0096f0;
|
|
386
|
-
font-size:
|
|
399
|
+
font-size: 32rpx;
|
|
387
400
|
margin-left: 10rpx;
|
|
388
401
|
}
|
|
389
402
|
|
|
390
403
|
.evaluate-did {
|
|
391
404
|
color: #999999;
|
|
392
|
-
font-size:
|
|
405
|
+
font-size: 30rpx;
|
|
393
406
|
margin-left: 10rpx;
|
|
394
407
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
position: absolute;
|
|
31
31
|
bottom: 0rpx;
|
|
32
32
|
text-align: center;
|
|
33
|
-
font-size:
|
|
33
|
+
font-size: 28rpx;
|
|
34
34
|
padding-top: 4rpx;
|
|
35
35
|
padding-bottom: 4rpx;
|
|
36
36
|
background-color: rgba(0, 0, 0, 0.5);
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
width: 100%;
|
|
48
48
|
position: relative;
|
|
49
49
|
display: block;
|
|
50
|
-
font-size:
|
|
50
|
+
font-size: 28rpx;
|
|
51
51
|
color: #333333;
|
|
52
52
|
margin-top: 5rpx;
|
|
53
53
|
overflow: hidden;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.title {
|
|
8
8
|
padding-top: 32rpx;
|
|
9
9
|
text-align: center;
|
|
10
|
-
font-size:
|
|
10
|
+
font-size: 34rpx;
|
|
11
11
|
color: #8d8d8d;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.star-des {
|
|
29
29
|
margin-top: 30rpx;
|
|
30
30
|
text-align: center;
|
|
31
|
-
font-size:
|
|
31
|
+
font-size: 34rpx;
|
|
32
32
|
color: #ffba00;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
margin-left: 4%;
|
|
45
45
|
background-color: white;
|
|
46
46
|
color: #333333;
|
|
47
|
-
font-size:
|
|
47
|
+
font-size: 32rpx;
|
|
48
48
|
border-radius: 8rpx;
|
|
49
49
|
text-align: center;
|
|
50
50
|
padding: 10rpx 0;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
.textarea {
|
|
61
61
|
width: 92%;
|
|
62
62
|
line-height: 1.5;
|
|
63
|
-
font-size:
|
|
63
|
+
font-size: 34rpx;
|
|
64
64
|
padding: 30rpx;
|
|
65
65
|
color: #333333;
|
|
66
66
|
font-weight: normal;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.place-holder {
|
|
76
|
-
font-size:
|
|
76
|
+
font-size: 32rpx;
|
|
77
77
|
color: red;
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
height: 80rpx;
|
|
100
100
|
background-color: #0096f0;
|
|
101
101
|
color: white;
|
|
102
|
-
font-size:
|
|
102
|
+
font-size: 34rpx;
|
|
103
103
|
}
|
|
@@ -43,14 +43,29 @@ Page({
|
|
|
43
43
|
cache.cache({
|
|
44
44
|
isTest: isTest
|
|
45
45
|
})
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
if (!doctorId) {
|
|
47
|
+
wx.showModal({
|
|
48
|
+
title: "提示",
|
|
49
|
+
showCancel: false,
|
|
50
|
+
confirmText: '确定',
|
|
51
|
+
confirmColor: "#0066ff",
|
|
52
|
+
content: "您的身份不是医生,无法使用此功能",
|
|
53
|
+
complete: (res) => {
|
|
54
|
+
wx.switchTab({
|
|
55
|
+
url: '/pages/recommend/recommend',
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
} else {
|
|
60
|
+
doctorLoader.loadDoctor({
|
|
61
|
+
doctorId: doctorId,
|
|
62
|
+
isTest: isTest,
|
|
63
|
+
}, (result) => {
|
|
64
|
+
if (result) {
|
|
65
|
+
this.loadList()
|
|
66
|
+
}
|
|
67
|
+
})
|
|
68
|
+
}
|
|
54
69
|
} else {
|
|
55
70
|
wx.showModal({
|
|
56
71
|
showCancel: true,
|
|
@@ -14,7 +14,7 @@ page {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.order-group {
|
|
17
|
-
font-size:
|
|
17
|
+
font-size: 32rpx;
|
|
18
18
|
color: #333333;
|
|
19
19
|
padding: 20rpx 0 20rpx 30rpx;
|
|
20
20
|
}
|
|
@@ -37,7 +37,8 @@ page {
|
|
|
37
37
|
width: 100%;
|
|
38
38
|
position: relative;
|
|
39
39
|
color: #333333;
|
|
40
|
-
font-
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
font-size: 32rpx;
|
|
41
42
|
display: flex;
|
|
42
43
|
flex-direction: row;
|
|
43
44
|
justify-content: space-between;
|
|
@@ -48,18 +49,18 @@ page {
|
|
|
48
49
|
.line {
|
|
49
50
|
background-color: #dcdcdc;
|
|
50
51
|
width: 100%;
|
|
51
|
-
height:
|
|
52
|
+
height: 1rpx;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.order-hospital {
|
|
55
56
|
color: #787878;
|
|
56
|
-
font-size:
|
|
57
|
+
font-size: 32rpx;
|
|
57
58
|
margin-bottom: 20rpx;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
.provide-time {
|
|
61
62
|
color: #f01414;
|
|
62
|
-
font-size:
|
|
63
|
+
font-size: 32rpx;
|
|
63
64
|
margin-bottom: 20rpx;
|
|
64
65
|
border: #dcdcdc solid 2rpx;
|
|
65
66
|
border-radius: 6rpx;
|
|
@@ -67,15 +68,13 @@ page {
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
.order-status {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
font-size: 20rpx;
|
|
71
|
+
padding: 12rpx 20rpx;
|
|
72
|
+
line-height: 100%;
|
|
73
|
+
font-size: 28rpx;
|
|
74
74
|
color: white;
|
|
75
75
|
background-color: red;
|
|
76
|
-
align-content: center;
|
|
77
|
-
justify-content: center;
|
|
78
76
|
border-radius: 6rpx;
|
|
77
|
+
margin: auto;
|
|
79
78
|
margin-right: 20rpx;
|
|
80
79
|
}
|
|
81
80
|
|
|
@@ -50,7 +50,7 @@ scroll-view ::-webkit-scrollbar {
|
|
|
50
50
|
height: 80rpx;
|
|
51
51
|
background-color: #0096f0;
|
|
52
52
|
color: white;
|
|
53
|
-
font-size:
|
|
53
|
+
font-size: 34rpx;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.order-media-container {
|
|
@@ -80,7 +80,7 @@ scroll-view ::-webkit-scrollbar {
|
|
|
80
80
|
.textarea {
|
|
81
81
|
width: 100%;
|
|
82
82
|
line-height: 1.5;
|
|
83
|
-
font-size:
|
|
83
|
+
font-size: 34rpx;
|
|
84
84
|
padding: 30rpx;
|
|
85
85
|
margin-top: 30rpx;
|
|
86
86
|
background-color: #f0f0f0;
|
|
@@ -129,7 +129,7 @@ scroll-view ::-webkit-scrollbar {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.re-record-audio {
|
|
132
|
-
font-size:
|
|
132
|
+
font-size: 28rpx;
|
|
133
133
|
color: #0096f0;
|
|
134
134
|
margin-left: 20rpx;
|
|
135
135
|
}
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
.record-button {
|
|
165
165
|
margin: 15rpx auto;
|
|
166
|
-
font-size:
|
|
166
|
+
font-size: 32rpx;
|
|
167
167
|
color: #333333;
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
background-color: transparent;
|
|
178
178
|
color: #0096f0;
|
|
179
179
|
font-weight: normal;
|
|
180
|
-
font-size:
|
|
180
|
+
font-size: 32rpx;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.close-button {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
background-color: transparent;
|
|
190
190
|
color: #333333;
|
|
191
191
|
font-weight: normal;
|
|
192
|
-
font-size:
|
|
192
|
+
font-size: 34rpx;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.close-button::after {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
.calling-tip-text {
|
|
11
11
|
position: relative;
|
|
12
12
|
display: flex;
|
|
13
|
-
font-size:
|
|
13
|
+
font-size: 32rpx;
|
|
14
14
|
color: white;
|
|
15
15
|
padding: 20rpx;
|
|
16
16
|
background-color: #00000050;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.calling-tip-button {
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 36rpx;
|
|
23
23
|
color: white;
|
|
24
24
|
background-color: #0592f5;
|
|
25
25
|
margin-top: 15rpx;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
position: absolute;
|
|
44
44
|
height: 36rpx;
|
|
45
45
|
background-color: red;
|
|
46
|
-
font-size:
|
|
46
|
+
font-size: 28rpx;
|
|
47
47
|
color: white;
|
|
48
48
|
right: -30rpx;
|
|
49
49
|
padding: 0 14rpx;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: row;
|
|
61
61
|
background-color: rgba(0, 0, 0, 0.6);
|
|
62
|
-
font-size:
|
|
62
|
+
font-size: 34rpx;
|
|
63
63
|
color: white;
|
|
64
64
|
padding: 8rpx 20rpx;
|
|
65
65
|
border-radius: 12rpx;
|
|
@@ -23,9 +23,9 @@ module.exports = Behavior({
|
|
|
23
23
|
for (let component of order.orderComponent.componentBaseList) {
|
|
24
24
|
const type = component.type
|
|
25
25
|
const fileList = component.contentCaseImageList
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
if (fileList && fileList.length > 0) {
|
|
27
|
+
if (type === 'url') {
|
|
28
|
+
// url 类型组件为链接跳转,每个链接作为一个分组使用单独直接点击跳转
|
|
29
29
|
const urlFileList = fileList.map((res) => {
|
|
30
30
|
const item = {
|
|
31
31
|
type: 'url',
|
|
@@ -38,48 +38,48 @@ module.exports = Behavior({
|
|
|
38
38
|
title: component.name,
|
|
39
39
|
files: urlFileList
|
|
40
40
|
})
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
41
|
+
} else {
|
|
42
|
+
let images = fileList.filter((file) => !file.imageurl.includes('.pdf'))
|
|
43
|
+
let pdfs = fileList.filter((file) => file.imageurl.includes('.pdf')) //imagedesc
|
|
44
|
+
if (images && images.length > 0) {
|
|
45
|
+
let imageList = images.map((file) => {
|
|
46
|
+
const url = file.imageurl
|
|
47
|
+
let thumb = url
|
|
48
|
+
const isVideo = url.endsWith('.mp4')
|
|
49
|
+
if (isVideo) {
|
|
50
|
+
thumb = `${url}?x-oss-process=video/snapshot,t_0,f_jpg`
|
|
51
|
+
}
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
const data = {
|
|
54
|
+
url: url,
|
|
55
|
+
thumb: thumb,
|
|
56
|
+
type: isVideo ? 'video' : 'image',
|
|
57
|
+
}
|
|
58
|
+
mediaFiles.push(data)
|
|
59
|
+
return data
|
|
60
|
+
})
|
|
62
61
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
62
|
+
groups.push({
|
|
63
|
+
title: component.name,
|
|
64
|
+
files: imageList
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
if (pdfs && pdfs.length > 0) {
|
|
68
|
+
let pdfFiles = pdfs.map((file) => {
|
|
69
|
+
const url = file.imageurl
|
|
70
|
+
const thumb = 'https://image.hh-medic.com/icon/pacs/hh_icon_pdf.png'
|
|
71
|
+
return {
|
|
72
|
+
url: url,
|
|
73
|
+
thumb: thumb,
|
|
74
|
+
type: 'pdf',
|
|
75
|
+
desc: file.imagedesc
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
groups.push({
|
|
79
|
+
title: `${component.name}PDF`,
|
|
80
|
+
files: pdfFiles
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -2,6 +2,7 @@ const imManager = require('../public/im-manager')
|
|
|
2
2
|
const doctorLoader = require('../public/doctor-loader')
|
|
3
3
|
const defines = require('./video-chat-defines')
|
|
4
4
|
const pdfViewer = require('../public/pdf-viewer')
|
|
5
|
+
const hhNavigation = require('../hh-navigation')
|
|
5
6
|
|
|
6
7
|
Page({
|
|
7
8
|
|
|
@@ -212,6 +213,8 @@ Page({
|
|
|
212
213
|
})
|
|
213
214
|
} else if (type === 'pdf') {
|
|
214
215
|
pdfViewer.viewPdf(url)
|
|
216
|
+
} else if (type === 'url') {
|
|
217
|
+
hhNavigation.webPage(url)
|
|
215
218
|
}
|
|
216
219
|
},
|
|
217
220
|
|