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.

126 lines
2.4 KiB

5 years ago
<template>
5 years ago
<view class="container">
<view class="tui-bg"></view>
<view class="tui-content">
<view class="tui-form">
<image src="../../static/shop/img_recharge_success.png" class="tui-icon"></image>
<view class="tui-title">订单已支付成功</view>
<view class="tui-sub-title">非常感谢您的购买</view>
<view class="tui-btn-box">
<button class="cu-btn round line-gray shadow" @tap="toIndex"></button>
<button class="cu-btn round bg-red text-white shadow" @tap="toOrder"></button>
</view>
</view>
5 years ago
</view>
5 years ago
<!-- <view class="tui-tips">
<view class="tui-grey">温馨提示:</view>
<view class="tui-light-grey">
付款成功后不会以付款异常卡单系统升级为由联系您请勿泄露银行卡号手机验证码否则会造成钱款损失谨防电话诈骗
</view>
</view> -->
5 years ago
</view>
</template>
<script>
export default {
data() {
return {
5 years ago
orderId: 0
5 years ago
};
},
onLoad(options) {
console.log(options)
this.orderId = options.orderId
},
5 years ago
methods: {
toIndex() {
5 years ago
uni.switchTab({
5 years ago
url: "../index/index"
5 years ago
})
},
5 years ago
toOrder() {
5 years ago
uni.reLaunch({
5 years ago
url: "../orderDetail/orderDetail?orderId=" + this.orderId
5 years ago
})
}
}
}
</script>
<style lang="scss">
5 years ago
.tui-bg {
width: 100%;
height: 260rpx;
background: linear-gradient(20deg, #E41F19, #F34B0B);
border-bottom-left-radius: 42rpx;
}
.tui-content {
padding: 0 35rpx;
box-sizing: border-box;
}
.tui-form {
background: #fff;
height: 500rpx;
box-shadow: 0 10rpx 14rpx 0 rgba(0, 0, 0, 0.08);
border-radius: 10rpx;
margin-top: -160rpx;
position: relative;
z-index: 10;
display: flex;
align-items: center;
flex-direction: column;
}
.tui-icon {
width: 100rpx;
height: 100rpx;
display: block;
margin-top: 60rpx;
}
.tui-title {
font-size: 42rpx;
line-height: 42rpx;
padding-top: 28rpx;
}
.tui-sub-title {
color: #666666;
font-size: 28rpx;
line-height: 28rpx;
padding-top: 20rpx;
}
.tui-btn-box {
width: 500rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 88rpx;
.cu-btn {
width: 200rpx;
5 years ago
}
}
5 years ago
.tui-tips {
font-size: 26rpx;
padding: 48rpx 90rpx;
box-sizing: border-box;
text-align: justify;
line-height: 48rpx;
}
.tui-grey {
color: #555;
padding-bottom: 8rpx;
}
.tui-light-grey {
color: #888;
line-height: 40rpx;
}
5 years ago
</style>