mahe 2023-06-09 17:42:16 +08:00
commit 73c2654cc5
5 changed files with 21 additions and 13 deletions

View File

@ -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) {
window.open( //Id,IM
this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId if(goodsId && skuId){
); window.open(
this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId + "&goodsId=" + goodsId + "&skuId=" + skuId
);
}else{
window.open(
this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId
);
}
} else { } else {
this.$Message.error("请登录后再联系客服"); this.$Message.error("请登录后再联系客服");
return; return;

View File

@ -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>

View File

@ -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;
} }
}) })

View File

@ -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)
} }
}); });

View File

@ -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();
} }
}); });
}, },