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.
yanzong_qianduan/pages/order/refund/refundDetail1.vue

213 lines
4.4 KiB

<template>
<view class="refund">
<view class="refund-navbar">
11 months ago
<u-navbar title="退货退款详情" :border-bottom="false" :background="background"></u-navbar>
</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">
10 months ago
<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>
10 months ago
<view class="c" @click="getRevoke()">
<view class="btn">撤销申请</view>
</view>
</view>
<view class="refund-fd">
<view class="l">
<view class="a">退款原因</view>
10 months ago
<view class="b">{{refundDetails.refuse_desc}}</view>
</view>
<view class="l">
<view class="a">退款金额</view>
10 months ago
<view class="b">¥{{refundDetails.refund_money}}</view>
</view>
<view class="l">
<view class="a">退款时间</view>
10 months ago
<view class="b">{{refundDetails.create_time}}</view>
</view>
<view class="l">
<view class="a">退款编号</view>
10 months ago
<view class="b">{{refundDetails.create_time}}</view>
</view>
</view>
</view>
</template>
<script>
10 months ago
// import img from "@/static/news/refund-bg.png"
import * as refundApi from '@/api/refund'
export default {
data() {
return {
10 months ago
timestamp: 72 * 3600 * 1000,
background: {
10 months ago
background: `url(${this.$picUrl}/static/news/refund-bg.png) center -44px no-repeat`,
// background: 'url(' + img + ') center -44px no-repeat',
backgroundSize: '100%',
10 months ago
},
refundDetails: ''
}
},
onLoad(op) {
this.getRefundDetails(op.orderRefundId)
},
methods: {
10 months ago
// 撤销
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) {
10 months ago
let app = this
refundApi.detail(orderRefundId)
.then(result => {
app.refundDetails = result.data.detail
10 months ago
console.log(app.refundDetails)
})
},
}
}
</script>
<style lang="scss" scoped>
.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>