|
@@ -8,17 +8,31 @@
|
|
<view class="subTitle" @click="setEnv">新手赚钱帮助 ></view>
|
|
<view class="subTitle" @click="setEnv">新手赚钱帮助 ></view>
|
|
<view class="levelDiv"
|
|
<view class="levelDiv"
|
|
style="background: url('https://dm.static.elab-plus.com/yezhu/h5/icon_line_back.png') center/100% 100% no-repeat;">
|
|
style="background: url('https://dm.static.elab-plus.com/yezhu/h5/icon_line_back.png') center/100% 100% no-repeat;">
|
|
- <view class="level_top" v-if="userInfo.userId">
|
|
|
|
- <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
|
|
|
|
- </image>
|
|
|
|
- <view class="level_text">{{userInfo.curlevel}}</view>
|
|
|
|
- <view class="level_des">/达到 {{userInfo.nextIncome}} 收益可升级</view>
|
|
|
|
- <view class="level_update">
|
|
|
|
- <text>升级攻略</text>
|
|
|
|
- <image class="level_right_icon"
|
|
|
|
- src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
|
|
|
|
|
|
+ <view class="" v-if="userInfo.userId">
|
|
|
|
+ <view class="level_top" v-if="userInfo.ownersUnion">
|
|
|
|
+ <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
|
|
|
|
+ </image>
|
|
|
|
+ <view class="level_text">{{userInfo.curlevel}}</view>
|
|
|
|
+ <view class="level_des">/达到 {{userInfo.nextIncome}} 收益可升级</view>
|
|
|
|
+ <view class="level_update">
|
|
|
|
+ <text>升级攻略</text>
|
|
|
|
+ <image class="level_right_icon"
|
|
|
|
+ src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="level_top" v-else @click="toYezhu">
|
|
|
|
+ <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
|
|
|
|
+ </image>
|
|
|
|
+ <view class="level_text_login">业主认证</view>
|
|
|
|
+ <view class="level_des"></view>
|
|
|
|
+ <view class="level_update">
|
|
|
|
+ <text>立即认证</text>
|
|
|
|
+ <image class="level_right_icon"
|
|
|
|
+ src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
<view class="level_top" v-else @click="toLogin">
|
|
<view class="level_top" v-else @click="toLogin">
|
|
<image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
|
|
<image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
|
|
</image>
|
|
</image>
|
|
@@ -30,10 +44,16 @@
|
|
src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
|
|
src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="level_bottom" v-if="userInfo.userId">
|
|
|
|
- <levelView :currentLevel='userInfo.curIncome' :nextLevel='userInfo.nextIncome' :currentLevelTxt='userInfo.curlevel' :nextLevelTxt='userInfo.nextLevel'>
|
|
|
|
- </levelView>
|
|
|
|
|
|
+ <view class="" v-if="userInfo.userId">
|
|
|
|
+ <view class="level_bottom" v-if="userInfo.ownersUnion">
|
|
|
|
+ <levelView :currentLevel='userInfo.curIncome' :nextLevel='userInfo.nextIncome' :currentLevelTxt='userInfo.curlevel' :nextLevelTxt='userInfo.nextLevel'>
|
|
|
|
+ </levelView>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="level_bottom_login" v-else >
|
|
|
|
+ 点此进行业主认证,审核后实时等级升级
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
<view class="level_bottom_login" v-else >
|
|
<view class="level_bottom_login" v-else >
|
|
点此进行登录注册,开始赚钱吧
|
|
点此进行登录注册,开始赚钱吧
|
|
</view>
|
|
</view>
|
|
@@ -55,8 +75,8 @@
|
|
<view class="item_guide">
|
|
<view class="item_guide">
|
|
<image class="guide_img" src="https://dm.static.elab-plus.com/yezhu/icon_yezhu.png" mode="">
|
|
<image class="guide_img" src="https://dm.static.elab-plus.com/yezhu/icon_yezhu.png" mode="">
|
|
</image>
|
|
</image>
|
|
- <text class="guide_title" @click="clearToken">注册业主</text>
|
|
|
|
- <text class="guide_desc">业主注册审核\n实时等级升级</text>
|
|
|
|
|
|
+ <text class="guide_title" @click="clearToken">业主认证</text>
|
|
|
|
+ <text class="guide_desc">业主认证审核\n实时等级升级</text>
|
|
</view>
|
|
</view>
|
|
<image class="icon_guide" src="https://dm.static.elab-plus.com/yezhu/icon_to_guide.png" mode="">
|
|
<image class="icon_guide" src="https://dm.static.elab-plus.com/yezhu/icon_to_guide.png" mode="">
|
|
</image>
|
|
</image>
|
|
@@ -85,7 +105,7 @@
|
|
<view class="content_tab">
|
|
<view class="content_tab">
|
|
<view class="tab_item" @click="toYezhu">
|
|
<view class="tab_item" @click="toYezhu">
|
|
<image class="icon_tab" src="../../static/icons/icon_zcyz_user.png" mode=""></image>
|
|
<image class="icon_tab" src="../../static/icons/icon_zcyz_user.png" mode=""></image>
|
|
- <text class="txt_tab">注册业主</text>
|
|
|
|
|
|
+ <text class="txt_tab">业主认证</text>
|
|
</view>
|
|
</view>
|
|
<view class="tab_item" @click="toShouYiPage">
|
|
<view class="tab_item" @click="toShouYiPage">
|
|
<image class="icon_tab" src="../../static/icons/icon_shouyi_user.png" mode=""></image>
|
|
<image class="icon_tab" src="../../static/icons/icon_shouyi_user.png" mode=""></image>
|
|
@@ -104,8 +124,8 @@
|
|
<view class="content_tuiguang_city">
|
|
<view class="content_tuiguang_city">
|
|
<text class="city_num">{{userInfo.taskCount||0}}个</text>
|
|
<text class="city_num">{{userInfo.taskCount||0}}个</text>
|
|
<text class="city_num_desc">推广任务</text>
|
|
<text class="city_num_desc">推广任务</text>
|
|
- <view class="city_list" @click="showOptions(2)">
|
|
|
|
- <text class="city_name">城市</text>
|
|
|
|
|
|
+ <view class="city_list" @click="showOptions(1)">
|
|
|
|
+ <text class="city_name">{{city}}</text>
|
|
<image class="city_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png"
|
|
<image class="city_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png"
|
|
mode=""></image>
|
|
mode=""></image>
|
|
</view>
|
|
</view>
|
|
@@ -114,8 +134,8 @@
|
|
<view class="content_tuiguang_money">
|
|
<view class="content_tuiguang_money">
|
|
<text class="money_num">¥{{Number(userInfo.surplusTaskAmount).toFixed(2)||'0.00'}}</text>
|
|
<text class="money_num">¥{{Number(userInfo.surplusTaskAmount).toFixed(2)||'0.00'}}</text>
|
|
<text class="money_num_des">剩余任务金额</text>
|
|
<text class="money_num_des">剩余任务金额</text>
|
|
- <view class="money_list" @click="showOptions(1)">
|
|
|
|
- <text class="money_name" >类型</text>
|
|
|
|
|
|
+ <view class="money_list" @click="showOptions(2)">
|
|
|
|
+ <text class="money_name" >{{typeName}}</text>
|
|
<image class="money_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png"
|
|
<image class="money_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png"
|
|
mode=""></image>
|
|
mode=""></image>
|
|
</view>
|
|
</view>
|
|
@@ -182,7 +202,7 @@
|
|
<login></login>
|
|
<login></login>
|
|
<login-notice></login-notice>
|
|
<login-notice></login-notice>
|
|
<dmMine ref='mine' :userInfo='userInfo'></dmMine>
|
|
<dmMine ref='mine' :userInfo='userInfo'></dmMine>
|
|
- <dmHomeChoose ref='chooseType' :option='option' @chooiceType="chooiceType"></dmHomeChoose>
|
|
|
|
|
|
+ <dmHomeChoose ref='chooseType' :option='optionType' @chooiceType="chooiceType"></dmHomeChoose>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -221,9 +241,10 @@
|
|
pageNo:1,
|
|
pageNo:1,
|
|
pageSize:10,
|
|
pageSize:10,
|
|
noMore:false,
|
|
noMore:false,
|
|
- city:"",
|
|
|
|
|
|
+ city:"城市",
|
|
type:"",
|
|
type:"",
|
|
- option:"1"
|
|
|
|
|
|
+ typeName:"类型",
|
|
|
|
+ optionType:1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -261,8 +282,9 @@
|
|
this.getHomePage();
|
|
this.getHomePage();
|
|
},
|
|
},
|
|
chooiceType(e){
|
|
chooiceType(e){
|
|
- this.city = e.city;
|
|
|
|
|
|
+ this.city = e.city==''?"城市":e.city;
|
|
this.type = e.type;
|
|
this.type = e.type;
|
|
|
|
+ this.typeName = e.typeName==''?'类型':e.typeName;
|
|
this.pageNo = 1;
|
|
this.pageNo = 1;
|
|
this.getHomePage();
|
|
this.getHomePage();
|
|
},
|
|
},
|
|
@@ -270,10 +292,10 @@
|
|
let ret = await this.$myRequest({
|
|
let ret = await this.$myRequest({
|
|
url: "/project/homePage",
|
|
url: "/project/homePage",
|
|
data: {
|
|
data: {
|
|
- "city": this.city,
|
|
|
|
|
|
+ "city": this.city=='城市'?'':this.city,
|
|
"pageNo": this.pageNo,
|
|
"pageNo": this.pageNo,
|
|
"pageSize": this.pageSize,
|
|
"pageSize": this.pageSize,
|
|
- "taskCategoryId": this.type
|
|
|
|
|
|
+ "taskCategoryId": this.type,
|
|
}
|
|
}
|
|
})
|
|
})
|
|
if (ret.data.success) {
|
|
if (ret.data.success) {
|
|
@@ -411,7 +433,8 @@
|
|
|
|
|
|
},
|
|
},
|
|
showOptions(option){
|
|
showOptions(option){
|
|
- this.option = option;
|
|
|
|
|
|
+ this.$refs.chooseType.setOptionType(option);
|
|
|
|
+ this.$forceUpdate();
|
|
this.$refs.chooseType.show()
|
|
this.$refs.chooseType.show()
|
|
}
|
|
}
|
|
},
|
|
},
|