shish 1 vuosi sitten
vanhempi
commit
e24a12a78b
2 muutettua tiedostoa jossa 8 lisäystä ja 10 poistoa
  1. 4 5
      hdApp/src/admin/home/workbench.vue
  2. 4 5
      hdApp/src/pagesPurchase/order.vue

+ 4 - 5
hdApp/src/admin/home/workbench.vue

@@ -229,7 +229,7 @@
             </view>
           </view>
           <block v-if="ghsInfo.live == 1">
-            <view class="button_7 flex-col" @click.stop="fnOpenKmCg()" v-if="ghsInfo.openKmCg && ghsInfo.openKmCg == 1"><text class="text_13">昆明直采</text></view>
+            <view class="button_7 flex-col" @click.stop="goKmCg(ghsInfo)" v-if="ghsInfo.openKmCg && ghsInfo.openKmCg == 1"><text class="text_13">昆明直采</text></view>
             <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
             <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
           </block>
@@ -516,13 +516,12 @@ export default {
     fillCg(item){
       this.pageTo({url:'/pagesPurchase/addCg?ghsId='+item.id+'&ghsName='+item.name})
     },
-    fnOpenKmCg(){
-      console.log('yes')
+    goKmCg(currentGhs){
       let self = this
       // #ifdef MP-WEIXIN
       uni.navigateToMiniProgram({
-        appId: self.currentGhs.kmCgAppId,
-        path: self.currentGhs.kmCgUrl,
+        appId: currentGhs.kmCgAppId,
+        path: currentGhs.kmCgUrl,
         //develop 开发版 trial 体验版 release 正式版
         envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
         extraData: {},

+ 4 - 5
hdApp/src/pagesPurchase/order.vue

@@ -93,7 +93,7 @@
                 </view>
               </view>
               <block v-if="ghsInfo.live == 1">
-                <view class="button_7 flex-col" @click.stop="fnOpenKmCg()" v-if="ghsInfo.openKmCg && ghsInfo.openKmCg == 1"><text class="text_13">昆明直采</text></view>
+                <view class="button_7 flex-col" @click.stop="goKmCg(ghsInfo)" v-if="ghsInfo.openKmCg && ghsInfo.openKmCg == 1"><text class="text_13">昆明直采</text></view>
                 <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
                 <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
               </block>
@@ -216,13 +216,12 @@ export default {
     fillCg(item){
       this.pageTo({url: '/pagesPurchase/addCg?ghsId='+item.id+'&ghsName='+item.name})
     },
-    fnOpenKmCg(){
-      console.log('ok')
+    goKmCg(currentGhs){
       let self = this
       // #ifdef MP-WEIXIN
       uni.navigateToMiniProgram({
-        appId: self.currentGhs.kmCgAppId,
-        path: self.currentGhs.kmCgUrl,
+        appId: currentGhs.kmCgAppId,
+        path: currentGhs.kmCgUrl,
         //develop 开发版 trial 体验版 release 正式版
         envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
         extraData: {},