Quellcode durchsuchen

产品微信咨询

xhj vor 2 Jahren
Ursprung
Commit
e6a0cd95ae
1 geänderte Dateien mit 13 neuen und 6 gelöschten Zeilen
  1. 13 6
      product/detail/detail.vue

+ 13 - 6
product/detail/detail.vue

@@ -65,7 +65,7 @@
 		<view class="placeholder-view" :style="'height:' + (bottomBlankHeight + 140) + 'rpx'"></view>
 		<view class="bot fixed bgfff dflex">
 			<view class="fflex ddflex">
-				<view class="botbtn fflex" style="border-right: 1px solid #fff;" v-if="recommendCard.wechat"
+				<view class="botbtn fflex" style="border-right: 1px solid #fff;" v-if="recommendCard.wechat||recommendCard.wechatCode||recommendCard.wechatCompanyCode"
 					@click="showCodePop()">
 					加微咨询
 				</view>
@@ -98,16 +98,23 @@
 		<view class="ceng2" v-if="isShowCodePop" @click="isShowCodePop = false" @touchmove.stop.prevent="moveHandle">
 		</view>
 		<view :class="'code-pop ' +(about.greyTheme==1?'grayTheme':'')" v-if="isShowCodePop">
-			<view class="code-content" v-if="recommendCard.wechatCode">
-				<image :src="recommendCard.wechatCode?recommendCard.wechatCode:'/static/images/wxCode.jpg'"
-					show-menu-by-longpress="true"></image>
-				<view style="text-align: center;font-size: 24rpx;color: #999;margin-bottom: 50rpx;">长按识别微信二维码</view>
+			<view v-if="recommendCard.wechatCode||recommendCard.wechatCompanyCode" class="ddflex" style="justify-content: center;">
+				<view class="code-content" v-if="recommendCard.wechatCode">
+					<image :src="recommendCard.wechatCode?recommendCard.wechatCode:'/static/images/wxCode.jpg'" :style="recommendCard.wechatCompanyCode?'width: 200rpx;height: 200rpx;':''"
+						show-menu-by-longpress="true"></image>
+					<view style="text-align: center;font-size: 24rpx;color: #999;margin-bottom: 50rpx;">长按识别微信二维码</view>
+				</view>
+				<view class="code-content" v-if="recommendCard.wechatCompanyCode" :style="recommendCard.wechatCode?'margin-left:30rpx':''">
+					<image :src="recommendCard.wechatCompanyCode?recommendCard.wechatCompanyCode:'/static/images/wxCode.jpg'" :style="recommendCard.wechatCode?'width: 200rpx;height: 200rpx;':''"
+						show-menu-by-longpress="true"></image>
+					<view style="text-align: center;font-size: 24rpx;color: #999;margin-bottom: 50rpx;">长按识别企微二维码</view>
+				</view>
 			</view>
 			<view class="code-text" v-else>
 				<view>微信号</view>
 				<view>{{recommendCard.wechat}}</view>
 			</view>
-			<view class="code-btn" @click="copy(recommendCard.wechat)">
+			<view class="code-btn" @click="copy(recommendCard.wechat)" v-if="recommendCard.wechat">
 				复制微信号
 			</view>
 		</view>