NurseStationApp/pages/Aftersalesdetails/Aftersalesdetails.vue

198 lines
3.8 KiB
Vue
Raw Normal View History

2022-10-28 15:37:07 +08:00
<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">
2022-11-01 16:26:34 +08:00
<image :src="baseurl+Aftersalesorder.attributePitureUrl" mode=""></image>
2022-10-28 15:37:07 +08:00
<view class="model">
<view class="top">
2022-11-01 16:26:34 +08:00
<span>{{Aftersalesorder.goodsName}}</span>
<span>{{Aftersalesorder.goodsPrice}}</span>
2022-10-28 15:37:07 +08:00
</view>
<view class="bottom">
2022-11-01 16:26:34 +08:00
<span class="box">型号{{Aftersalesorder.goodsAttributeName}}</span>
2022-10-28 15:37:07 +08:00
<span class="box">×1</span>
</view>
</view>
</view>
</view>
<view class="info">
2022-11-01 16:26:34 +08:00
<view>订单编号{{Aftersalesorder.goOrderNo}}</view>
<view>申请金额{{Aftersalesorder.totalPrice}}</view>
<view>退款原因{{Aftersalesorder.dictLabel}}</view>
<view>申请时间{{Aftersalesorder.updateTime}}</view>
2022-10-28 15:37:07 +08:00
</view>
</view>
<view class="evaluate">
2022-11-01 16:26:34 +08:00
<!-- <view class="cancelorder">修改申请</view> -->
<!-- <view class="cancelorder " style="background: #4C7BC9;">撤销申请</view> -->
2022-10-28 15:37:07 +08:00
</view>
</view>
</template>
<script>
2022-11-01 16:26:34 +08:00
import {
goodsOrder
} from '@/api/CommodityOrder/index.js'
import baseurl from '@/api/baseurl.js'
2022-10-28 15:37:07 +08:00
export default {
data() {
return {
2022-11-01 16:26:34 +08:00
baseurl: '',
Aftersalesorder:{},
patientId: '', //用户id
goodsOrderId: '', //订单id
orderStatus: '', //状态 不传
pageSize: 10,
pageNum: 1,
2022-10-28 15:37:07 +08:00
}
},
methods: {
2022-11-01 16:26:34 +08:00
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();
}
});
2022-10-28 15:37:07 +08:00
}
}
</script>
<style lang="scss">
.app {
padding: 3%;
height: 100vh;
font-size: 36rpx;
2022-11-01 14:54:09 +08:00
2022-10-28 15:37:07 +08:00
//按钮修改申请和撤销申请
.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 {
2022-11-01 16:26:34 +08:00
font-size: 32rpx;
2022-10-28 15:37:07 +08:00
color: #000000;
}
2022-11-01 16:26:34 +08:00
span:nth-child(1) {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 70%;
}
2022-10-28 15:37:07 +08:00
span:nth-child(2) {
color: #969394;
float: right;
margin-right: 30rpx;
}
.bottom {
2022-11-01 16:26:34 +08:00
margin-top: 40rpx;
2022-10-28 15:37:07 +08:00
2022-11-01 16:26:34 +08:00
.box {
color: #969394;
font-size: 30rpx;
}
2022-10-28 15:37:07 +08:00
}
}
}
}
}
.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>