easypay-app/pages/users/signin/index.vue
2024-01-22 14:30:38 +08:00

149 lines
3.0 KiB
Vue

<template>
<view class="Pay_success">
<view class="successbox">
<image v-show="flag" src="../../../static/images/success.png" mode=""></image>
<view class="title">
签约 <text>{{text}}</text>
</view>
<view class="content" v-show="flag">
<view class="bd">
<view class="">订单编号</view> <text>{{orderNo}}</text>
</view>
<!-- <view class="bd">
<view class="">下单时间</view> <text>{{shopobj.date}}</text>
</view> -->
<view class="bd">
<view class="">支付方式</view> <text>分期支付</text>
</view>
<!-- <view class="bd">
<view class="">支付金额</view> <text>{{shopobj.shopmey}}</text>
</view> -->
<text class="text" v-show="flag">恭喜签约成功,您的宝贝将在一小时内发货</text>
</view>
<view class="" v-show="flag">
<navigator url="../../../pages/users/order_list/index" class="ckdj">查看订单</navigator>
<navigator url="../../../pages/index/index" open-type="switchTab" class="fhsy">返回首页</navigator>
</view>
</view>
</view>
</template>
<script>
import {
getqianyue
} from '@/api/order.js'
export default {
data() {
return {
shopobj: {},
orderNo: '',
id: '',
signStatus: '', //签约状态
flag: false,
text: '失败'
}
},
onLoad(option) {
this.id = this.$Cache.get('qyids')
this.orderNo = option.orderId
// this.shopobj = JSON.parse(option.shopobj)
this.getnews(this.id)
},
onShow() {
this.getnews(this.id)
},
methods: {
getnews(id) {
getqianyue(id).then(res => {
console.log(res, 11)
this.signStatus = 2
if (this.signStatus == 2) {
this.flag = true
this.text = '成功'
}
})
},
},
onReady() {
// 定时器
}
}
</script>
<style lang="less">
.Pay_success {
width: 100%;
margin-top: 200rpx;
background-color: #fff;
padding-bottom: 80rpx;
height: 100vh;
.successbox {
position: relative;
width: 100%;
box-sizing: border-box;
padding: 0 40rpx;
image {
position: absolute;
top: -65rpx;
left: 50%;
transform: translateX(-50%);
width: 138rpx;
height: 138rpx;
}
.title {
width: 100%;
text-align: center;
padding-top: 100rpx;
box-sizing: border-box;
font-weight: 700;
line-height: 120rpx;
border-bottom: 1px solid #ccc;
}
.content {
.bd {
display: flex;
width: 100%;
justify-content: space-between;
margin-top: 20rpx;
text {
color: #666;
}
}
.text {
display: block;
color: #666;
margin-top: 40rpx;
}
}
.ckdj {
width: 100%;
height: 84rpx;
border: 1px solid #ccc;
border-radius: 50rpx;
line-height: 84rpx;
text-align: center;
margin-top: 50rpx;
background-color: #42ca4d;
color: #fff;
}
.fhsy {
width: 100%;
height: 84rpx;
border: 1px solid #ccc;
border-radius: 50rpx;
line-height: 84rpx;
text-align: center;
margin-top: 50rpx;
}
}
}
</style>