闫增涛
2024-12-04 5a8347e8a64bd6b5634f7177ca25c43a6baac7f3
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!--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.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
    />
  </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 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>