Commit 2d93f5ee03aceedcb9df448817b041c3ba1b112d

Authored by wangfan
1 parent f4aac0f5

seller

@@ -87,7 +87,10 @@ Page({ @@ -87,7 +87,10 @@ Page({
87 return detail; 87 return detail;
88 }, 88 },
89 showManager(){ 89 showManager(){
90 - this.selectComponent('#manager').show(); 90 + if(this.data.detail.cusman_phone || this.data.detail.cusman_account){
  91 + this.selectComponent('#manager').show();
  92 + }
  93 +
91 }, 94 },
92 lookLocation:function(){ 95 lookLocation:function(){
93 wx.openLocation({ 96 wx.openLocation({
@@ -17,9 +17,9 @@ @@ -17,9 +17,9 @@
17 </view> 17 </view>
18 </view> 18 </view>
19 <view class="tableInfo">{{detail.tableFirst}} <text class="tableSubInfo"> {{detail.tableSubInfo}}</text></view> 19 <view class="tableInfo">{{detail.tableFirst}} <text class="tableSubInfo"> {{detail.tableSubInfo}}</text></view>
20 - <view class="flex-lr showManager" bindtap="showManager"> 20 + <view class="flex-lr showManager" bindtap="showManager" wx:if="{{detail.cusman}}">
21 <view class="">容客户经理-{{detail.cusman}}</view> 21 <view class="">容客户经理-{{detail.cusman}}</view>
22 - <view style="text-decoration: underline">联系客户经理</view> 22 + <view style="text-decoration: underline" wx:if="{{detail.cusman_phone || detail.cusman_account}}">联系客户经理</view>
23 </view> 23 </view>
24 </view> 24 </view>
25 </view> 25 </view>
@@ -42,9 +42,10 @@ @@ -42,9 +42,10 @@
42 <view>客户经理</view> 42 <view>客户经理</view>
43 <view class="detail-info-right">{{detail.cusman||''}}</view> 43 <view class="detail-info-right">{{detail.cusman||''}}</view>
44 </view> 44 </view>
45 - <view class="flex-lr" wx:if="{{detail.cusman}}" style="margin-top: 24rpx;"> 45 + <view class="flex-lr" wx:if="{{detail.cusman_phone || detail.cusman_account}}" style="margin-top: 24rpx;">
46 <view></view> 46 <view></view>
47 - <view class="detail-info-right" style="text-decoration: underline" bindtap="showManager">联系客户经理</view> 47 + <view class="detail-info-right" style="text-decoration: underline"
  48 + bindtap="showManager">联系客户经理</view>
48 </view> 49 </view>
49 </view> 50 </view>
50 <view class="hr" style="margin-top: 56rpx;margin-bottom: 50rpx;"></view> 51 <view class="hr" style="margin-top: 56rpx;margin-bottom: 50rpx;"></view>