You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
291 lines
6.1 KiB
291 lines
6.1 KiB
<template>
|
|
<view class="refund">
|
|
<view class="refund-navbar">
|
|
<u-navbar title="退货退款详情" :border-bottom="false" back-icon-color='#000000' title-color="#000000"
|
|
:background="background"></u-navbar>
|
|
</view>
|
|
<view>
|
|
<view class="refund-hd">
|
|
<view class="l">
|
|
<view class="a">商家已同意退货/退款申请</view>
|
|
<view class="b">
|
|
剩余:<u-count-down :timestamp="timestamp" format="DD天HH时mm分ss秒"></u-count-down>
|
|
</view>
|
|
</view>
|
|
<view class="r">
|
|
<image :src="$picUrl+'/static/news/refund-01.png'"></image>
|
|
</view>
|
|
</view>
|
|
<view class="refund-bd">
|
|
<view class="a">卖家已同意退货申请,请尽早发货</view>
|
|
<view class="b">
|
|
<view class="l">退货说明:</view>
|
|
<view class="r"><text>●</text>未与商家协商一致请勿平邮或到付。</view>
|
|
<view class="r"><text>●</text>我是退货说明。</view>
|
|
</view>
|
|
<view class="c" @click="getRevoke()">
|
|
<view class="btn">撤销申请</view>
|
|
</view>
|
|
</view>
|
|
<view class="refund-fd">
|
|
<view class="l">
|
|
<view class="a">退款原因</view>
|
|
<view class="b">{{refundDetails.refuse_desc}}</view>
|
|
</view>
|
|
<view class="l">
|
|
<view class="a">退款金额</view>
|
|
<view class="b">¥{{refundDetails.refund_money}}</view>
|
|
</view>
|
|
<view class="l">
|
|
<view class="a">退款时间</view>
|
|
<view class="b">{{refundDetails.create_time}}</view>
|
|
</view>
|
|
<view class="l">
|
|
<view class="a">退款编号</view>
|
|
<view class="b">{{refundDetails.create_time}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="unshipped" style="display: none;">
|
|
<view class="fright-hd">
|
|
<image class="img" src="/static/daichu.png" mode="aspectFit"></image>
|
|
<view class="title">退款中</view>
|
|
</view>
|
|
<view class="boer">
|
|
</view>
|
|
<view class="wuliu">
|
|
<view class="wuliu-name">
|
|
退货物流<text>顺丰快递 SF234568990</text>
|
|
</view>
|
|
<u-icon name="arrow-right" color="#B7B7B7" size="30"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
// import img from "@/static/news/refund-bg.png"
|
|
import * as refundApi from '@/api/refund'
|
|
export default {
|
|
data() {
|
|
return {
|
|
timestamp: 72 * 3600 * 1000,
|
|
background: {
|
|
background: `url(${this.$picUrl}/static/news/refund-bg.png) center -44px no-repeat`,
|
|
// background: 'url(' + img + ') center -44px no-repeat',
|
|
backgroundSize: '100%',
|
|
},
|
|
refundDetails: ''
|
|
}
|
|
},
|
|
onLoad(op) {
|
|
this.getRefundDetails(op.orderRefundId)
|
|
},
|
|
methods: {
|
|
// 撤销
|
|
getRevoke() {
|
|
let app = this
|
|
uni.showToast({
|
|
title: '请联系客服人员',
|
|
icon: 'none'
|
|
})
|
|
return
|
|
refundApi.detail(orderRefundId)
|
|
.then(result => {
|
|
if (result.status == 200) {
|
|
uni.reLaunch({
|
|
url: "/pages/refund/index"
|
|
})
|
|
}
|
|
})
|
|
},
|
|
getRefundDetails(orderRefundId) {
|
|
let app = this
|
|
refundApi.detail(orderRefundId)
|
|
.then(result => {
|
|
app.refundDetails = result.data.detail;
|
|
console.log(result.data.detail)
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.unshipped {
|
|
overflow: hidden;
|
|
background: linear-gradient(180deg, #FFE0E0 0%, #FFFFFF 70%);
|
|
|
|
.boer {
|
|
height: 12rpx;
|
|
width: 100%;
|
|
background: #F7F8FA;
|
|
}
|
|
|
|
.wuliu {
|
|
height: 118rpx;
|
|
background: #FFFFFF;
|
|
margin-top: 12rpx;
|
|
margin: 0 45rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
.wuliu-name {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
color: #292929;
|
|
text-align: left;
|
|
font-style: normal;
|
|
text-transform: none;
|
|
|
|
text {
|
|
color: #484848;
|
|
margin-left: 50rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.fright-hd {
|
|
padding: 50rpx 0 70rpx 0;
|
|
box-sizing: border-box;
|
|
margin-top: 12rpx;
|
|
border-radius: 0px 0px 0px 0px;
|
|
height: 310rpx;
|
|
|
|
.img {
|
|
display: block;
|
|
width: 131rpx;
|
|
height: 131rpx;
|
|
margin: auto;
|
|
}
|
|
|
|
.title {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 500;
|
|
font-size: 36rpx;
|
|
color: #262626;
|
|
text-align: left;
|
|
font-style: normal;
|
|
text-transform: none;
|
|
text-align: center;
|
|
margin-top: 15rpx;
|
|
}
|
|
}
|
|
}
|
|
.refund {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
|
|
&-hd {
|
|
height: 206rpx;
|
|
background: linear-gradient(180deg, #FCE2E7 0%, #FFFFFF 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 60rpx;
|
|
box-sizing: border-box;
|
|
|
|
.l {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
|
|
.a {
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
color: #262626;
|
|
}
|
|
|
|
.b {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 30rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
color: #F55349;
|
|
}
|
|
}
|
|
|
|
.r {
|
|
margin-left: 100rpx;
|
|
overflow: hidden;
|
|
|
|
image {
|
|
width: 114rpx;
|
|
height: 129rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-bd {
|
|
background-color: #FFFFFF;
|
|
padding: 35rpx 60rpx;
|
|
margin-top: 20rpx;
|
|
|
|
.a {
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
color: #262626;
|
|
}
|
|
|
|
.b {
|
|
margin-top: 20rpx;
|
|
font-size: 28rpx;
|
|
|
|
.l {
|
|
font-weight: 400;
|
|
line-height: 60rpx;
|
|
color: #959595;
|
|
}
|
|
|
|
.r {
|
|
text {
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
color: #959595;
|
|
line-height: 60rpx;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
.c {
|
|
padding: 20rpx 0 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
.btn {
|
|
width: 250rpx;
|
|
text-align: center;
|
|
line-height: 70rpx;
|
|
border: 1px solid #ddd;
|
|
border-radius: 12rpx;
|
|
font-size: 30rpx;
|
|
color: #555;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-fd {
|
|
background-color: #FFFFFF;
|
|
padding: 10rpx 60rpx;
|
|
overflow: hidden;
|
|
margin-top: 20rpx;
|
|
|
|
.l {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20rpx 0;
|
|
font-size: 28rpx;
|
|
color: #959595;
|
|
|
|
.b {
|
|
margin-left: 30rpx;
|
|
color: #484848;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|