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