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/saleAfterSelect.vue

95 lines
1.9 KiB

<!--
* @Author: ch
* @Date: 2022-04-14 16:50:37
* @LastEditors: ch
3 years ago
* @LastEditTime: 2022-04-18 17:54:03
* @Description: file content
-->
<template>
<view>
3 years ago
<UiWhiteBox>
3 years ago
<UiGoodsInfo class="goods-info" :data="orderInfo.orderProduct"></UiGoodsInfo>
3 years ago
</UiWhiteBox>
<UiWhiteBox>
<view class="title">选择售后类型</view>
3 years ago
<view class="item item__first" @click="select(1)">
3 years ago
<view>申请退款</view>
<text>没有收到货或已协商同意不退货只退款</text>
</view>
3 years ago
<view class="item" @click="select(2,2)">
3 years ago
<view>申请退货退款</view>
<text>已收到货需要退还收到的货物</text>
</view>
</UiWhiteBox>
</view>
</template>
<script>
3 years ago
import UiGoodsInfo from '../../../components/UiGoodsInfo.vue'
import UiWhiteBox from '../../../components/UiWhiteBox.vue'
3 years ago
import {ApiGetOrderProductDetail} from '@/common/api/order';
export default {
3 years ago
components: { UiWhiteBox, UiGoodsInfo },
data(){
return {
3 years ago
orderInfo : {}
3 years ago
}
},
3 years ago
mounted(){
this.getOrderProductInfo()
},
3 years ago
methods : {
3 years ago
async getOrderProductInfo(){
const {error, result} = await ApiGetOrderProductDetail({
orderProductId : this.$Route.query.id
});
if(error){
uni.$u.toast(error.message);
return false;
}
this.orderInfo = result;
3 years ago
},
select(type,status){
const {orderProductId,realAmount} = this.orderInfo.orderProduct;
this.$Router.push({
path:'/saleAfterApply',
query:{
status,
type,
id: orderProductId,
amount : realAmount,
}
});
3 years ago
}
}
}
</script>
3 years ago
<style lang="scss" scoped>
page{
background: $color-grey1;
}
.title{
height: 98rpx;
line-height: 98rpx;
border-bottom: 2rpx solid $color-grey2;
padding: 0 30rpx;
color: $color-grey5;
}
.item{
padding: 40rpx 0;
margin: 0 40rpx;
&__first{
border-bottom: 2rpx solid $color-grey2;
}
view{
font-weight: bold;
margin-bottom:20rpx;
}
text{
color: $color-grey4;
font-size: $font-size-sm;
}
}
.goods-info{
border: 0;
}
</style>