198 lines
3.8 KiB
Vue
198 lines
3.8 KiB
Vue
<template>
|
||
<view class="app">
|
||
<view class="elderly">
|
||
<view class="wait">
|
||
请等待商家处理
|
||
</view>
|
||
</view>
|
||
<view class="content">
|
||
<view class="name">
|
||
退款信息
|
||
</view>
|
||
<view class="details">
|
||
<view class="detailslist">
|
||
<image :src="baseurl+Aftersalesorder.attributePitureUrl" mode=""></image>
|
||
<view class="model">
|
||
<view class="top">
|
||
<span>{{Aftersalesorder.goodsName}}</span>
|
||
<span>¥{{Aftersalesorder.goodsPrice}}</span>
|
||
</view>
|
||
<view class="bottom">
|
||
<span class="box">型号:{{Aftersalesorder.goodsAttributeName}}</span>
|
||
<span class="box">×1</span>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="info">
|
||
<view>订单编号:{{Aftersalesorder.goOrderNo}}</view>
|
||
<view>申请金额:¥{{Aftersalesorder.totalPrice}}</view>
|
||
<view>退款原因:{{Aftersalesorder.dictLabel}}</view>
|
||
<view>申请时间:{{Aftersalesorder.updateTime}}</view>
|
||
</view>
|
||
</view>
|
||
<view class="evaluate">
|
||
<!-- <view class="cancelorder">修改申请</view> -->
|
||
<!-- <view class="cancelorder " style="background: #4C7BC9;">撤销申请</view> -->
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import {
|
||
goodsOrder
|
||
} from '@/api/CommodityOrder/index.js'
|
||
import baseurl from '@/api/baseurl.js'
|
||
export default {
|
||
data() {
|
||
return {
|
||
baseurl: '',
|
||
Aftersalesorder:{},
|
||
patientId: '', //用户id
|
||
goodsOrderId: '', //订单id
|
||
orderStatus: '', //状态 不传
|
||
pageSize: 10,
|
||
pageNum: 1,
|
||
}
|
||
},
|
||
methods: {
|
||
goodsOrderinfo() {
|
||
goodsOrder(this.patientId, this.orderStatus, this.goodsOrderId, this.pageSize, this.pageNum).then(
|
||
res => {
|
||
this.Aftersalesorder = res.rows[0]
|
||
})
|
||
},
|
||
},
|
||
onLoad(options) {
|
||
this.goodsOrderId = options.goodsOrderId
|
||
this.baseurl = baseurl
|
||
let that = this
|
||
uni.getStorage({
|
||
key: 'patientId',
|
||
success: function(res) {
|
||
that.patientId = res.data
|
||
that.goodsOrderinfo();
|
||
}
|
||
});
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
.app {
|
||
padding: 3%;
|
||
height: 100vh;
|
||
font-size: 36rpx;
|
||
|
||
//按钮修改申请和撤销申请
|
||
.evaluate {
|
||
display: flex;
|
||
float: right;
|
||
margin-top: 40%;
|
||
font-size: 32rpx;
|
||
|
||
.cancelorder {
|
||
margin-left: 1%;
|
||
width: 216rpx;
|
||
height: 68rpx;
|
||
background: #E1AE3C;
|
||
border-radius: 26rpx;
|
||
text-align: center;
|
||
color: #ffffff;
|
||
line-height: 68rpx;
|
||
}
|
||
}
|
||
|
||
.content {
|
||
width: 95%;
|
||
height: 580rpx;
|
||
background: #FFFFFF;
|
||
box-shadow: 0px 9px 31px 9px rgba(0, 0, 0, 0.03);
|
||
border-radius: 20px;
|
||
margin: 10px auto;
|
||
|
||
.name {
|
||
width: 95%;
|
||
height: 90rpx;
|
||
font-size: 30rpx;
|
||
line-height: 90rpx;
|
||
border-bottom: 1rpx solid #D8D4D4;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.info {
|
||
font-size: 32rpx;
|
||
margin: 3%;
|
||
color: #969394;
|
||
line-height: 48rpx;
|
||
}
|
||
|
||
.details {
|
||
width: 95%;
|
||
height: 40%;
|
||
margin: 0 auto;
|
||
border-bottom: 1rpx solid #D8D4D4;
|
||
|
||
.detailslist {
|
||
display: flex;
|
||
|
||
image {
|
||
width: 182rpx;
|
||
height: 182rpx;
|
||
margin: 20rpx 0 0 20rpx;
|
||
}
|
||
|
||
.model {
|
||
width: 70%;
|
||
margin: 30rpx 0 0 20rpx;
|
||
|
||
span {
|
||
font-size: 32rpx;
|
||
color: #000000;
|
||
}
|
||
|
||
span:nth-child(1) {
|
||
display: inline-block;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
width: 70%;
|
||
}
|
||
|
||
span:nth-child(2) {
|
||
color: #969394;
|
||
float: right;
|
||
margin-right: 30rpx;
|
||
}
|
||
|
||
.bottom {
|
||
margin-top: 40rpx;
|
||
|
||
.box {
|
||
color: #969394;
|
||
font-size: 30rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.elderly {
|
||
width: 95%;
|
||
height: 96rpx;
|
||
line-height: 96rpx;
|
||
color: #ffffff;
|
||
margin: 0 auto;
|
||
background: #4C7BC9;
|
||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||
border-radius: 20rpx;
|
||
|
||
.wait {
|
||
margin-left: 3%;
|
||
}
|
||
|
||
}
|
||
}
|
||
</style>
|