hh-doctor-sdk 0.4.5 → 0.4.8

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.
@@ -50,9 +50,7 @@
50
50
  </view>
51
51
  <view wx:if="{{showEmpty}}" class="empty-body">
52
52
  <image
53
- class="empty-image"
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>
@@ -124,17 +124,8 @@ page {
124
124
  }
125
125
 
126
126
  .empty-body {
127
- position: absolute;
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
- color: #646464;
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
  }
@@ -17,7 +17,7 @@
17
17
  data-name="{{item.name}}"
18
18
  class="tui-col-3-copy"
19
19
  >
20
- 拷贝链接
20
+ 复制链接
21
21
  </view>
22
22
  <view wx:if="{{item.count > 0}}" class="tui-col-3-count"
23
23
  >共{{item.count}}张</view
@@ -37,7 +37,7 @@ page {
37
37
  .tui-col-3-copy {
38
38
  background-color: #1482f0;
39
39
  position: absolute;
40
- left: 0;
40
+ right: 0;
41
41
  bottom: 0;
42
42
  color: white;
43
43
  font-size: 32rpx;
@@ -48,7 +48,7 @@ page {
48
48
  .tui-col-3-count {
49
49
  background-color: rgba(0, 0, 0, 0.3);
50
50
  position: absolute;
51
- right: 0;
51
+ left: 0;
52
52
  bottom: 0;
53
53
  color: white;
54
54
  font-size: 32rpx;
@@ -71,13 +71,28 @@ Component({
71
71
  if (orderId) {
72
72
  api.getAgoraToken(orderId).then((res) => {
73
73
  const token = res.data.token
74
+ wx.statLog.sendStatLog(orderId, `获取声网token成功 -> ${token}`)
74
75
  this.joinChannel({
75
76
  roomID: roomID,
76
77
  token: token
77
78
  })
78
79
  }).catch((e) => {
79
-
80
+ wx.statLog.sendStatLog(orderId, `获取声网token失败 -> ${JSON.stringify(e)}`)
81
+ wx.showToast({
82
+ title: '获取声网token失败',
83
+ })
84
+ setTimeout(() => {
85
+ wx.navigateBack()
86
+ }, 1000)
87
+ })
88
+ } else {
89
+ wx.statLog.sendStatLog(orderId, '传入的订单号为空')
90
+ wx.showToast({
91
+ title: '订单号为空,未获取房间号',
80
92
  })
93
+ setTimeout(() => {
94
+ wx.navigateBack()
95
+ }, 1000)
81
96
  }
82
97
  },
83
98
 
@@ -96,6 +111,7 @@ Component({
96
111
  async joinChannel(data) {
97
112
  const strRoomID = '' + data.roomID
98
113
  const uuid = cache.uuid()
114
+ wx.statLog.sendStatLog(orderId, `声网开始进房 ${uuid} - ${strRoomID} - ${data.token}`)
99
115
  await this.client.join(data.token, strRoomID, uuid)
100
116
  const url = await this.client.publish()
101
117
  const ts = new Date().getTime()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-doctor-sdk",
3
- "version": "0.4.5",
3
+ "version": "0.4.8",
4
4
  "description": "和缓名医小程序SDK",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"