|
|
@@ -5,7 +5,7 @@
|
|
|
<view class="result-view">
|
|
|
<view :class="['iconfont', 'iconchenggong']"></view>
|
|
|
<view class="result-title">支付成功</view>
|
|
|
- <view v-if="ghsCgScene!=''">
|
|
|
+ <view v-if="ghsCgScene!='' || fromCg == 1">
|
|
|
<view>关闭页面后,微信下拉找到【花惠宝】小程序,如下图点采购可以再次下单</view>
|
|
|
<view style="margin-bottom:30upx;margin-top:15upx;">
|
|
|
<image class="image" :src="`${constant.imgUrl}/cg/hd_cg_route.png`" mode="widthFix"></image>
|
|
|
@@ -24,17 +24,25 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
hasInit:false,
|
|
|
- ghsCgScene:''
|
|
|
+ ghsCgScene:'',
|
|
|
+ fromCg:0
|
|
|
}
|
|
|
},
|
|
|
onLoad () {
|
|
|
this.hasInit = true
|
|
|
|
|
|
+ //供应商打开太阳码分享给客户,客户需要采购进来
|
|
|
let scene = uni.getStorageSync('ghsCgScene')
|
|
|
if(scene){
|
|
|
this.ghsCgScene = scene
|
|
|
}
|
|
|
|
|
|
+ //供应商打开小程序分享给客户,客户需要采购进来
|
|
|
+ let ghsCgOption = uni.getStorageSync('ghsCgOption')
|
|
|
+ if(ghsCgOption.cg){
|
|
|
+ this.fromCg = ghsCgOption.fromCg
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
onShow () {
|
|
|
if(this.hasInit == false){
|
|
|
@@ -47,9 +55,12 @@ export default {
|
|
|
},
|
|
|
goHome () {
|
|
|
uni.removeStorageSync('ghsCgScene')
|
|
|
+ uni.removeStorageSync('ghsCgOption')
|
|
|
this.pageTo({url:"/admin/home/workbench",type:4})
|
|
|
},
|
|
|
goDetail() {
|
|
|
+ uni.removeStorageSync('ghsCgScene')
|
|
|
+ uni.removeStorageSync('ghsCgOption')
|
|
|
this.pageTo({url: '/pagesPurchase/purDetails',query:{id:this.option.id,status:2}})
|
|
|
}
|
|
|
},
|