hh-doctor-sdk 0.2.0 → 0.2.2

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.
@@ -53,7 +53,7 @@ consultation-header-media-scroll-view ::-webkit-scrollbar {
53
53
  }
54
54
 
55
55
  .doctor-info {
56
- font-size: 28rpx;
56
+ font-size: 32rpx;
57
57
  color: #787878;
58
58
  margin-top: 14rpx;
59
59
  }
@@ -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
- <text wx:if="{{!isSend}}" class="chat-cell-name">{{name}}</text>
10
- <view
11
- class="{{isSend ? 'chat-cell-sender-content' : 'chat-cell-content'}}"
12
- catch:tap="clickCell"
13
- >
14
- <view class="chat-triangle {{isSend ? 'sender' : ''}}"></view>
15
- <slot></slot>
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>
@@ -1,9 +1,9 @@
1
1
  @import "../chat-cell.wxss";
2
2
 
3
3
  .chat-cell-name {
4
- display: inline-block;
5
- font-size: 20rpx;
4
+ font-size: 32rpx;
6
5
  color: #333333;
7
6
  margin-left: 20rpx;
8
- margin-bottom: 6rpx;
7
+ margin-bottom: 10rpx;
8
+ line-height: 1;
9
9
  }
@@ -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
- float: left;
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 50px 10px 50px;
43
- padding: 10rpx 20rpx 10rpx 0;
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 50px 10px 50px;
56
- padding: 10rpx 0 10rpx 20rpx;
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: 20rpx;
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: 20rpx;
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;
@@ -108,6 +108,7 @@
108
108
  }
109
109
 
110
110
  .pdf-body {
111
+ direction: ltr;
111
112
  display: flex;
112
113
  padding: 10rpx 0 0 0;
113
114
  }
@@ -125,12 +126,12 @@
125
126
  }
126
127
 
127
128
  .pdf-name {
128
- font-size: 24rpx;
129
+ font-size: 28rpx;
129
130
  color: #333333;
130
131
  }
131
132
 
132
133
  .pdf-size {
133
- font-size: 20rpx;
134
+ font-size: 28rpx;
134
135
  color: grey;
135
136
  margin-top: 10rpx;
136
137
  }
@@ -144,13 +145,13 @@
144
145
 
145
146
  .chatting-text {
146
147
  display: contents;
147
- font-size: 24rpx;
148
+ font-size: 28rpx;
148
149
  color: #333333;
149
150
  word-break: break-all;
150
151
  }
151
152
 
152
153
  .chatting-text.link {
153
- font-size: 24rpx;
154
+ font-size: 28rpx;
154
155
  color: #1482f0;
155
156
  text-decoration: underline;
156
157
  word-break: break-all;
@@ -166,7 +167,7 @@
166
167
  .msg-sound-text {
167
168
  margin-top: 2rpx;
168
169
  position: absolute;
169
- font-size: 26rpx;
170
+ font-size: 30rpx;
170
171
  color: #333333;
171
172
  left: 40rpx;
172
173
  }
@@ -237,7 +238,7 @@
237
238
  margin-left: 10px;
238
239
  line-height: 40px;
239
240
  height: 40px;
240
- font-size: 12px;
241
+ font-size: 20px;
241
242
  color: #969696;
242
243
  }
243
244
 
@@ -246,8 +247,19 @@
246
247
  margin-right: 10px;
247
248
  }
248
249
 
250
+ .chat-cell-body {
251
+ display: flex;
252
+ flex-direction: column;
253
+ }
254
+
255
+ .chat-cell-body-content {
256
+ display: flex;
257
+ flex-direction: row;
258
+ }
259
+
249
260
  .notify-end-time-body {
250
261
  display: flex;
262
+ direction: ltr;
251
263
  justify-content: center;
252
264
  align-items: flex-start;
253
265
  }
@@ -259,7 +271,7 @@
259
271
  }
260
272
 
261
273
  .notify-end-time-text {
262
- font-size: 24rpx;
274
+ font-size: 32rpx;
263
275
  color: #333333;
264
276
  margin-left: 10rpx;
265
277
  margin: auto 0 auto 10rpx;
@@ -272,14 +284,16 @@
272
284
  }
273
285
 
274
286
  .notify-time-edit {
275
- font-size: 24rpx;
287
+ display: flex;
288
+ font-size: 32rpx;
276
289
  color: #0096f0;
277
- margin: 0rpx 0 10rpx 0;
290
+ margin: 0 0 10rpx 0;
291
+ align-self: flex-start;
278
292
  }
279
293
 
280
294
  .notify-time-join {
281
295
  width: 100%;
282
- font-size: 24rpx;
296
+ font-size: 32rpx;
283
297
  color: white;
284
298
  background-color: #1482f0;
285
299
  padding: 16rpx 0rpx;
@@ -301,7 +315,7 @@
301
315
  background-color: white;
302
316
  padding: 10rpx 20rpx;
303
317
  border-radius: 10rpx;
304
- font-size: 20rpx;
318
+ font-size: 32rpx;
305
319
  color: #0592f5;
306
320
  }
307
321
 
@@ -324,7 +338,7 @@
324
338
  background-color: #c6e2fe;
325
339
  text-align: center;
326
340
  padding: 10rpx 0;
327
- font-size: 28rpx;
341
+ font-size: 32rpx;
328
342
  font-weight: bold;
329
343
  color: #333333;
330
344
  }
