PointsSource.wxml
1.25 KB
<!--pages/Login/components/PointsSource/PointsSource.wxml-->
<wxs module="fn">
module.exports = {
btnDisabled: function(arr) {
for (var i = 0; i < arr.length; i++) {
if (arr[i].isChecked == true) {
return false
}
}
return true
}
}
</wxs>
<view class="source" catchtouchmove="noScroll" hidden="{{!show}}">
<view class="source-bg"></view>
<view class="source-content isFullSucreen {{close?'close':''}}">
<view class="title">您的积分渠道来源</view>
<view class="source-box">
<view class="source-item" wx:for="{{sourceArr}}" wx:key="index" bindtap="checkSource" data-target="{{item}}" style="color: {{item.color}};background-image: {{item.background}};">
<view>
<view class="source-icon">
<glsx-image src="login/{{item.icon}}.png"></glsx-image>
</view>
<view class="label">{{item.label}}</view>
</view>
<view class="item-check {{item.isChecked}}">
<glsx-image src="login/source-check.png" class="icon"></glsx-image>
</view>
</view>
</view>
<view class="btn {{fn.btnDisabled(sourceArr) ? 'disabled' : ''}}" bindtap="nextStep" data-target="{{fn.btnDisabled(sourceArr)}}">下一步</view>
</view>
</view>