Merge branch 'feature/task1.0.0-0507-zz' into msb_test

merge-requests/89/merge
张征 3 years ago
commit ae326e6f6b

@ -78,12 +78,13 @@
</div>
<div class="address__msg-line flex flex-middle">
<span class="address__msg-line--type">收货人</span>
<el-input v-model="addressUser" class="min-ipt"></el-input>
<el-input v-model="addressUser" class="min-ipt" maxlength="8"></el-input>
<span class="address__msg-line--type">手机号码</span>
<el-input
v-model="addressPhone"
oninput="value=value.replace(/[^\d]/g,'')"
class="min-ipt"
maxlength="18"
></el-input>
</div>
</article>

@ -40,17 +40,19 @@ Vue.prototype.$startWebSockets = function () {
if (msg.traceType == 1) {
let traceId = guid();
let sys = msg.content.sessionVOS.find((item) => item.type != 3);
if (sys) {
let str = `{"traceId":"${traceId}",traceType:2,"content":{"sessionId":${sys.id}}}`;
Vue.prototype.Socket.send(str);
this.$store.commit("setUnreadCount", msg.content.totalUnreadCount);
}
}
// 获取消息列表
if (msg.traceType == 2) {
this.$store.commit("setSocketMsgData", msg.content);
setTimeout(() => {
console.log(this.$store.state)
},500)
console.log(this.$store.state);
}, 500);
}
// 接收消息

Loading…
Cancel
Save