mine.wxml 3.7 KB
<view class="container"><view class="minetop flexone"><view class="minetopleft"><block wx:if="{{userinfo==''}}"><image src="../../static/zhuboimg.png" mode></image></block><block wx:else><image src="{{userinfo.avatar}}" mode></image></block></view><block wx:if="{{userinfo==''}}"><button class="minename" open-type="getUserInfo" data-event-opts="{{[['getuserinfo',[['wxGetUserInfo',['$event']]]]]}}" bindgetuserinfo="__e">请先登录</button></block><block wx:else><view class="minename">{{userinfo.nickname}}</view></block></view><view class="tixinglist flextwo"><view data-event-opts="{{[['tap',[['tabclick',[1]]]]]}}" class="tixinglistitem" bindtap="__e"><image class="kaiimg" src="../../static/kaishou.png" mode></image><view class="kainame">即将开售</view></view><view data-event-opts="{{[['tap',[['tabclick',[2]]]]]}}" class="tixinglistitem" bindtap="__e"><image class="kaiimg" src="../../static/jitixing.png" mode></image><view class="kainame">累计提醒</view></view><view data-event-opts="{{[['tap',[['tabclick',[3]]]]]}}" class="tixinglistitem" bindtap="__e"><image class="kaiimg" src="../../static/guanzhu.png" mode></image><view class="kainame">关注主播</view></view><view data-event-opts="{{[['tap',[['tabclick',[4]]]]]}}" class="tixinglistitem" bindtap="__e"><image class="kaiimg" src="../../static/xinyuandan.png" mode></image><view class="kainame">心愿商品</view></view></view><block wx:if="{{listshilist.length==0}}"><view class="nodata">暂无数据</view></block><block wx:else><view><block wx:if="{{showclick==1}}"><view class="kaishoulist"><view class="want flextwo"><view class="wantleft flexone"><image class="likeimg" src="../../static/jikaishou.png" mode></image>即将开售</view></view><goodlistone vue-id="bae1c640-1" listshilist="{{listshilist}}" mine="{{1}}" data-event-opts="{{[['^litixing',[['litixing']]]]}}" bind:litixing="__e" bind:__l="__l"></goodlistone></view></block><block wx:if="{{showclick==2}}"><view class="kaishoulist"><view class="want flextwo"><view class="wantleft flexone"><image class="likeimg" src="../../static/jikaishou.png" mode></image>累计提醒</view></view><leiji vue-id="bae1c640-2" listshilist="{{listshilist}}" data-event-opts="{{[['^tixing',[['tixing']]]]}}" bind:tixing="__e" bind:__l="__l"></leiji></view></block><block wx:if="{{showclick==3}}"><view class="leiji"><view class="want flextwo"><view class="wantleft flexone"><image class="likeimg" src="../../static/guaznhuzhu.png" mode></image>关注主播</view></view><block wx:for="{{listshilist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="leijiitem flextwo"><view class="leijiitemleft flexone"><image class="leijiimg" src="{{item.avatar}}" mode></image><view class="lejibox"><view class="lejiname">{{item.name}}</view><block wx:if="{{item.anchor_time!=null}}"><view class="lejiatten">{{item.anchor_time.title}}</view></block></view></view><view data-event-opts="{{[['tap',[['cancelzhu',[index,'$0'],[[['listshilist','',index,'id']]]]]]]}}" class="canceldingyuebtn" bindtap="__e">取消订阅</view></view></block></view></block><block wx:if="{{showclick==4}}"><view class="leiji"><view class="want flextwo"><view class="wantleft flexone"><image class="likeimg" src="../../static/xinyuangood.png" mode></image>心愿品类</view></view><block wx:for="{{listshilist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="leijiitem flextwo"><view class="leijiitemleft flexone"><image class="leijiimg" src="{{item.image}}" mode></image><view class="lejibox"><view class="lejiname">{{item.name}}</view></view></view><view data-event-opts="{{[['tap',[['cancelxin',[index,'$0'],[[['listshilist','',index,'id']]]]]]]}}" class="canceldingyuebtn" bindtap="__e">取消订阅</view></view></block></view></block></view></block></view>