|
|
@@ -5,23 +5,36 @@
|
|
|
<view class="result-view">
|
|
|
<view :class="['iconfont', 'iconchenggong']"></view>
|
|
|
<view class="result-title">支付成功</view>
|
|
|
+ <view v-if="ghsCgScene!=''">
|
|
|
+ <view>关闭页面后,微信下拉找到【花惠宝】小程序,如下图点采购可以再次下单</view>
|
|
|
+ <view style="margin-bottom:30upx;">
|
|
|
+ <image class="image" :src="`${constant.imgUrl}/cg/hd_cg_route.png`" mode="widthFix"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<button class="admin-button-com blue big" @click="goDetail">订单详情</button>
|
|
|
- <button class="admin-button-com big" @click="goClose">返回首页</button>
|
|
|
+ <button v-if="ghsCgScene!=''" class="admin-button-com big" @click="goHome">返回首页</button>
|
|
|
+ <button v-else class="admin-button-com big" @click="goBack">返回</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
export default {
|
|
|
name: "AppResult",
|
|
|
data() {
|
|
|
return {
|
|
|
- hasInit:false
|
|
|
+ hasInit:false,
|
|
|
+ ghsCgScene:''
|
|
|
}
|
|
|
},
|
|
|
onLoad () {
|
|
|
this.hasInit = true
|
|
|
+
|
|
|
+ let scene = uni.getStorageSync('ghsCgScene')
|
|
|
+ if(scene){
|
|
|
+ this.ghsCgScene = scene
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
onShow () {
|
|
|
if(this.hasInit == false){
|
|
|
@@ -29,20 +42,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- openMind(){
|
|
|
- this.hasInit = false
|
|
|
- this.pageTo({ url: "/pagesClient/official/warn"})
|
|
|
+ goBack(){
|
|
|
+ uni.navigateBack()
|
|
|
},
|
|
|
- goClose () {
|
|
|
- this.pageTo({ url: "/admin/home/workbench", type: 3 })
|
|
|
+ goHome () {
|
|
|
+ uni.removeStorageSync('ghsCgScene')
|
|
|
+ this.pageTo({url:"/admin/home/workbench",type:4})
|
|
|
},
|
|
|
goDetail() {
|
|
|
- this.pageTo({url: '/pagesPurchase/purDetails?status=2&id=' + this.option.id, type: 3})
|
|
|
+ this.pageTo({url: '/pagesPurchase/purDetails',query:{id:this.option.id,status:2}})
|
|
|
}
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
.billing_box_bg {
|
|
|
position: relative;
|
|
|
@@ -93,4 +105,4 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|