|
@@ -3,13 +3,15 @@
|
|
|
<view class="pay-icon">
|
|
|
<view class="iconfont iconqueding"></view>
|
|
|
</view>
|
|
|
- <view class="pay-title">支付成功</view>
|
|
|
+ <view class="pay-title" v-if="goodType && orderStatus == 1">提交成功</view>
|
|
|
+ <view class="pay-title" v-else>支付成功</view>
|
|
|
<view class="pay-text">{{goodType ? '您已支付成功, 您所购买的商品需要留言卖家后进行自助采摘' : '您已支付成功,您所购买的商品正在向您飞奔, 请耐心等待!'}}</view>
|
|
|
<view v-if="!goodType" class="pay-text">3秒后自动跳转订单详情...</view>
|
|
|
<view class="pay-handle">
|
|
|
- <u-button v-if="!goodType" type="success" shape="circle" :ripple="true" @click="goToOrderList()" class="button1">查看订单</u-button>
|
|
|
<u-button v-if="goodType" type="success" shape="circle" :ripple="true" @click="goPickVideo()" class="button1">自助采摘</u-button>
|
|
|
- <u-button type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToIndex()" class="button2">返回首页</u-button>
|
|
|
+ <u-button v-if="goodType" type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToOrderList2()" class="button3">查看订单</u-button>
|
|
|
+ <u-button v-if="!goodType" type="success" shape="circle" :ripple="true" @click="goToOrderList()" class="button1">查看订单</u-button>
|
|
|
+ <u-button v-if="!goodType" type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToIndex()" class="button2">返回首页</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -23,16 +25,21 @@
|
|
|
orderId: '',
|
|
|
timeoutID:0,
|
|
|
goodType: '',
|
|
|
- tenantCode: ''
|
|
|
+ tenantCode: '',
|
|
|
+ orderStatus: ''
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.orderId = options.orderId
|
|
|
this.goodType = options.goodType ? options.goodType : ''
|
|
|
this.tenantCode = options.tenantCode ? options.tenantCode : ''
|
|
|
+ this.orderStatus = options.orderStatus ? options.orderStatus : ''
|
|
|
if (!this.goodType) {
|
|
|
this.autoJump()
|
|
|
}
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: (this.goodType == 3 && this.orderStatus == 1) ? '提交结果' : '支付结果'
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
// 自动跳转页面
|
|
@@ -53,6 +60,12 @@
|
|
|
url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 2
|
|
|
});
|
|
|
},
|
|
|
+ // 自助采摘未付款查看订单
|
|
|
+ goToOrderList2() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 1
|
|
|
+ });
|
|
|
+ },
|
|
|
// 跳转自助采摘直播
|
|
|
goPickVideo() {
|
|
|
var that=this;
|
|
@@ -174,6 +187,18 @@
|
|
|
width: 100%;
|
|
|
height: 34px;
|
|
|
}
|
|
|
+
|
|
|
+ .button3 {
|
|
|
+ /deep/button {
|
|
|
+ background-color: #74bd60 !important;
|
|
|
+ border: none !important;
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ float: left;
|
|
|
+ width: 100%;
|
|
|
+ height: 34px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|