优化
This commit is contained in:
@@ -164,7 +164,7 @@ Component({
|
||||
if (customMessage.message_type === GDXZ_CUSTOM_MSEEAGE.PRESCRIBE_VERIFY) {
|
||||
let data = customMessage.data;
|
||||
const renderDom = [{
|
||||
type: 'prescribe',
|
||||
type: 'prescribe_verify',
|
||||
product_name: data.product_name,
|
||||
order_inquiry_id: data.order_inquiry_id,
|
||||
order_prescription_id: data.order_prescription_id,
|
||||
|
||||
@@ -415,16 +415,24 @@ Component({
|
||||
app.go("/Pages/yishi/case/index?order_inquiry_id="+this.data.order_inquiry_id)
|
||||
break;
|
||||
case '11'://在线开方
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
let userID = wx.getStorageSync('user_id_'+usertype);
|
||||
let multi_point_status = wx.getStorageSync(userID+'_multi_point_status');
|
||||
if(multi_point_status == 1){
|
||||
app.go("/Pages/yishi/onlinechufang/index?order_inquiry_id="+this.data.order_inquiry_id)
|
||||
}else{
|
||||
this.setData({
|
||||
dialog_visible: true
|
||||
})
|
||||
}
|
||||
let _this = this;
|
||||
console.log("开始订阅消息");
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['5Tl-xmaWXrKP5BB8E6b3oTdPHbHa7WYWbmvZiuz4TLs'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
let userID = wx.getStorageSync('user_id_'+usertype);
|
||||
let multi_point_status = wx.getStorageSync(userID+'_multi_point_status');
|
||||
if(multi_point_status == 1){
|
||||
app.go("/Pages/yishi/onlinechufang/index?order_inquiry_id="+_this.data.order_inquiry_id)
|
||||
}else{
|
||||
_this.setData({
|
||||
dialog_visible: true
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -209,6 +209,12 @@ Component({
|
||||
if(customMessage.message_type != GDXZ_CUSTOM_MSEEAGE.PRESCRIBE){
|
||||
show_avatar = false;
|
||||
}
|
||||
|
||||
if(customMessage.message_type != GDXZ_CUSTOM_MSEEAGE.TRABECULA){
|
||||
|
||||
//收到横条消息去触发父组件getbase方法
|
||||
this.triggerEvent('getInquiryMessageBasic');
|
||||
}
|
||||
}
|
||||
return show_avatar;
|
||||
},
|
||||
@@ -260,9 +266,11 @@ Component({
|
||||
|
||||
// 收到的消息
|
||||
$onMessageReceived(value) {
|
||||
|
||||
let autoToButtom = this.data.autoToButtom;
|
||||
console.log("autoToButtom:", autoToButtom)
|
||||
const message = value.data[0];
|
||||
|
||||
if(message.flow == 'out'){
|
||||
message.isRead = false;
|
||||
}
|
||||
@@ -493,6 +501,7 @@ Component({
|
||||
console.warn('revokeMessage error:', imError);
|
||||
});
|
||||
},
|
||||
|
||||
// 撤回消息重新发送
|
||||
resendMessage(e) {
|
||||
this.triggerEvent('resendMessage', {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<image class="tui-navigatorbar-back" bindtap="goBack" src="../../static/assets/ic_back_black.svg" />
|
||||
<view class="conversation-title">{{conversationName}}</view>
|
||||
</view> -->
|
||||
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}}" style="height: calc(100vh {{baseInfo.inquiry_status==4?'- 197rpx':'+ 20px'}} - 100rpx - {{navbar_height}}px);"><!-- 100vh -input-area高度 - info高度 -navbar高度 -->
|
||||
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}}" style="height: calc(100vh - 197rpx - 100rpx - {{navbar_height}}px);"><!-- 100vh -input-area高度 - info高度 -navbar高度 -->
|
||||
<!-- <view wx:if="{{showTips}}" class="safetytips-box"> -->
|
||||
<!-- <view class="safetytips">
|
||||
<text>【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款等信息,勿轻易拨打陌生电话,谨防上当受骗。</text>
|
||||
@@ -24,19 +24,19 @@
|
||||
</view> -->
|
||||
<!-- </view> -->
|
||||
<!-- <scroll-view class="message-list" bindtap="triggerClose"> -->
|
||||
<MessageList id="MessageList" conversation="{{conversation}}" unreadCount="{{unreadCount}}" bind:changeMemberCount="changeMemberCount" bind:resendMessage="resendMessage" bind:typing="typing" order_inquiry_id="{{order_inquiry_id}}"></MessageList>
|
||||
<MessageList bind:getInquiryMessageBasic="getInquiryMessageBasic" id="MessageList" conversation="{{conversation}}" unreadCount="{{unreadCount}}" bind:changeMemberCount="changeMemberCount" bind:resendMessage="resendMessage" bind:typing="typing" order_inquiry_id="{{order_inquiry_id}}"></MessageList>
|
||||
<!-- </scroll-view> -->
|
||||
</view>
|
||||
<view class="group-profile">
|
||||
<TUIGroup id="TUIGroup" wx:if="{{isShow}}" conversation="{{conversation}}" bind:groupCall="groupCall" bind:showConversationList="showConversationList"></TUIGroup>
|
||||
</view>
|
||||
<view class="input-area" style="{{input_area_style}}" wx:if="{{baseInfo.inquiry_status == 4}}">
|
||||
<view class="input-area" style="{{input_area_style}}">
|
||||
<view class="message-input" style="{{viewData.style}}" wx:if="{{showChat}}">
|
||||
<MessageInput bind:myhandleExtensions="myhandleExtensions" id="MessageInput" inquiry_type="{{inquiry_type}}" baseInfo="{{baseInfo}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:downKeysBoards="downKeysBoards" bind:pullKeysBoards="pullKeysBoards" bind:showMessageErrorImage="showMessageErrorImage"
|
||||
bind:handleCall="handleCall" ></MessageInput>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 40px;position: fixed;bottom: 0;width: 100%;background-color: #fff;z-index: 1;" wx:if="{{baseInfo.inquiry_status==4}}">
|
||||
<view style="height: 40px;position: fixed;bottom: 0;width: 100%;background-color: #fff;z-index: 1;">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user