Sanakey
2022-10-28 0e185fa6db8e3f4209e63c079750a26fe3feddaa
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!--pages/qrCodeList/qrCodeList.wxml-->
<view wx:if="{{isShowRoomList}}">
  <view class="container" >
    <van-radio-group value="{{ radio }}">
      <van-cell-group>
        <block wx:for="{{roomList}}" wx:key="key">
          <van-card
            custom-class="van-card"
            thumb-mode="aspectFill"
            desc="主播: {{item.AnchorName}}"
            desc-class="desc-class"
            title="{{item.RoomName}}"
            thumb="{{item.CoverImg}}"
          >
            <view slot="price" class="live-time">
            开播时间: {{item.StartTime}}
            </view>
            <view slot="footer">
              <van-cell 
              border="{{false}}"
              custom-class="van-cell"
              title=" " 
              clickable 
              title-class="title-class"
              data-name="{{item.RoomId}}" 
              bind:click="radioOnClick"
              >
                <van-radio slot="right-icon" name="{{item.RoomId}}" />
              </van-cell>
            </view>
          </van-card>
        </block>
      </van-cell-group>
    </van-radio-group>
  </view>
 
</view>
 
<view wx:else>
  <view class="container" >
    <van-radio-group value="{{ radio }}">
      <van-cell-group>
        <block wx:for="{{goodsList}}" wx:key="key">
          <van-card
            custom-class="van-card"
            thumb-mode="aspectFill"
            desc="{{item.MatCode}}"
            desc-class="desc-class"
            title="{{item.MatName}}"
            thumb="{{item.PhotoPath}}"
          >
            <!-- <view slot="price" class="">
            {{item.CurrencySign}}{{item.Price}}
            </view> -->
            <view slot="footer">
              <van-cell 
              border="{{false}}"
              custom-class="van-cell"
              title=" " 
              clickable 
              title-class="title-class"
              data-name="{{item.MatCode}}" 
              bind:click="radioOnClick"
              >
                <van-radio slot="right-icon" name="{{item.MatCode}}" />
              </van-cell>
            </view>
          </van-card>
        </block>
      </van-cell-group>
    </van-radio-group>
  </view>
 
</view>
 
 
<view class="footer-btn">
      <van-button 
      type="default"
      bind:click="cancle"
      custom-class="btn"
    >
    取消
    </van-button>
      <van-button 
      type="info"
      disabled="{{!radio}}" 
      bind:click="enter"
      custom-class="btn"
    >
    确定({{!radio?0:1}})
    </van-button>
  </view>