shish 2 năm trước cách đây
mục cha
commit
926e8d9d30

+ 5 - 1
hdApp/src/pagesClient/official/apply.vue

@@ -268,7 +268,11 @@ export default {
       let that = this
       this.form.showAddress = this.form.city+this.form.address+this.form.floor
       uni.showLoading({mask:true})
-      applyRegister({hdShopAdminId:this.option.hdShopAdminId,ghsShopAdminId:this.option.ghsShopAdminId,...this.form,style:style,from:from,miniOpenId:currentMiniOpenId}).then(subRes => {
+      let appRegister = 0
+      // #ifdef APP-PLUS
+      appRegister = 1
+      // #endif
+      applyRegister({hdShopAdminId:this.option.hdShopAdminId,ghsShopAdminId:this.option.ghsShopAdminId,...this.form,style:style,from:from,miniOpenId:currentMiniOpenId,appRegister:appRegister}).then(subRes => {
         uni.hideLoading()
         let token = subRes.data.token || ''
         uni.hideLoading()

+ 11 - 4
hdApp/src/pagesClient/official/result.vue

@@ -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() {