|
|
|
|
@ -1,52 +1,70 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="g_flex_c" style="height: 100vh;width: 100%;background-color: #f2f2f2;">
|
|
|
|
|
下游代理
|
|
|
|
|
<view class="g_flex_column_start" style="height: 100vh;width: 100%;background-color: #f2f2f2;">
|
|
|
|
|
<view class="g_mt_10 g_flex_none" v-if="agencyInfo.supplierAccount == 1">
|
|
|
|
|
<view class="g_p_16 g_bg_f g_radius_8 g_flex_row_between flex_center g_ml_10 g_mr_10" hover-class="thover"
|
|
|
|
|
@click="goPage('/root/bind/search?active=1')">
|
|
|
|
|
<view class="g_flex_row_start flex_center">
|
|
|
|
|
<img src="https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/dailibaoming/fazhandaili0610.svg" class="g_w_48 g_h_48 g_radius_50" alt="" />
|
|
|
|
|
<view class="g_flex_column_between g_ml_10">
|
|
|
|
|
<view class="g_fs_16 g_c_0 g_fw_600 g_mb_6">发展代理</view>
|
|
|
|
|
<view class="g_c_9">邀请更多代理(粉丝)关注我</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_bg_e7 g_radius_20" hover-class="thover" style="padding: 4px 12px"
|
|
|
|
|
:style="{
|
|
|
|
|
'backgroundColor':themeBackgroundColor,
|
|
|
|
|
'color':themeColor
|
|
|
|
|
}"
|
|
|
|
|
>去邀请</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_mt_10 g_flex_none" v-if="agencyInfo.supplierAccount == 1">
|
|
|
|
|
<view class="g_p_16 g_bg_f g_radius_8 g_flex_row_between flex_center g_ml_10 g_mr_10" hover-class="thover"
|
|
|
|
|
@click="goPage('/root/bind/search?active=1')">
|
|
|
|
|
<view class="g_flex_row_start flex_center">
|
|
|
|
|
<img src="https://bocai-cms.oss-cn-beijing.aliyuncs.com/bf586cad-c6f0-4417-86c8-6cf55310ace7_123456.svg" class="g_w_48 g_h_48 g_radius_50" alt="" />
|
|
|
|
|
<view class="g_flex_column_between g_ml_10">
|
|
|
|
|
<view class="g_fs_16 g_c_0 g_fw_600 g_mb_6">新的代理申请</view>
|
|
|
|
|
<view class="g_c_9">您有8条新代理加入申请待审批</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_1 g_w_all g_flex_c" hover-class="none" hover-stop-propagation="false">
|
|
|
|
|
<rh-empty text="暂无数据" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
/* 自定义空页面
|
|
|
|
|
*/
|
|
|
|
|
export default {
|
|
|
|
|
onShareAppMessage() {
|
|
|
|
|
return this.G.shareFun();
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
console.log(options);
|
|
|
|
|
if (options.type) {
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: options.type,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
cdnBaseImg: this.G.store().cdnBaseImg,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
text: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: () => {
|
|
|
|
|
return "暂无数据";
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
subText: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: () => {
|
|
|
|
|
return "";
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
agencyInfo: {}, // 登陆者的代理信息
|
|
|
|
|
isJm:uni.getStorageSync("apply-userinfo") && uni.getStorageSync("apply-userinfo").agencyId && uni.getStorageSync("apply-userinfo").agencyId == '114827',
|
|
|
|
|
themeColor: getApp().globalData.themeColor,
|
|
|
|
|
themeBackgroundColor: getApp().globalData.themeBackgroundColor,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
goLogin() {
|
|
|
|
|
let that = this;
|
|
|
|
|
if (that.text == "请登录") {
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: "/root/login/index?path=" + that.G.getPath().path + "&level=" + that.G.getPath().level,
|
|
|
|
|
onShow(){
|
|
|
|
|
let that = this;
|
|
|
|
|
if (uni.getStorageSync("apply-token")) {
|
|
|
|
|
this.G.checkToken().then(() => {
|
|
|
|
|
that.agencyInfo = uni.getStorageSync("agencyInfo");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
goPage($path) {
|
|
|
|
|
this.G.isLogin();
|
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: $path,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|