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.
shop-app/pages/order/saleAfter/saleAfterDetail/components/AwaitExamine.vue

102 lines
2.6 KiB

3 years ago
<!--
* @Author: ch
* @Date: 2022-04-14 11:56:57
* @LastEditors: ch
2 years ago
* @LastEditTime: 2022-05-07 19:09:37
3 years ago
* @Description: file content
-->
<template>
<UiWhiteBox>
<view class="title">
您已成功发起退款申请请耐心等待商家处理
</view>
<view class="content">
<view>商家同意后请按照给出的退货地址退货并请记录退货运单号</view>
<view>如商家拒绝您可以修改申请后再次发起商家会重新处理</view>
<view>如商家超时未处理退货申请将达成请按系统给出的退货地址退货</view>
</view>
<view class="footer">
<UiButton size="min" @click="cancelSaleAfter"></UiButton>
<UiButton size="min" @click="edit" type="gradual" class="btn">修改申请</UiButton>
3 years ago
</view>
</UiWhiteBox>
</template>
<script>
import UiButton from '../../../../../components/UiButton.vue'
import UiWhiteBox from '../../../../../components/UiWhiteBox.vue'
import {ApiPostCancelSaleAfter} from '@/common/api/order.js';
3 years ago
export default {
components: { UiWhiteBox, UiButton },
props:{
data : {
type : Object,
default : ()=>({})
}
},
data(){
return {
}
},
methods:{
cancelSaleAfter(){
2 years ago
uni.showModal({
content : '你将撤销本次申请,撤销后,保障期内你可以再次申请售后服务',
cancelTxt : '我再想想',
2 years ago
cancelColor : '#999',
confirmColor : '#3A83FB',
success: async ({confirm}) => {
if(confirm){
const {error, result} = await ApiPostCancelSaleAfter({refundId : this.data.refundId});
if(error){
uni.$u.toast(error.message);
return false;
}
this.$emit('reload');
}
}
})
2 years ago
// this.$msb.confirm({
// content : '你将撤销本次申请,撤销后,保障期内你可以再次申请售后服务',
// cancelTxt : '我再想想',
// confirm : async ()=> {
// const {error, result} = await ApiPostCancelSaleAfter({refundId : this.data.refundId});
// if(error){
// uni.$u.toast(error.message);
// return false;
// }
// this.$emit('reload');
// }
// })
},
edit(){
this.$Router.push(`/saleAfterEdit?id=${this.data.refundId}`)
}
}
3 years ago
}
</script>
<style lang="scss" scoped>
.title{
height: 98rpx;
line-height: 98rpx;
padding-left: 30rpx;
border-bottom: 2rpx solid $color-grey2;
color: $color-yellow3;
}
.content{
padding: 30rpx 30rpx 0;
view{
line-height: 34rpx;
color: $color-grey4;
font-size: $font-size-sm;
margin-bottom: 28rpx;
}
}
.footer{
padding: 0 30rpx 30rpx;
text-align: right;
.btn{
margin-left: 20rpx;
}
}
</style>