|
|
|
|
@ -1,18 +1,24 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="p-bind-inedx g_w_all g_h_all g_bg_f_5 g_kuaishou">
|
|
|
|
|
<view style="position: fixed; left: 0; top: 0; background-color: #fff; width: 100vw; height: 80rpx; z-index: 99">
|
|
|
|
|
<!-- tab -->
|
|
|
|
|
<view class="g_border_e_t">
|
|
|
|
|
<u-tabs :list="tabFansInfo.list" :is-scroll="false" :current="tabFansInfo.active" active-color="#00b666" bar-width="72" bar-height="6" font-size="32" @change="handleUpdateFensTab" duration="0.1" height="84"></u-tabs>
|
|
|
|
|
<view class="p-bind-inedx g_w_all g_kuaishou" style="background-color:#ededed;min-height: 100vh;">
|
|
|
|
|
<view class="m-top">
|
|
|
|
|
<view class="m-search g_p_10 g_pb_0 g_position_rela g_p_12" style="background-color:#ededed;">
|
|
|
|
|
<u-search height="80" v-model="keyword" placeholder="搜索我的代理" bg-color="#fff" :show-action="false" @btnSearch="getSearch" @change="getSearch" @clear="getSearch" @custom="getSearch" @search="getSearch" search-icon-color="#999999" :maxlength="20"></u-search>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="" style="height: 80rpx; width: 100vw"></view>
|
|
|
|
|
<!-- 搜索栏 -->
|
|
|
|
|
<view class="m-top">
|
|
|
|
|
<view class="m-search g_p_10 g_pb_0 g_position_rela g_p_12 g_bg_f_5">
|
|
|
|
|
<u-search height="80" v-model="keyword" :placeholder="tabFansInfo.active == 0 ? '搜索新的粉丝' : '搜索我的粉丝'" bg-color="#fff" :show-action="false" @btnSearch="getSearch" @change="getSearch" @clear="getSearch" @custom="getSearch" @search="getSearch" search-icon-color="#999999" :maxlength="20"></u-search>
|
|
|
|
|
<view class="">
|
|
|
|
|
<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="goPaga('/root/bind/applyList')">
|
|
|
|
|
<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">您有新代理加入申请待审批</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<div style="height: 10px;"></div>
|
|
|
|
|
<!-- 搜索栏 -->
|
|
|
|
|
<view class="m-panel">
|
|
|
|
|
<!-- 根据不同搜索栏显示不同内容 -->
|
|
|
|
|
<view class="center">
|
|
|
|
|
@ -159,6 +165,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
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,
|
|
|
|
|
cdnBaseImg: this.G.store().cdnBaseImg,
|
|
|
|
|
isLogin: null,
|
|
|
|
|
isShow: false,
|
|
|
|
|
@ -226,23 +236,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
let that = this;
|
|
|
|
|
if (options.tab == 0) {
|
|
|
|
|
that.tabFansInfo.active = 0;
|
|
|
|
|
} else {
|
|
|
|
|
that.tabFansInfo.active = 1;
|
|
|
|
|
}
|
|
|
|
|
that.tabInfo.active = options.active;
|
|
|
|
|
if (that.tabInfo.active == 0) {
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: "发单号",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if (that.tabInfo.active == 1) {
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: "我的粉丝",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
that.tabInfo.active = 1;
|
|
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
|
|
query
|
|
|
|
|
.select(".m-top")
|
|
|
|
|
@ -254,17 +249,12 @@ export default {
|
|
|
|
|
onShow() {
|
|
|
|
|
let that = this;
|
|
|
|
|
that.isLogin = uni.getStorageSync("apply-token");
|
|
|
|
|
if (!that.isLogin) {
|
|
|
|
|
that.waitNum_downs = 0;
|
|
|
|
|
that.waitNum_ups = 0;
|
|
|
|
|
that.tabInfo.list[0].name = "关注(0)";
|
|
|
|
|
that.tabInfo.list[1].name = "粉丝(0)";
|
|
|
|
|
that.isShow = true;
|
|
|
|
|
that.speed = 0;
|
|
|
|
|
that.loading = false;
|
|
|
|
|
that.query.list = [];
|
|
|
|
|
} else {
|
|
|
|
|
that.query.page = 1;
|
|
|
|
|
if (uni.getStorageSync("apply-token")) {
|
|
|
|
|
this.G.checkToken().then(() => {
|
|
|
|
|
that.agencyInfo = uni.getStorageSync("agencyInfo");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
that.getWaitNum();
|
|
|
|
|
that.getNum();
|
|
|
|
|
if (this.tabFansInfo.active == 1) {
|
|
|
|
|
@ -273,7 +263,6 @@ export default {
|
|
|
|
|
this.getapplyList();
|
|
|
|
|
}
|
|
|
|
|
that.getPoint();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
let that = this;
|
|
|
|
|
@ -291,6 +280,14 @@ export default {
|
|
|
|
|
this.scrollTop = e.scrollTop;
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
goPaga($path) {
|
|
|
|
|
this.G.isLogin();
|
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: $path,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleUpdateFensTab(e) {
|
|
|
|
|
this.tabFansInfo.active = e;
|
|
|
|
|
this.keyword = "";
|
|
|
|
|
@ -641,5 +638,11 @@ export default {
|
|
|
|
|
left: 0rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.link{
|
|
|
|
|
width: calc(100% - 20px);
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|