Files
mp-weixin-2811-xcx.aigc-qui…/components/diy-components/diy-member-info.wxml

1 line
7.0 KiB
Plaintext

<view class="container data-v-64cdb5da" style="{{(warpCss)}}"><view class="{{['common-wrap','info-wrap','data-v-64cdb5da','data-style-'+value.style]}}"><view class="member-info data-v-64cdb5da" style="{{(memberInfoStyle)}}"><block wx:if="{{memberInfo}}"><view class="info-wrap data-v-64cdb5da" style="{{(infoStyle)}}"><view data-event-opts="{{[['tap',[['getWxAuth',['$event']]]]]}}" class="headimg data-v-64cdb5da" bindtap="__e"><image src="{{memberInfo.headimg?$root.g0:$root.g1.head}}" mode="widthFix" data-event-opts="{{[['error',[['e0',['$event']]]]]}}" binderror="__e" class="data-v-64cdb5da"></image></view><view class="info data-v-64cdb5da"><block wx:if="{{$root.g2}}"><block class="data-v-64cdb5da"><view class="nickname data-v-64cdb5da"><text data-event-opts="{{[['tap',[['getWxAuth',['$event']]]]]}}" class="name data-v-64cdb5da" bindtap="__e">点击授权头像昵称</text></view></block></block><block wx:else><view class="nickname data-v-64cdb5da"><text data-event-opts="{{[['tap',[['getWxAuth',['$event']]]]]}}" class="name data-v-64cdb5da" bindtap="__e">{{memberInfo.nickname}}</text><block wx:if="{{(value.style==1||value.style==2)&&memberInfo.member_level}}"><view class="member-level data-v-64cdb5da"><text class="level-name data-v-64cdb5da">{{memberInfo.member_level_name}}</text></view></block></view></block><block wx:if="{{value.style==3&&memberInfo.member_level}}"><view class="member-level data-v-64cdb5da"><view class="level-name data-v-64cdb5da">{{memberInfo.member_level_name}}</view></view></block><block wx:if="{{value.style==4&&memberInfo.member_level}}"><view class="member-level data-v-64cdb5da"><image class="level-icon data-v-64cdb5da" src="{{$root.g3}}" mode="widthFix"></image><text class="level-name data-v-64cdb5da">{{memberInfo.member_level_name}}</text></view></block></view><block wx:if="{{ischina==1}}"><view data-event-opts="{{[['tap',[['modifyInfo']]]]}}" style="background:#fff;height:60rpx;width:60rpx;border-radius:50rpx;line-height:65rpx;text-align:center;color:#000;" catchtap="__e" class="data-v-64cdb5da">{{langIndex==0?'CN':'EN'}}</view></block></view></block><block wx:else><view data-event-opts="{{[['tap',[['redirect',['/pages/member/index']]]]]}}" class="info-wrap data-v-64cdb5da" style="{{(infoStyle)}}" bindtap="__e"><view class="headimg data-v-64cdb5da"><image src="{{$root.g4.head}}" mode="widthFix" class="data-v-64cdb5da"></image></view><view class="info data-v-64cdb5da"><view class="nickname data-v-64cdb5da"><text class="name data-v-64cdb5da">{{$root.m0}}</text></view><view class="desc data-v-64cdb5da">{{$root.m1}}</view></view><block wx:if="{{ischina==1}}"><view data-event-opts="{{[['tap',[['modifyInfo']]]]}}" style="background:#fff;height:60rpx;width:60rpx;border-radius:50rpx;line-height:65rpx;text-align:center;color:#000;" catchtap="__e" class="data-v-64cdb5da">{{langIndex==0?'CN':'EN'}}</view></block></view></block><view hidden="{{!(value.style==1)}}" class="account-info data-v-64cdb5da" style="{{'margin-left:'+($root.m2*2+'rpx')+';'+('margin-right:'+($root.m3*2+'rpx')+';')}}"><view data-event-opts="{{[['tap',[['redirect',['/pages_tool/member/balance']]]]]}}" class="account-item data-v-64cdb5da" bindtap="__e"><view class="value price-font data-v-64cdb5da">{{''+(memberInfo?$root.g5:'--')+''}}</view><view class="title data-v-64cdb5da">{{$root.m4}}</view></view><view class="solid data-v-64cdb5da"></view><view data-event-opts="{{[['tap',[['redirect',['/pages_tool/member/point_detail']]]]]}}" class="account-item data-v-64cdb5da" bindtap="__e"><view class="value price-font data-v-64cdb5da">{{memberInfo?$root.m5:'--'}}</view><view class="title data-v-64cdb5da">{{$root.m6}}</view></view><view class="solid data-v-64cdb5da"></view><view data-event-opts="{{[['tap',[['redirect',['/pages_tool/member/coupon']]]]]}}" class="account-item data-v-64cdb5da" bindtap="__e"><view class="value price-font data-v-64cdb5da">{{''+(memberInfo&&memberInfo.coupon_num!=undefined?memberInfo.coupon_num:'--')+''}}</view><view class="title data-v-64cdb5da">{{$root.m7}}</view></view></view></view><view hidden="{{!(value.style==2)}}" class="account-info data-v-64cdb5da" style="{{'margin-left:'+($root.m8*2+'rpx')+';'+('margin-right:'+($root.m9*2+'rpx')+';')}}"><view data-event-opts="{{[['tap',[['redirect',['/pages_tool/member/balance']]]]]}}" class="account-item data-v-64cdb5da" bindtap="__e"><view class="value price-font data-v-64cdb5da">{{memberInfo?$root.g6:'--'}}</view><view class="title data-v-64cdb5da">{{$root.m10}}</view></view><view class="solid data-v-64cdb5da"></view><view data-event-opts="{{[['tap',[['redirect',['/pages_tool/member/point_detail']]]]]}}" class="account-item data-v-64cdb5da" bindtap="__e"><view class="value price-font data-v-64cdb5da">{{memberInfo?$root.m11:'--'}}</view><view class="title data-v-64cdb5da">{{$root.m12}}</view></view><view class="solid data-v-64cdb5da"></view><view data-event-opts="{{[['tap',[['redirect',['/pages_tool/member/coupon']]]]]}}" class="account-item data-v-64cdb5da" bindtap="__e"><view class="value price-font data-v-64cdb5da">{{''+(memberInfo&&memberInfo.coupon_num!=undefined?memberInfo.coupon_num:'--')+''}}</view><view class="title data-v-64cdb5da">{{$root.m13}}</view></view></view></view><view data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" class="member-complete-info-popup data-v-64cdb5da" catchtouchmove="__e"><uni-popup vue-id="17032943-1" type="bottom" maskClick="{{false}}" data-ref="completeInfoPopup" class="data-v-64cdb5da vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="complete-info-wrap data-v-64cdb5da"><view class="head data-v-64cdb5da"><text class="title data-v-64cdb5da">获取您的昵称、头像</text><text class="color-tip tips data-v-64cdb5da">获取用户头像、昵称完善个人资料,主要用于向用户提供具有辨识度的用户中心界面</text><text data-event-opts="{{[['tap',[['cancelCompleteInfo',['$event']]]]]}}" class="iconfont icon-close color-tip data-v-64cdb5da" bindtap="__e"></text></view><view class="item-wrap data-v-64cdb5da"><text class="label data-v-64cdb5da">头像</text><button open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e" class="data-v-64cdb5da"><image src="{{avatarUrl?avatarUrl:$root.g7.head}}" mode="aspectFill" data-event-opts="{{[['error',[['e1',['$event']]]]]}}" binderror="__e" class="data-v-64cdb5da"></image><text class="iconfont icon-right color-tip data-v-64cdb5da"></text></button></view><view class="item-wrap data-v-64cdb5da"><text class="label data-v-64cdb5da">昵称</text><input type="nickname" placeholder="请输入昵称" data-event-opts="{{[['blur',[['blurNickName',['$event']]]],['input',[['__set_model',['','nickName','$event',[]]]]]]}}" value="{{nickName}}" bindblur="__e" bindinput="__e" class="data-v-64cdb5da"/></view><button class="save-btn data-v-64cdb5da" type="default" disabled="{{isDisabled}}" data-event-opts="{{[['tap',[['saveCompleteInfo',['$event']]]]]}}" bindtap="__e">保存</button></view></uni-popup></view><ns-login vue-id="17032943-2" data-ref="login" class="data-v-64cdb5da vue-ref" bind:__l="__l"></ns-login></view>