1 line
4.5 KiB
Plaintext
1 line
4.5 KiB
Plaintext
<view style="width:100%;"><block wx:if="{{needAuth}}"><block><view data-event-opts="{{[['tap',[['toShowAuth',['$event']]]]]}}" bindtap="__e"><slot></slot></view></block></block><block wx:else><block><view data-event-opts="{{[['tap',[['go',[1]]]]]}}" bindtap="__e"><slot></slot></view></block></block><uni-popup class="vue-ref" vue-id="3b7d33fa-1" data-ref="show_auth_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="auth-box fill-base flex-column flex-center radius-26"><block wx:if="{{pType==='userInfo'}}"><block><view class="auth-top fill-base flex-column flex-center" style="{{'background-color:'+(primaryColor)+';'}}"><view class="flex-center pd-lg"><view class="auth-info" style="overflow:hidden;"><button class="auth-info" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar" src="{{avatarUrl||'/static/mine/default_user.png'}}"></image></button></view></view><view class="f-paragraph c-base">选择头像</view></view><view class="auth-w mt-lg mb-lg"><view class="auth-input"><view style="width:110rpx;">昵称:</view><view><input type="nickname" placeholder="请输入昵称" data-event-opts="{{[['blur',[['onBlur',['$event']]]]]}}" bindblur="__e"/></view></view></view></block></block><block wx:if="{{pType=='phone'}}"><block><image class="auth-img" src="/static/mine/auth.png"></image></block></block><view class="space-sm"></view><view class="f-caption" style="{{'color:'+(primaryColor)+';'}}">{{contentList[pType][0]}}</view><view class="space-lg"></view><view class="space-lg"></view><block wx:if="{{pType==='userInfo'}}"><block><button class="clear-btn flex-center auth-btn" style="{{'background-color:'+(primaryColor)+';'+('color:'+('white')+';')}}" hover-class="btn-hover" data-event-opts="{{[['tap',[['authUserProfile',['$event']]]]]}}" catchtap="__e">{{btn_text||contentList[pType][1]}}</button></block></block><block wx:if="{{pType==='phone'}}"><block><button class="clear-btn flex-center auth-btn" style="{{'background-color:'+(primaryColor)+';'+('color:'+('white')+';')}}" open-type="getPhoneNumber" hover-class="btn-hover" data-event-opts="{{[['getphonenumber',[['authPhone',['$event']]]]]}}" bindgetphonenumber="__e">{{''+(btn_text||contentList[pType][1])+''}}</button></block></block><block wx:if="{{pType==='setting'}}"><block><button class="clear-btn flex-center auth-btn" style="{{'background-color:'+(primaryColor)+';'+('color:'+('white')+';')}}" open-type="openSetting" hover-class="btn-hover" data-event-opts="{{[['opensetting',[['openSetting',['$event']]]]]}}" bindopensetting="__e">{{''+(btn_text||contentList[pType][1])+''}}</button></block></block><block wx:if="{{!must}}"><view data-event-opts="{{[['tap',[['go',[pType=='phone'&&!userInfo.phone?2:1]]]]]}}" class="f-caption c-caption mt-md" bindtap="__e">{{pType=='userInfo'?'暂不授权':'暂不登录'}}</view></block><view class="space-md"></view></view></uni-popup><uni-popup class="vue-ref" vue-id="3b7d33fa-2" maskClick="{{false}}" data-ref="show_phone_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="common-popup-content popup-phone pd-lg flex-center flex-column fill-base"><view class="f-md-title c-black">请输入手机号</view><view class="space-lg pb-lg"></view><view class="space-lg pb-lg"></view><view class="flex-center mb-lg"><view class="input-info sm mr-md radius-16"><input class="item-input flex-y-center pl-lg pr-lg f-sm-title c-title" type="number" placeholder-class="c-placeholder" placeholder="{{rule[0].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['subForm']]]]]}}" value="{{subForm.phone}}" bindinput="__e"/></view><view data-event-opts="{{[['tap',[['toSend',['$event']]]]]}}" class="send-btn flex-center c-base radius-16" style="{{'background:'+(primaryColor)+';'}}" bindtap="__e">{{''+(authTime>0?'('+authTime+'s)':'发送')+''}}</view></view><view class="input-info radius-16"><input class="item-input flex-y-center pl-lg pr-lg f-sm-title c-title" type="number" maxlength="6" placeholder-class="c-placeholder" placeholder="{{rule[1].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','short_code','$event',[]],['subForm']]]]]}}" value="{{subForm.short_code}}" bindinput="__e"/></view><view class="button"><view data-event-opts="{{[['tap',[['go',[3]]]]]}}" class="item-child" catchtap="__e">取消</view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="item-child" style="{{'background:'+(primaryColor)+';'+('color:'+('#fff')+';')}}" catchtap="__e">确定</view></view></view></uni-popup></view> |