|
|
@@ -229,6 +229,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<block v-if="ghsInfo.live == 1">
|
|
|
+ <view class="button_7 flex-col" @click="kmCg()"><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>
|
|
|
@@ -515,6 +516,19 @@ export default {
|
|
|
fillCg(item){
|
|
|
this.pageTo({url:'/pagesPurchase/addCg?ghsId='+item.id+'&ghsName='+item.name})
|
|
|
},
|
|
|
+ kmCg(){
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ let self = this
|
|
|
+ uni.navigateToMiniProgram({
|
|
|
+ appId: this.getappIdList.mall.miniAppId,
|
|
|
+ path: url + '?account=' + self.loginInfo.shopId,
|
|
|
+ //develop 开发版 trial 体验版 release 正式版
|
|
|
+ envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
+ extraData: {},
|
|
|
+ success (res) {}
|
|
|
+ })
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
enterShop(item) {
|
|
|
let that = this
|
|
|
if(item.isOpen == 0){
|
|
|
@@ -1126,6 +1140,23 @@ export default {
|
|
|
font-weight:bold;
|
|
|
}
|
|
|
}
|
|
|
+ .button_7 {
|
|
|
+ height: 80upx;
|
|
|
+ line-height:80upx;
|
|
|
+ text-align:center;
|
|
|
+ background-color:#09C567;
|
|
|
+ background-size: 137upx 137upx;
|
|
|
+ width: 180upx;
|
|
|
+ position: absolute;
|
|
|
+ left: 360upx;
|
|
|
+ top: 95upx;
|
|
|
+ border-radius:39upx;
|
|
|
+ .text_13 {
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
+ font-size: 30upx;
|
|
|
+ font-weight:bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|