|
|
@@ -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: {},
|