hh-doctor-sdk 0.4.4 → 0.4.5
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.wxss +2 -2
- package/components/pathology/pathology-page.js +36 -0
- package/components/pathology/pathology-page.wxml +9 -0
- package/components/pathology/pathology-page.wxss +11 -0
- package/components/static/tim-wx.js +1 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
@@ -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,6 +34,17 @@ page {
|
|
|
34
34
|
height: 100%;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.tui-col-3-copy {
|
|
38
|
+
background-color: #1482f0;
|
|
39
|
+
position: absolute;
|
|
40
|
+
left: 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;
|