litian
2024-12-04 63e49f648d64e62a5c0668a48072c73ed6217290
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!--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="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>
      </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 />
  </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="price">¥{{ item.value }}元</view>
      <view class="couponInfo">
        <text>{{ item.name }}</text>
        <text class="timer">{{
          item.isForAllProduct ? "全场可用" : "仅可购买指定商品"
          }}</text>
        <view class="timer">
          <text>{{ item.start }}</text>
          <text>~</text>
          <text>{{ item.end }}</text>
        </view>
      </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>
  <view class="text">
    <rich-text space="emsp" nodes="{{rules.tourism_content}}" />
  </view>
</view>
<view wx:else class="empyt">
  <t-empty icon="error-circle" description="请扫描正确的二维码" />
</view>