Browse Source

收货人信息

zhaoxiaohai 2 years ago
parent
commit
3df386c50a

+ 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>