|
|
|
@ -18,7 +18,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="{ background: navColor }" :backIconName="fromShare ? 'home' : 'arrow-left'"></u-navbar>
|
|
|
|
<u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="{ background: navColor }" :backIconName="fromShare ? 'home' : 'arrow-left'"></u-navbar>
|
|
|
|
<scroll-view :refresher-enabled="true" class="scroll-container" scroll-y style="height: 100vh" refresher-default-style="none" @touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd" :refresher-threshold="0" @refresherrefresh="refreshJobList" @scroll="checkScroll" @scrolltolower="reachBottom">
|
|
|
|
<scroll-view :refresher-enabled="true" class="scroll-container" scroll-y style="height: 100vh" refresher-default-style="none" @touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd" :refresher-threshold="0" @refresherrefresh="refreshJobList" @scroll="scroll" @scrolltolower="reachBottom">
|
|
|
|
<view
|
|
|
|
<view
|
|
|
|
class="u-navbar-fixed"
|
|
|
|
class="u-navbar-fixed"
|
|
|
|
:style="{
|
|
|
|
:style="{
|
|
|
|
@ -112,8 +112,11 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<div class="g_bg_f =" v-if="info.recordStatus == 1 || info.recordStatus == 2">
|
|
|
|
<div class="g_bg_f sticky" :style="{ top: stickyHeight + 'px' }" v-if="info.recordStatus == 1 || info.recordStatus == 2">
|
|
|
|
<u-tabs bg-color="transparent" from="index" gutter="20" :list="tabInfo.list" :is-scroll="true" v-model="tabInfo.active" active-color="#000" bar-width="64" bar-height="6" @change="handleUpdateTab" font-size="32" duration="0.05" height="56"></u-tabs>
|
|
|
|
<u-tabs bg-color="transparent" from="index" gutter="20" :list="tabInfo.list" :is-scroll="true" v-model="tabInfo.active" active-color="#000" bar-width="64" bar-height="6" @change="handleUpdateTab" font-size="32" duration="0.05" height="56"></u-tabs>
|
|
|
|
|
|
|
|
<div class="m-search g_p_10 g_pt_8 bg_shawdoc g_flex_1" style="top: 0">
|
|
|
|
|
|
|
|
<u-search v-model="keyword" class="g_flex_1" placeholder="搜索职位名称" bg-color="#ededed" :show-action="false" placeholder-class="g_c_c" :input-style="{ fontSize: '16px' }" height="80" search-icon-color="#999999" :maxlength="20" @input="checkLength" @clear="searchJob" @search="searchJob"></u-search>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 基本信息 -->
|
|
|
|
<!-- 基本信息 -->
|
|
|
|
@ -150,6 +153,12 @@ export default {
|
|
|
|
onReady() {
|
|
|
|
onReady() {
|
|
|
|
this.G.setNavStyle();
|
|
|
|
this.G.setNavStyle();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
|
|
|
|
|
|
let height = systemInfo.platform == "ios" ? 44 : 48;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.stickyHeight = systemInfo.statusBarHeight + height;
|
|
|
|
|
|
|
|
},
|
|
|
|
// onShareAppMessage(){
|
|
|
|
// onShareAppMessage(){
|
|
|
|
// return this.G.shareFun();
|
|
|
|
// return this.G.shareFun();
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
@ -157,6 +166,7 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
numSlot: [],
|
|
|
|
numSlot: [],
|
|
|
|
showPage: false,
|
|
|
|
showPage: false,
|
|
|
|
|
|
|
|
stickyHeight: 0, // sticky距离顶部高度
|
|
|
|
fromShare: false,
|
|
|
|
fromShare: false,
|
|
|
|
btnLoading: false,
|
|
|
|
btnLoading: false,
|
|
|
|
background: {
|
|
|
|
background: {
|
|
|
|
@ -247,11 +257,11 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onPageScroll(e) {
|
|
|
|
onPageScroll(e) {
|
|
|
|
if (e.scrollTop > 120) {
|
|
|
|
// if (e.scrollTop > 120) {
|
|
|
|
this.navColor = `rgb(255,255,255,${e.scrollTop / 200})`;
|
|
|
|
// this.navColor = `rgb(255,255,255,${e.scrollTop / 200})`;
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
this.navColor = `rgb(255,255,255,0)`;
|
|
|
|
// this.navColor = `rgb(255,255,255,0)`;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onLoad(options) {
|
|
|
|
onLoad(options) {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
@ -336,6 +346,13 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
scroll(e) {
|
|
|
|
|
|
|
|
if (e.detail.scrollTop > 120) {
|
|
|
|
|
|
|
|
this.navColor = `rgb(255,255,255,${e.detail.scrollTop / 200})`;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.navColor = `rgb(255,255,255,0)`;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
// 触摸开始事件
|
|
|
|
// 触摸开始事件
|
|
|
|
onTouchStart(e) {
|
|
|
|
onTouchStart(e) {
|
|
|
|
if (this.isTouching) {
|
|
|
|
if (this.isTouching) {
|
|
|
|
@ -433,6 +450,11 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
searchJob() {
|
|
|
|
|
|
|
|
this.query.list = [];
|
|
|
|
|
|
|
|
this.query.page = 1;
|
|
|
|
|
|
|
|
this.getDefault();
|
|
|
|
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取登录人的团队信息
|
|
|
|
* 获取登录人的团队信息
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ -599,6 +621,7 @@ export default {
|
|
|
|
pageNum: that.query.page,
|
|
|
|
pageNum: that.query.page,
|
|
|
|
pageSize: that.query.size,
|
|
|
|
pageSize: that.query.size,
|
|
|
|
agencyId: that.info.id,
|
|
|
|
agencyId: that.info.id,
|
|
|
|
|
|
|
|
keys: that.keyword,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log("that.tabInfo.active", that.tabInfo.active);
|
|
|
|
console.log("that.tabInfo.active", that.tabInfo.active);
|
|
|
|
if (that.tabInfo.active == 1) {
|
|
|
|
if (that.tabInfo.active == 1) {
|
|
|
|
@ -840,4 +863,10 @@ export default {
|
|
|
|
.scroll-area {
|
|
|
|
.scroll-area {
|
|
|
|
height: 100vh;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sticky {
|
|
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
|
|
// top: 95px;
|
|
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|