zhaoxiaohai преди 2 години
родител
ревизия
3df386c50a
променени са 2 файла, в които са добавени 14 реда и са изтрити 2 реда
  1. 7 0
      packageA/orderForm/modules/list/index.scss
  2. 7 2
      packageA/orderForm/modules/list/index.wxml

+ 7 - 0
packageA/orderForm/modules/list/index.scss

@@ -72,4 +72,11 @@
         font-size: 24rpx;
         color: #666666;
     }
+}
+
+/* 文本行数限制 */
+.line-1 {
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
 }

+ 7 - 2
packageA/orderForm/modules/list/index.wxml

@@ -27,8 +27,13 @@
         </view>
     </view>
 
-    <view class="bottom">
-        收货人信息
+    <view wx:if="{{item.contacts.length}}" class="bottom line-1">
+        <text style="margin-right: 10rpx;">{{item.contacts[0].name}}</text>
+        <text style="margin-right: 10rpx;">{{item.contacts[0].phonenumber}}</text>
+        <text style="margin-right: 10rpx;">{{item.contacts[0].address}}</text>
+    </view>
+    <view wx:else class="bottom">
+        暂无收货人
     </view>
 </navigator>