index.wxml 9.9 KB

1
  1. <view class="container"><image class="topImg" src="../static/img/img02.png" mode="widthFix"></image><view class="contentBox"><view class="btoomBg"></view><view class="topBg"><image class="leftIcon" src="../static/img/img06.png" mode="widthFix"></image><image class="topImg" src="../static/img/img08.png" mode="widthFix"></image><view class="tpConent"><view class="tpRight"><view data-event-opts="{{[['tap',[['nextTo',['/pages/activity/index']]]]]}}" class="textBox" bindtap="__e">活动细则</view></view><view class="erweima"><image src="{{erweima}}" mode></image></view><view class="Etitle">识别母婴健康专委会公众号查看中奖详情</view><view class="tpTitle">评选活动</view><view class="endTextBox flex"><view class="leftLine"><view class="roundness"></view></view><view class="textLine">距离活动结束还有</view><view class="rightLine"><view class="roundness"></view></view></view><block wx:if="{{timestamp!=0}}"><view class="down"><u-count-down vue-id="18efaafd-1" separator="zh" font-size="32" separator-color="#666666" separator-size="32" bg-color="#D7272B" color="#FFFFFF" show-border="{{false}}" timestamp="{{timestamp}}" data-event-opts="{{[['^end',[['stopTime']]]]}}" bind:end="__e" bind:__l="__l"></u-count-down></view></block><block wx:else><view class="down" style="color:#D7272B;font-size:32;">活动已结束</view></block><view class="tjContent flex"><view class="tjItem"><view class="topText">{{''+item.pepole+''}}<text class="iconTip">人</text></view><view class="bottomText">参与者</view></view><view class="tjItem"><view class="topText">{{''+item.votes+''}}<text class="iconTip">票</text></view><view class="bottomText">投票数</view></view><view class="tjItem"><view class="topText">{{''+item.count+''}}<text class="iconTip">次</text></view><view class="bottomText">浏览量</view></view></view><view class="input flex"><u-input vue-id="18efaafd-2" type="{{input.type}}" confirm-type="search" placeholder="请输入选手姓名和编号" height="{{input.height}}" value="{{input.value}}" data-event-opts="{{[['^confirm',[['searchProduct']]],['^input',[['__set_model',['$0','value','$event',[]],['input']]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-input><u-icon class="iconT" vue-id="18efaafd-3" color="#999999" name="search" data-event-opts="{{[['^click',[['searchProduct']]]]}}" bind:click="__e" bind:__l="__l"></u-icon></view><view class="tabsBox"><u-tabs vue-id="18efaafd-4" list="{{list}}" active-color="#D7272B" is-scroll="{{false}}" current="{{rank}}" data-event-opts="{{[['^change',[['changeRank']]]]}}" bind:change="__e" bind:__l="__l"></u-tabs></view><block wx:if="{{rank==0}}"><view class="itemList flex"><block wx:for="{{userlist.list}}" wx:for-item="item" wx:for-index="__i0__"><view class="itemData"><view data-event-opts="{{[['tap',[['nextTo',['/pages/activity/userInfo?id='+item.id]]]]]}}" class="itemContentBox" bindtap="__e"><view class="itemImgbox"><view class="iconBox"><view>{{item.sub_id}}</view><view>号</view></view><image class="itemImg" src="{{item.avatar}}" mode="scaleToFill"></image><block wx:if="{{item.type==2}}"><view class="itemAddress clamp">{{item.company}}</view></block></view><view class="itemNameBox flex"><view class="itemName">{{item.name}}</view><view class="itemVote">{{item.vote+"票"}}</view></view></view><view data-event-opts="{{[['tap',[['chargeConfirm',['$0'],[[['userlist.list','',__i0__]]]]]]]}}" class="itemBottom" bindtap="__e">投票</view></view></block></view></block><block wx:if="{{rank==0}}"><u-loadmore vue-id="18efaafd-5" status="{{userlist.loadingType}}" bind:__l="__l"></u-loadmore></block><block wx:if="{{rank==1}}"><view class="phItemList"><block wx:for="{{phlist.list}}" wx:for-item="item" wx:for-index="ind"><view class="phItem flex"><view class="icon"><block wx:if="{{ind==0}}"><image class="tipImg" src="../static/img/rank1.png" mode="widthFix"></image></block><block wx:if="{{ind==1}}"><image class="tipImg" src="../static/img/rank2.png" mode="widthFix"></image></block><block wx:if="{{ind==2}}"><image class="tipImg" src="../static/img/rank3.png" mode="widthFix"></image></block><block wx:if="{{ind>2}}"><view class="tipText">{{ind}}</view></block></view><view class="flex phRightBox"><view class="avatarBox"><image class="avatarImg" src="{{item.avatar}}" mode="scaleToFill"></image></view><view class="phTextBox"><view class="phTtemName">{{item.name}}</view><block wx:if="{{item.type==2}}"><view class="phItemAddress">{{item.company}}</view></block></view><view class="phRight flex"><text class="textVote">{{item.vote}}</text><image class="phTipImg" src="../static/img/level.png" mode="widthFix"></image></view></view></view></block></view></block><block wx:if="{{rank==1}}"><u-loadmore vue-id="18efaafd-6" status="{{phlist.loadingType}}" bind:__l="__l"></u-loadmore></block><block wx:if="{{rank==2}}"><view class="phItemList"><block wx:for="{{mrlist.list}}" wx:for-item="item" wx:for-index="ind"><view class="phItem flex"><view class="icon"><block wx:if="{{ind==0}}"><image class="tipImg" src="../static/img/rank1.png" mode="widthFix"></image></block><block wx:if="{{ind==1}}"><image class="tipImg" src="../static/img/rank2.png" mode="widthFix"></image></block><block wx:if="{{ind==2}}"><image class="tipImg" src="../static/img/rank3.png" mode="widthFix"></image></block><block wx:if="{{ind>2}}"><view class="tipText">{{ind}}</view></block></view><view class="flex phRightBox"><view class="avatarBox"><image class="avatarImg" src="{{item.avatar}}" mode="scaleToFill"></image></view><view class="phTextBox"><view class="phTtemName">{{item.name}}</view><block wx:if="{{item.type==2}}"><view class="phItemAddress">{{item.company}}</view></block></view><view class="phRight flex"><text class="textVote">{{item.vote}}</text><image class="phTipImg" src="../static/img/level.png" mode="widthFix"></image></view></view></view></block></view></block><block wx:if="{{rank==2}}"><u-loadmore vue-id="18efaafd-7" status="{{mrlist.loadingType}}" bind:__l="__l"></u-loadmore></block><block wx:if="{{rank==3}}"><view class="phItemList"><block wx:for="{{mylist.list}}" wx:for-item="item" wx:for-index="ind"><view class="phItem flex"><view class="icon"><block wx:if="{{ind==0}}"><image class="tipImg" src="../static/img/rank1.png" mode="widthFix"></image></block><block wx:if="{{ind==1}}"><image class="tipImg" src="../static/img/rank2.png" mode="widthFix"></image></block><block wx:if="{{ind==2}}"><image class="tipImg" src="../static/img/rank3.png" mode="widthFix"></image></block><block wx:if="{{ind>2}}"><view class="tipText">{{ind}}</view></block></view><view class="flex phRightBox"><view class="avatarBox"><image class="avatarImg" src="{{item.avatar}}" mode="scaleToFill"></image></view><view class="phTextBox"><view class="phTtemName">{{item.name}}</view><block wx:if="{{item.type==2}}"><view class="phItemAddress">{{item.company}}</view></block></view><view class="phRight flex"><text class="textVote">{{item.vote}}</text><image class="phTipImg" src="../static/img/level.png" mode="widthFix"></image></view></view></view></block></view></block><block wx:if="{{rank==3}}"><u-loadmore vue-id="18efaafd-8" status="{{mylist.loadingType}}" bind:__l="__l"></u-loadmore></block></view></view></view><view class="alertAddBox flex"><view class="textAlertBox"><view class="psBox"><image class="psImgIcon" src="../static/img/alertPIcon.png" mode="widthFix"></image><text>{{myVote}}</text></view><view>剩余票数</view></view><view data-event-opts="{{[['tap',[['pushUserData',['$event']]]]]}}" class="addUser" bindtap="__e">我要参与</view></view><u-popup bind:input="__e" vue-id="18efaafd-9" border-radius="20" width="540" mode="center" value="{{showAlert}}" data-event-opts="{{[['^input',[['__set_model',['','showAlert','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="alertBox"><image class="titleImg" src="../static/img/alertbg.png" mode="widthFix"></image><view class="title">参赛类型</view><view class="titleTip">请选择您的参赛身份类型</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="lxTtem flex" bindtap="__e"><view class="leftTitle flex"><image class="leftImgTip" src="../static/img/user.png" mode="heightFix"></image><text>个人参赛</text></view><view class="rightTip flex"><block wx:if="{{csType==0}}"><view class="xzTip"></view></block></view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="lxTtem flex" bindtap="__e"><view class="leftTitle flex"><image class="leftImgTip" src="../static/img/userAll.png" mode="heightFix"></image><text>企业参赛(我有所属企业)</text></view><view class="rightTip flex"><block wx:if="{{csType==1}}"><view class="xzTip"></view></block></view></view><view data-event-opts="{{[['tap',[['pushBm',['$event']]]]]}}" class="pushtyle" bindtap="__e">确认</view></view></u-popup><u-popup bind:input="__e" vue-id="18efaafd-10" border-radius="20" mode="bottom" value="{{showCharge}}" data-event-opts="{{[['^input',[['__set_model',['','showCharge','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="alertChargeBox"><view class="alertCharge flex"><block wx:for="{{voteNumList}}" wx:for-item="ls" wx:for-index="ind"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" data-event-params="{{({ind})}}" class="{{['chargeItem',(ind==moneyIndex)?'actionCharge':'']}}" bindtap="__e"><view class="chargeImgIcon">{{ls.num+"票"}}</view><view class="chargeImgBox"><image class="chargeImg" src="{{'../static/img/chargeIcon'+(ind+1)+'.png'}}" mode="widthFix"></image></view><view class="chargeTextBox flex"><image class="chargeIcon" src="../static/img/moneyIcon.png" mode="scaleToFill"></image><text>{{ls.num}}</text></view></view></block></view><view class="flex chargeButtom"><view class="left flex"><image class="chargeIcon" src="../static/img/moneyIcon.png" mode="scaleToFill"></image><text class="num">{{"¥"+payMoneyNum}}</text><text class="tip">{{"可为选手加"+voteNumList[moneyIndex].num+"票"}}</text></view><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="right" bindtap="__e">赠送</view></view></view></u-popup></view>