90 lines
1.8 KiB
Vue
90 lines
1.8 KiB
Vue
<template>
|
|
<view class="content">
|
|
<text class="success-icon yticon icon-xuanzhong2"></text>
|
|
<text class="tit">{{ status == 3 || status== 5 ? '支付成功':'支付失败'}}</text>
|
|
<!-- <view class="result-mid red-price">
|
|
{{ orderInfo.actualPaymentRmb }}
|
|
</view> -->
|
|
<view class="btn-group">
|
|
<text class="mix-btn" @click="goOrder">查看订单</text>
|
|
<text class="mix-btn hollow" @click="onBack">点我返回</text>
|
|
<text v-if="qvyu == 5" class="mix-btn hollow" @click="handlerSign">签署合同</text>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { handlerSign } from '@/utils/common.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
orderInfo: {},
|
|
status: null,
|
|
qvyu: null,
|
|
orderId: null
|
|
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.status = options.status || null;
|
|
this.orderId = options.orderId || null;
|
|
this.qvyu = options.qvyu || null;
|
|
if (options.orderInfo) {
|
|
let order = JSON.parse(options.orderInfo)
|
|
this.orderInfo = order
|
|
}
|
|
},
|
|
methods: {
|
|
handlerSign () {
|
|
handlerSign(this.orderId)
|
|
},
|
|
goOrder(){
|
|
uni.redirectTo({
|
|
url: "/pages/order/index?status=1"
|
|
})
|
|
},
|
|
onBack(){
|
|
this.$navigateBack(2)
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.success-icon {
|
|
font-size: 160upx;
|
|
color: #fa436a;
|
|
margin-top: 100upx;
|
|
}
|
|
.tit {
|
|
font-size: 38upx;
|
|
color: #303133;
|
|
}
|
|
.btn-group {
|
|
padding-top: 100upx;
|
|
}
|
|
.mix-btn {
|
|
margin-top: 30upx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 600upx;
|
|
height: 80upx;
|
|
font-size: 32rpx;
|
|
color: #fff;
|
|
background-color: #F8D247;
|
|
border-radius: 10upx;
|
|
&.hollow {
|
|
background: #fff;
|
|
color: #303133;
|
|
border: 1px solid #ccc;
|
|
}
|
|
}
|
|
</style>
|