|
@@ -6,7 +6,8 @@
|
|
|
<view class="status-title">请等待平台处理</view>
|
|
<view class="status-title">请等待平台处理</view>
|
|
|
<!-- 倒计时 -->
|
|
<!-- 倒计时 -->
|
|
|
<view class="status-desc" v-if="orderInfo.restAuditSecond > 0">
|
|
<view class="status-desc" v-if="orderInfo.restAuditSecond > 0">
|
|
|
- {{ formatCountDown(orderInfo.restAuditSecond) }}后平台未处理将自动同意
|
|
|
|
|
|
|
+ <u-count-down :timestamp="orderInfo.restAuditSecond" separator="zh" :show-seconds="false"
|
|
|
|
|
+ @end="getDetail" font-size="26" color="#999" bg-color="transparent"></u-count-down>后平台未处理将自动同意
|
|
|
</view>
|
|
</view>
|
|
|
<view class="status-tip">您已成功发起退款申请,请耐心等待平台处理</view>
|
|
<view class="status-tip">您已成功发起退款申请,请耐心等待平台处理</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -28,7 +29,8 @@
|
|
|
<image :src="goods.cover" mode="aspectFill" class="goods-cover"></image>
|
|
<image :src="goods.cover" mode="aspectFill" class="goods-cover"></image>
|
|
|
<view class="goods-info">
|
|
<view class="goods-info">
|
|
|
<view class="goods-title u-line-2">{{ goods.bookName }}</view>
|
|
<view class="goods-title u-line-2">{{ goods.bookName }}</view>
|
|
|
- <view class="goods-sku" v-if="goods.isbn">品相:{{ goods.conditionName || '默认' }}</view>
|
|
|
|
|
|
|
+ <view class="goods-sku" v-if="goods.isbn">品相:{{ conditionTypeMap[goods.conditionType] || '默认' }}
|
|
|
|
|
+ </view>
|
|
|
<view class="price-box">
|
|
<view class="price-box">
|
|
|
<text class="price">¥{{ goods.price }}</text>
|
|
<text class="price">¥{{ goods.price }}</text>
|
|
|
<text class="num">x{{ goods.refundNum }}</text>
|
|
<text class="num">x{{ goods.refundNum }}</text>
|
|
@@ -50,12 +52,13 @@
|
|
|
<view class="value flex-row link-text">
|
|
<view class="value flex-row link-text">
|
|
|
<text>查看</text>
|
|
<text>查看</text>
|
|
|
<!-- <u-icon name="arrow-right" color="#38C148" size="24"></u-icon> -->
|
|
<!-- <u-icon name="arrow-right" color="#38C148" size="24"></u-icon> -->
|
|
|
- <image src="/static/images/arrow-right-green.png" style="width: 24rpx; height: 24rpx;" v-if="false"></image>
|
|
|
|
|
|
|
+ <image src="/static/images/arrow-right-green.png" style="width: 24rpx; height: 24rpx;" v-if="false">
|
|
|
|
|
+ </image>
|
|
|
<!-- 使用文字或默认图标 -->
|
|
<!-- 使用文字或默认图标 -->
|
|
|
<u-icon name="lightning-fill" color="#38C148" size="28" style="margin-left: 6rpx;"></u-icon>
|
|
<u-icon name="lightning-fill" color="#38C148" size="28" style="margin-left: 6rpx;"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<view class="row">
|
|
<view class="row">
|
|
|
<text class="label">退款原因</text>
|
|
<text class="label">退款原因</text>
|
|
|
<text class="value">{{ orderInfo.refundReason }}</text>
|
|
<text class="value">{{ orderInfo.refundReason }}</text>
|
|
@@ -71,8 +74,9 @@
|
|
|
<view class="row">
|
|
<view class="row">
|
|
|
<text class="label">退款编号</text>
|
|
<text class="label">退款编号</text>
|
|
|
<view class="value flex-row">
|
|
<view class="value flex-row">
|
|
|
- <text>{{ orderInfo.refundOrderId }}</text>
|
|
|
|
|
- <u-icon name="copy" size="28" color="#333" style="margin-left: 10rpx;" @click="copyOrderNo"></u-icon>
|
|
|
|
|
|
|
+ <text>{{ refundOrderId }}</text>
|
|
|
|
|
+ <image src="/pages-mine/static/copy.png" style="width: 28rpx; height: 28rpx; margin-left: 10rpx;"
|
|
|
|
|
+ @click="copyOrderNo"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -84,20 +88,20 @@
|
|
|
<u-icon name="server-man" size="60" color="#666"></u-icon>
|
|
<u-icon name="server-man" size="60" color="#666"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="btn-group">
|
|
<view class="btn-group">
|
|
|
- <u-button v-if="orderInfo.showComplaint == 1" size="mini" shape="circle" plain :custom-style="btnStyle"
|
|
|
|
|
|
|
+ <u-button v-if="orderInfo.showComplaint == 1" shape="circle" plain :custom-style="btnStyle"
|
|
|
@click="handleAction('complaint')">投诉</u-button>
|
|
@click="handleAction('complaint')">投诉</u-button>
|
|
|
-
|
|
|
|
|
- <u-button v-if="orderInfo.showCancel == 1" size="mini" shape="circle" plain :custom-style="btnStyle"
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <u-button v-if="orderInfo.showCancel == 1" shape="circle" plain :custom-style="btnStyle"
|
|
|
@click="handleAction('cancel')">撤销申请</u-button>
|
|
@click="handleAction('cancel')">撤销申请</u-button>
|
|
|
-
|
|
|
|
|
- <u-button v-if="orderInfo.showModifyApply == 1" size="mini" shape="circle" type="success" :custom-style="primaryBtnStyle"
|
|
|
|
|
- @click="handleAction('modify')">修改申请</u-button>
|
|
|
|
|
-
|
|
|
|
|
- <u-button v-if="orderInfo.showClose == 1" size="mini" shape="circle" plain :custom-style="btnStyle"
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <u-button v-if="orderInfo.showModifyApply == 1" shape="circle" type="success"
|
|
|
|
|
+ :custom-style="primaryBtnStyle" @click="handleAction('modify')">修改申请</u-button>
|
|
|
|
|
+
|
|
|
|
|
+ <u-button v-if="orderInfo.showClose == 1" shape="circle" plain :custom-style="btnStyle"
|
|
|
@click="handleAction('close')">关闭退款</u-button>
|
|
@click="handleAction('close')">关闭退款</u-button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 占位符 -->
|
|
<!-- 占位符 -->
|
|
|
<view style="height: 120rpx;" v-if="showBottomBar"></view>
|
|
<view style="height: 120rpx;" v-if="showBottomBar"></view>
|
|
|
</view>
|
|
</view>
|
|
@@ -107,6 +111,12 @@
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ conditionTypeMap: {
|
|
|
|
|
+ '1': '良好',
|
|
|
|
|
+ '2': '中等',
|
|
|
|
|
+ '3': '次品',
|
|
|
|
|
+ '4': '全新'
|
|
|
|
|
+ },
|
|
|
refundOrderId: '',
|
|
refundOrderId: '',
|
|
|
orderInfo: {
|
|
orderInfo: {
|
|
|
status: '',
|
|
status: '',
|
|
@@ -121,7 +131,6 @@
|
|
|
showComplaint: 0,
|
|
showComplaint: 0,
|
|
|
showClose: 0
|
|
showClose: 0
|
|
|
},
|
|
},
|
|
|
- timer: null,
|
|
|
|
|
btnStyle: {
|
|
btnStyle: {
|
|
|
marginLeft: '20rpx',
|
|
marginLeft: '20rpx',
|
|
|
minWidth: '160rpx',
|
|
minWidth: '160rpx',
|
|
@@ -129,7 +138,8 @@
|
|
|
lineHeight: '64rpx',
|
|
lineHeight: '64rpx',
|
|
|
padding: '0 20rpx',
|
|
padding: '0 20rpx',
|
|
|
color: '#666',
|
|
color: '#666',
|
|
|
- borderColor: '#ccc'
|
|
|
|
|
|
|
+ borderColor: '#ccc',
|
|
|
|
|
+ fontSize: '28rpx',
|
|
|
},
|
|
},
|
|
|
primaryBtnStyle: {
|
|
primaryBtnStyle: {
|
|
|
marginLeft: '20rpx',
|
|
marginLeft: '20rpx',
|
|
@@ -161,9 +171,6 @@
|
|
|
this.getDetail();
|
|
this.getDetail();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- onUnload() {
|
|
|
|
|
- if (this.timer) clearInterval(this.timer);
|
|
|
|
|
- },
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
getDetail() {
|
|
getDetail() {
|
|
|
this.$u.api.getNewRefundOrderDetailAjax({
|
|
this.$u.api.getNewRefundOrderDetailAjax({
|
|
@@ -171,9 +178,6 @@
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.orderInfo = res.data;
|
|
this.orderInfo = res.data;
|
|
|
- if (this.orderInfo.restAuditSecond > 0) {
|
|
|
|
|
- this.startTimer();
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -189,31 +193,6 @@
|
|
|
};
|
|
};
|
|
|
return map[status] || '处理中';
|
|
return map[status] || '处理中';
|
|
|
},
|
|
},
|
|
|
- formatCountDown(seconds) {
|
|
|
|
|
- if (seconds <= 0) return '0分';
|
|
|
|
|
- const d = Math.floor(seconds / 86400);
|
|
|
|
|
- const h = Math.floor((seconds % 86400) / 3600);
|
|
|
|
|
- const m = Math.floor((seconds % 3600) / 60);
|
|
|
|
|
-
|
|
|
|
|
- let str = '';
|
|
|
|
|
- if (d > 0) str += `${d}天`;
|
|
|
|
|
- if (h > 0) str += `${h}时`;
|
|
|
|
|
- if (m > 0) str += `${m}分`;
|
|
|
|
|
- if (!str) str = '即将';
|
|
|
|
|
- return str;
|
|
|
|
|
- },
|
|
|
|
|
- startTimer() {
|
|
|
|
|
- if (this.timer) clearInterval(this.timer);
|
|
|
|
|
- this.timer = setInterval(() => {
|
|
|
|
|
- if (this.orderInfo.restAuditSecond > 0) {
|
|
|
|
|
- this.orderInfo.restAuditSecond--;
|
|
|
|
|
- } else {
|
|
|
|
|
- clearInterval(this.timer);
|
|
|
|
|
- // 倒计时结束,刷新页面
|
|
|
|
|
- this.getDetail();
|
|
|
|
|
- }
|
|
|
|
|
- }, 1000);
|
|
|
|
|
- },
|
|
|
|
|
copyOrderNo() {
|
|
copyOrderNo() {
|
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
|
data: String(this.orderInfo.refundOrderId || ''),
|
|
data: String(this.orderInfo.refundOrderId || ''),
|
|
@@ -253,9 +232,8 @@
|
|
|
uni.showToast({ title: '修改申请', icon: 'none' });
|
|
uni.showToast({ title: '修改申请', icon: 'none' });
|
|
|
break;
|
|
break;
|
|
|
case 'complaint':
|
|
case 'complaint':
|
|
|
- // 投诉
|
|
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: `/pages-car/pages/complaint?orderId=${this.orderInfo.orderId}`
|
|
|
|
|
|
|
+ url: `/pages-car/pages/complaint?orderId=${this.orderInfo.originOrderId}`
|
|
|
});
|
|
});
|
|
|
break;
|
|
break;
|
|
|
case 'close':
|
|
case 'close':
|
|
@@ -273,46 +251,46 @@
|
|
|
min-height: 100vh;
|
|
min-height: 100vh;
|
|
|
background-color: #F5F5F5;
|
|
background-color: #F5F5F5;
|
|
|
padding-bottom: 20rpx;
|
|
padding-bottom: 20rpx;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.status-header {
|
|
.status-header {
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
padding: 40rpx 30rpx;
|
|
padding: 40rpx 30rpx;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.status-title {
|
|
.status-title {
|
|
|
font-size: 36rpx;
|
|
font-size: 36rpx;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.status-desc {
|
|
.status-desc {
|
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
|
color: #999;
|
|
color: #999;
|
|
|
margin-bottom: 10rpx;
|
|
margin-bottom: 10rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.status-tip {
|
|
.status-tip {
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
color: #999;
|
|
color: #999;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.refund-amount-box {
|
|
.refund-amount-box {
|
|
|
margin-top: 30rpx;
|
|
margin-top: 30rpx;
|
|
|
border-top: 1rpx solid #eee;
|
|
border-top: 1rpx solid #eee;
|
|
|
padding-top: 30rpx;
|
|
padding-top: 30rpx;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.amount-row {
|
|
.amount-row {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.label {
|
|
.label {
|
|
|
color: #333;
|
|
color: #333;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.value {
|
|
.value {
|
|
|
color: #333;
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -320,22 +298,22 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.info-card {
|
|
.info-card {
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
margin: 20rpx;
|
|
margin: 20rpx;
|
|
|
border-radius: 16rpx;
|
|
border-radius: 16rpx;
|
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&.goods-card {
|
|
&.goods-card {
|
|
|
.goods-item {
|
|
.goods-item {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&:last-child {
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
|
margin-bottom: 0;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.goods-cover {
|
|
.goods-cover {
|
|
|
width: 140rpx;
|
|
width: 140rpx;
|
|
|
height: 140rpx;
|
|
height: 140rpx;
|
|
@@ -343,39 +321,39 @@
|
|
|
margin-right: 20rpx;
|
|
margin-right: 20rpx;
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.goods-info {
|
|
.goods-info {
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.goods-title {
|
|
.goods-title {
|
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
margin-bottom: 10rpx;
|
|
margin-bottom: 10rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.goods-sku {
|
|
.goods-sku {
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
color: #999;
|
|
color: #999;
|
|
|
margin-bottom: 10rpx;
|
|
margin-bottom: 10rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.price-box {
|
|
.price-box {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.price {
|
|
.price {
|
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.num {
|
|
.num {
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
color: #999;
|
|
color: #999;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.refund-status-tag {
|
|
.refund-status-tag {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
right: 0;
|
|
right: 0;
|
|
@@ -383,7 +361,7 @@
|
|
|
transform: translateY(-50%);
|
|
transform: translateY(-50%);
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
color: #999;
|
|
color: #999;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&.red-tag {
|
|
&.red-tag {
|
|
|
color: #ff3b30;
|
|
color: #ff3b30;
|
|
|
border: 1rpx solid #ff3b30;
|
|
border: 1rpx solid #ff3b30;
|
|
@@ -395,30 +373,30 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&.detail-card {
|
|
&.detail-card {
|
|
|
.row {
|
|
.row {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&:last-child {
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
|
margin-bottom: 0;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.label {
|
|
.label {
|
|
|
color: #999;
|
|
color: #999;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.value {
|
|
.value {
|
|
|
color: #333;
|
|
color: #333;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&.flex-row {
|
|
&.flex-row {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&.link-text {
|
|
&.link-text {
|
|
|
color: #38C148; // 使用主题色
|
|
color: #38C148; // 使用主题色
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -428,7 +406,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.bottom-bar {
|
|
.bottom-bar {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
bottom: 0;
|
|
bottom: 0;
|
|
@@ -440,13 +418,13 @@
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- box-shadow: 0 -2rpx 10rpx rgba(0,0,0,0.05);
|
|
|
|
|
|
|
+ box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
|
z-index: 100;
|
|
z-index: 100;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.service-btn {
|
|
.service-btn {
|
|
|
padding: 10rpx;
|
|
padding: 10rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.btn-group {
|
|
.btn-group {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|