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.

129 lines
2.5 KiB

<template>
1 day ago
<!-- 订单详情中间页 -->
<view class="page1">
<view class="title">
<view class="title-sreach">
<view class="back-btn" @tap="back" :style="{'top': menuButtonInfo.top +'px'}">
<uni-icons type="left" size="28"></uni-icons>
</view>
<view class="title-name" :style="{'padding-top': menuButtonInfo.top +'px'}">
1 day ago
订单状态
</view>
</view>
</view>
<view class="content">
<view class="box1">
3 weeks ago
<view style="height: 70rpx;line-height: 70rpx;text-align: center;">
1 day ago
支付完成
</view>
3 weeks ago
<view style="height: 90rpx;line-height: 90rpx;text-align: center;font-weight: 700;font-size: 30rpx;">
1 day ago
<text style="font-size: 60rpx;">{{amount == null?0:amount}}</text>
</view>
3 weeks ago
<view style="height: 40rpx;text-align: center;color: red;">
1 day ago
点击可查看订单详情
</view>
</view>
1 day ago
<view class="btn" @tap="getorder">
查看订单详情
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
1 day ago
menuButtonInfo: {},
id:'',
groupId:'',
amount:0,
}
},
onLoad(option) {
1 day ago
this.id = option.id
this.groupId = option.groupId
this.amount = option.amount
},
onShow() {
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
},
methods: {
1 day ago
getorder(){
uni.redirectTo({
url: '/package1/order/orderDetail?id=' + that.id + '&groupId=' + that.groupId
});
},
back() {
uni.navigateBack()
}
}
}
</script>
<style lang="scss">
page {
width: 100%;
height: 100%;
font-size: 24rpx;
background: #F5F8F5;
color: #00231C;
}
.page1 {
width: 100%;
height: 100%;
font-size: 24rpx;
position: relative;
}
.title{
background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/8bc15960c2dc40268e295d6dd23aecce.png') no-repeat;
width: 100%;
height: 54%;
}
.title-sreach{
width: 100%;
display: flex;
height: 200rpx;
position: relative;
}
.back-btn{
position: absolute;
bottom: 0;
left: 0;
}
.title-name{
3 weeks ago
padding-top: 110rpx;
font-size: 36rpx;
font-weight: 700;
flex: 1;
text-align: center;
}
.content{
position: absolute;
3 weeks ago
top: 200rpx;
width: 95%;
margin-left: 2.5%;
}
.box1{
width: 95%;
3 weeks ago
margin: 0 auto 20rpx;
background: #fff;
3 weeks ago
border-radius: 20rpx;
padding: 20rpx;
}
.btn {
width: 95%;
3 weeks ago
height: 100rpx;
font-size: 32rpx;
font-weight: 700;
background: linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1));
3 weeks ago
border-radius: 100rpx;
line-height: 100rpx;
text-align: center;
3 weeks ago
margin: 40rpx auto;
}
</style>