uni-Identify-quality/pages/paySuccess/paySuccess.vue

170 lines
4.2 KiB
Vue
Raw Normal View History

2023-09-20 11:59:14 +00:00
<template>
2023-09-22 06:35:58 +00:00
<view class="main">
2023-09-20 11:59:14 +00:00
<image
2023-09-25 12:59:53 +00:00
src="@/static/image/paySuccess.png"
mode="scaleToFill"
style="width:218rpx;height:54rpx;margin-top:150rpx"
2023-09-20 11:59:14 +00:00
/>
<view class="info">
<view>
2023-09-26 02:51:48 +00:00
<image :src="info.artworkImg" mode="scaleToFill" style="width:191rpx;height:146rpx"/>
2023-09-20 11:59:14 +00:00
</view>
<view class="info-right">
<view class="info-right-item">
<view class="title">画作编号</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.artworkNum }}</view>
2023-09-20 11:59:14 +00:00
</view>
<view class="info-right-item">
<view class="title">画作名称</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.artworkName }}</view>
2023-09-20 11:59:14 +00:00
</view>
<view class="info-right-item">
<view class="title">画家名称</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.artistName }}</view>
2023-09-20 11:59:14 +00:00
</view>
<view class="info-right-item">
<view class="title">画作平尺数</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.artworkSize }}</view>
2023-09-20 11:59:14 +00:00
</view>
</view>
</view>
<view class="order-info">
<view class="info-right-item">
<view class="title">订单编号</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.artworkNum }}</view>
2023-09-20 11:59:14 +00:00
</view>
<view class="info-right-item">
<view class="title">寄存地址</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.warehouseName }}</view>
2023-09-20 11:59:14 +00:00
</view>
<view class="info-right-item">
<view class="title">寄存时限</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.cycleName }}</view>
2023-09-20 11:59:14 +00:00
</view>
<view class="info-right-item">
<view class="title">付款金额</view>
2023-09-25 12:59:53 +00:00
<view class="content">{{ info.money }}</view>
2023-09-20 11:59:14 +00:00
</view>
</view>
<view class="tips">*请携带您的画作在时限之前到达寄存地</view>
<view class="btns">
2023-09-26 02:13:55 +00:00
<view @click="goHome" style="width: 280rpx;height:64rpx;border-radius: 40rpx;">
2023-09-20 11:59:14 +00:00
<u-button text="返回首页" shape="circle" color="#626262"></u-button>
</view>
2023-09-26 02:13:55 +00:00
<view @click="goDetails" style="width: 280rpx;height:64rpx;border-radius: 40rpx">
2023-09-20 11:59:14 +00:00
<u-button text="查看订单详情" shape="circle" color="#699A70"></u-button>
</view>
</view>
</view>
</template>
<script>
2023-09-25 12:51:34 +00:00
import {postDataByParams} from "../../http/service";
2023-09-25 11:24:01 +00:00
export default {
2023-09-25 12:59:53 +00:00
name: 'paySuccess',
data() {
return {
info: {}
2023-09-25 11:24:01 +00:00
}
},
2023-09-25 12:59:53 +00:00
mounted() {
2023-09-25 11:24:01 +00:00
this.getData()
},
2023-09-25 12:59:53 +00:00
methods: {
2023-09-26 02:13:55 +00:00
goDetails(){
uni.navigateTo({
2023-09-26 02:48:47 +00:00
url: `/pages/order-goods/order-details?ID=${this.$mp.query.ID}`,
2023-09-26 02:13:55 +00:00
});
},
goHome(){
uni.switchTab({
url: "/pages/home/index",
});
},
2023-09-25 12:59:53 +00:00
async getData() {
const data1 = {
ID: Number(this.$mp.query.ID)
}
const res1 = await postDataByParams('/api/warehouse/detail', data1)
if (res1.code === 200) {
this.info = res1.data
}
2023-09-25 11:24:01 +00:00
}
}
};
2023-09-20 11:59:14 +00:00
</script>
<style lang="scss" scoped>
.main {
2023-09-22 06:35:58 +00:00
background: url("https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/a8a522e0-ca12-4e1f-8c67-996cb5287f47.png");
2023-09-20 11:59:14 +00:00
height: 100vh;
box-sizing: border-box;
display: flex;
justify-content: start;
align-items: center;
padding: 32rpx;
flex-direction: column;
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.info-right-item {
color: #626262;
display: flex;
align-items: center;
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.title {
padding-right: 56rpx;
border-right: 1rpx solid #e4eaf1;
}
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.content {
padding-left: 34rpx;
}
}
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.info {
box-sizing: border-box;
display: flex;
width: 100%;
height: 292rpx;
border-radius: 20rpx;
background: #fff;
margin-top: 182rpx;
padding: 20rpx;
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.info-right {
width: 100%;
margin-left: 34rpx;
display: flex;
flex-direction: column;
color: #626262;
justify-content: space-between;
}
}
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.order-info {
box-sizing: border-box;
margin-top: 20rpx;
width: 100%;
height: 292rpx;
border-radius: 20rpx;
padding: 22rpx 40rpx;
background: #fff;
display: flex;
flex-direction: column;
justify-content: space-between;
}
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.tips {
color: #76c458;
margin-top: 170rpx;
}
2023-09-25 12:59:53 +00:00
2023-09-20 11:59:14 +00:00
.btns {
margin-top: 40rpx;
width: 100%;
display: flex;
justify-content: space-between;
}
}
2023-09-25 11:24:01 +00:00
</style>