我的页面布局调整

cyl/dev
wangxia 1 year ago
parent a3bb6684e9
commit 814bf1fc5e

@ -1762,7 +1762,7 @@ Page({
}, },
showFee () { showFee () {
let that = this let that = this
if (!this.data.isAgency) return false // if (!this.data.isAgency) return false
console.log('that.data.bclr', that.data.bclr); console.log('that.data.bclr', that.data.bclr);
wx.showModal({ wx.showModal({
title: that.data.isAgency ? '佣金: ' + that.data.fuWuFei : '', title: that.data.isAgency ? '佣金: ' + that.data.fuWuFei : '',

@ -175,7 +175,7 @@
<view class="topMenu bt1"> <view class="topMenu bt1">
<view class="onMune {{currIndex == '1' ? 'active ysd-base-color' : ''}}" data-id="1" bindtap="changeMenu"> <view class="onMune {{currIndex == '1' ? 'active ysd-base-color' : ''}}" data-id="1" bindtap="changeMenu">
<view class="pr dib"> <view class="pr dib">
基本信息 职位详情
<!-- <view class="menuBorder ysd-basebg-color"></view> --> <!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view> </view>
</view> </view>
@ -197,7 +197,7 @@
<!-- <view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu" wx:if="{{isAgency}}"> --> <!-- <view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu" wx:if="{{isAgency}}"> -->
<view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu"> <view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu">
<view class="pr dib"> <view class="pr dib">
职位描述 通告分享
<!-- <view class="menuBorder ysd-basebg-color"></view> --> <!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view> </view>
</view> </view>

@ -31,13 +31,13 @@
<view class="iconfont icon-gengduo11 c9 f14"></view> <view class="iconfont icon-gengduo11 c9 f14"></view>
</navigator> </navigator>
</view> </view>
<navigator class="fsa sub mt12 br8" target url="/pages/configAnnunciate/index" hover-class="thover" open-type="navigate"> <!-- <navigator class="fsa sub mt12 br8" target url="/pages/configAnnunciate/index" hover-class="thover" open-type="navigate">
<view class="fsa" hover-class="none" hover-stop-propagation="false"> <view class="fsa" hover-class="none" hover-stop-propagation="false">
<!-- <view class="t-icon t-icon-tonggao mr10" style="width:22px;height:22px;background-repeat:no-repeat;background-size:100% 100%" lazy-load="false" binderror bindload></view> --> <view class="t-icon t-icon-tonggao mr10" style="width:22px;height:22px;background-repeat:no-repeat;background-size:100% 100%" lazy-load="false" binderror bindload></view>
<view>配置通告</view> <view>配置通告</view>
</view> </view>
<view class hover-class="none" hover-stop-propagation="false"> <view class hover-class="none" hover-stop-propagation="false">
<view class="iconfont icon-gengduo11 c9 f14"></view> <view class="iconfont icon-gengduo11 c9 f14"></view>
</view> </view>
</navigator> </navigator> -->
</view> </view>

@ -15,7 +15,6 @@ Page({
// user:app.globalData.user, // user:app.globalData.user,
serviceInfo: {}, serviceInfo: {},
map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", billStatus10Salary: "0", billStatus30Salary: "0" }, map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", billStatus10Salary: "0", billStatus30Salary: "0" },
townsMnaNum:{}, // 老乡数量
motto: "Hello World", motto: "Hello World",
userInfo: {}, userInfo: {},
hasUserInfo: false, hasUserInfo: false,
@ -88,18 +87,20 @@ Page({
onShow: function () { onShow: function () {
console.log("isshow"); console.log("isshow");
let that = this; let that = this;
wx.setStorageSync("comeFromPage", "me");
if (wx.getStorageSync("configInfo")) {
this.setData({
configInfo: { ...wx.getStorageSync("configInfo"), biao: false },
});
}
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
selected: 3, selected: 3,
isShow: true isShow: true
}); });
} }
wx.setStorageSync("comeFromPage", "me");
if (wx.getStorageSync("configInfo")) {
this.setData({
configInfo: { ...wx.getStorageSync("configInfo"), biao: false },
});
console.log('configInfo',this.data.configInfo);
}
wx.setStorageSync('BILLFROM', 'mine') wx.setStorageSync('BILLFROM', 'mine')
// wx.showTabBar({ // wx.showTabBar({
@ -128,7 +129,6 @@ Page({
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
}); });
that.getDataNum(); that.getDataNum();
that.getTownsmanDataNum();
} else { } else {
// 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回 // 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回
// 所以此处加入 callback 以防止这种情况 // 所以此处加入 callback 以防止这种情况
@ -388,22 +388,6 @@ Page({
} }
}, },
/**
* 获取老乡状态数量
*
*
*/
getTownsmanDataNum () {
let that = this;
customRequest("/yishoudan/agency/user/listStatistics", { header: 'headers', method: 'GET', data: {} }).then((res) => {
if (res.data.status == 200) {
that.setData({
townsMnaNum: res.data.data,
});
console.log('getDataNum',res.data.data);
}
})
},
/** /**
* 获取各个数量 * 获取各个数量
* *

@ -196,7 +196,7 @@
</view> </view>
</view> </view>
<!-- 我的老乡 --> <!-- 我的老乡 -->
<view class="mt10 mb10 myTownsman"> <view class="mt10 mb10 myTownsman" wx:if='{{false}}'>
<view class="bgf br8 container" style="padding: 0;"> <view class="bgf br8 container" style="padding: 0;">
<navigator class="pl16 pr10 bb1" hover-class="thover" url="{{isLogin? '../townsMan/index?state=0': '/pages/login/index'}}"> <navigator class="pl16 pr10 bb1" hover-class="thover" url="{{isLogin? '../townsMan/index?state=0': '/pages/login/index'}}">
<view class="f16 c3 fwb fl" style="line-height:44px;">我的老乡</view> <view class="f16 c3 fwb fl" style="line-height:44px;">我的老乡</view>
@ -208,11 +208,11 @@
</navigator> </navigator>
<view class="weui-grids"> <view class="weui-grids">
<navigator url="{{isLogin ? '../townsMan/index?state=0': '/pages/login/index'}}" class="weui-grid4 br1" hover-class="thover"> <navigator url="{{isLogin ? '../townsMan/index?state=0': '/pages/login/index'}}" class="weui-grid4 br1" hover-class="thover">
<view class="f20 c3 fwb">{{townsMnaNum.num0 || '0'}}</view> <view class="f20 c3 fwb">{{map.user0 || '0'}}</view>
<view class="weui-grid__label c6 f14">全部</view> <view class="weui-grid__label c6 f14">全部</view>
</navigator> </navigator>
<navigator url="{{isLogin ? '../townsMan/index?state=40': '/pages/login/index'}}" class="weui-grid4 br1" hover-class="thover"> <navigator url="{{isLogin ? '../townsMan/index?state=40': '/pages/login/index'}}" class="weui-grid4 br1" hover-class="thover">
<view class="f20 c3 fwb">{{townsMnaNum.num3 || '0'}}</view> <view class="f20 c3 fwb">{{map.user3 || '0'}}</view>
<view class="weui-grid__label c6 f14">在职中</view> <view class="weui-grid__label c6 f14">在职中</view>
</navigator> </navigator>
<!-- <navigator url="{{isLogin ? '../townsMan/index?state=0': '/pages/login/index'}}" class="weui-grid4 br1" wx:if="{{isLogin}}" hover-class="thover"> <!-- <navigator url="{{isLogin ? '../townsMan/index?state=0': '/pages/login/index'}}" class="weui-grid4 br1" wx:if="{{isLogin}}" hover-class="thover">
@ -220,7 +220,7 @@
<view class="weui-grid__label c6 f14">准备离职</view> <view class="weui-grid__label c6 f14">准备离职</view>
</navigator>--> </navigator>-->
<navigator url="{{isLogin ? '../townsMan/index?state=50': '/pages/login/index'}}" class="weui-grid4 br1" wx:if="{{isLogin}}" hover-class="thover"> <navigator url="{{isLogin ? '../townsMan/index?state=50': '/pages/login/index'}}" class="weui-grid4 br1" wx:if="{{isLogin}}" hover-class="thover">
<view class="f20 c3 fwb">{{townsMnaNum.num0 || '0'}}</view> <view class="f20 c3 fwb">{{map.user50 || '0'}}</view>
<view class="weui-grid__label c6 f14">已离职</view> <view class="weui-grid__label c6 f14">已离职</view>
</navigator> </navigator>
<!-- <navigator url="{{isLogin ? '../townsMan/index?state=1': '/pages/login/index'}}" class="weui-grid4 br1" hover-class="thover"> <!-- <navigator url="{{isLogin ? '../townsMan/index?state=1': '/pages/login/index'}}" class="weui-grid4 br1" hover-class="thover">

@ -1,7 +1,7 @@
{ {
"navigationBarBackgroundColor": "#fff", "navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "工单", "navigationBarTitleText": "报名工单",
"backgroundColor": "#f5f5f5", "backgroundColor": "#f5f5f5",
"usingComponents": { "usingComponents": {
"mp-tabs": "@miniprogram-component-plus/tabs" "mp-tabs": "@miniprogram-component-plus/tabs"

@ -165,11 +165,12 @@ Page({
onLoad: function (options) { onLoad: function (options) {
var that = this; var that = this;
//this.getLocation(); //this.getLocation();
console.log(options.state); console.log('options.state',options.state);
this.setData({ this.setData({
currIndex: options.state, currIndex: options.state,
// toped: options.state, // toped: options.state,
}); });
this.data.searchParam.status = that.data.currIndex;
that.getList(); that.getList();
// wx.showLoading({ // wx.showLoading({
@ -186,7 +187,7 @@ Page({
// this.data.searchParam.status = 48; // this.data.searchParam.status = 48;
// } // }
console.log(this.data.menuButton); console.log(this.data.menuButton);
this.data.searchParam.status = that.data.currIndex; console.log('that.data.currIndex',that.data.currIndex);
// this.data.searchParam.pageNum = 1; // this.data.searchParam.pageNum = 1;
console.log(this.data.searchParam); console.log(this.data.searchParam);
@ -256,7 +257,8 @@ Page({
}); });
that.data.searchParam.keys = that.data.inputVal == "搜索姓名" ? "" : that.data.inputVal; that.data.searchParam.keys = that.data.inputVal == "搜索姓名" ? "" : that.data.inputVal;
that.data.searchParam.binded = that.data.toped; that.data.searchParam.binded = that.data.toped;
customRequest("/yishoudan/agency/user/list",{header:'headers', method: 'GET', data: that.data.searchParam}).then((res)=>{ console.log('that.data.searchParam',that.data.searchParam);
customRequest("/yishoudan/agency/user/list",{header:'headers', method: 'POST', data: that.data.searchParam}).then((res)=>{
if (res.data.status == 200) { if (res.data.status == 200) {
that.setData({ that.setData({
isLoading: false, isLoading: false,

Loading…
Cancel
Save