index.wxml 4.6 KB

1
  1. <view class="gradeActive"><view class="headerBg"></view><view class="header" style="{{'background-image:'+('url('+imgHost+'/statics/images/grade-active.png'+')')+';'}}"><view class="title">激活会员卡</view><view>新用户免费激活会员卡</view></view><view class="conter"><view class="headerT acea-row row-center-wrapper"><view class="pictrue"><image src="../static/left.png"></image></view><view class="name">{{$root.g0?'填写以下信息':'我的成长特权'}}</view><view class="pictrue on"><image src="../static/left.png"></image></view></view><block wx:if="{{!$root.g1}}"><view class="list acea-row row-between-wrapper"><view class="itemNo"><view class="pictrue"><image src="{{imgHost+'/statics/images/userVip1.png'}}"></image></view><view>购物折扣</view></view><view class="itemNo"><view class="pictrue"><image src="{{imgHost+'/statics/images/userVip2.png'}}"></image></view><view>专属徽章</view></view><view class="itemNo"><view class="pictrue"><image src="{{imgHost+'/statics/images/userVip3.png'}}"></image></view><view>经验累积</view></view><view class="itemNo"><view class="pictrue"><image src="{{imgHost+'/statics/images/userVip4.png'}}"></image></view><view>尊享客服</view></view><image class="vipBg" src="../static/vipBg.png"></image></view></block><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item"><view class="name"><block wx:if="{{item.required==1}}"><text class="asterisk">*</text></block><text>{{item.info}}</text></view><block wx:if="{{item.format=='text'}}"><view class="input"><input type="text" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['list','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e"/></view></block><block wx:if="{{item.format=='num'}}"><view class="input"><input type="number" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['list','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e"/></view></block><block wx:if="{{item.format=='mail'}}"><view class="input"><input type="text" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['list','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e"/></view></block><block wx:if="{{item.format=='date'}}"><view class="input"><picker mode="date" value="{{item.value}}" data-event-opts="{{[['change',[['bindDateChange',['$event',index]]]]]}}" bindchange="__e"><view class="acea-row row-between-wrapper"><block wx:if="{{item.value==''}}"><view>{{item.tip}}</view></block><block wx:else><view>{{item.value}}</view></block><text class="iconfont icon-jiantou"></text></view></picker></view></block><block wx:if="{{item.format=='id'}}"><view class="input"><input type="idcard" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['list','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e"/></view></block><block wx:if="{{item.format=='phone'}}"><view class="input"><input type="tel" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['list','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e"/></view></block><block wx:if="{{item.format=='radio'}}"><view class="input"><radio-group data-event-opts="{{[['change',[['radioChange',['$event',index]]]]]}}" bindchange="__e"><label class="label"><radio value="0" checked="{{item.value==0}}"></radio>{{item.singlearr[0]+''}}</label><label><radio value="1" checked="{{item.value==1}}"></radio>{{item.singlearr[1]+''}}</label></radio-group></view></block><block wx:if="{{item.format=='address'}}"><view data-event-opts="{{[['tap',[['addressList',['$event']]]]]}}" class="input" bindtap="__e"><picker mode="multiSelector" value="{{valueRegion}}" range="{{multiArray}}" data-event-opts="{{[['change',[['bindRegionChange',['$event',index]]]],['columnchange',[['bindMultiPickerColumnChange',['$event']]]]]}}" bindchange="__e" bindcolumnchange="__e"><view class="acea-row row-between-wrapper"><view class="picker">{{region[0]+","+region[1]+","+region[2]}}</view><text class="iconfont icon-jiantou"></text></view></picker></view></block></view></block></view><view data-event-opts="{{[['tap',[['activate',['$event']]]]]}}" class="bnt" bindtap="__e">确认激活</view><block wx:if="{{isComerGift}}"><ewcomer-pop vue-id="58b9787f-1" fromActive="{{1}}" comerGift="{{comerGift}}" data-event-opts="{{[['^comerPop',[['comerPop']]]]}}" bind:comerPop="__e" bind:__l="__l"></ewcomer-pop></block></view>