From b55024ee2f42aa93e0ecaa3113bdeb286f6e59ac Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期二, 29 七月 2025 18:01:55 +0800 Subject: [PATCH] 优化按钮显示,教学互动 --- pages/scanResult/index.wxml | 50 ++++++++++---------------------------------------- 1 files changed, 10 insertions(+), 40 deletions(-) diff --git a/pages/scanResult/index.wxml b/pages/scanResult/index.wxml index b46c695..6766c68 100644 --- a/pages/scanResult/index.wxml +++ b/pages/scanResult/index.wxml @@ -1,54 +1,29 @@ <!--pages/index/scanResult/index.wxml--> <view class="content" wx:if="{{!isOther}}"> <view class="productWall" wx:if="{{productInfo.length > 0}}"> - <view - class="product" - wx:for="{{productInfo}}" - wx:for-item="item" - wx:for-index="index" - wx:key="index" - > + <view class="product" wx:for="{{productInfo}}" wx:for-item="item" wx:for-index="index" wx:key="index"> <view class="productImg"> <image class="icon" src="{{item.icon}}" mode="aspectFit" /> </view> <view class="productInfo"> <text wx:if="{{item.name}}" class="publicCss">{{ item.name }}</text> - <text wx:if="{{item.price}}" class="publicCss" + <!-- <text wx:if="{{item.price}}" class="publicCss" >浠锋牸锛�<text style="color: red">锟{ item.price }}</text></text - > + > --> <text class="type-box">{{item.itemType}}</text> </view> </view> </view> <view class="selectCard" wx:if="{{activeCodeAndStoreChannelLinks.length>0}}"> - <t-cell - title="{{description?description:'閫夋嫨婵�娲诲晢鍝�'}}" - bordered="{{false}}" - bindtap="selectPage" - description="{{activeInfo && activeInfo.productIds.length>0?'宸查�夋嫨'+ activeInfo.productIds.length +'浠跺晢鍝�':''}}" - data-info="{{activeCodeAndStoreChannelLinks}}" - arrow - /> + <t-cell title="{{description?description:'閫夋嫨婵�娲诲晢鍝�'}}" bordered="{{false}}" bindtap="selectPage" description="{{activeInfo && activeInfo.productIds.length>0?'宸查�夋嫨'+ activeInfo.productIds.length +'浠跺晢鍝�':''}}" data-info="{{activeCodeAndStoreChannelLinks}}" arrow /> </view> <view class="couponWall" wx:if="{{couponList.length > 0}}"> - <view - class="coupon" - wx:for="{{couponList}}" - wx:for-item="item" - wx:for-index="index" - wx:key="index" - > - <image - class="couponIcon" - src="/static/images/web/coupon.png" - mode="aspectFit" - /> + <view class="coupon" wx:for="{{couponList}}" wx:for-item="item" wx:for-index="index" wx:key="index"> + <image class="couponIcon" src="/static/images/web/coupon.png" mode="aspectFit" /> <view class="price">锟{ item.value }}鍏�</view> <view class="couponInfo"> <text>{{ item.name }}</text> - <text class="timer" - >{{ item.isForAllProduct ? "鍏ㄥ満鍙敤" : "浠呭彲璐拱鎸囧畾鍟嗗搧" }}</text - > + <text class="timer">{{ item.isForAllProduct ? "鍏ㄥ満鍙敤" : "浠呭彲璐拱鎸囧畾鍟嗗搧" }}</text> <view class="timer"> <text>{{ item.start }}</text> <text>~</text> @@ -57,13 +32,8 @@ </view> </view> </view> - <view - class="button-example" - wx:if="{{productInfo.length > 0 || couponList.length > 0}}" - > - <t-button bindtap="useActiveCode" size="large" block - >{{textValue}}</t-button - > + <view class="button-example" wx:if="{{productInfo.length > 0 || couponList.length > 0}}"> + <t-button bindtap="useActiveCode" size="large" block>{{textValue}}</t-button> </view> <view class="text"> <rich-text space="emsp" nodes="{{rules.tourism_content}}" /> @@ -75,4 +45,4 @@ </view> <view wx:else class="empyt"> <t-empty icon="error-circle" description="璇锋壂鎻忔纭殑浜岀淮鐮�" /> -</view> +</view> \ No newline at end of file -- Gitblit v1.9.1