|
@@ -333,19 +333,21 @@
|
|
|
const that = this;
|
|
|
let form = {
|
|
|
"customer": e.customer && e.customer._id,
|
|
|
- "shop": e.shop && e.shop._id || e.goods && e.goods[0].shop
|
|
|
+ "shop": e.shop && e.shop._id || e.goods && e.goods[0].shop,
|
|
|
+ "order": e && e._id,
|
|
|
+ "status": e && e.status,
|
|
|
}
|
|
|
// 查询该用户与该店铺是否有房间
|
|
|
let arr = await that.$api(`/room`, `GET`, form, 'chat');
|
|
|
if (arr.errcode == '0' && arr.total > 0) { //有直接进入
|
|
|
if (arr.data) {
|
|
|
uni.navigateTo({
|
|
|
- url: `/pagesMessage/message/info?id=${arr.data[0]._id}`
|
|
|
+ url: `/pagesMessage/message/info?id=${arr.data[0]._id}&order=${form.order}&status=${form.status}`
|
|
|
})
|
|
|
}
|
|
|
} else { //没有创建进入
|
|
|
uni.navigateTo({
|
|
|
- url: `/pagesMessage/message/info?shop=${form.shop}`
|
|
|
+ url: `/pagesMessage/message/info?shop=${form.shop}&order=${form.order}&status=${form.status}`
|
|
|
})
|
|
|
}
|
|
|
},
|