|
|
@@ -5,7 +5,7 @@
|
|
|
<button class="admin-button-com blue big" @click="beginCg()" >开始买花</button>
|
|
|
</view>
|
|
|
<view v-else>
|
|
|
- <button class="admin-button-com blue big" v-if="scene==''" @click="goBack()" style="padding-left:80upx;padding-right:80upx;">返回</button>
|
|
|
+ <button class="admin-button-com blue big" v-if="scene==''" @click="beginCg()" style="padding-left:80upx;padding-right:80upx;">进入首页</button>
|
|
|
<button class="admin-button-com blue big" v-else @click="beginCg()" >开始买花</button>
|
|
|
</view>
|
|
|
</appResult>
|
|
|
@@ -26,19 +26,16 @@ export default {
|
|
|
onUnload() {
|
|
|
},
|
|
|
onLoad () {
|
|
|
-
|
|
|
//供货商打开小程序分享给客户,客户需要采购进来
|
|
|
let ghsCgOption = uni.getStorageSync('ghsCgOption')
|
|
|
if(ghsCgOption.fromCg){
|
|
|
this.fromCg = ghsCgOption.fromCg
|
|
|
}
|
|
|
-
|
|
|
//供货商打开太阳码分享给客户,客户需要采购进来
|
|
|
let scene = uni.getStorageSync('ghsCgScene')
|
|
|
if(scene){
|
|
|
this.scene = scene
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
methods:{
|
|
|
init(){
|
|
|
@@ -46,10 +43,20 @@ export default {
|
|
|
},
|
|
|
beginCg(){
|
|
|
if(this.fromCg == 1){
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ this.$util.pageTo({url: "/admin/home/workbench", type:3})
|
|
|
+ // #endif
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
let ghsCgOption = uni.getStorageSync('ghsCgOption')
|
|
|
this.$util.pageTo({url: "/pagesPurchase/ghsProduct", query:ghsCgOption, type:2})
|
|
|
+ // #endif
|
|
|
}else{
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ this.$util.pageTo({url: "/admin/home/workbench", type:3})
|
|
|
+ // #endif
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
this.$util.pageTo({url: "/pagesPurchase/ghsProduct",query: {scene:this.scene},type:2})
|
|
|
+ // #endif
|
|
|
}
|
|
|
},
|
|
|
goBack() {
|