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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!--
* @ Author : ch
* @ Date : 2022 - 04 - 14 16 : 50 : 37
* @ LastEditors : ch
* @ LastEditTime : 2022 - 04 - 15 11 : 33 : 42
* @ Description : file content
-- >
< template >
< view >
< UiWhiteBox >
<!-- < ui -goods -info - - >
< UiGoodsInfo class = "goods-info" :data ="orderInfo.orderProduct" > < / UiGoodsInfo >
< / UiWhiteBox >
< UiWhiteBox >
< view class = "title" > 选择售后类型 < / view >
< view class = "item item__first" @click ="$Router.push(`/saleAfterApply?type=1`)" >
< view > 申请退款 < / view >
< text > 没有收到货 , 或已协商同意不退货只退款 < / text >
< / view >
< view class = "item" @click ="$Router.push(`/saleAfterApply?type=2&status=2`)" >
< view > 申请退货退款 < / view >
< text > 已收到货 , 需要退还收到的货物 < / text >
< / view >
< / UiWhiteBox >
< / view >
< / template >
< script >
import UiGoodsInfo from '../../../components/UiGoodsInfo.vue'
import UiWhiteBox from '../../../components/UiWhiteBox.vue'
import { ApiGetOrderProductDetail } from '@/common/api/order' ;
export default {
components : { UiWhiteBox , UiGoodsInfo } ,
data ( ) {
return {
orderInfo : { }
}
} ,
mounted ( ) {
this . getOrderProductInfo ( )
} ,
methods : {
async getOrderProductInfo ( ) {
const { error , result } = await ApiGetOrderProductDetail ( {
orderProductId : this . $Route . query . id
} ) ;
if ( error ) {
uni . $u . toast ( error . message ) ;
return false ;
}
this . orderInfo = result ;
}
}
}
< / script >
< style lang = "scss" scoped >
page {
background : $color - grey1 ;
}
. title {
height : 98 rpx ;
line - height : 98 rpx ;
border - bottom : 2 rpx solid $color - grey2 ;
padding : 0 30 rpx ;
color : $color - grey5 ;
}
. item {
padding : 40 rpx 0 ;
margin : 0 40 rpx ;
& _ _first {
border - bottom : 2 rpx solid $color - grey2 ;
}
view {
font - weight : bold ;
margin - bottom : 20 rpx ;
}
text {
color : $color - grey4 ;
font - size : $font - size - sm ;
}
}
. goods - info {
border : 0 ;
}
< / style >