hh-doctor-sdk 0.4.4 → 0.4.6
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/widget/chat-cell.wxss +1 -0
- package/components/consultation/list/consultation-list-page.wxml +1 -3
- package/components/consultation/list/consultation-list-page.wxss +5 -14
- package/components/pathology/pathology-page.js +36 -0
- package/components/pathology/pathology-page.wxml +9 -0
- package/components/pathology/pathology-page.wxss +12 -1
- package/components/static/tim-wx.js +1 -1
- package/package.json +1 -1
|
@@ -50,9 +50,7 @@
|
|
|
50
50
|
</view>
|
|
51
51
|
<view wx:if="{{showEmpty}}" class="empty-body">
|
|
52
52
|
<image
|
|
53
|
-
|
|
54
|
-
src="https://image.hh-medic.com/icon/pacs/hh_consulation_empty.png"
|
|
53
|
+
src="https://image.hh-medic.com/icon/pacs/hh_icon_no_order_data.png"
|
|
55
54
|
/>
|
|
56
|
-
暂时没有咨询单
|
|
57
55
|
</view>
|
|
58
56
|
</view>
|
|
@@ -83,14 +83,14 @@ page {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.order-status {
|
|
86
|
+
position: absolute;
|
|
86
87
|
padding: 12rpx 20rpx;
|
|
87
88
|
line-height: 100%;
|
|
88
89
|
font-size: 28rpx;
|
|
89
90
|
color: white;
|
|
90
91
|
background-color: red;
|
|
91
92
|
border-radius: 6rpx;
|
|
92
|
-
|
|
93
|
-
margin-right: 20rpx;
|
|
93
|
+
right: 45rpx;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.order-status-icon {
|
|
@@ -124,17 +124,8 @@ page {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.empty-body {
|
|
127
|
-
|
|
128
|
-
left: calc(50% - 100rpx);
|
|
129
|
-
top: calc(50% - 200rpx);
|
|
130
|
-
display: flex;
|
|
131
|
-
flex-direction: column;
|
|
127
|
+
height: 100vh;
|
|
132
128
|
font-size: 30rpx;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
.empty-image {
|
|
137
|
-
width: 200rpx;
|
|
138
|
-
height: 200rpx;
|
|
139
|
-
margin-bottom: 30rpx;
|
|
129
|
+
text-align: center;
|
|
130
|
+
line-height: 100vh;
|
|
140
131
|
}
|
|
@@ -110,6 +110,42 @@ Page({
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
|
|
113
|
+
copyUrl: function (event) {
|
|
114
|
+
if (this.data.forDicom) {
|
|
115
|
+
const id = event.currentTarget.dataset.id
|
|
116
|
+
const url = dicomApi.dicomUrl(id)
|
|
117
|
+
wx.setClipboardData({
|
|
118
|
+
data: url,
|
|
119
|
+
success(res) {
|
|
120
|
+
// setTimeout(() => {
|
|
121
|
+
// wx.navigateBack()
|
|
122
|
+
// }, 1500);
|
|
123
|
+
},
|
|
124
|
+
fail(err) {
|
|
125
|
+
console.error(`copy failed ${JSON.stringify(err)}`)
|
|
126
|
+
}
|
|
127
|
+
})
|
|
128
|
+
} else {
|
|
129
|
+
const name = event.currentTarget.dataset.name
|
|
130
|
+
dicomApi.getPatholotyDetail(this.data.hospitalId, this.data.orderId, name).then((res) => {
|
|
131
|
+
const dataEncode = encodeURIComponent(JSON.stringify(res.data))
|
|
132
|
+
const base64Params = base64Utils.base64Encode(dataEncode)
|
|
133
|
+
const url = `${basePathologyUrl}?para=${base64Params}`
|
|
134
|
+
wx.setClipboardData({
|
|
135
|
+
data: url,
|
|
136
|
+
success(res) {
|
|
137
|
+
// setTimeout(() => {
|
|
138
|
+
// wx.navigateBack()
|
|
139
|
+
// }, 1500);
|
|
140
|
+
},
|
|
141
|
+
fail(err) {
|
|
142
|
+
console.error(`copy failed ${JSON.stringify(err)}`)
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
})
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
|
|
113
149
|
_loadList() {
|
|
114
150
|
wx.setNavigationBarTitle({
|
|
115
151
|
title: '加载中...',
|
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
>
|
|
11
11
|
<view class="tui-col-3-image-container">
|
|
12
12
|
<image class="tui-col-3-image" src="{{item.url}}"></image>
|
|
13
|
+
<view
|
|
14
|
+
catch:tap="copyUrl"
|
|
15
|
+
wx:if="{{path}}"
|
|
16
|
+
data-id="{{item.id}}"
|
|
17
|
+
data-name="{{item.name}}"
|
|
18
|
+
class="tui-col-3-copy"
|
|
19
|
+
>
|
|
20
|
+
复制链接
|
|
21
|
+
</view>
|
|
13
22
|
<view wx:if="{{item.count > 0}}" class="tui-col-3-count"
|
|
14
23
|
>共{{item.count}}张</view
|
|
15
24
|
>
|
|
@@ -34,10 +34,21 @@ page {
|
|
|
34
34
|
height: 100%;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.tui-col-3-copy {
|
|
38
|
+
background-color: #1482f0;
|
|
39
|
+
position: absolute;
|
|
40
|
+
right: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
color: white;
|
|
43
|
+
font-size: 32rpx;
|
|
44
|
+
padding: 4rpx 10rpx;
|
|
45
|
+
border-radius: 6rpx;
|
|
46
|
+
}
|
|
47
|
+
|
|
37
48
|
.tui-col-3-count {
|
|
38
49
|
background-color: rgba(0, 0, 0, 0.3);
|
|
39
50
|
position: absolute;
|
|
40
|
-
|
|
51
|
+
left: 0;
|
|
41
52
|
bottom: 0;
|
|
42
53
|
color: white;
|
|
43
54
|
font-size: 32rpx;
|