93 lines
2.0 KiB
Vue
93 lines
2.0 KiB
Vue
<template>
|
|
<view>
|
|
<!-- 顶部操作条 -->
|
|
<cu-custom :bgColor="'bg-main-color'" :isBack="true" :isBackHome="true" :homePageUrl="'/pages/index/index'">
|
|
<!-- <block slot="backText">返回</block>
|
|
<block slot="content">支付结果</block> -->
|
|
</cu-custom>
|
|
<view class="padding-lg margin-xl text-center">
|
|
<view class="text-xxl" v-if="customTip">{{customTip}}</view>
|
|
<view class="text-xxl" v-else>{{payResult ? '支付成功' : '支付失败'}}</view>
|
|
<view class="margin-top">
|
|
<view class="cu-btn bg-main-color radius text-xl shadow-blur" @click="showMyOrder">查看我的订单</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
payResult: false,
|
|
customTip: null,
|
|
servOrderTabList: [{
|
|
// type: -1,
|
|
name: '待付款'
|
|
},
|
|
// {
|
|
// type: 0,
|
|
// name: '待接单'
|
|
// }, {
|
|
// type: 1,
|
|
// name: '待排期'
|
|
// }, {
|
|
// type: 2,
|
|
// name: '待上门'
|
|
// },
|
|
{
|
|
type: '0,1,2',
|
|
name: '待服务'
|
|
}, {
|
|
type: '3,4',
|
|
name: '服务中'
|
|
},
|
|
// {
|
|
// type: 4,
|
|
// name: '待确认'
|
|
// },
|
|
{
|
|
// type: 4,
|
|
name: '售后中'
|
|
}, {
|
|
type: 5,
|
|
name: '已完成'
|
|
}],
|
|
servOrderType: 0
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
if (options.payResult) {
|
|
this.payResult = options.payResult === '0' ? true : false;
|
|
} else if (options.customTip) {
|
|
this.customTip = options.customTip;
|
|
}
|
|
},
|
|
methods: {
|
|
showMyOrder() {
|
|
let params = null;
|
|
if (this.payResult || this.customTip) {
|
|
params = {
|
|
orderType: this.servOrderType,
|
|
tabHeaderList: this.servOrderTabList,
|
|
tabCur: 1
|
|
}
|
|
} else {
|
|
params = {
|
|
orderType: this.servOrderType,
|
|
tabHeaderList: this.servOrderTabList,
|
|
tabCur: 0
|
|
}
|
|
}
|
|
uni.navigateTo({
|
|
// url: '/pages/my/my-order?tabInfo=' + encodeURIComponent(JSON.stringify(params))
|
|
url: '/pages/index/index?menuCode=myPage'
|
|
})
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|