Merge branch 'master' of https://gitee.com/beijing_hongye_huicheng/lilishop-ui
commit
73c2654cc5
|
@ -15,16 +15,24 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 跳转im客服
|
// 跳转im客服
|
||||||
async IMService(id) {
|
async IMService(id, goodsId, skuId) {
|
||||||
|
|
||||||
// 获取访问Token
|
// 获取访问Token
|
||||||
let accessToken = Storage.getItem("accessToken");
|
let accessToken = Storage.getItem("accessToken");
|
||||||
await this.getIMDetailMethods();
|
await this.getIMDetailMethods();
|
||||||
const userInfo = await getMemberMsg();
|
const userInfo = await getMemberMsg();
|
||||||
if (userInfo.success) {
|
if (userInfo.success) {
|
||||||
|
//携带商品Id,在IM可以发送商品信息
|
||||||
|
if(goodsId && skuId){
|
||||||
|
window.open(
|
||||||
|
this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId + "&goodsId=" + goodsId + "&skuId=" + skuId
|
||||||
|
);
|
||||||
|
}else{
|
||||||
window.open(
|
window.open(
|
||||||
this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId
|
this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("请登录后再联系客服");
|
this.$Message.error("请登录后再联系客服");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#666'" />
|
<Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#666'" />
|
||||||
{{ storeCollected? "已收藏店铺": "收藏店铺" }}
|
{{ storeCollected? "已收藏店铺": "收藏店铺" }}
|
||||||
</span>
|
</span>
|
||||||
<span class="ml_10" @click="IMService(goodsMsg.data.storeId)">联系客服</span>
|
<span class="ml_10" @click="IMService(goodsMsg.data.storeId,goodsMsg.data.goodsId,goodsMsg.data.id)">联系客服</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
type="ios-heart"/>{{
|
type="ios-heart"/>{{
|
||||||
storeCollected ? '已收藏店铺' : '收藏店铺'
|
storeCollected ? '已收藏店铺' : '收藏店铺'
|
||||||
}}</span>
|
}}</span>
|
||||||
<span class="hover-pointer ml_10" style="width:80px" @click="IMService(storeMsg.storeId)"><Icon
|
<span class="hover-pointer ml_10" style="width:80px" @click="IMService(storeMsg.storeId,null,null)"><Icon
|
||||||
custom="icomoon icon-customer-service"/>联系客服</span>
|
custom="icomoon icon-customer-service"/>联系客服</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -60,7 +60,6 @@
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="promotion-decorate">{{ cateName }}</div>
|
<div class="promotion-decorate">{{ cateName }}</div>
|
||||||
<div class="goods-list">
|
<div class="goods-list">
|
||||||
|
|
||||||
<empty v-if="goodsList.length === 0"/>
|
<empty v-if="goodsList.length === 0"/>
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in goodsList"
|
v-for="(item, index) in goodsList"
|
||||||
|
@ -69,8 +68,9 @@
|
||||||
class="goods-show-info"
|
class="goods-show-info"
|
||||||
@click="goGoodsDetail(item.id, item.goodsId)"
|
@click="goGoodsDetail(item.id, item.goodsId)"
|
||||||
>
|
>
|
||||||
|
|
||||||
<div class="goods-show-img">
|
<div class="goods-show-img">
|
||||||
<img :src="item.thumbnail" height="220" width="220" alt=""/>
|
<img :src="item.small" height="220" width="220" alt=""/>
|
||||||
</div>
|
</div>
|
||||||
<div class="goods-show-price">
|
<div class="goods-show-price">
|
||||||
<span>
|
<span>
|
||||||
|
@ -254,7 +254,7 @@ export default {
|
||||||
goodsList(this.params)
|
goodsList(this.params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.goodsList = res.result;
|
this.goodsList = res.result.records;
|
||||||
this.total = res.result.total;
|
this.total = res.result.total;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -70,7 +70,8 @@
|
||||||
<Button @click="goPay(order.sn)" size="small" type="success" v-if="order.allowOperationVO.pay">去支付</Button>
|
<Button @click="goPay(order.sn)" size="small" type="success" v-if="order.allowOperationVO.pay">去支付</Button>
|
||||||
<Button @click="received(order.sn)" size="small" type="warning" v-if="order.allowOperationVO.rog">确认收货</Button>
|
<Button @click="received(order.sn)" size="small" type="warning" v-if="order.allowOperationVO.rog">确认收货</Button>
|
||||||
<!-- 售后 -->
|
<!-- 售后 -->
|
||||||
<Button v-if="order.groupAfterSaleStatus && order.groupAfterSaleStatus.includes('NOT_APPLIED')" @click="applyAfterSale(order.orderItems)" size="small">申请售后</Button>
|
<Button v-if="order.groupAfterSaleStatus && (order.groupAfterSaleStatus==='NOT_APPLIED'|| order.groupAfterSaleStatus==='PART_AFTER_SALE' )"
|
||||||
|
@click="applyAfterSale(order.orderItems)" size="small">申请售后</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -206,7 +207,7 @@ export default {
|
||||||
applyAfterSale (goodsItem) { // 申请售后
|
applyAfterSale (goodsItem) { // 申请售后
|
||||||
let arr = []
|
let arr = []
|
||||||
goodsItem.forEach(e => {
|
goodsItem.forEach(e => {
|
||||||
if (e.afterSaleStatus === 'NOT_APPLIED') {
|
if (e.afterSaleStatus === 'NOT_APPLIED'|| e.afterSaleStatus === 'PART_AFTER_SALE') {
|
||||||
arr.push(e)
|
arr.push(e)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -466,7 +466,6 @@ export default {
|
||||||
|
|
||||||
// 提交修改数据
|
// 提交修改数据
|
||||||
handleSubmitModal() {
|
handleSubmitModal() {
|
||||||
debugger
|
|
||||||
const { nickName, sex, username, face, newPassword,id } = this.form;
|
const { nickName, sex, username, face, newPassword,id } = this.form;
|
||||||
let time = new Date(this.form.birthday);
|
let time = new Date(this.form.birthday);
|
||||||
let birthday = this.form.birthday=== undefined?'':
|
let birthday = this.form.birthday=== undefined?'':
|
||||||
|
@ -491,7 +490,7 @@ export default {
|
||||||
API_Member.updateMember(submit).then((res) => {
|
API_Member.updateMember(submit).then((res) => {
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
this.$Message.success("修改成功!");
|
this.$Message.success("修改成功!");
|
||||||
this.init();
|
this.getData();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue