| xqd
@@ -18,7 +18,7 @@
|
|
|
人
|
|
|
</view>
|
|
|
<view class="content box-grow-1" v-else-if="item.condition_type == 2">当月业绩累计
|
|
|
- <text class="price">{{item.condition}}</text>
|
|
|
+ <text class="price">{{item.condition}}</text> {{userLevel==2?'即可升级':'即可保持'}}
|
|
|
</view>
|
|
|
<!-- <view class="content box-grow-1" v-else-if="item.condition_type == 3">已提现佣金达到
|
|
|
<text class="price">{{item.condition}}</text>
|
| xqd
@@ -33,9 +33,16 @@
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
- <!--<view class="level-btn" @click="levelUp" v-if="list.length > 0">
|
|
|
+ <block v-if="!review">
|
|
|
+ <view class="level-btn" @click="levelUp" v-if="autoLevelUp">
|
|
|
立即升级
|
|
|
- </view>-->
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-else-if="review">
|
|
|
+ <view class="level-btn">
|
|
|
+ 请等待审核
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
<view class="dialog dir-left-nowrap main-center cross-center" v-if="dialog.show">
|
|
|
<view class="content dir-top-nowrap cross-center" :style="dialogBg">
|
|
|
<view class="dialog-title">{{dialog.condition_text}}</view>
|
| xqd
@@ -75,7 +82,10 @@
|
|
|
rule: {
|
|
|
show: false,
|
|
|
content: ''
|
|
|
- }
|
|
|
+ },
|
|
|
+ autoLevelUp:false,
|
|
|
+ review:false,
|
|
|
+ userLevel:0,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
| xqd
@@ -110,6 +120,9 @@
|
|
|
this.$hideLoading();
|
|
|
if (response.code == 0) {
|
|
|
this.list = response.data.list;
|
|
|
+ this.autoLevelUp = response.data.autoLevelUp;
|
|
|
+ this.review = response.data.review;
|
|
|
+ this.userLevel = response.data.userLevel;
|
|
|
} else {
|
|
|
uni.showModal({
|
|
|
content: response.msg,
|
| xqd
@@ -125,12 +138,14 @@
|
|
|
title: '升级中...'
|
|
|
});
|
|
|
this.$request({
|
|
|
- url: this.$api.share.level_up,
|
|
|
+ url: this.$api.share.apply_level_up,
|
|
|
}).then(response => {
|
|
|
uni.hideLoading();
|
|
|
if (response.code == 0) {
|
|
|
this.dialog.show = true;
|
|
|
- this.dialog = {...this.dialog, ...response.data};
|
|
|
+ this.dialog.condition_text = response.msg;
|
|
|
+ this.dialog.status = 1;
|
|
|
+ this.review = true
|
|
|
} else {
|
|
|
uni.showModal({
|
|
|
content: response.msg,
|