Sanakey
2022-10-28 0e185fa6db8e3f4209e63c079750a26fe3feddaa
提交 | 用户 | age
d98d05 1 <!--pages/qrCodeList/qrCodeList.wxml-->
S 2 <view wx:if="{{isShowRoomList}}">
3   <view class="container" >
4     <van-radio-group value="{{ radio }}">
5       <van-cell-group>
6         <block wx:for="{{roomList}}" wx:key="key">
7           <van-card
8             custom-class="van-card"
9             thumb-mode="aspectFill"
10             desc="主播: {{item.AnchorName}}"
11             desc-class="desc-class"
12             title="{{item.RoomName}}"
13             thumb="{{item.CoverImg}}"
14           >
15             <view slot="price" class="live-time">
16             开播时间: {{item.StartTime}}
17             </view>
18             <view slot="footer">
19               <van-cell 
20               border="{{false}}"
21               custom-class="van-cell"
22               title=" " 
23               clickable 
24               title-class="title-class"
25               data-name="{{item.RoomId}}" 
26               bind:click="radioOnClick"
27               >
28                 <van-radio slot="right-icon" name="{{item.RoomId}}" />
29               </van-cell>
30             </view>
31           </van-card>
32         </block>
33       </van-cell-group>
34     </van-radio-group>
35   </view>
36
37 </view>
38
39 <view wx:else>
40   <view class="container" >
41     <van-radio-group value="{{ radio }}">
42       <van-cell-group>
43         <block wx:for="{{goodsList}}" wx:key="key">
44           <van-card
45             custom-class="van-card"
46             thumb-mode="aspectFill"
47             desc="{{item.MatCode}}"
48             desc-class="desc-class"
49             title="{{item.MatName}}"
50             thumb="{{item.PhotoPath}}"
51           >
52             <!-- <view slot="price" class="">
53             {{item.CurrencySign}}{{item.Price}}
54             </view> -->
55             <view slot="footer">
56               <van-cell 
57               border="{{false}}"
58               custom-class="van-cell"
59               title=" " 
60               clickable 
61               title-class="title-class"
62               data-name="{{item.MatCode}}" 
63               bind:click="radioOnClick"
64               >
65                 <van-radio slot="right-icon" name="{{item.MatCode}}" />
66               </van-cell>
67             </view>
68           </van-card>
69         </block>
70       </van-cell-group>
71     </van-radio-group>
72   </view>
73
74 </view>
75
76
77 <view class="footer-btn">
78       <van-button 
79       type="default"
80       bind:click="cancle"
81       custom-class="btn"
82     >
83     取消
84     </van-button>
85       <van-button 
86       type="info"
87       disabled="{{!radio}}" 
88       bind:click="enter"
89       custom-class="btn"
90     >
91     确定({{!radio?0:1}})
92     </van-button>
93   </view>
94