From 6608a6839d771d38640988e3ee496ecdd91765a4 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期二, 09 四月 2024 15:12:59 +0800 Subject: [PATCH] 代码合并 --- pages/cart/paymentPage/index.wxml | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/cart/paymentPage/index.wxml b/pages/cart/paymentPage/index.wxml index 99f50af..e4bed5e 100644 --- a/pages/cart/paymentPage/index.wxml +++ b/pages/cart/paymentPage/index.wxml @@ -15,7 +15,8 @@ <view class="shoppingCartList"> <view class="cartList" wx:for="{{productList}}" wx:key="index" wx:for-item="item" wx:for-index="index"> <view class="imageBox"> - <image src="{{item.paymentIcon }}" mode="aspectFill" /> + <image wx:if="{{item.paymentIcon}}" src="{{item.paymentIcon }}" mode="aspectFill" /> + <image wx:else src="/static/images/default-book-img.png" class="imageStyle" mode="aspectFit" /> </view> <view class="cartListContent"> <view class="cartListDetails"> @@ -31,16 +32,26 @@ <view wx:if="{{item.type == 'product'}}" style="width: 386rpx;"> - <view> + <!-- <view> <text class="eBook">鐢靛瓙涔�</text> <text class="boosName">{{item.orderSaleMethod.product.name}}</text> + </view> --> + + <view class="boosName"> + <text class="eBook">鐢靛瓙涔�</text> + <text> {{item.orderSaleMethod.product.name}}</text> </view> + </view> <view wx:if="{{item.type == 'item'}}" style="width: 386rpx;"> - + <!-- <view> <text class="cloudLearning">浜戝涔�</text> <text class="boosName">{{item.orderSaleMethod.product.name}}</text> + </view> --> + <view class="boosName"> + <text class="cloudLearning">浜戝涔�</text> + <text> {{item.orderSaleMethod.product.name}}</text> </view> </view> -- Gitblit v1.9.1