宽度,表情

master
2023-01-12 14:34:38 +08:00
parent 8ea3843d61
commit 7e33598b8e
6 changed files with 147 additions and 144 deletions

View File

@ -81,19 +81,8 @@ export default {
this.$Message.error("请登录后再联系客服");
return;
}
// window.open(
// this.IMLink +
// "?token=" +
// accessToken +
// "&id=" +
// this.goodsMsg.data.storeId +
// "&goodsId=" +
// this.goodsMsg.data.goodsId +
// "&skuId=" +
// this.goodsMsg.data.id
// );
window.open(
'http://192.168.0.139:8000/' +
this.IMLink +
"?token=" +
accessToken +
"&id=" +
@ -103,6 +92,17 @@ export default {
"&skuId=" +
this.goodsMsg.data.id
);
// window.open(
// 'http://192.168.0.139:8000/' +
// "?token=" +
// accessToken +
// "&id=" +
// this.goodsMsg.data.storeId +
// "&goodsId=" +
// this.goodsMsg.data.goodsId +
// "&skuId=" +
// this.goodsMsg.data.id
// );
},
// im
async getIMDetailMethods () {

View File

@ -500,6 +500,9 @@ export default {
if (item.messageType == 'GOODS') {
item.text = JSON.parse(item.text)
}
if (item.messageType == 'MESSAGE') {
item.text = textReplaceEmoji(item.text)
}
if (item.messageType == 'ORDER') {
item.text = JSON.parse(item.text)
}

View File

@ -51,11 +51,11 @@
</div>
<div class="order_footer">
<span> 订单金额 <span style="color: red;">{{ item.orderItems[0].goodsPrice }}</span></span>
<span class="order_status"
:style="{ 'color': item.orderStatus == 'CANCELLED' || item.orderStatus == 'UNPAID' || item.orderStatus == ' TAKE' ? '#5a606b' : '#f23030' }">{{
<span class="order_status" v-if="item.orderStatus"
:style="{ 'color': item.orderStatus == 'CANCELLED' || item.orderStatus == 'UNPAID' || item.orderStatus == 'TAKE' ? '#5a606b' : '#f23030' }">{{
item.orderStatus == 'CANCELLED' ? '已取消' : item.orderStatus == 'UNPAID' ? '未付款' : item.orderStatus ==
'PAID' ? '已付款' : item.orderStatus == 'UNDELIVERED' ? '待发货' : item.orderStatus == 'DELIVERED'
? '已发货' : item.orderStatus == ' COMPLETED' ? '已完成' : item.orderStatus == ' TAKE' ? '待校验' : ''
? '已发货' : item.orderStatus == 'COMPLETED' ? '已完成' : item.orderStatus == 'TAKE' ? '待校验' : ''
}}</span>
</div>
@ -168,7 +168,7 @@ export default {
},
mounted () {
// state.user.toUser
console.log(this.$store.state.user.toUser, ' this.$store.state.user.toUser this.$store.state.user.toUser this.$store.state.user.toUser');
console.log(this.orderList, ' this.$store.state.user.toUser this.$store.state.user.toUser this.$store.state.user.toUser');
this.btnHide = localStorage.getItem('btnHide')
}
}

View File

@ -134,8 +134,8 @@ const regEmoji = emojisKeys.map((value) => '|\\' + value).join('').replace('|',
*
* @param {String} content 需要替换的字符串
*/
export function textReplaceEmoji(content) {
if(!content){
export function textReplaceEmoji (content) {
if (!content) {
return ""
}
return content.replace(new RegExp(`(${regEmoji})`, 'gi'), ($0, $1) => {

View File

@ -72,17 +72,17 @@ export default {
}),
},
watch: {
unreadNum(n, o) {
unreadNum (n, o) {
if (n > 0 && n > o && this.notifyCueTone) {
this.play();
}
},
},
created() {
created () {
this.setApplyNum();
},
methods: {
play() {
play () {
document
.querySelector("#audio")
.play()
@ -90,10 +90,10 @@ export default {
console.error("消息提示音播放异常");
});
},
logout() {
logout () {
this.$store.dispatch("ACT_USER_LOGOUT");
},
setApplyNum() {
setApplyNum () {
// TODO return
return;
ServeFindFriendApplyNum().then((res) => {
@ -108,7 +108,7 @@ export default {
<style lang="less" >
.main-layout {
position: fixed;
width: 75%;
width: 80%;
height: 80%;
top: 0;
right: 0;
@ -120,7 +120,7 @@ export default {
border-radius: 5px;
&.full-mode {
width: 70%;
width: 1200px;
height: 85%;
border-radius: 0;
}

View File

@ -260,8 +260,8 @@ export default {
}
// console.log(res.result, 'res.result');
// http://192.168.0.139:8000/
window.open(`http://192.168.0.139:8000/?token=` + accessToken);
// window.open(`${res.result}?token=` + accessToken);
// window.open(`http://192.168.0.139:8000/?token=` + accessToken);
window.open(`${res.result}?token=` + accessToken);
},
// im