hhdoctor-wmp-sdk 3.8.13 → 3.8.14

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.
@@ -78,6 +78,8 @@ Component({
78
78
  _previewImg(e) {
79
79
  this.triggerEvent('tapimage', e.currentTarget.dataset)
80
80
  },
81
+ _tapHead() {
82
+ },
81
83
  _playAudio(e) {
82
84
  this.triggerEvent('tapaudio', e.currentTarget.dataset)
83
85
  },
@@ -1,7 +1,7 @@
1
1
  <wxs src="../wxs/common.wxs" module="common" />
2
2
  <view class='msg-row {{"c"==from?"user":""}}'>
3
3
  <view class='msg-img'>
4
- <image class='img-head' mode="widthFix" src='{{("d"==from&&asst.photo)?asst.photo:head?head:"../images/avatar.png"}}'>
4
+ <image class='img-head' mode="widthFix" catch:tap="_tapHead" src='{{("d"==from&&asst.photo)?asst.photo:head?head:"../images/avatar.png"}}'>
5
5
  </image>
6
6
  </view>
7
7
  <view class="msg-body {{'c'==from?'user':''}} {{'card'==type?'card':''}}">
@@ -3,6 +3,8 @@
3
3
  <!-- 页面顶部和呼叫按钮 -->
4
4
  <hh-calling msgPanelTop='{{msgPanelTop}}' navigationBar='{{navigationBar}}' wxMbb='{{wxMbb}}' navStyle='{{navStyle}}' custom-style='{{customStyle}}' request='{{_request}}' basePath='{{basePath}}' disConnected='{{disConnected}}' demoStatusInit='{{demoStatusInit}}' bind:livePanelHeight='bindLivePanelHeight' sysInfo='{{sysInfo}}' call-btn-visible="{{callBtnVisible}}" bind:onWsClose='bindOnWsClose' class='hhcalling' bind:memberList='getMemberList' manyVideo='{{manyVideo}}' product='{{product}}' loadcfg='{{loadcfg}}' isAuth='{{isAuth}}' bind:doRealName="_doRealName" bindcall="_naviToCall" bind:share="_share" catch:tapcalling="bindScrollView" bind:sizechange="callSizeChange"></hh-calling>
5
5
  <view id="hhMultiUserCall" class="real-name-wrap" wx:if="{{multiUserCallInfo}}" style="top: {{(_request.callBtnVisible)?('custom'==navStyle?108+sysInfo.statusBarHeight:64):('custom'==navStyle?(wxMbb.bottom+5):0)}}px;">你有正在进行中的问诊。<text class="real-name-btn" catchtap="_doJoinRoom" data-room-info="{{multiUserCallInfo}}">点击进入视频</text></view>
6
+
7
+
6
8
  <!-- 中部消息列表 -->
7
9
  <scroll-view class='msg-panel-scroll' style='margin-top:{{msgPanelTop+livePanelHeight+authHeight}}px;height:{{msgPanelHeight-livePanelHeight-authHeight}}px;' scroll-y scroll-into-view='{{lastMsgId}}' scroll-anchoring="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{msgTrigger}}" catchtap='bindScrollView' bindscrolltoupper="" bindrefresherrefresh="showMoreMsg">
8
10
  <block wx:for='{{msgList}}' wx:for-item='msg' wx:key='id'>
@@ -15,6 +17,7 @@
15
17
  </scroll-view>
16
18
  <!-- 底部输入区域 -->
17
19
  <hh-bottom id='hhBottom' wx:if="{{_request.bottomToolsVisible}}" request='{{_request}}' manyVideo='{{manyVideo}}' share-card='{{shareCard}}' product='{{product}}' product-right-list="{{productRightsList}}" safeAreaHight='{{safeAreaHight}}' memberList='{{memberList}}' load-cfg="{{loadcfg}}" bind:sendTextMsg='bindSendTextMsg' bind:sendAudio='bindSendAudio' bind:everyIcon='bindEveryIcon' bind:isShowToolBar='bindIsShowToolBar' bind:keyboardheightchange='bindkeyboardheightchange' bind:callasst="bindcallasst" bind:contactasst="bindcontactasst" bind:share="_share"></hh-bottom>
20
+
18
21
  </view>
19
22
  <hh-Modal isShowModal='{{isShowModal}}' modalData="{{modalMsgData}}" bind:myConfirm='_bindMyConfirm' bind:myCancel='_bindMyCancel' data-type='{{modalMsgData.source}}'></hh-Modal>
20
23
 
@@ -5,7 +5,7 @@
5
5
  <view class="tip" wx:if="{{videoTime}}">{{videoTime}}</view>
6
6
  </view>
7
7
  <view class="room-modal">
8
- <button class='room-image' style='background-image:url({{icons.hangup}});' id='h-cancel' catchtap='tapHangup' data-tag="cancel-4" data-event="cancel"></button>
8
+ <button class='room-image-expert' style='background-image:url({{icons.hangup}});' id='h-cancel' catchtap='tapHangup' data-tag="cancel-4" data-event="cancel"></button>
9
9
  <view class="room-cancel">取消</view>
10
10
  </view>
11
11
  </view>
@@ -14,7 +14,7 @@
14
14
  z-index: 1000;
15
15
  }
16
16
 
17
- .room-image {
17
+ .room-image-expert {
18
18
  width: 130rpx;
19
19
  height: 130rpx;
20
20
  background-color: transparent;
@@ -3,8 +3,8 @@ const apis = require('./utils/api.js')
3
3
  const TIM = require('./hh-rtc/lib/tim-wx');
4
4
  const cStyle = require('./utils/consoleStyle')
5
5
  const SDKAppID = 1400073238;
6
- const SdkVersion = '6.8.2'
7
- const SdkSubVersion = '.260610.1113'
6
+ const SdkVersion = '6.8.3'
7
+ const SdkSubVersion = '.260611.0936'
8
8
  const { isHhWmp } = require('./utils/commonUtil');
9
9
  const shareInfo = {}, inviteEnum = { zhuanke: 3, quanke: 1 }
10
10
  const AESUtil = require('./utils/aesUtil');
@@ -1,7 +1,7 @@
1
1
  // components/view.js
2
2
  const hhDoctor = require('../../hhDoctor.js');
3
3
  const uiUtil = require('../../utils/uiUtil')
4
- const { getPathExt } = require('../../utils/commonUtil')
4
+ const { getPathExt, getRequestParams } = require('../../utils/commonUtil')
5
5
  let that, url, fileName, refreshStatusKey = '__hh_view_refresh', eventChannel
6
6
  Page({
7
7
  data: {
@@ -54,6 +54,8 @@ Page({
54
54
  if (options.url) {
55
55
  url = decodeURIComponent(options.url);
56
56
  console.log('url:', url)
57
+ let params = getRequestParams(url)
58
+ if (params.profileName) getApp().globalData._hhSdkOptions = Object.assign(getApp().globalData?._hhSdkOptions ?? {}, { _profileName: params.profileName })
57
59
  if (url.indexOf('accessToken=') < 0) {
58
60
  let accessToken = wx.getStorageSync('_hh_access_token') || ''
59
61
  url += (`${url.indexOf('?') >= 0 ? '&' : '?'}accessToken=${accessToken}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hhdoctor-wmp-sdk",
3
- "version": "3.8.13",
3
+ "version": "3.8.14",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -78,6 +78,8 @@ Component({
78
78
  _previewImg(e) {
79
79
  this.triggerEvent('tapimage', e.currentTarget.dataset)
80
80
  },
81
+ _tapHead() {
82
+ },
81
83
  _playAudio(e) {
82
84
  this.triggerEvent('tapaudio', e.currentTarget.dataset)
83
85
  },
@@ -1,7 +1,7 @@
1
1
  <wxs src="../wxs/common.wxs" module="common" />
2
2
  <view class='msg-row {{"c"==from?"user":""}}'>
3
3
  <view class='msg-img'>
4
- <image class='img-head' mode="widthFix" src='{{("d"==from&&asst.photo)?asst.photo:head?head:"../images/avatar.png"}}'>
4
+ <image class='img-head' mode="widthFix" catch:tap="_tapHead" src='{{("d"==from&&asst.photo)?asst.photo:head?head:"../images/avatar.png"}}'>
5
5
  </image>
6
6
  </view>
7
7
  <view class="msg-body {{'c'==from?'user':''}} {{'card'==type?'card':''}}">
@@ -3,6 +3,8 @@
3
3
  <!-- 页面顶部和呼叫按钮 -->
4
4
  <hh-calling msgPanelTop='{{msgPanelTop}}' navigationBar='{{navigationBar}}' wxMbb='{{wxMbb}}' navStyle='{{navStyle}}' custom-style='{{customStyle}}' request='{{_request}}' basePath='{{basePath}}' disConnected='{{disConnected}}' demoStatusInit='{{demoStatusInit}}' bind:livePanelHeight='bindLivePanelHeight' sysInfo='{{sysInfo}}' call-btn-visible="{{callBtnVisible}}" bind:onWsClose='bindOnWsClose' class='hhcalling' bind:memberList='getMemberList' manyVideo='{{manyVideo}}' product='{{product}}' loadcfg='{{loadcfg}}' isAuth='{{isAuth}}' bind:doRealName="_doRealName" bindcall="_naviToCall" bind:share="_share" catch:tapcalling="bindScrollView" bind:sizechange="callSizeChange"></hh-calling>
5
5
  <view id="hhMultiUserCall" class="real-name-wrap" wx:if="{{multiUserCallInfo}}" style="top: {{(_request.callBtnVisible)?('custom'==navStyle?108+sysInfo.statusBarHeight:64):('custom'==navStyle?(wxMbb.bottom+5):0)}}px;">你有正在进行中的问诊。<text class="real-name-btn" catchtap="_doJoinRoom" data-room-info="{{multiUserCallInfo}}">点击进入视频</text></view>
6
+
7
+
6
8
  <!-- 中部消息列表 -->
7
9
  <scroll-view class='msg-panel-scroll' style='margin-top:{{msgPanelTop+livePanelHeight+authHeight}}px;height:{{msgPanelHeight-livePanelHeight-authHeight}}px;' scroll-y scroll-into-view='{{lastMsgId}}' scroll-anchoring="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{msgTrigger}}" catchtap='bindScrollView' bindscrolltoupper="" bindrefresherrefresh="showMoreMsg">
8
10
  <block wx:for='{{msgList}}' wx:for-item='msg' wx:key='id'>
@@ -15,6 +17,7 @@
15
17
  </scroll-view>
16
18
  <!-- 底部输入区域 -->
17
19
  <hh-bottom id='hhBottom' wx:if="{{_request.bottomToolsVisible}}" request='{{_request}}' manyVideo='{{manyVideo}}' share-card='{{shareCard}}' product='{{product}}' product-right-list="{{productRightsList}}" safeAreaHight='{{safeAreaHight}}' memberList='{{memberList}}' load-cfg="{{loadcfg}}" bind:sendTextMsg='bindSendTextMsg' bind:sendAudio='bindSendAudio' bind:everyIcon='bindEveryIcon' bind:isShowToolBar='bindIsShowToolBar' bind:keyboardheightchange='bindkeyboardheightchange' bind:callasst="bindcallasst" bind:contactasst="bindcontactasst" bind:share="_share"></hh-bottom>
20
+
18
21
  </view>
19
22
  <hh-Modal isShowModal='{{isShowModal}}' modalData="{{modalMsgData}}" bind:myConfirm='_bindMyConfirm' bind:myCancel='_bindMyCancel' data-type='{{modalMsgData.source}}'></hh-Modal>
20
23
 
@@ -5,7 +5,7 @@
5
5
  <view class="tip" wx:if="{{videoTime}}">{{videoTime}}</view>
6
6
  </view>
7
7
  <view class="room-modal">
8
- <button class='room-image' style='background-image:url({{icons.hangup}});' id='h-cancel' catchtap='tapHangup' data-tag="cancel-4" data-event="cancel"></button>
8
+ <button class='room-image-expert' style='background-image:url({{icons.hangup}});' id='h-cancel' catchtap='tapHangup' data-tag="cancel-4" data-event="cancel"></button>
9
9
  <view class="room-cancel">取消</view>
10
10
  </view>
11
11
  </view>
@@ -14,7 +14,7 @@
14
14
  z-index: 1000;
15
15
  }
16
16
 
17
- .room-image {
17
+ .room-image-expert {
18
18
  width: 130rpx;
19
19
  height: 130rpx;
20
20
  background-color: transparent;
package/src/hhDoctor.js CHANGED
@@ -3,8 +3,8 @@ const apis = require('./utils/api.js')
3
3
  const TIM = require('./hh-rtc/lib/tim-wx');
4
4
  const cStyle = require('./utils/consoleStyle')
5
5
  const SDKAppID = 1400073238;
6
- const SdkVersion = '6.8.2'
7
- const SdkSubVersion = '.260610.1113'
6
+ const SdkVersion = '6.8.3'
7
+ const SdkSubVersion = '.260611.0936'
8
8
  const { isHhWmp } = require('./utils/commonUtil');
9
9
  const shareInfo = {}, inviteEnum = { zhuanke: 3, quanke: 1 }
10
10
  const AESUtil = require('./utils/aesUtil');
@@ -1,7 +1,7 @@
1
1
  // components/view.js
2
2
  const hhDoctor = require('../../hhDoctor.js');
3
3
  const uiUtil = require('../../utils/uiUtil')
4
- const { getPathExt } = require('../../utils/commonUtil')
4
+ const { getPathExt, getRequestParams } = require('../../utils/commonUtil')
5
5
  let that, url, fileName, refreshStatusKey = '__hh_view_refresh', eventChannel
6
6
  Page({
7
7
  data: {
@@ -54,6 +54,8 @@ Page({
54
54
  if (options.url) {
55
55
  url = decodeURIComponent(options.url);
56
56
  console.log('url:', url)
57
+ let params = getRequestParams(url)
58
+ if (params.profileName) getApp().globalData._hhSdkOptions = Object.assign(getApp().globalData?._hhSdkOptions ?? {}, { _profileName: params.profileName })
57
59
  if (url.indexOf('accessToken=') < 0) {
58
60
  let accessToken = wx.getStorageSync('_hh_access_token') || ''
59
61
  url += (`${url.indexOf('?') >= 0 ? '&' : '?'}accessToken=${accessToken}`)