12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <template name="row">
- <view class="row-bg">
- <view class="row-num-text">{{rank}}</view>
- <image class="row-avatar" src="{{headImg}}"></image>
- <view class="row-name-bg">
- <view class="row-name">{{nickName}}</view>
- <view class="row-count">{{pointC}}分</view>
- </view>
- <view class="row-bonus">{{tools.awardFee(awardFee)}}元</view>
- <image class="row-num-img" src="{{image}}" mode="aspectFit"></image>
- </view>
- <view class="list-header-line"></view>
- </template>
- <scroll-view scroll-y>
- <view class="head-bg"></view>
- <view class="self-bg ">
- <image class="self-avatar" src="{{avatar}}"></image>
- <view class="self-title">{{tips}}</view>
- <view class="self-bonus-bg" hidden="{{status != 0}}">
- <view class="self-bonus">
- <view class="self-bonus-small">奖金</view>
- <view class="self-bonus-big">{{bonus}}</view>
- <view class="self-bonus-small">元</view>
- </view>
- </view>
- <view class="self-bonus-tips" hidden="{{status != 0}}">此奖励由 {{tools.desc(desc)}} 赞助</view>
- <view class="self-get-tips" hidden="{{status != 1}}">抢奖励指南:答得越快、答对越多,奖金越多</view>
- </view>
- <view class="list-header">
- <view class="list-header-title">共{{numOfPeople}}人参与,领取现金奖励{{getNumber}}/{{awardUser}}个</view>
- <view class="list-header-line"></view>
- </view>
- <template is="row" wx:for="{{list}}" wx:for-index="i" wx:key=" " data="{{...list[i]}}" />
- <view class="list-header-line" style="margin-left: 0px;background-color: white;"></view>
- <view class="list-tips-view" hidden="{{listTipsView}}">支付通道会收取1%的服务费,不足1分按1分收取</view>
- <view class="list-bottom-view"></view>
-
- <view class="bottom-view">
- <view class="bottom-button-left-view" bindtap="{{bottom.action}}">{{bottom.button}}</view>
- <view class="bottom-button-right-view">邀好友一起来玩
- <button class="bottom-button-right" open-type="share" hover-class="none" plain="true" style="border-color: rgba(0, 0, 0, 0)"></button>
- </view>
- </view>
- </scroll-view>
- <wxs module="tools">
- var awardFee = function(a) {
- return (a / 100)toFixed(2)
- }
- var desc = function(desc) {
- if (desc.length > 12) {
- return desc.substring(0, 12)
- }
- return desc
- }
- module.exports.awardFee = awardFee
- module.exports.desc = desc
- </wxs>
|