@@ -332,7 +346,7 @@
332
346
  .message-tip-content {
333
347
  width: 100%;
334
348
  margin: 20rpx 20rpx 0 20rpx;
335
- font-size: 28rpx;
349
+ font-size: 32rpx;
336
350
  color: #333333;
337
351
  text-align: center;
338
352
  padding-bottom: 20rpx;
@@ -348,7 +362,7 @@
348
362
 
349
363
  .message-tip-button {
350
364
  width: 30%;
351
- font-size: 28rpx;
365
+ font-size: 32rpx;
352
366
  text-align: center;
353
367
  color: #0096f0;
354
368
  border: #0096f0 1rpx solid;
@@ -383,12 +397,12 @@
383
397
 
384
398
  .evaluate-to {
385
399
  color: #0096f0;
386
- font-size: 26rpx;
400
+ font-size: 32rpx;
387
401
  margin-left: 10rpx;
388
402
  }
389
403
 
390
404
  .evaluate-did {
391
405
  color: #999999;
392
- font-size: 26rpx;
406
+ font-size: 30rpx;
393
407
  margin-left: 10rpx;
394
408
  }
@@ -30,7 +30,7 @@
30
30
  position: absolute;
31
31
  bottom: 0rpx;
32
32
  text-align: center;
33
- font-size: 22rpx;
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: 24rpx;
50
+ font-size: 28rpx;
51
51
  color: #333333;
52
52
  margin-top: 5rpx;
53
53
  overflow: hidden;
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .detail-text-font {
10
- font-size: 28rpx;
10
+ font-size: 32rpx;
11
11
  color: #333333;
12
12
  margin-top: 14rpx;
13
13
  margin-bottom: 14rpx;
@@ -7,7 +7,7 @@
7
7
  .title {
8
8
  padding-top: 32rpx;
9
9
  text-align: center;
10
- font-size: 30rpx;
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: 32rpx;
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: 28rpx;
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: 30rpx;
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: 28rpx;
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: 32rpx;
102
+ font-size: 34rpx;
103
103
  }
@@ -43,14 +43,29 @@ Page({
43
43
  cache.cache({
44
44
  isTest: isTest
45
45
  })
46
- doctorLoader.loadDoctor({
47
- doctorId: doctorId,
48
- isTest: isTest,
49
- }, (result) => {
50
- if (result) {
51
- this.loadList()
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: 28rpx;
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-size: 28rpx;
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: 2rpx;
52
+ height: 1rpx;
52
53
  }
53
54
 
54
55
  .order-hospital {
55
56
  color: #787878;
56
- font-size: 24rpx;
57
+ font-size: 32rpx;
57
58
  margin-bottom: 20rpx;
58
59
  }
59
60
 
60
61
  .provide-time {
61
62
  color: #f01414;
62
- font-size: 24rpx;
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
- height: 30rpx;
71
- padding: 4rpx 8rpx;
72
- line-height: 1.5;
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: 32rpx;
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: 32rpx;
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: 24rpx;
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: 28rpx;
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: 28rpx;
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: 32rpx;
192
+ font-size: 34rpx;
193
193
  }
194
194
 
195
195
  .close-button::after {
@@ -22,5 +22,5 @@
22
22
  .callback_name {
23
23
  color: white;
24
24
  margin-top: 10rpx;
25
- font-size: 32rpx;
25
+ font-size: 34rpx;
26
26
  }
@@ -10,7 +10,7 @@
10
10
  .calling-tip-text {
11
11
  position: relative;
12
12
  display: flex;
13
- font-size: 28rpx;
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: 32rpx;
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: 24rpx;
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: 32rpx;
62
+ font-size: 34rpx;
63
63
  color: white;
64
64
  padding: 8rpx 20rpx;
65
65
  border-radius: 12rpx;
@@ -64,7 +64,7 @@
64
64
  display: flex;
65
65
  align-items: center;
66
66
  flex-direction: column;
67
- font-size: 24rpx;
67
+ font-size: 28rpx;
68
68
  color: #ffffff;
69
69
  }
70
70
 
@@ -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 (type === 'url') {
27
- // url 类型组件为链接跳转,每个链接作为一个分组使用单独直接点击跳转
28
- if (fileList && fileList.length > 0) {
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
- } else {
43
- let images = fileList.filter((file) => !file.imageurl.includes('.pdf'))
44
- let pdfs = fileList.filter((file) => file.imageurl.includes('.pdf')) //imagedesc
45
- if (images && images.length > 0) {
46
- let imageList = images.map((file) => {
47
- const url = file.imageurl
48
- let thumb = url
49
- const isVideo = url.endsWith('.mp4')
50
- if (isVideo) {
51
- thumb = `${url}?x-oss-process=video/snapshot,t_0,f_jpg`
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
- const data = {
55
- url: url,
56
- thumb: thumb,
57
- type: isVideo ? 'video' : 'image',
58
- }
59
- mediaFiles.push(data)
60
- return data
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
- groups.push({
64
- title: component.name,
65
- files: imageList
66
- })
67
- }
68
- if (pdfs && pdfs.length > 0) {
69
- let pdfFiles = pdfs.map((file) => {
70
- const url = file.imageurl
71
- const thumb = 'https://image.hh-medic.com/icon/pacs/hh_icon_pdf.png'
72
- return {
73
- url: url,
74
- thumb: thumb,
75
- type: 'pdf',
76
- desc: file.imagedesc
77
- }
78
- })
79
- groups.push({
80
- title: `${component.name}PDF`,
81
- files: pdfFiles
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
  }
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .case-group-title {
6
- font-size: 30rpx;
6
+ font-size: 34rpx;
7
7
  color: #333333;
8
8
  margin: 20rpx 30rpx;
9
9
  }
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-doctor-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "和缓名医小程序SDK",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"