Browse Source

fix(津南水查查):增加手机号下划线显示

zouwenying 4 years ago
parent
commit
07496a618a

+ 13 - 7
shuichacha-for-TJ/pages/customermanage/customermanage.wxml

@@ -7,13 +7,19 @@
     <scroll-view class="customer-list" scroll-y="true" scroll-with-animation="true" lower-threshold="1"
       bindscrolltolower="scrollBottom">
       <view class="item {{item.isDefault ? 'default' : ''}}" wx:for="{{pagesList}}" wx:key="id" data-id="{{item.id}}">
-        <text>户名:{{item.username || '--'}}</text>
-        <text>户号:{{item.userNumber || '--'}}</text>
-        <text>地址:{{item.address || '--'}}</text>
-        <text bindtap="call" data-index="{{item.mobilePhone}}">手机:{{item.mobilePhone || '--'}}</text>
-        <text>紧急联系人:{{item.emergencyContact || '--'}}</text>
-        <text bindtap="call" data-index="{{item.emergencyContactPhoneNumber}}">紧急联系人手机号:{{item.emergencyContactPhoneNumber || '--'}}</text>
-        <text>标签:{{item.label || '--'}}</text>
+        <text>户名:{{item.username || '-'}}</text>
+        <text>户号:{{item.userNumber || '-'}}</text>
+        <text>地址:{{item.address || '-'}}</text>
+        <view bindtap="call" data-index="{{item.mobilePhone}}" style="display:inline-flex">
+          <text>手机:</text>
+          <text class="{{item.mobilePhone?'underline':'nounderline'}}">{{item.mobilePhone || '-'}}</text>
+        </view>
+        <text>紧急联系人:{{item.emergencyContact || '-'}}</text>
+        <view bindtap="call" data-index="{{item.emergencyContactPhoneNumber}}" style="display:inline-flex">
+          <text>紧急联系人手机号:</text>
+          <text class="{{item.emergencyContactPhoneNumber?'underline':'nounderline'}}">{{item.emergencyContactPhoneNumber || '-'}}</text>
+        </view>
+        <text>标签:{{item.label || '-'}}</text>
         <view class="check clearfix" data-item="{{item}}" bindtap="setDefault">
           <image class="fl-left" src="/static/img/{{item.isDefault ? 'icon_selected' : 'icon_unSelect'}}.png"></image>
           <text class="fl-left">设为默认</text>

+ 12 - 1
shuichacha-for-TJ/pages/customermanage/customermanage.wxss

@@ -17,7 +17,7 @@
 }
 
 .customer-list {
-  height: calc(100% - 160rpx);
+  height: 100%;
 }
 
 .customer-list .item {
@@ -79,6 +79,17 @@
   color: #FFF;
 }
 
+.customer-list .item .underline{
+  text-decoration-line: underline;
+} 
+.customer-list .item.default .underline{
+  text-decoration-line: underline;
+}
+
+.customer-list .item .nounderline{
+  text-decoration-line: none;
+}
+
 .customer-list .item .btn-unbind {
   width: 100rpx;
   height: 48rpx;