Forráskód Böngészése

首页微信展示优化

xhj 2 éve
szülő
commit
5ba7f61c64
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      pages/index/index.vue

+ 2 - 2
pages/index/index.vue

@@ -49,7 +49,7 @@
 							<image src="../../static/pages/images/dh.png"></image>
 							<view>电话</view>
 						</view>
-						<view class="service-person-phone" v-if="recommendCard.wechat" @click="showCodePop()">
+						<view class="service-person-phone" v-if="recommendCard.wechat||recommendCard.wechatCode" @click="showCodePop()">
 							<image src="../../static/pages/images/wx.png"></image>
 							<view>微信</view>
 						</view>
@@ -282,7 +282,7 @@
 				<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>