no message

cyl/job_im
jscyl13849007907 2 days ago
parent ff6ad305c5
commit 60948fe709

@ -135,12 +135,6 @@
{ //
"root": "root/person",
"pages": [
{
"path": "downpage",
"style": {
"navigationBarTitleText": "下游代理"
}
},
{
"path": "loginIndex",
"style": {
@ -676,7 +670,7 @@
{
"path": "fensi",
"style": {
"navigationBarTitleText": "" //
"navigationBarTitleText": "下游代理" //
}
},
{
@ -694,7 +688,7 @@
{
"path": "applyList",
"style": {
"navigationBarTitleText": " ", //
"navigationBarTitleText": "申请列表", //
"backgroundColor": "#ededed",
"backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed"

@ -55,7 +55,7 @@
icon: 'index',
label: '下游代理',
result: '',
path: '/root/person/downpage',
path: '/root/bind/fensi',
pRow: 0,
rpl:0,
fpl:0,
@ -63,7 +63,7 @@
pColumn:16,
},
]"
@clickItem="goPage('/root/person/downpage')"
@clickItem="goPage('/root/bind/fensi')"
/>
</view>
<view class="g_mt_10" v-if="userInfo.agencyId">

@ -1,5 +1,12 @@
<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>
</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">
@ -159,7 +166,7 @@ export default {
speed: -1,
query: {
page: 1,
size: 200,
size: 50,
list: [],
isFinish: -1,
},
@ -217,14 +224,24 @@ export default {
stickyText: "近三天",
};
},
mounted(options) {
console.log("options123:", options);
onLoad(options) {
let that = this;
that.tabInfo.active = 1;
if (that.tabInfo.active == 1) {
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: "我的粉丝",
title: "发单号",
});
} else {
if (that.tabInfo.active == 1) {
uni.setNavigationBarTitle({
title: "我的粉丝",
});
}
}
const query = uni.createSelectorQuery().in(this);
query
@ -233,16 +250,41 @@ export default {
that.domHeight = data.height + 34;
})
.exec();
that.query.page = 1;
that.getWaitNum();
that.getNum();
this.getList();
that.getPoint();
},
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;
that.getWaitNum();
that.getNum();
if (this.tabFansInfo.active == 1) {
this.getList();
} else {
this.getapplyList();
}
that.getPoint();
}
},
onReachBottom() {
let that = this;
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
that.query.page++;
if (this.tabFansInfo.active == 1) {
this.getList("concat");
} else {
this.getapplyList("concat");
}
}
},
onPageScroll(e) {
console.log(e.scrollTop);
@ -315,7 +357,6 @@ export default {
formdata: true,
},
(res) => {
console.log("获取列表:", res);
that.isShow = true;
that.all = res.recordCount;
that.speed = res.recordCount;
@ -587,20 +628,18 @@ export default {
z-index: 1;
}
.m-search {
// .u-icon-wrap{
// position: absolute;
// left: 190rpx;
// }
}
.m-search-active {
.u-icon-wrap {
position: inherit;
left: 0rpx;
}
}
.m-panel{
.link{
border-radius: 8px;
width: calc(100% - 20px);
margin: 0 auto;
overflow: hidden;
}
}
}
</style>

@ -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.tabFansInfo.active = 1;
that.tabInfo.active = 1;
const query = uni.createSelectorQuery().in(this);
query
.select(".m-top")
@ -254,26 +249,20 @@ 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 = [];
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) {
this.getList();
} else {
that.query.page = 1;
that.getWaitNum();
that.getNum();
if (this.tabFansInfo.active == 1) {
this.getList();
} else {
this.getapplyList();
}
that.getPoint();
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>

Loading…
Cancel
Save