From 5a8347e8a64bd6b5634f7177ca25c43a6baac7f3 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 04 十二月 2024 14:26:38 +0800
Subject: [PATCH] 商品扫码激活

---
 pages/scanResult/index.wxml |   55 ++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 42 insertions(+), 13 deletions(-)

diff --git a/pages/scanResult/index.wxml b/pages/scanResult/index.wxml
index 5073613..ffc3785 100644
--- a/pages/scanResult/index.wxml
+++ b/pages/scanResult/index.wxml
@@ -1,30 +1,54 @@
 <!--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.tourism_ISBN}}" class="publicCss">ISBN锛歿{ item.tourism_ISBN }}</text>
-        <text wx:if="{{item.tourism_author}}" class="publicCss">浣滆�咃細{{ item.tourism_author }}</text>
-        <text wx:if="{{item.price}}" class="publicCss">浠锋牸锛�<text style="color:red">锟{ item.price }}</text></text>
+        <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>
@@ -33,8 +57,13 @@
       </view>
     </view>
   </view>
-  <view class="button-example" wx:if="{{productInfo.length > 0 || couponList.length > 0}}">
-    <t-button theme="danger" 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}}" />
@@ -42,4 +71,4 @@
 </view>
 <view wx:else class="empyt">
   <t-empty icon="error-circle" description="璇锋壂鎻忔纭殑浜岀淮鐮�" />
-</view>
\ No newline at end of file
+</view>

--
Gitblit v1.9.1