123
This commit is contained in:
parent
3c5d371954
commit
419301dd98
|
@ -1,7 +1,10 @@
|
|||
<template>
|
||||
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;min-height: 100vh">
|
||||
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;" @touchmove="preventTouchMove">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<!-- <view style="padding-left: 15rpx;" @click="goBack()">
|
||||
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
||||
</view> -->
|
||||
<view class="tn-margin-top"
|
||||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
|
||||
|
@ -11,140 +14,127 @@
|
|||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center" @click="openMode" style="padding: 30rpx;">
|
||||
<view>
|
||||
<text v-if="tabbarIndex == 0" style="font-size: 34rpx;font-weight: 600;">所属行业</text>
|
||||
<text v-if="tabbarIndex == 1" style="font-size: 34rpx;font-weight: 600;">所属区域</text>
|
||||
<text v-if="tabbarIndex == 2" style="font-size: 34rpx;font-weight: 600;">组织架构</text>
|
||||
<text class="tn-icon-down-triangle" style="margin-left: 10rpx;"></text>
|
||||
</view>
|
||||
<view style="margin-left: 10rpx;">
|
||||
<view v-if="!isSerach">{{ tabRightInfo.name }}</view>
|
||||
<view v-if="isSerach">全部</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center" style="padding: 20rpx;">
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin">
|
||||
<view class="justify-content-item align-content-item" style="width: 100%;">
|
||||
<view class="tn-flex tn-flex-col-center"
|
||||
style="border-radius: 100rpx;padding: 10rpx 20rpx 10rpx 20rpx;width: 98%;background-color: #ffffff;">
|
||||
style="border-radius: 100rpx;padding: 10rpx 20rpx 10rpx 20rpx;width: 95%;background-color: #ffffff;">
|
||||
<text
|
||||
class="tn-icon-search justify-content-item tn-padding-right-xs tn-color-gray tn-text-lg"></text>
|
||||
<input v-model="serach_content" class="justify-content-item" placeholder="输入想要搜索的内容"
|
||||
name="input" placeholder-style="color:#AAAAAA" style="width: 90%;"></input>
|
||||
<input v-model="serach_content" class="justify-content-item" placeholder="会员姓名/手机号" name="input"
|
||||
placeholder-style="color:#AAAAAA" style="width: 90%;"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="align-content-item">
|
||||
<view class="justify-content-item tn-text-center">
|
||||
<tn-button @click="serach_do" backgroundColor="#ffffff" shape="round" padding="20rpx 20rpx"
|
||||
width="120rpx">
|
||||
<text class="tn-color-black">搜索</text>
|
||||
<tn-button @click="serach_do" backgroundColor="#3668fc" shape="round" padding="20rpx 20rpx"
|
||||
width="150rpx">
|
||||
<text class="tn-color-white">搜 索</text>
|
||||
</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<template v-for="(item,index) in list">
|
||||
<view v-if="item.neirong">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center tn-flex-row-center"
|
||||
style="margin-top: 20rpx;">
|
||||
<view style="background: #d9d9d980;height: 3rpx;width: 35%;"></view>
|
||||
<view style="margin: 0rpx 30rpx;font-size: 32rpx;">{{ item.position_name }}</view>
|
||||
<view style="background: #d9d9d980;height: 3rpx;width: 35%;"></view>
|
||||
</view>
|
||||
<view v-for="(v,k) in item.neirong" @click="tn('/pages/index/my_card?id='+v.member_id)"
|
||||
style="padding-left: 20rpx;"
|
||||
class="tn-classify__content__sub-classify__content__item tn-flex tn-flex-center tn-flex-col-center">
|
||||
<view style="width: 100rpx;height: 100rpx">
|
||||
<image :src="apiImgUrl+v.photo_image"
|
||||
style="width: 100rpx;height: 100rpx;border-radius:50%;">
|
||||
</image>
|
||||
</view>
|
||||
<view style="margin-left: 20rpx;">
|
||||
<view style="font-size: 28rpx;">
|
||||
<text>{{ v.nikename }}</text>
|
||||
</view>
|
||||
<view class="tn-text-ellipsis-2" style="font-size: 24rpx;margin-top: 10rpx;">
|
||||
<text>{{ v.enterprise_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
<tn-popup v-model="screenMode" mode="bottom" width="100%" height="100%" :customStyle="{position: 'fixed'}">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view class="tn-margin-top"
|
||||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
|
||||
<tn-tabs :list="[{name:'通讯录'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view style="background: #EBF4F7;height: 100%;">
|
||||
<view :style="{paddingTop: vuex_custom_bar_height +'px'}"></view>
|
||||
<view class="tn-flex">
|
||||
<view style="width: 400rpx;">
|
||||
<view v-for="(item,index) in tabList" @click="tabbarIndexCur(index)"
|
||||
class="tn-flex tn-flex-col-center"
|
||||
:style="{'background-color': tabbarIndex==index?'#ffffff':'transparent',padding:'20rpx 0rpx'}">
|
||||
<view :class="tabbarIndex==index?'actBackground':''"
|
||||
style="height: 50rpx;width: 15rpx;border-radius: 0px 10rpx 10rpx 0px;">
|
||||
</view>
|
||||
<view
|
||||
:style="{'margin-left':' 20rpx','color':tabbarIndex==index?'#3f8bf2':'#000000','font-size':'30rpx'}">
|
||||
{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="background-color: #ffffff;width: 100%;max-height: 1300rpx;overflow: scroll">
|
||||
<template v-for="(item,index) in tabRightList">
|
||||
<view class="tn-flex tn-flex-col-center" style="padding:20rpx 0rpx;"
|
||||
@click="tabRightListCur(index)">
|
||||
<view :class="tabRightIndex==index?'actBackground':''"
|
||||
style="height: 50rpx;width: 15rpx;border-radius: 0px 10rpx 10rpx 0px;">
|
||||
</view>
|
||||
<view
|
||||
:style="{'margin-left': '30rpx','color':tabRightIndex==index? '#3f8bf2':'#000000','font-size':'30rpx'}">
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="index<tabRightList.length-1"
|
||||
style="width: 100%;background: #d9d9d9cc;height: 1rpx;margin-left: 40rpx"></view>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-around" style="position: fixed;bottom: 100rpx;width: 100%;">
|
||||
<tn-button @click="delMode" width="330rpx" height="80rpx" backgroundColor="#ffffff"
|
||||
fontColor="#000000">取消
|
||||
</tn-button>
|
||||
<tn-button @click="serach_do" width="330rpx" height="80rpx" backgroundColor="#3f8bf2"
|
||||
fontColor="#ffffff">筛选
|
||||
</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</tn-popup>
|
||||
<!-- <view class="tn-flex tn-flex-col-center tn-flex-row-between" @click="selectShow= true"
|
||||
style="padding: 30rpx;">
|
||||
<view>
|
||||
<text>{{HomeTitle}}</text>
|
||||
<text class="tn-icon-down-triangle"></text>
|
||||
</view>
|
||||
<view>
|
||||
<text>筛选</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="tn-classify__container">
|
||||
<view class="tn-classify__container__wrap tn-flex tn-flex-nowrap tn-flex-row-around my-page"
|
||||
style="background-color: #EBF4F7;">
|
||||
<!-- 左边容器 -->
|
||||
<view class="tn-classify__left-box left-width">
|
||||
<view v-for="(item, index) in industry_list" :key="index" :id="`tabbar_item_${index}`"
|
||||
style="padding-left: 20rpx;" class="tn-classify__tabbar__item tn-flex tn-flex-col-center"
|
||||
:class="[tabbarItemClass(index)]" @tap.stop="clickClassifyNav(index)">
|
||||
<view class="tn-classify__tabbar__item__title">{{ item.industry_name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 右边容器 -->
|
||||
<scroll-view class="tn-classify__right-box" @scroll="getScroll" :scroll-top="top" scroll-y
|
||||
style="width: 72%">
|
||||
<block>
|
||||
<view class="tn-classify__content">
|
||||
<!-- 分类内容子栏目 -->
|
||||
<view class="tn-classify__content__sub-classify__content " style="padding-bottom: 120rpx;">
|
||||
<view v-for="(item,index) in list" :key="index">
|
||||
<view v-if="item.neirong"
|
||||
style="font-weight: 300;;background-color: #EBF4F7;color:#4AA2EF;width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;">
|
||||
{{item.position_name}}
|
||||
</view>
|
||||
<view v-if="item.neirong" v-for="(v,k) in item.neirong"
|
||||
@click="tn('/pages/index/my_card?id='+v.member_id)"
|
||||
class="tn-classify__content__sub-classify__content__item tn-flex tn-flex-center tn-flex-col-center">
|
||||
<!-- 标题,有需要可以显示出来 -->
|
||||
<view style="width: 100rpx;height: 100rpx">
|
||||
<image :src="apiImgUrl+v.photo_image"
|
||||
style="width: 100rpx;height: 100rpx;border-radius:50%;">
|
||||
</image>
|
||||
</view>
|
||||
<view style="margin-left: 20rpx;">
|
||||
<view style="font-size: 28rpx;">
|
||||
<text>{{v.nikename}}</text>
|
||||
<text style="margin-left: 50rpx;">{{v.nation}}</text>
|
||||
</view>
|
||||
<view class="tn-text-ellipsis-2"
|
||||
style="font-size: 24rpx;margin-top: 10rpx;">
|
||||
<text>{{v.enterprise_name==null?'':v.enterprise_name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="list.length==0" style="text-align: center;padding: 20rpx">
|
||||
暂无
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view @click="tn('/pages/index/apply_in')" style="line-height: 40rpx;text-align: center;position: fixed;bottom:15%;right: 20rpx;width: 120rpx;height: 120rpx;border-radius: 50%;background: linear-gradient(270deg, #EE7E45, #EE9657);-->
|
||||
<!--box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.2);">-->
|
||||
<!-- <view style="color: #fff;letter-spacing: 2rpx;padding: 20rpx;font-size: 32rpx;">申请入会-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<tn-select :safeAreaInsetBottom="true" v-model="selectShow" mode="single" :list="selectList"
|
||||
@confirm="confirm"></tn-select>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
addressList,
|
||||
getPosition,
|
||||
newIndustryIndex,
|
||||
getRegion
|
||||
associationIndex,
|
||||
newIndustryIndex
|
||||
} from '@/util/api.js';
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
screenMode: false,
|
||||
serach_content: '',
|
||||
list: [],
|
||||
tabList: ['所属行业', '所属区域', '组织架构'],
|
||||
topCurrent: 0,
|
||||
tabbarIndex: 0,
|
||||
// 分类菜单item的信息
|
||||
tabbarItemInfo: [],
|
||||
// scrollView的top值
|
||||
scrollViewBasicTop: 0,
|
||||
// scrollView的高度
|
||||
scrollViewHeight: 0,
|
||||
// 左边scrollView的滚动高度
|
||||
leftScrollViewTop: 0,
|
||||
// 右边scrollView的滚动高度
|
||||
rightScrollViewTop: 0,
|
||||
// 当前选中的tabbar序号
|
||||
currentTabbarIndex: 0,
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
industry_list: [],
|
||||
leftId: 0,
|
||||
|
@ -153,83 +143,72 @@
|
|||
selectList: [],
|
||||
gid: store.state.Gid,
|
||||
top: 0,
|
||||
tabRightList: '',
|
||||
tabRightIndex: 0,
|
||||
tabRightInfo: {},
|
||||
isSerach: false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// console.log(d.id);
|
||||
// if (typeof(d.id) != 'undefined') {
|
||||
// this.gid = d.id;
|
||||
// }
|
||||
this.loadTabData();
|
||||
computed: {
|
||||
tabbarItemClass() {
|
||||
return index => {
|
||||
if (index === this.currentTabbarIndex) {
|
||||
return 'tn-classify__tabbar__item--active tn-bg-white'
|
||||
} else {
|
||||
let clazz = ''
|
||||
if (this.currentTabbarIndex > 0 && index === this.currentTabbarIndex - 1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--prev'
|
||||
}
|
||||
if (this.currentTabbarIndex < this.industry_list.length && index === this.currentTabbarIndex +
|
||||
1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--next'
|
||||
}
|
||||
return clazz
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad(d) {
|
||||
console.log(d.id);
|
||||
if (typeof(d.id) != 'undefined') {
|
||||
this.gid = d.id;
|
||||
}
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
methods: {
|
||||
async loadTabData() {
|
||||
if (this.tabbarIndex === 0) {
|
||||
await this.getIndustryList();
|
||||
}
|
||||
if (this.tabbarIndex === 1) {
|
||||
await this.getRegionList();
|
||||
}
|
||||
if (this.tabbarIndex === 2) {
|
||||
await this.getPositionList();
|
||||
}
|
||||
console.log(this.tabRightInfo);
|
||||
this.getAddressList();
|
||||
},
|
||||
openMode() {
|
||||
uni.$emit('showTab', {
|
||||
index: false
|
||||
})
|
||||
this.screenMode = true;
|
||||
},
|
||||
delMode() {
|
||||
uni.$emit('showTab', {
|
||||
index: true
|
||||
})
|
||||
this.screenMode = false;
|
||||
preventTouchMove() {
|
||||
|
||||
},
|
||||
serach_do() {
|
||||
this.list = [];
|
||||
this.isSerach = false;
|
||||
this.serach_content = '';
|
||||
this.getAddressList();
|
||||
},
|
||||
getAddressList() {
|
||||
var industry_id = 0;
|
||||
var position_id = 0;
|
||||
var region_id = 0;
|
||||
if (this.serach_content == '') {
|
||||
this.isSerach = false;
|
||||
if (this.tabbarIndex == 0) {
|
||||
industry_id = this.tabRightInfo.id;
|
||||
} else if (this.tabbarIndex == 1) {
|
||||
region_id = this.tabRightInfo.id;
|
||||
} else {
|
||||
position_id = this.tabRightInfo.id;
|
||||
}
|
||||
} else {
|
||||
this.isSerach = true;
|
||||
industry_id = 0;
|
||||
position_id = 0;
|
||||
region_id = 0;
|
||||
}
|
||||
addressList({
|
||||
association_id: this.gid,
|
||||
industry_id: industry_id,
|
||||
position_id: position_id,
|
||||
region_id: region_id,
|
||||
nikename: this.serach_content,
|
||||
})
|
||||
getScroll(d) {
|
||||
this.top = d.scrollTop;
|
||||
},
|
||||
onload() {
|
||||
this.gid = store.state.Gid;
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
confirm(d) {
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid = info.value;
|
||||
this.getAssociationIndex();
|
||||
this.getIndustryList();
|
||||
},
|
||||
getAssociationIndex() {
|
||||
associationIndex()
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.list = res.data.ret;
|
||||
var key = res.data;
|
||||
const transformedSelectList = key.map(item => ({
|
||||
value: item.id,
|
||||
label: item.association_name
|
||||
}));
|
||||
const foundNumber = transformedSelectList.find((element) => element.value == this.gid);
|
||||
this.HomeTitle = foundNumber.label;
|
||||
this.selectList = transformedSelectList;
|
||||
}
|
||||
this.delMode();
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
|
@ -239,132 +218,94 @@
|
|||
});
|
||||
})
|
||||
},
|
||||
tabbarIndexCur(d) {
|
||||
this.tabRightIndex = 0;
|
||||
this.tabbarIndex = d;
|
||||
if (d == 0) {
|
||||
this.getIndustryList();
|
||||
}
|
||||
if (d == 1) {
|
||||
this.getRegionList();
|
||||
}
|
||||
if (d == 2) {
|
||||
this.getPositionList();
|
||||
}
|
||||
},
|
||||
tabRightListCur(d) {
|
||||
this.tabRightIndex = d;
|
||||
this.tabRightInfo = this.tabRightList[d];
|
||||
},
|
||||
confirm(d) {
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid = info.value;
|
||||
this.getIndustryList();
|
||||
},
|
||||
getRegionList() {
|
||||
return new Promise((resolve, reject) => {
|
||||
getRegion({
|
||||
association_id: this.gid
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(item => ({
|
||||
id: item.id,
|
||||
name: item.region_name
|
||||
}));
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
this.tabRightList = transformedSelectList;
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
},
|
||||
getPositionList() {
|
||||
return new Promise((resolve, reject) => {
|
||||
getPosition({
|
||||
association_id: this.gid
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(item => ({
|
||||
id: item.id,
|
||||
name: item.position_name
|
||||
}));
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
this.tabRightList = transformedSelectList;
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
},
|
||||
onload() {
|
||||
//this.tabbarIndex = 0;
|
||||
//this.gid = store.state.Gid;
|
||||
//this.getIndustryList();
|
||||
//this.getAddressList();
|
||||
//this.getAssociationIndex();
|
||||
},
|
||||
getIndustryList() {
|
||||
return new Promise((resolve, reject) => {
|
||||
newIndustryIndex({
|
||||
association_id: this.gid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
key.push({
|
||||
id: 0,
|
||||
industry_name: '其他行业'
|
||||
});
|
||||
var transformedSelectList = key.map(item => ({
|
||||
id: item.id,
|
||||
name: item.industry_name
|
||||
}));
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
this.tabRightList = transformedSelectList;
|
||||
this.tabRightInfo = transformedSelectList[0];
|
||||
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
newIndustryIndex({
|
||||
association_id: this.gid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.industry_list = res.data;
|
||||
this.industry_list.push({
|
||||
id: -1,
|
||||
industry_name: '其他行业'
|
||||
});
|
||||
})
|
||||
this.industry_list.unshift({
|
||||
id: 0,
|
||||
industry_name: '组织架构'
|
||||
});
|
||||
this.leftId = res.data[0].id;
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
this.getAddressList();
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getAddressList() {
|
||||
addressList({
|
||||
position_id: 0,
|
||||
association_id: this.gid,
|
||||
industry_id: this.leftId,
|
||||
nikename: this.serach_content
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.list = res.data.ret;
|
||||
}
|
||||
setTimeout(function() {
|
||||
uni.hideLoading();
|
||||
}, 2000);
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
clickClassifyNav(index) {
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
this.currentTabbarIndex = index;
|
||||
this.leftId = this.industry_list[index].id;
|
||||
this.list = [];
|
||||
this.top = this.randomBetween();
|
||||
this.getAddressList();
|
||||
//this.handleLeftScrollView(index)
|
||||
//this.switchClassifyContent();
|
||||
},
|
||||
randomBetween() {
|
||||
let baseRandom = Math.random() * (0.99999 - 0.00001) + 0.00001;
|
||||
return baseRandom.toFixed(5); //
|
||||
},
|
||||
// 点击分类后,处理scrollView滚动到居中位置
|
||||
handleLeftScrollView(index) {
|
||||
const tabbarItemTop = this.tabbarItemInfo[index].top - this.scrollViewBasicTop
|
||||
if (tabbarItemTop > this.scrollViewHeight / 2) {
|
||||
this.leftScrollViewTop = tabbarItemTop - (this.scrollViewHeight / 2) + this.tabbarItemInfo[index]
|
||||
.height
|
||||
} else {
|
||||
this.leftScrollViewTop = 0
|
||||
}
|
||||
},
|
||||
// 切换对应分类的数据
|
||||
switchClassifyContent() {
|
||||
this.rightScrollViewTop = 1
|
||||
this.$nextTick(() => {
|
||||
this.rightScrollViewTop = 0
|
||||
})
|
||||
|
||||
//this.classifyContent.subClassify[0].title = this.tabbar[this.currentTabbarIndex]
|
||||
},
|
||||
tn(url) {
|
||||
uni.navigateTo({
|
||||
|
@ -494,7 +435,8 @@
|
|||
/* 分类内容 end */
|
||||
}
|
||||
|
||||
.actBackground {
|
||||
background: #3f8bf2
|
||||
.my-page {
|
||||
height: calc(100vh - 286rpx);
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
</style>
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view style="letter-spacing: 1rpx;">
|
||||
<view style="letter-spacing: 1rpx;" v-cloak>
|
||||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view class="tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
|
@ -37,7 +37,7 @@
|
|||
<view style="margin: 15rpx 0rpx;" v-if="info.if_display_registrants==2">
|
||||
<text style="color: #0000FF;">●</text>
|
||||
<text style="margin-left: 10rpx;font-weight: 600;">报名人数:</text>
|
||||
<text style="color: #979797;">{{ info.list.length }}人</text>
|
||||
<text style="color: #979797;">{{ info.list.length}}人</text>
|
||||
</view>
|
||||
<view style="margin: 15rpx 0rpx;" v-if="info.if_display_registrants==1"
|
||||
class="tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between" @click="rightMod = true">
|
||||
|
@ -47,7 +47,7 @@
|
|||
<tn-avatar-group :border="false" :lists="info.list.slice(0, 10)"></tn-avatar-group>
|
||||
</view>
|
||||
<view>
|
||||
<text style="margin-right: 10rpx">{{info.list.length}}人</text>
|
||||
<text style="margin-right: 10rpx">{{info.list.length}}人</text>
|
||||
<text class="tn-icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -149,32 +149,35 @@
|
|||
</tn-button>
|
||||
</view>
|
||||
</tn-modal>
|
||||
<tn-popup v-model="rightMod" mode="right" width="70%">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :alpha="true" :bottomShadow="false">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="padding-left: 15rpx;" @click="rightMod = false">
|
||||
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top"
|
||||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
<tn-tabs :list="[{name:'报名详情'}]" :current="topCurrent" activeColor="#000"
|
||||
:bold="false" :fontSize="24"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view v-if="info.list.length!=0" class="tn-flex tn-flex-center tn-flex-col-center" v-for="(item,index) in info.list" @click="openUrl('/pages/index/my_card?id='+item.id)" style="margin-top: 20rpx;padding: 20rpx;">
|
||||
<view>
|
||||
<image :src="apiImgUrl+item.photo_image" style="width: 100rpx;height: 100rpx;border-radius: 50%"></image>
|
||||
</view>
|
||||
<view style="margin-left: 20rpx;">
|
||||
<view style="font-size: 30rpx;font-weight: 600">{{item.nikename}}</view>
|
||||
<view style="font-size: 24rpx;color: #999999;margin-top: 10rpx">{{item.position_name}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="info.list.length==0" style="text-align: center;padding-top: 40rpx">暂无</view>
|
||||
</view>
|
||||
</tn-popup>
|
||||
<tn-popup v-model="rightMod" mode="right" width="70%">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :alpha="true" :bottomShadow="false">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="padding-left: 15rpx;" @click="rightMod = false">
|
||||
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top"
|
||||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
<tn-tabs :list="[{name:'报名详情'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="24"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view v-if="info.list.length!=0" class="tn-flex tn-flex-center tn-flex-col-center"
|
||||
v-for="(item,index) in info.list" @click="openUrl('/pages/index/my_card?id='+item.id)"
|
||||
style="margin-top: 20rpx;padding: 20rpx;">
|
||||
<view>
|
||||
<image :src="apiImgUrl+item.photo_image"
|
||||
style="width: 100rpx;height: 100rpx;border-radius: 50%"></image>
|
||||
</view>
|
||||
<view style="margin-left: 20rpx;">
|
||||
<view style="font-size: 30rpx;font-weight: 600">{{item.nikename}}</view>
|
||||
<view style="font-size: 24rpx;color: #999999;margin-top: 10rpx">{{item.position_name}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="info.list.length==0" style="text-align: center;padding-top: 40rpx">暂无</view>
|
||||
</view>
|
||||
</tn-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -193,7 +196,7 @@
|
|||
return {
|
||||
money: '',
|
||||
juanMod: false,
|
||||
rightMod:false,
|
||||
rightMod: false,
|
||||
peiMod: false, //培训付费
|
||||
questionnaireList: [], //问卷列表
|
||||
button: [{
|
||||
|
@ -215,7 +218,9 @@
|
|||
},
|
||||
topCurrent: 0,
|
||||
id: 0,
|
||||
info: {},
|
||||
info: {
|
||||
list: []
|
||||
},
|
||||
apiImgUrl: this.$store.state.imgUrl
|
||||
}
|
||||
},
|
||||
|
@ -477,11 +482,11 @@
|
|||
});
|
||||
})
|
||||
},
|
||||
openUrl(url){
|
||||
uni.navigateTo({
|
||||
url:url
|
||||
})
|
||||
},
|
||||
openUrl(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
uni.navigateBack()
|
||||
|
@ -506,4 +511,4 @@
|
|||
line-height: 80rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
</style>
|
||||
</style>
|
|
@ -107,8 +107,7 @@
|
|||
style="width: 90rpx;height: 90rpx;position: absolute; right: 10rpx;bottom: 0;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view
|
||||
style="width: 92%;background-color: #ffffff;border-radius: 16rpx;margin: 0 auto;overflow: hidden;margin-top: 10rpx;"> -->
|
||||
<!-- <view style="width: 92%;background-color: #ffffff;border-radius: 16rpx;margin: 20rpx auto;overflow: hidden;"> -->
|
||||
<!-- <tn-list-cell>
|
||||
<view class="list-icon-text">
|
||||
<view class="list__left">
|
||||
|
@ -124,7 +123,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</tn-list-cell> -->
|
||||
<!-- <tn-notice-bar :list="list" @click="openInfo" leftIconType="img" mode="vertical" :rightIcon="true"
|
||||
<!-- <tn-notice-bar :list="list" @click="openInfo" leftIconType="img" mode="vertical" :rightIcon="true"
|
||||
backgroundColor="#ffffff" :radius="16" @clickRight="openRight" @clickLeft="openRight"></tn-notice-bar> -->
|
||||
<!-- </view> -->
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
<Service ref="service"></Service>
|
||||
</scroll-view>
|
||||
</view> -->
|
||||
<view v-if="tabberPageLoadFlag[1]" :style="{display: currentIndex === 1 ? '' : 'none'}">
|
||||
<scroll-view :class="tabShow?'custom-tabbar-page':''" scroll-y enable-back-to-top
|
||||
@scrolltolower="tabbarPageScrollLower">
|
||||
<view @touchmove="preventTouchMove" v-if=" tabberPageLoadFlag[1]"
|
||||
:style="{display: currentIndex === 1 ? '' : 'none'}">
|
||||
<view :class="tabShow?'custom-tabbar-page':''">
|
||||
<Directory ref="directory"></Directory>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="tabberPageLoadFlag[2]" :style="{display: currentIndex === 2 ? '' : 'none'}">
|
||||
<scroll-view class="custom-tabbar-page" scroll-y enable-back-to-top @scrolltolower="tabbarPageScrollLower">
|
||||
|
@ -134,7 +134,9 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
preventTouchMove() {
|
||||
|
||||
},
|
||||
childEvent(data) {
|
||||
console.log(123);
|
||||
console.log(data);
|
||||
|
|
|
@ -61,7 +61,8 @@
|
|||
<view style="font-size: 24rpx;color: #666666;margin-left: 30rpx;">
|
||||
<view style="font-size: 36rpx;font-weight: 600;color: #000000">{{userThisInfo.enterprise_name}}
|
||||
</view>
|
||||
<view style="margin: 15rpx 0rpx">所属行业:{{userThisInfo.industry_name}}</view>
|
||||
<view style="margin: 15rpx 0rpx">
|
||||
所属行业:{{userThisInfo.industry_id==-1?'其他行业':userThisInfo.industry_name}}</view>
|
||||
<view>企业地址:{{userThisInfo.enterprise_location}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -399,10 +399,14 @@
|
|||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
const transformedSelectList = key.map(item => ({
|
||||
var transformedSelectList = key.map(item => ({
|
||||
value: item.id,
|
||||
label: item.industry_name
|
||||
}));
|
||||
transformedSelectList.push({
|
||||
value: -1,
|
||||
label: '其他行业'
|
||||
});
|
||||
this.industry_list = transformedSelectList;
|
||||
}
|
||||
})
|
||||
|
|
|
@ -6,20 +6,22 @@
|
|||
<view class="tn-flex tn-flex-center tn-flex-col-center" style="padding: 30rpx;width: 100%;">
|
||||
<view v-if="login && userInfo.photo_image">
|
||||
<image :src="apiImgUrl+userInfo.photo_image"
|
||||
@click="tn_ru('/pages/index/my_card?id='+userInfo.member_id)"
|
||||
style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view v-if="!login || !userInfo.photo_image">
|
||||
<image src="/static/def.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view style="width: 100%;">
|
||||
<view v-if="login" class="tn-flex tn-flex-col-center tn-flex-row-between" @click="tn_ru('/pages/index/my_card?id='+userInfo.member_id)">
|
||||
<view style="margin-left: 20rpx;color: #fff">
|
||||
<view v-if="login" class="tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view style="margin-left: 20rpx;color: #fff"
|
||||
@click="tn_ru('/pages/index/my_card?id='+userInfo.member_id)">
|
||||
<view style="font-size: 35rpx;">{{ userInfo.nikename }}</view>
|
||||
<view style="font-size: 24rpx;margin-top: 10rpx;">{{userInfo.position_name}}</view>
|
||||
<view style="font-size: 24rpx;margin-top: 10rpx;">{{userInfo.position_name}}</view>
|
||||
</view>
|
||||
<view @click="tn('/pages/index/my_edit')">
|
||||
<image src="/static/ico13.png" style="width: 40rpx ;" mode="widthFix"></image>
|
||||
</view>
|
||||
<view @click="tn('/pages/index/my_edit')">
|
||||
<image src="/static/ico13.png" style="width: 40rpx ;" mode="widthFix"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="!login" class="tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view style="margin-left: 20rpx;color: #fff">
|
||||
|
@ -204,7 +206,10 @@
|
|||
mounted() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
this.uid = uid;
|
||||
this.getUserInfo();
|
||||
if (uid) {
|
||||
this.getUserInfo();
|
||||
}
|
||||
|
||||
this.getcheckCode();
|
||||
},
|
||||
methods: {
|
||||
|
@ -351,4 +356,4 @@
|
|||
.my_input input {
|
||||
width: 100% !important;
|
||||
}
|
||||
</style>
|
||||
</style>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -88,8 +88,8 @@ try {
|
|||
tnButton: function () {
|
||||
return Promise.all(/*! import() | tuniao-ui/components/tn-button/tn-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("tuniao-ui/components/tn-button/tn-button")]).then(__webpack_require__.bind(null, /*! @/tuniao-ui/components/tn-button/tn-button.vue */ 309))
|
||||
},
|
||||
tnPopup: function () {
|
||||
return Promise.all(/*! import() | tuniao-ui/components/tn-popup/tn-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("tuniao-ui/components/tn-popup/tn-popup")]).then(__webpack_require__.bind(null, /*! @/tuniao-ui/components/tn-popup/tn-popup.vue */ 366))
|
||||
tnSelect: function () {
|
||||
return __webpack_require__.e(/*! import() | tuniao-ui/components/tn-select/tn-select */ "tuniao-ui/components/tn-select/tn-select").then(__webpack_require__.bind(null, /*! @/tuniao-ui/components/tn-select/tn-select.vue */ 317))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
|
@ -113,11 +113,20 @@ var render = function () {
|
|||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var g0 = _vm.tabRightList.length
|
||||
var l0 = _vm.__map(_vm.industry_list, function (item, index) {
|
||||
var $orig = _vm.__get_orig(item)
|
||||
var m0 = _vm.tabbarItemClass(index)
|
||||
return {
|
||||
$orig: $orig,
|
||||
m0: m0,
|
||||
}
|
||||
})
|
||||
var g0 = _vm.list.length
|
||||
_vm.$mp.data = Object.assign(
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
l0: l0,
|
||||
g0: g0,
|
||||
},
|
||||
}
|
||||
|
@ -162,8 +171,6 @@ Object.defineProperty(exports, "__esModule", {
|
|||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
|
||||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
|
||||
var _api = __webpack_require__(/*! @/util/api.js */ 33);
|
||||
var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 30));
|
||||
//
|
||||
|
@ -277,33 +284,25 @@ var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 30));
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
screenMode: false,
|
||||
serach_content: '',
|
||||
list: [],
|
||||
tabList: ['所属行业', '所属区域', '组织架构'],
|
||||
topCurrent: 0,
|
||||
tabbarIndex: 0,
|
||||
// 分类菜单item的信息
|
||||
tabbarItemInfo: [],
|
||||
// scrollView的top值
|
||||
scrollViewBasicTop: 0,
|
||||
// scrollView的高度
|
||||
scrollViewHeight: 0,
|
||||
// 左边scrollView的滚动高度
|
||||
leftScrollViewTop: 0,
|
||||
// 右边scrollView的滚动高度
|
||||
rightScrollViewTop: 0,
|
||||
// 当前选中的tabbar序号
|
||||
currentTabbarIndex: 0,
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
industry_list: [],
|
||||
leftId: 0,
|
||||
|
@ -311,109 +310,75 @@ var _default = {
|
|||
HomeTitle: '',
|
||||
selectList: [],
|
||||
gid: _store.default.state.Gid,
|
||||
top: 0,
|
||||
tabRightList: '',
|
||||
tabRightIndex: 0,
|
||||
tabRightInfo: {},
|
||||
isSerach: false
|
||||
top: 0
|
||||
};
|
||||
},
|
||||
mounted: function mounted() {
|
||||
// console.log(d.id);
|
||||
// if (typeof(d.id) != 'undefined') {
|
||||
// this.gid = d.id;
|
||||
// }
|
||||
this.loadTabData();
|
||||
computed: {
|
||||
tabbarItemClass: function tabbarItemClass() {
|
||||
var _this = this;
|
||||
return function (index) {
|
||||
if (index === _this.currentTabbarIndex) {
|
||||
return 'tn-classify__tabbar__item--active tn-bg-white';
|
||||
} else {
|
||||
var clazz = '';
|
||||
if (_this.currentTabbarIndex > 0 && index === _this.currentTabbarIndex - 1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--prev';
|
||||
}
|
||||
if (_this.currentTabbarIndex < _this.industry_list.length && index === _this.currentTabbarIndex + 1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--next';
|
||||
}
|
||||
return clazz;
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
onLoad: function onLoad(d) {
|
||||
console.log(d.id);
|
||||
if (typeof d.id != 'undefined') {
|
||||
this.gid = d.id;
|
||||
}
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
methods: {
|
||||
loadTabData: function loadTabData() {
|
||||
var _this = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||||
return _regenerator.default.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
if (!(_this.tabbarIndex === 0)) {
|
||||
_context.next = 3;
|
||||
break;
|
||||
}
|
||||
_context.next = 3;
|
||||
return _this.getIndustryList();
|
||||
case 3:
|
||||
if (!(_this.tabbarIndex === 1)) {
|
||||
_context.next = 6;
|
||||
break;
|
||||
}
|
||||
_context.next = 6;
|
||||
return _this.getRegionList();
|
||||
case 6:
|
||||
if (!(_this.tabbarIndex === 2)) {
|
||||
_context.next = 9;
|
||||
break;
|
||||
}
|
||||
_context.next = 9;
|
||||
return _this.getPositionList();
|
||||
case 9:
|
||||
console.log(_this.tabRightInfo);
|
||||
_this.getAddressList();
|
||||
case 11:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee);
|
||||
}))();
|
||||
},
|
||||
openMode: function openMode() {
|
||||
uni.$emit('showTab', {
|
||||
index: false
|
||||
});
|
||||
this.screenMode = true;
|
||||
},
|
||||
delMode: function delMode() {
|
||||
uni.$emit('showTab', {
|
||||
index: true
|
||||
});
|
||||
this.screenMode = false;
|
||||
},
|
||||
preventTouchMove: function preventTouchMove() {},
|
||||
serach_do: function serach_do() {
|
||||
this.list = [];
|
||||
this.isSerach = false;
|
||||
this.serach_content = '';
|
||||
this.getAddressList();
|
||||
},
|
||||
getAddressList: function getAddressList() {
|
||||
getScroll: function getScroll(d) {
|
||||
this.top = d.scrollTop;
|
||||
},
|
||||
onload: function onload() {
|
||||
this.gid = _store.default.state.Gid;
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
confirm: function confirm(d) {
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid = info.value;
|
||||
this.getAssociationIndex();
|
||||
this.getIndustryList();
|
||||
},
|
||||
getAssociationIndex: function getAssociationIndex() {
|
||||
var _this2 = this;
|
||||
var industry_id = 0;
|
||||
var position_id = 0;
|
||||
var region_id = 0;
|
||||
if (this.serach_content == '') {
|
||||
this.isSerach = false;
|
||||
if (this.tabbarIndex == 0) {
|
||||
industry_id = this.tabRightInfo.id;
|
||||
} else if (this.tabbarIndex == 1) {
|
||||
region_id = this.tabRightInfo.id;
|
||||
} else {
|
||||
position_id = this.tabRightInfo.id;
|
||||
}
|
||||
} else {
|
||||
this.isSerach = true;
|
||||
industry_id = 0;
|
||||
position_id = 0;
|
||||
region_id = 0;
|
||||
}
|
||||
(0, _api.addressList)({
|
||||
association_id: this.gid,
|
||||
industry_id: industry_id,
|
||||
position_id: position_id,
|
||||
region_id: region_id,
|
||||
nikename: this.serach_content
|
||||
}).then(function (res) {
|
||||
(0, _api.associationIndex)().then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
_this2.list = res.data.ret;
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.association_name
|
||||
};
|
||||
});
|
||||
var foundNumber = transformedSelectList.find(function (element) {
|
||||
return element.value == _this2.gid;
|
||||
});
|
||||
_this2.HomeTitle = foundNumber.label;
|
||||
_this2.selectList = transformedSelectList;
|
||||
}
|
||||
_this2.delMode();
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
|
@ -422,132 +387,93 @@ var _default = {
|
|||
});
|
||||
});
|
||||
},
|
||||
tabbarIndexCur: function tabbarIndexCur(d) {
|
||||
this.tabRightIndex = 0;
|
||||
this.tabbarIndex = d;
|
||||
if (d == 0) {
|
||||
this.getIndustryList();
|
||||
}
|
||||
if (d == 1) {
|
||||
this.getRegionList();
|
||||
}
|
||||
if (d == 2) {
|
||||
this.getPositionList();
|
||||
}
|
||||
},
|
||||
tabRightListCur: function tabRightListCur(d) {
|
||||
this.tabRightIndex = d;
|
||||
this.tabRightInfo = this.tabRightList[d];
|
||||
},
|
||||
confirm: function confirm(d) {
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid = info.value;
|
||||
this.getIndustryList();
|
||||
},
|
||||
getRegionList: function getRegionList() {
|
||||
var _this3 = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
(0, _api.getRegion)({
|
||||
association_id: _this3.gid
|
||||
}).then(function (res) {
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
id: item.id,
|
||||
name: item.region_name
|
||||
};
|
||||
});
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
_this3.tabRightList = transformedSelectList;
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
getPositionList: function getPositionList() {
|
||||
var _this4 = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
(0, _api.getPosition)({
|
||||
association_id: _this4.gid
|
||||
}).then(function (res) {
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
id: item.id,
|
||||
name: item.position_name
|
||||
};
|
||||
});
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
_this4.tabRightList = transformedSelectList;
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
onload: function onload() {
|
||||
//this.tabbarIndex = 0;
|
||||
//this.gid = store.state.Gid;
|
||||
//this.getIndustryList();
|
||||
//this.getAddressList();
|
||||
//this.getAssociationIndex();
|
||||
},
|
||||
getIndustryList: function getIndustryList() {
|
||||
var _this5 = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
(0, _api.newIndustryIndex)({
|
||||
association_id: _this5.gid
|
||||
}).then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
key.push({
|
||||
id: 0,
|
||||
industry_name: '其他行业'
|
||||
});
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
id: item.id,
|
||||
name: item.industry_name
|
||||
};
|
||||
});
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
_this5.tabRightList = transformedSelectList;
|
||||
_this5.tabRightInfo = transformedSelectList[0];
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
var _this3 = this;
|
||||
(0, _api.newIndustryIndex)({
|
||||
association_id: this.gid
|
||||
}).then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
_this3.industry_list = res.data;
|
||||
_this3.industry_list.push({
|
||||
id: -1,
|
||||
industry_name: '其他行业'
|
||||
});
|
||||
_this3.industry_list.unshift({
|
||||
id: 0,
|
||||
industry_name: '组织架构'
|
||||
});
|
||||
_this3.leftId = res.data[0].id;
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
_this3.getAddressList();
|
||||
}
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
},
|
||||
getAddressList: function getAddressList() {
|
||||
var _this4 = this;
|
||||
(0, _api.addressList)({
|
||||
position_id: 0,
|
||||
association_id: this.gid,
|
||||
industry_id: this.leftId,
|
||||
nikename: this.serach_content
|
||||
}).then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
_this4.list = res.data.ret;
|
||||
}
|
||||
setTimeout(function () {
|
||||
uni.hideLoading();
|
||||
}, 2000);
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
},
|
||||
clickClassifyNav: function clickClassifyNav(index) {
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
this.currentTabbarIndex = index;
|
||||
this.leftId = this.industry_list[index].id;
|
||||
this.list = [];
|
||||
this.top = this.randomBetween();
|
||||
this.getAddressList();
|
||||
//this.handleLeftScrollView(index)
|
||||
//this.switchClassifyContent();
|
||||
},
|
||||
randomBetween: function randomBetween() {
|
||||
var baseRandom = Math.random() * (0.99999 - 0.00001) + 0.00001;
|
||||
return baseRandom.toFixed(5); //
|
||||
},
|
||||
// 点击分类后,处理scrollView滚动到居中位置
|
||||
handleLeftScrollView: function handleLeftScrollView(index) {
|
||||
var tabbarItemTop = this.tabbarItemInfo[index].top - this.scrollViewBasicTop;
|
||||
if (tabbarItemTop > this.scrollViewHeight / 2) {
|
||||
this.leftScrollViewTop = tabbarItemTop - this.scrollViewHeight / 2 + this.tabbarItemInfo[index].height;
|
||||
} else {
|
||||
this.leftScrollViewTop = 0;
|
||||
}
|
||||
},
|
||||
// 切换对应分类的数据
|
||||
switchClassifyContent: function switchClassifyContent() {
|
||||
var _this5 = this;
|
||||
this.rightScrollViewTop = 1;
|
||||
this.$nextTick(function () {
|
||||
_this5.rightScrollViewTop = 0;
|
||||
});
|
||||
//this.classifyContent.subClassify[0].title = this.tabbar[this.currentTabbarIndex]
|
||||
},
|
||||
tn: function tn(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"tn-nav-bar": "/tuniao-ui/components/tn-nav-bar/tn-nav-bar",
|
||||
"tn-tabs": "/tuniao-ui/components/tn-tabs/tn-tabs",
|
||||
"tn-button": "/tuniao-ui/components/tn-button/tn-button",
|
||||
"tn-popup": "/tuniao-ui/components/tn-popup/tn-popup"
|
||||
"tn-select": "/tuniao-ui/components/tn-select/tn-select"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -73,7 +73,8 @@
|
|||
.tn-classify__content__sub-classify__content__item.data-v-671ec3f2 {
|
||||
padding: 20rpx;
|
||||
}
|
||||
.actBackground.data-v-671ec3f2 {
|
||||
background: #3f8bf2;
|
||||
.my-page.data-v-671ec3f2 {
|
||||
height: calc(100vh - 286rpx);
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
|
||||
|
|
|
@ -421,6 +421,9 @@ var _index = _interopRequireDefault(__webpack_require__(/*! @/store/index.js */
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
@ -448,7 +451,9 @@ var _default = {
|
|||
},
|
||||
topCurrent: 0,
|
||||
id: 0,
|
||||
info: {},
|
||||
info: {
|
||||
list: []
|
||||
},
|
||||
apiImgUrl: this.$store.state.imgUrl
|
||||
};
|
||||
},
|
||||
|
|
|
@ -453,7 +453,6 @@ var _index = _interopRequireDefault(__webpack_require__(/*! @/store/index.js */
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
|
|
@ -289,6 +289,7 @@ var _default = {
|
|||
};
|
||||
},
|
||||
methods: {
|
||||
preventTouchMove: function preventTouchMove() {},
|
||||
childEvent: function childEvent(data) {
|
||||
console.log(123);
|
||||
console.log(data);
|
||||
|
@ -779,7 +780,6 @@ var _index = _interopRequireDefault(__webpack_require__(/*! @/store/index.js */
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
@ -2107,6 +2107,8 @@ var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 30));
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
@ -2130,7 +2132,9 @@ var _default = {
|
|||
mounted: function mounted() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
this.uid = uid;
|
||||
this.getUserInfo();
|
||||
if (uid) {
|
||||
this.getUserInfo();
|
||||
}
|
||||
this.getcheckCode();
|
||||
},
|
||||
methods: {
|
||||
|
@ -2378,8 +2382,8 @@ try {
|
|||
tnButton: function () {
|
||||
return Promise.all(/*! import() | tuniao-ui/components/tn-button/tn-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("tuniao-ui/components/tn-button/tn-button")]).then(__webpack_require__.bind(null, /*! @/tuniao-ui/components/tn-button/tn-button.vue */ 309))
|
||||
},
|
||||
tnPopup: function () {
|
||||
return Promise.all(/*! import() | tuniao-ui/components/tn-popup/tn-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("tuniao-ui/components/tn-popup/tn-popup")]).then(__webpack_require__.bind(null, /*! @/tuniao-ui/components/tn-popup/tn-popup.vue */ 366))
|
||||
tnSelect: function () {
|
||||
return __webpack_require__.e(/*! import() | tuniao-ui/components/tn-select/tn-select */ "tuniao-ui/components/tn-select/tn-select").then(__webpack_require__.bind(null, /*! @/tuniao-ui/components/tn-select/tn-select.vue */ 317))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
|
@ -2403,11 +2407,20 @@ var render = function () {
|
|||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var g0 = _vm.tabRightList.length
|
||||
var l0 = _vm.__map(_vm.industry_list, function (item, index) {
|
||||
var $orig = _vm.__get_orig(item)
|
||||
var m0 = _vm.tabbarItemClass(index)
|
||||
return {
|
||||
$orig: $orig,
|
||||
m0: m0,
|
||||
}
|
||||
})
|
||||
var g0 = _vm.list.length
|
||||
_vm.$mp.data = Object.assign(
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
l0: l0,
|
||||
g0: g0,
|
||||
},
|
||||
}
|
||||
|
@ -2450,8 +2463,6 @@ Object.defineProperty(exports, "__esModule", {
|
|||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
|
||||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
|
||||
var _api = __webpack_require__(/*! @/util/api.js */ 33);
|
||||
var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 30));
|
||||
//
|
||||
|
@ -2565,33 +2576,25 @@ var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 30));
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
screenMode: false,
|
||||
serach_content: '',
|
||||
list: [],
|
||||
tabList: ['所属行业', '所属区域', '组织架构'],
|
||||
topCurrent: 0,
|
||||
tabbarIndex: 0,
|
||||
// 分类菜单item的信息
|
||||
tabbarItemInfo: [],
|
||||
// scrollView的top值
|
||||
scrollViewBasicTop: 0,
|
||||
// scrollView的高度
|
||||
scrollViewHeight: 0,
|
||||
// 左边scrollView的滚动高度
|
||||
leftScrollViewTop: 0,
|
||||
// 右边scrollView的滚动高度
|
||||
rightScrollViewTop: 0,
|
||||
// 当前选中的tabbar序号
|
||||
currentTabbarIndex: 0,
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
industry_list: [],
|
||||
leftId: 0,
|
||||
|
@ -2599,109 +2602,75 @@ var _default = {
|
|||
HomeTitle: '',
|
||||
selectList: [],
|
||||
gid: _store.default.state.Gid,
|
||||
top: 0,
|
||||
tabRightList: '',
|
||||
tabRightIndex: 0,
|
||||
tabRightInfo: {},
|
||||
isSerach: false
|
||||
top: 0
|
||||
};
|
||||
},
|
||||
mounted: function mounted() {
|
||||
// console.log(d.id);
|
||||
// if (typeof(d.id) != 'undefined') {
|
||||
// this.gid = d.id;
|
||||
// }
|
||||
this.loadTabData();
|
||||
computed: {
|
||||
tabbarItemClass: function tabbarItemClass() {
|
||||
var _this = this;
|
||||
return function (index) {
|
||||
if (index === _this.currentTabbarIndex) {
|
||||
return 'tn-classify__tabbar__item--active tn-bg-white';
|
||||
} else {
|
||||
var clazz = '';
|
||||
if (_this.currentTabbarIndex > 0 && index === _this.currentTabbarIndex - 1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--prev';
|
||||
}
|
||||
if (_this.currentTabbarIndex < _this.industry_list.length && index === _this.currentTabbarIndex + 1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--next';
|
||||
}
|
||||
return clazz;
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
onLoad: function onLoad(d) {
|
||||
console.log(d.id);
|
||||
if (typeof d.id != 'undefined') {
|
||||
this.gid = d.id;
|
||||
}
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
methods: {
|
||||
loadTabData: function loadTabData() {
|
||||
var _this = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||||
return _regenerator.default.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
if (!(_this.tabbarIndex === 0)) {
|
||||
_context.next = 3;
|
||||
break;
|
||||
}
|
||||
_context.next = 3;
|
||||
return _this.getIndustryList();
|
||||
case 3:
|
||||
if (!(_this.tabbarIndex === 1)) {
|
||||
_context.next = 6;
|
||||
break;
|
||||
}
|
||||
_context.next = 6;
|
||||
return _this.getRegionList();
|
||||
case 6:
|
||||
if (!(_this.tabbarIndex === 2)) {
|
||||
_context.next = 9;
|
||||
break;
|
||||
}
|
||||
_context.next = 9;
|
||||
return _this.getPositionList();
|
||||
case 9:
|
||||
console.log(_this.tabRightInfo);
|
||||
_this.getAddressList();
|
||||
case 11:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee);
|
||||
}))();
|
||||
},
|
||||
openMode: function openMode() {
|
||||
uni.$emit('showTab', {
|
||||
index: false
|
||||
});
|
||||
this.screenMode = true;
|
||||
},
|
||||
delMode: function delMode() {
|
||||
uni.$emit('showTab', {
|
||||
index: true
|
||||
});
|
||||
this.screenMode = false;
|
||||
},
|
||||
preventTouchMove: function preventTouchMove() {},
|
||||
serach_do: function serach_do() {
|
||||
this.list = [];
|
||||
this.isSerach = false;
|
||||
this.serach_content = '';
|
||||
this.getAddressList();
|
||||
},
|
||||
getAddressList: function getAddressList() {
|
||||
getScroll: function getScroll(d) {
|
||||
this.top = d.scrollTop;
|
||||
},
|
||||
onload: function onload() {
|
||||
this.gid = _store.default.state.Gid;
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
confirm: function confirm(d) {
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid = info.value;
|
||||
this.getAssociationIndex();
|
||||
this.getIndustryList();
|
||||
},
|
||||
getAssociationIndex: function getAssociationIndex() {
|
||||
var _this2 = this;
|
||||
var industry_id = 0;
|
||||
var position_id = 0;
|
||||
var region_id = 0;
|
||||
if (this.serach_content == '') {
|
||||
this.isSerach = false;
|
||||
if (this.tabbarIndex == 0) {
|
||||
industry_id = this.tabRightInfo.id;
|
||||
} else if (this.tabbarIndex == 1) {
|
||||
region_id = this.tabRightInfo.id;
|
||||
} else {
|
||||
position_id = this.tabRightInfo.id;
|
||||
}
|
||||
} else {
|
||||
this.isSerach = true;
|
||||
industry_id = 0;
|
||||
position_id = 0;
|
||||
region_id = 0;
|
||||
}
|
||||
(0, _api.addressList)({
|
||||
association_id: this.gid,
|
||||
industry_id: industry_id,
|
||||
position_id: position_id,
|
||||
region_id: region_id,
|
||||
nikename: this.serach_content
|
||||
}).then(function (res) {
|
||||
(0, _api.associationIndex)().then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
_this2.list = res.data.ret;
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.association_name
|
||||
};
|
||||
});
|
||||
var foundNumber = transformedSelectList.find(function (element) {
|
||||
return element.value == _this2.gid;
|
||||
});
|
||||
_this2.HomeTitle = foundNumber.label;
|
||||
_this2.selectList = transformedSelectList;
|
||||
}
|
||||
_this2.delMode();
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
|
@ -2710,132 +2679,93 @@ var _default = {
|
|||
});
|
||||
});
|
||||
},
|
||||
tabbarIndexCur: function tabbarIndexCur(d) {
|
||||
this.tabRightIndex = 0;
|
||||
this.tabbarIndex = d;
|
||||
if (d == 0) {
|
||||
this.getIndustryList();
|
||||
}
|
||||
if (d == 1) {
|
||||
this.getRegionList();
|
||||
}
|
||||
if (d == 2) {
|
||||
this.getPositionList();
|
||||
}
|
||||
},
|
||||
tabRightListCur: function tabRightListCur(d) {
|
||||
this.tabRightIndex = d;
|
||||
this.tabRightInfo = this.tabRightList[d];
|
||||
},
|
||||
confirm: function confirm(d) {
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid = info.value;
|
||||
this.getIndustryList();
|
||||
},
|
||||
getRegionList: function getRegionList() {
|
||||
var _this3 = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
(0, _api.getRegion)({
|
||||
association_id: _this3.gid
|
||||
}).then(function (res) {
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
id: item.id,
|
||||
name: item.region_name
|
||||
};
|
||||
});
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
_this3.tabRightList = transformedSelectList;
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
getPositionList: function getPositionList() {
|
||||
var _this4 = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
(0, _api.getPosition)({
|
||||
association_id: _this4.gid
|
||||
}).then(function (res) {
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
id: item.id,
|
||||
name: item.position_name
|
||||
};
|
||||
});
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
_this4.tabRightList = transformedSelectList;
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
onload: function onload() {
|
||||
//this.tabbarIndex = 0;
|
||||
//this.gid = store.state.Gid;
|
||||
//this.getIndustryList();
|
||||
//this.getAddressList();
|
||||
//this.getAssociationIndex();
|
||||
},
|
||||
getIndustryList: function getIndustryList() {
|
||||
var _this5 = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
(0, _api.newIndustryIndex)({
|
||||
association_id: _this5.gid
|
||||
}).then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
key.push({
|
||||
id: 0,
|
||||
industry_name: '其他行业'
|
||||
});
|
||||
var transformedSelectList = key.map(function (item) {
|
||||
return {
|
||||
id: item.id,
|
||||
name: item.industry_name
|
||||
};
|
||||
});
|
||||
transformedSelectList.unshift({
|
||||
id: 0,
|
||||
name: '全部'
|
||||
});
|
||||
_this5.tabRightList = transformedSelectList;
|
||||
_this5.tabRightInfo = transformedSelectList[0];
|
||||
}
|
||||
resolve(); // 当操作成功时调用resolve
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
var _this3 = this;
|
||||
(0, _api.newIndustryIndex)({
|
||||
association_id: this.gid
|
||||
}).then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
_this3.industry_list = res.data;
|
||||
_this3.industry_list.push({
|
||||
id: -1,
|
||||
industry_name: '其他行业'
|
||||
});
|
||||
_this3.industry_list.unshift({
|
||||
id: 0,
|
||||
industry_name: '组织架构'
|
||||
});
|
||||
_this3.leftId = res.data[0].id;
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
_this3.getAddressList();
|
||||
}
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
},
|
||||
getAddressList: function getAddressList() {
|
||||
var _this4 = this;
|
||||
(0, _api.addressList)({
|
||||
position_id: 0,
|
||||
association_id: this.gid,
|
||||
industry_id: this.leftId,
|
||||
nikename: this.serach_content
|
||||
}).then(function (res) {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
_this4.list = res.data.ret;
|
||||
}
|
||||
setTimeout(function () {
|
||||
uni.hideLoading();
|
||||
}, 2000);
|
||||
}).catch(function (error) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
},
|
||||
clickClassifyNav: function clickClassifyNav(index) {
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
this.currentTabbarIndex = index;
|
||||
this.leftId = this.industry_list[index].id;
|
||||
this.list = [];
|
||||
this.top = this.randomBetween();
|
||||
this.getAddressList();
|
||||
//this.handleLeftScrollView(index)
|
||||
//this.switchClassifyContent();
|
||||
},
|
||||
randomBetween: function randomBetween() {
|
||||
var baseRandom = Math.random() * (0.99999 - 0.00001) + 0.00001;
|
||||
return baseRandom.toFixed(5); //
|
||||
},
|
||||
// 点击分类后,处理scrollView滚动到居中位置
|
||||
handleLeftScrollView: function handleLeftScrollView(index) {
|
||||
var tabbarItemTop = this.tabbarItemInfo[index].top - this.scrollViewBasicTop;
|
||||
if (tabbarItemTop > this.scrollViewHeight / 2) {
|
||||
this.leftScrollViewTop = tabbarItemTop - this.scrollViewHeight / 2 + this.tabbarItemInfo[index].height;
|
||||
} else {
|
||||
this.leftScrollViewTop = 0;
|
||||
}
|
||||
},
|
||||
// 切换对应分类的数据
|
||||
switchClassifyContent: function switchClassifyContent() {
|
||||
var _this5 = this;
|
||||
this.rightScrollViewTop = 1;
|
||||
this.$nextTick(function () {
|
||||
_this5.rightScrollViewTop = 0;
|
||||
});
|
||||
//this.classifyContent.subClassify[0].title = this.tabbar[this.currentTabbarIndex]
|
||||
},
|
||||
tn: function tn(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
|
|
@ -1 +1 @@
|
|||
<view class="index data-v-57280228"><block wx:if="{{tabberPageLoadFlag[0]}}"><view style="{{'display:'+(currentIndex===0?'':'none')+';'}}" class="data-v-57280228"><scroll-view class="custom-tabbar-page data-v-57280228" scroll-y="{{true}}" enable-back-to-top="{{true}}" data-event-opts="{{[['scrolltolower',[['tabbarPageScrollLower',['$event']]]]]}}" bindscrolltolower="__e"><home vue-id="8dd740cc-1" data-ref="home" class="data-v-57280228 vue-ref" bind:__l="__l"></home></scroll-view></view></block><block wx:if="{{tabberPageLoadFlag[1]}}"><view style="{{'display:'+(currentIndex===1?'':'none')+';'}}" class="data-v-57280228"><scroll-view class="{{['data-v-57280228',tabShow?'custom-tabbar-page':'']}}" scroll-y="{{true}}" enable-back-to-top="{{true}}" data-event-opts="{{[['scrolltolower',[['tabbarPageScrollLower',['$event']]]]]}}" bindscrolltolower="__e"><directory vue-id="8dd740cc-2" data-ref="directory" class="data-v-57280228 vue-ref" bind:__l="__l"></directory></scroll-view></view></block><block wx:if="{{tabberPageLoadFlag[2]}}"><view style="{{'display:'+(currentIndex===2?'':'none')+';'}}" class="data-v-57280228"><scroll-view class="custom-tabbar-page data-v-57280228" scroll-y="{{true}}" enable-back-to-top="{{true}}" data-event-opts="{{[['scrolltolower',[['tabbarPageScrollLower',['$event']]]]]}}" bindscrolltolower="__e"><pizz vue-id="8dd740cc-3" data-ref="pizz" class="data-v-57280228 vue-ref" bind:__l="__l"></pizz></scroll-view></view></block><block wx:if="{{tabberPageLoadFlag[3]}}"><view style="{{'display:'+(currentIndex===3?'':'none')+';'}}" class="data-v-57280228"><scroll-view class="custom-tabbar-page data-v-57280228" scroll-y="{{true}}" enable-back-to-top="{{true}}" data-event-opts="{{[['scrolltolower',[['tabbarPageScrollLower',['$event']]]]]}}" bindscrolltolower="__e"><user vue-id="8dd740cc-4" data-ref="user" class="data-v-57280228 vue-ref" bind:__l="__l"></user></scroll-view></view></block><tn-tabbar vue-id="8dd740cc-5" show="{{tabShow}}" outHeight="{{140}}" height="{{120}}" list="{{tabbarList}}" activeColor="#3377FF" inactiveColor="#AAAAAA" activeIconColor="#3377FF" inactiveIconColor="#8A8E99" animation="{{true}}" safeAreaInsetBottom="{{true}}" value="{{currentIndex}}" data-event-opts="{{[['^change',[['switchTabbar']]],['^input',[['__set_model',['','currentIndex','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-57280228" bind:__l="__l"></tn-tabbar></view>
|
||||
<view class="index data-v-57280228"><block wx:if="{{tabberPageLoadFlag[0]}}"><view style="{{'display:'+(currentIndex===0?'':'none')+';'}}" class="data-v-57280228"><scroll-view class="custom-tabbar-page data-v-57280228" scroll-y="{{true}}" enable-back-to-top="{{true}}" data-event-opts="{{[['scrolltolower',[['tabbarPageScrollLower',['$event']]]]]}}" bindscrolltolower="__e"><home vue-id="8dd740cc-1" data-ref="home" class="data-v-57280228 vue-ref" bind:__l="__l"></home></scroll-view></view></block><block wx:if="{{tabberPageLoadFlag[1]}}"><view data-event-opts="{{[['touchmove',[['preventTouchMove',['$event']]]]]}}" style="{{'display:'+(currentIndex===1?'':'none')+';'}}" bindtouchmove="__e" class="data-v-57280228"><view class="{{['data-v-57280228',tabShow?'custom-tabbar-page':'']}}"><directory vue-id="8dd740cc-2" data-ref="directory" class="data-v-57280228 vue-ref" bind:__l="__l"></directory></view></view></block><block wx:if="{{tabberPageLoadFlag[2]}}"><view style="{{'display:'+(currentIndex===2?'':'none')+';'}}" class="data-v-57280228"><scroll-view class="custom-tabbar-page data-v-57280228" scroll-y="{{true}}" enable-back-to-top="{{true}}" data-event-opts="{{[['scrolltolower',[['tabbarPageScrollLower',['$event']]]]]}}" bindscrolltolower="__e"><pizz vue-id="8dd740cc-3" data-ref="pizz" class="data-v-57280228 vue-ref" bind:__l="__l"></pizz></scroll-view></view></block><block wx:if="{{tabberPageLoadFlag[3]}}"><view style="{{'display:'+(currentIndex===3?'':'none')+';'}}" class="data-v-57280228"><scroll-view class="custom-tabbar-page data-v-57280228" scroll-y="{{true}}" enable-back-to-top="{{true}}" data-event-opts="{{[['scrolltolower',[['tabbarPageScrollLower',['$event']]]]]}}" bindscrolltolower="__e"><user vue-id="8dd740cc-4" data-ref="user" class="data-v-57280228 vue-ref" bind:__l="__l"></user></scroll-view></view></block><tn-tabbar vue-id="8dd740cc-5" show="{{tabShow}}" outHeight="{{140}}" height="{{120}}" list="{{tabbarList}}" activeColor="#3377FF" inactiveColor="#AAAAAA" activeIconColor="#3377FF" inactiveIconColor="#8A8E99" animation="{{true}}" safeAreaInsetBottom="{{true}}" value="{{currentIndex}}" data-event-opts="{{[['^change',[['switchTabbar']]],['^input',[['__set_model',['','currentIndex','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-57280228" bind:__l="__l"></tn-tabbar></view>
|
|
@ -117,8 +117,9 @@
|
|||
.tn-classify__content__sub-classify__content__item.data-v-671ec3f2 {
|
||||
padding: 20rpx;
|
||||
}
|
||||
.actBackground.data-v-671ec3f2 {
|
||||
background: #3f8bf2;
|
||||
.my-page.data-v-671ec3f2 {
|
||||
height: calc(100vh - 286rpx);
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
|
||||
@charset "UTF-8";
|
||||
|
|
|
@ -348,6 +348,7 @@ var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 30));
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -613,6 +613,10 @@ var _default = {
|
|||
label: item.industry_name
|
||||
};
|
||||
});
|
||||
transformedSelectList.push({
|
||||
value: -1,
|
||||
label: '其他行业'
|
||||
});
|
||||
_this2.industry_list = transformedSelectList;
|
||||
}
|
||||
}).catch(function (error) {
|
||||
|
|
|
@ -356,6 +356,8 @@ var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 30));
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
@ -379,7 +381,9 @@ var _default = {
|
|||
mounted: function mounted() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
this.uid = uid;
|
||||
this.getUserInfo();
|
||||
if (uid) {
|
||||
this.getUserInfo();
|
||||
}
|
||||
this.getcheckCode();
|
||||
},
|
||||
methods: {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -15,7 +15,8 @@
|
|||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
}
|
||||
},
|
||||
"ignoreUploadUnusedFiles": false
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.4.5",
|
||||
|
|
|
@ -3,6 +3,13 @@
|
|||
"condition": {
|
||||
"miniprogram": {
|
||||
"list": [
|
||||
{
|
||||
"name": "pages/index/event_info",
|
||||
"pathName": "pages/index/event_info",
|
||||
"query": "id=71",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "pages/index/my_edit",
|
||||
"pathName": "pages/index/my_edit",
|
||||
|
|
|
@ -10,7 +10,9 @@ export const associationInfo = data => request.post('/move/association/find', da
|
|||
export const architectureList = data => request.post('/move/address/architecture', data, false);
|
||||
export const positionList = data => request.post('/position', data, false);
|
||||
export const IndustryList = data => request.post('/industry', data, false);
|
||||
|
||||
export const loginAdd = data => request.post('/move/login/add', data, false);
|
||||
|
||||
export const loginDo = data => request.post('/move/login/login', data, false);
|
||||
export const addressList = data => request.post('/move/address', data, false);
|
||||
export const newIndustryIndex = data => request.post('/move/industry/index', data, false);
|
||||
|
|
Loading…
Reference in New Issue