You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

238 lines
5.6 KiB
Vue

1 year ago
<template>
1 year ago
<view class="main">
1 year ago
<image
1 year ago
src="@/static/image/paySuccess.png"
mode="scaleToFill"
style="width:218rpx;height:54rpx;margin-top:150rpx"
1 year ago
/>
6 months ago
<view class="content">
<view class="content1" v-for="(item,index) in info">
<view class="wrap1">
画作{{index+1}}
1 year ago
</view>
6 months ago
<view class="wrap2">
<view class="wrap2_1">
6 months ago
<view class="wrap2_1_1">
<img :src="item.artworkImg" alt="">
</view>
6 months ago
<view class="wrap2_1_2">{{item.artworkNum}}</view>
<view class="wrap2_1_3">{{item.artworkName}}</view>
1 year ago
</view>
6 months ago
<view class="wrap2_2">
<view class="wrap2_2_1">
<view class="wrap2_2_1_1">订单编号</view>
<view class="wrap2_2_1_2">{{ item.num }}</view>
</view>
<view class="wrap2_2_1">
<view class="wrap2_2_1_1">寄存地址</view>
<view class="wrap2_2_1_2">{{item.warehouseName}}</view>
</view>
<view class="wrap2_2_1">
<view class="wrap2_2_1_1">寄存期限</view>
<view class="wrap2_2_1_2">{{item.endAt}}</view>
</view>
<view class="wrap2_2_1">
<view class="wrap2_2_1_1">付款金额</view>
<view class="wrap2_2_1_2">{{item.money}}</view>
</view>
1 year ago
</view>
</view>
</view>
</view>
<view class="tips">*请携带您的画作在时限之前到达寄存地</view>
<view class="btns">
1 year ago
<view @click="goHome" style="width: 280rpx;height:64rpx;border-radius: 40rpx;">
1 year ago
<u-button text="返回首页" shape="circle" color="#626262"></u-button>
</view>
1 year ago
<view @click="goDetails" style="width: 280rpx;height:64rpx;border-radius: 40rpx">
1 year ago
<u-button text="查看订单详情" shape="circle" color="#699A70"></u-button>
</view>
</view>
</view>
</template>
<script>
1 year ago
import {postDataByParams} from "../../http/service";
1 year ago
export default {
1 year ago
name: 'paySuccess',
data() {
return {
6 months ago
listPaintings:[],
info: []
1 year ago
}
},
1 year ago
mounted() {
6 months ago
1 year ago
this.getData()
},
1 year ago
methods: {
1 year ago
goDetails(){
uni.navigateTo({
6 months ago
url:`/pages/confirm-order/index?type=detail&ID=${this.$mp.query.ID}`
})
1 year ago
},
goHome(){
uni.switchTab({
url: "/pages/home/index",
});
},
1 year ago
async getData() {
const data1 = {
ID: Number(this.$mp.query.ID)
}
6 months ago
const res1 = await postDataByParams('/api/v2/warehouse/detail', data1)
1 year ago
if (res1.code === 200) {
this.info = res1.data
}
1 year ago
}
}
};
1 year ago
</script>
<style lang="scss" scoped>
.main {
1 year ago
background: url("https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/a8a522e0-ca12-4e1f-8c67-996cb5287f47.png");
1 year ago
height: 100vh;
box-sizing: border-box;
display: flex;
justify-content: start;
align-items: center;
padding: 32rpx;
flex-direction: column;
6 months ago
.content{
margin-top: 110rpx;
6 months ago
max-height: 800rpx;
6 months ago
overflow-y: scroll;
.content1{
box-sizing: border-box;
width: 686rpx;
6 months ago
height: 390rpx;
6 months ago
background-color: #fff;
border-radius: 20rpx;
6 months ago
padding-bottom: 20rpx;
padding-top: 15rpx;
6 months ago
padding-left: 18rpx;
padding-right: 24rpx;
&:not(:first-child){
margin-top: 20rpx;
}
.wrap2{
display: flex;
padding-top: 18rpx;
padding-bottom: 10rpx;
.wrap2_2{
margin-left: 34rpx;
.wrap2_2_1{
margin-top: 42rpx;
&:first-child{
margin-top: 0;
}
display: flex;
.wrap2_2_1_1{
margin-right: 60rpx;
color: rgba(98, 98, 98, 1);
font-size: 24rpx;
}
.wrap2_2_1_2{
color: rgba(147, 147, 147, 1);
font-size: 24rpx;
}
}
}
.wrap2_1{
display: flex;
flex-direction: column;
align-items: center;
.wrap2_1_3{
color: rgba(147, 147, 147, 1);
font-size: 24rpx;
}
.wrap2_1_2{
margin-top: 10rpx;
color: rgba(147, 147, 147, 1);
font-size: 24rpx;
}
.wrap2_1_1{
border-radius: 20rpx;
6 months ago
overflow: hidden;
img{
width: 190rpx;
height: 190rpx;
}
6 months ago
}
}
}
.wrap1{
font-weight: bold;
height: 76rpx;
display: flex;
align-items: center;
}
}
}
1 year ago
1 year ago
.info-right-item {
color: #626262;
display: flex;
align-items: center;
1 year ago
1 year ago
.title {
padding-right: 56rpx;
border-right: 1rpx solid #e4eaf1;
}
1 year ago
1 year ago
.content {
padding-left: 34rpx;
}
}
1 year ago
1 year ago
.info {
box-sizing: border-box;
display: flex;
width: 100%;
height: 292rpx;
border-radius: 20rpx;
background: #fff;
margin-top: 182rpx;
padding: 20rpx;
1 year ago
1 year ago
.info-right {
width: 100%;
margin-left: 34rpx;
display: flex;
flex-direction: column;
color: #626262;
justify-content: space-between;
}
}
1 year ago
1 year ago
.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;
}
1 year ago
1 year ago
.tips {
color: #76c458;
margin-top: 170rpx;
}
1 year ago
1 year ago
.btns {
margin-top: 40rpx;
width: 100%;
display: flex;
justify-content: space-between;
}
}
1 year ago
</style>