1 line
6.0 KiB
Plaintext
1 line
6.0 KiB
Plaintext
<block wx:if="{{isLoading}}"><view class="pad-x150"><status-nav vue-id="30f7afbb-1" ifReturn="{{true}}" navBarTitle="分销中心" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="distribution border-box"><view class="distribution-msg radius30 pad-all40 border-box"><view class="distribution-txt border-box flex"><view class="txt"><view class="title font30 mar-x20">我的佣金</view><view class="price font60"><text class="font48">¥</text>{{commission}}</view></view><view data-event-opts="{{[['tap',[['openCode',['$event']]]]]}}" class="code-btn mar-s10" bindtap="__e"><image style="width:87rpx;height:87rpx;" src="/static/icon/icon-code.png" mode="widthFix"></image><view class="font24 mar-s10">查看分销码</view></view></view><view class="distribution-profit mar-s40 flex"><view class="item"><text class="font24">累计收益</text><view class="profit-price font36 mar-s10">{{"¥"+(cumulative_income>0?cumulative_income:'0')}}</view></view><view class="line"></view><view class="item"><text class="font24">累计提现</text><view class="profit-price font36 mar-s10">{{"¥"+(cumulative_withdrawal>0?cumulative_withdrawal:'0')}}</view></view><view class="line"></view><view class="item"><text class="font24">我的团队</text><view class="profit-price font36 mar-s10">{{my_team}}</view></view></view></view></view><view class="record-nav border-box pad-zy20 flex"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeNav',[index]]]]]}}" class="{{['item','color-8c','radius20','border-box',index==navIndex?'cur':'']}}" bindtap="__e">{{item}}</view></block></view><view class="record-list border-box"><block wx:if="{{navIndex==1}}"><view class="team-nav mar-s30 flex"><block wx:for="{{teamNav}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeTeam',[index]]]]]}}" class="item" bindtap="__e"><view class="txt font30">{{''+item.title+''}}<text class="font28" style="margin-left:5rpx;">{{"("+item.num+")"}}</text></view><view class="{{['line','mar-s15',index==teamIndex?'background-orange':'']}}"></view></view></block></view></block><block wx:for="{{recordList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="record-item border-box pad-sx40 flex"><view class="left flex"><block wx:if="{{navIndex!==2}}"><view class="img radius30"><image src="{{item.cover==''?logoSrc:item.cover}}" mode="widthFix"></image></view></block><view class="txt"><view class="font36 mar-x10"><block wx:if="{{navIndex==2}}"><text class="font26">¥</text></block>{{item.name==''?'系统':item.name}}</view><view class="font24 color-99">{{item.created_at}}</view></view></view><view class="right"><block wx:if="{{navIndex==2}}"><view class="font24"><block wx:if="{{item.title=='待审批'}}"><text>{{item.title}}</text></block><block wx:if="{{item.title=='已驳回'}}"><text class="color-red">{{item.title}}</text></block><block wx:if="{{item.title=='已完成'}}"><text style="color:#7b7b7b;">{{item.title}}</text></block></view></block><block wx:else><view class="font24">{{item.title}}</view></block><block wx:if="{{item.price}}"><view class="font30 color-red mar-s10">{{item.price>0&&navIndex==0?'+'+item.price:item.price}}</view></block></view></view></block><block wx:if="{{noMore}}"><view class="no-more font24"><text>—— 到底啦 ——</text></view></block></view><view class="pull-btn border-box" style="background-color:#f5f5f5;padding-top:28rpx;"><view data-event-opts="{{[['tap',[['openWithdrawal',['$event']]]]]}}" class="btn background-orange font36 radius30 flex" bindtap="__e">立即提现</view></view><view hidden="{{!(isShow||withdrawal)}}" class="pull-bg" style="background-color:rgba(0,0,0,.3);"></view><block wx:if="{{isShow}}"><view class="vip-box-bg border-box"><view class="vip-box radius20 background-white font30"><view class="title">分销二维码</view><view class="vip-code flex"><image src="{{codeImg}}" mode="widthFix"></image></view><view data-event-opts="{{[['tap',[['shareImgEv',['$event']]]]]}}" class="submit-btn font36 radius30 color-ff mar-s60 flex" style="background-color:#00b809;position:relative;" bindtap="__e"><image src="/static/icon/icon-wechat.png" mode="widthFix"></image><text>分享给朋友</text></view><view data-event-opts="{{[['tap',[['closeEv',['$event']]]]]}}" class="close-btn" bindtap="__e"><image src="/static/icon/close-btn.png" mode="widthFix"></image></view></view></view></block><block wx:if="{{withdrawal}}"><view class="vip-box-bg border-box"><view class="vip-box radius20 background-white font30"><view class="title">提现申请</view><view class="vip-list"><view class="vip-item mar-s20"><view class="tips color-99">提现金额</view><input class="input" type="number" placeholder="请输入提现金额" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','myPrice','$event',[]]]]]]}}" value="{{myPrice}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">姓名</view><input class="input color-99" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','real_name','$event',[]]]]]]}}" value="{{real_name}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">开户行</view><input class="input color-99" type="number" disabled="true" data-event-opts="{{[['input',[['__set_model',['','deposit_bank','$event',[]]]]]]}}" value="{{deposit_bank}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">银行卡号</view><input class="input color-99" type="number" disabled="true" data-event-opts="{{[['input',[['__set_model',['','bank_account','$event',[]]]]]]}}" value="{{bank_account}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="submit-btn font36 background-orange radius30 mar-s60 flex" bindtap="__e">立即提现</view><view data-event-opts="{{[['tap',[['closeEv',['$event']]]]]}}" class="close-btn" bindtap="__e"><image src="/static/icon/close-btn.png" mode="widthFix"></image></view></view></view></block></view></block> |