优化部分商品评价无id,以及投诉详情页面展示错误问题
parent
0ea121e59e
commit
a6fec5cf70
|
@ -4,12 +4,12 @@
|
|||
*/
|
||||
// 开发环境
|
||||
const dev = {
|
||||
// common: "https://common-api.pickmall.cn",
|
||||
// buyer: "https://buyer-api.pickmall.cn",
|
||||
common: 'http://192.168.0.101:8890',
|
||||
buyer: 'http://192.168.0.101:8888',
|
||||
seller: 'http://192.168.0.101:8889',
|
||||
manager: 'http://192.168.0.101:8887'
|
||||
common: "https://common-api.pickmall.cn",
|
||||
buyer: "https://buyer-api.pickmall.cn",
|
||||
// common: 'http://192.168.0.101:8890',
|
||||
// buyer: 'http://192.168.0.101:8888',
|
||||
// seller: 'http://192.168.0.101:8889',
|
||||
// manager: 'http://192.168.0.101:8887'
|
||||
|
||||
};
|
||||
// 生产环境
|
||||
|
|
|
@ -129,8 +129,8 @@ export default {
|
|||
params: {
|
||||
pageNumber: 1,
|
||||
pageSize: 10,
|
||||
sort: 'createTime',
|
||||
order: 'desc'
|
||||
sort: "createTime",
|
||||
order: "desc",
|
||||
},
|
||||
|
||||
logParams: {
|
||||
|
@ -171,6 +171,8 @@ export default {
|
|||
this.logParams = {
|
||||
pageNumber: 1,
|
||||
pageSize: 10,
|
||||
sort: "createTime",
|
||||
order: "desc",
|
||||
};
|
||||
if (index === 1) {
|
||||
this.logParams.serviceStatus = "APPLY";
|
||||
|
|
|
@ -462,7 +462,7 @@ page,
|
|||
align-items: center;
|
||||
}
|
||||
.images-view {
|
||||
padding: 20rpx;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
@ -484,7 +484,12 @@ page,
|
|||
background-color: #ffffff;
|
||||
height: 100rpx;
|
||||
width: 750rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0rpx 20rpx;
|
||||
width: 100%;
|
||||
/deep/ .u-btn{
|
||||
width: 94% !important;
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
</view>
|
||||
<view class="detail-item">
|
||||
<view class="title">申请原因:</view>
|
||||
<view class="value">{{ serviceDetail.reason }}</view>
|
||||
<view class="value">{{ reason }}</view>
|
||||
</view>
|
||||
<!-- <view class="detail-item" v-if="serviceDetail.apply_vouchers">
|
||||
<view class="title">申请凭证:</view>
|
||||
|
@ -195,6 +195,7 @@ import {
|
|||
getServiceDetail,
|
||||
getstoreAfterSaleAddress,
|
||||
getAfterSaleLog,
|
||||
getAfterSaleReason,
|
||||
} from "@/api/after-sale.js";
|
||||
import UniIcons from "@/components/uni-icons/uni-icons.vue";
|
||||
|
||||
|
@ -204,6 +205,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
reason: "", //申请原因
|
||||
serviceTypeList: {
|
||||
// 售后类型
|
||||
CANCEL: "取消",
|
||||
|
@ -330,6 +332,20 @@ export default {
|
|||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取申请原因
|
||||
*/
|
||||
getReasonList(serviceType) {
|
||||
getAfterSaleReason(serviceType).then((res) => {
|
||||
if (res.data.success) {
|
||||
// 1357583466371219456
|
||||
this.reason = res.data.result.filter((item) => {
|
||||
return item.id == this.serviceDetail.reason;
|
||||
})[0].reason;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 初始化详情
|
||||
*/
|
||||
|
@ -340,7 +356,10 @@ export default {
|
|||
getServiceDetail(this.sn).then((res) => {
|
||||
uni.hideLoading();
|
||||
this.serviceDetail = res.data.result;
|
||||
if (this.serviceDetail.serviceType == "RETURN_GOODS") {
|
||||
if (
|
||||
this.serviceDetail.serviceType == "RETURN_GOODS" ||
|
||||
this.serviceDetail.serviceType === "RETURN_MONEY"
|
||||
) {
|
||||
this.refundShow = true;
|
||||
}
|
||||
|
||||
|
@ -349,10 +368,13 @@ export default {
|
|||
this.serviceDetail.serviceType === "ORDER_CANCEL") &&
|
||||
this.serviceDetail.refundWay === "OFFLINE";
|
||||
this.bankShow =
|
||||
(this.serviceDetail.serviceType === "RETURN_GOODS" ||
|
||||
this.serviceDetail.serviceType === "RETURN_MONEY" ||
|
||||
((this.serviceDetail.serviceType === "RETURN_GOODS" ||
|
||||
this.serviceDetail.serviceType === "ORDER_CANCEL") &&
|
||||
this.serviceDetail.refundWay === "OFFLINE" &&
|
||||
this.serviceDetail.accountType === "BANK_TRANSFER";
|
||||
this.serviceDetail.accountType === "BANK_TRANSFER");
|
||||
|
||||
this.getReasonList(this.serviceDetail.serviceType);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -475,7 +475,7 @@ export default {
|
|||
this.init(
|
||||
this.routerVal.id,
|
||||
this.routerVal.goodsId,
|
||||
this.routerVal.distributionId,
|
||||
this.routerVal.distributionId
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -533,7 +533,7 @@ export default {
|
|||
this.goodsDetail = response.data.result.data;
|
||||
this.goodsSpec = response.data.result.specs;
|
||||
this.PromotionList = response.data.result.promotionMap;
|
||||
this.goodsParams = response.data.result.goodsParamsDTOList || []
|
||||
this.goodsParams = response.data.result.goodsParamsDTOList || [];
|
||||
|
||||
// 判断是否拼团活动或者积分商品 如果有则显示拼团活动信息
|
||||
this.PromotionList &&
|
||||
|
|
|
@ -71,14 +71,14 @@ export default {
|
|||
goodsDetail: {
|
||||
handler(val) {
|
||||
this.grade = val.grade;
|
||||
this.getGoodsComments();
|
||||
this.getGoodsCommentsMethods();
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// this.getGoodsComments();
|
||||
|
||||
},
|
||||
methods: {
|
||||
parseLoaded() {
|
||||
|
@ -86,7 +86,7 @@ export default {
|
|||
},
|
||||
|
||||
// 获取商品评论
|
||||
getGoodsComments() {
|
||||
getGoodsCommentsMethods() {
|
||||
API_Members.getGoodsComments(this.goodsDetail.goodsId, this.params).then(
|
||||
(res) => {
|
||||
this.commDetail = res.data.result;
|
||||
|
|
Loading…
Reference in New Issue