fix:修改提示消息

feature/im-0602-ch
ch 3 years ago
parent ae4a4284c9
commit 9067de54da

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-26 14:32:03 * @Date: 2022-03-26 14:32:03
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-14 11:10:03 * @LastEditTime: 2022-06-14 12:52:10
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -32,8 +32,11 @@
<view> <view>
<view class="receive--name">{{item.fromNickname}}</view> <view class="receive--name">{{item.fromNickname}}</view>
<template v-if="item.type == MSG_TYPE.CUSTOM"> <template v-if="item.type == MSG_TYPE.CUSTOM">
<GoodsInfo class="receive--box" position="msg" v-if="item.payload.id" :goodsInfo="item.payload"/> <view class="receive--box receive--box__txt" v-if="item.payload.customType == 'transferWaiterSession'">{{item.payload.text}}</view>
<OrderInfo class="receive--box" position="msg" v-if="item.payload.orderId" :orderInfo="item.payload"/> <template v-else>
<GoodsInfo class="receive--box" position="msg" v-if="item.payload.id" :goodsInfo="item.payload"/>
<OrderInfo class="receive--box" position="msg" v-if="item.payload.orderId" :orderInfo="item.payload"/>
</template>
</template> </template>
<view class="receive--box receive--box__txt" v-if="item.type == MSG_TYPE.TXT">{{item.payload.text}}</view> <view class="receive--box receive--box__txt" v-if="item.type == MSG_TYPE.TXT">{{item.payload.text}}</view>

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-11 11:45:08 * @Date: 2022-05-11 11:45:08
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-05-24 22:54:29 * @LastEditTime: 2022-06-14 12:55:27
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -158,11 +158,11 @@ export default {
this.msgCtx += str; this.msgCtx += str;
}, },
sendGoods(){ sendGoods(){
this.send(this.simpleGoods, MSG_TYPE.CUSTOM); this.send({...this.simpleGoods, customType:'goodsInfo'}, MSG_TYPE.CUSTOM);
this.goodsShow = false; this.goodsShow = false;
}, },
sendOrder(){ sendOrder(){
this.send(this.simpleOrder, MSG_TYPE.CUSTOM); this.send({...this.simpleOrder, customType : 'orderInfo'}, MSG_TYPE.CUSTOM);
this.orderShow = false; this.orderShow = false;
}, },
uploadImg(val){ uploadImg(val){

Loading…
Cancel
Save