shish 4 hónapja
szülő
commit
cf5b0ecd43
1 módosított fájl, 57 hozzáadás és 6 törlés
  1. 57 6
      hdApp/src/pagesClient/official/result.vue

+ 57 - 6
hdApp/src/pagesClient/official/result.vue

@@ -1,31 +1,82 @@
 <template>
 	<appResult title="注册成功">
-    <view>
-      <button class="admin-button-com blue big" @click="beginBuy()" >去买花</button>
+    <view class="dec"></view>
+    <view v-if="fromCg == 1">
+      <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="goIndex()" style="padding-left:80upx;padding-right:80upx;">进入首页</button>
+      <button class="admin-button-com blue big" v-else @click="beginCg()" >开始购买</button>
     </view>
 	</appResult>
 </template>
 <script>
 import appResult from '@/components/app-result'
 export default {
-	name: "result",
+	name: "ApplyResult",
 	components:{
 		appResult
     },
     data(){
       return {
-        scene:''
+        scene:'',
+        fromCg:0
+      }
+    },
+    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(){
+
       },
-      beginBuy(){
+      goIndex(){
         this.$util.pageTo({url: "/admin/home/workbench", type:3})
+      },
+      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() {
+        uni.navigateBack()
       }
     }
 };
 </script>
 <style lang="scss" scoped>
-
+    .dec {
+     color: #666666;   
+     font-size: 28upx;
+     font-weight: 400;
+     margin-bottom: 30upx;
+    }
+	.admin-button-com {
+		margin-bottom: 20upx;
+		width: 100%;
+	}
 </style>