cyl/master-0804
wangxia 3 months ago
parent 4612c061f0
commit 17f2232d52

@ -333,7 +333,7 @@ export default {
@import "./static/css/iconfont.css"; @import "./static/css/iconfont.css";
@import "./uni_modules/vk-uview-ui/index.scss"; @import "./uni_modules/vk-uview-ui/index.scss";
@import "./static/css/base.scss"; @import "./static/css/base.scss";
@import "./static/font/iconfont-weapp-icon.css"; // @import "./static/font/iconfont-weapp-icon.css";
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
page { page {

@ -8,12 +8,12 @@
<!-- 列表区 --> <!-- 列表区 -->
<!-- <div @click="showPop = true"> 1123 </div> --> <!-- <div @click="showPop = true"> 1123 </div> -->
<!-- `calc(${navInfo.windowHeight}px - ${navInfo.navigationBarHeight + navInfo.statusBarHeight}px)` --> <!-- `calc(${navInfo.windowHeight}px - ${navInfo.navigationBarHeight + navInfo.statusBarHeight}px)` -->
<scroll-view class="m-list" id="listBox" :scroll-into-view="scrollTo" :style="{ height: `100vh ` }" :scroll-y="true" @scrolltolower="reachBottom" @scroll="checkScroll"> <scroll-view class="m-list" id="listBox" :scroll-into-view="scrollTo" :style="{ height: `calc(100vh - ${tabbarHeight}px)` }" :scroll-y="true" @scrolltolower="reachBottom" @scroll="checkScroll">
<div class="g_h_all" hover-class="none" hover-stop-propagation="false"> <div class="g_h_all" hover-class="none" hover-stop-propagation="false">
<div class="g_position_rela g_flex_row_between flex_center g_ml_10 g_mr_10"> <div class="g_position_rela g_flex_row_between flex_center g_ml_10 g_mr_10">
<div class="the_city g_flex_column_center" style hover-class="thover" @click="goCity"> <div class="the_city g_flex_column_center" style hover-class="thover" @click="goCity">
<div class="g_flex_row_center"> <div class="g_flex_row_center">
<div class="g_fs_16 g_fw_600 " style="min-width: 36px; display: inline-block">{{ selectedCity }}</div> <div class="g_fs_16 g_fw_600" style="min-width: 36px; display: inline-block">{{ selectedCity }}</div>
<div class="g_flex_column_center"> <div class="g_flex_column_center">
<div class="iconfont icon-zhankai g_fs_12" style="display: inline-block"></div> <div class="iconfont icon-zhankai g_fs_12" style="display: inline-block"></div>
</div> </div>
@ -26,10 +26,10 @@
</div> </div>
<div hover-class="none" class="g_bg_main g_flex_column_center g_radius_50 g_w_40 g_h_40 g_text_c g_c_f g_fs_11 g_fw_600" style="" hover-stop-propagation="false" @click="toShare" v-if="isLogin && userInfo.agencyId"> <div hover-class="none" class="g_bg_main g_flex_column_center g_radius_50 g_w_40 g_h_40 g_text_c g_c_f g_fs_11 g_fw_600" style="" hover-stop-propagation="false" @click="toShare" v-if="isLogin && userInfo.agencyId">
<div class="g_mb_3" style="line-height: 1">分享</div> <div class="g_mb_3" style="line-height: 1">分享</div>
<div class="" style="line-height: 1">职位</div> <div class="" style="line-height: 1">职位</div>
</div> </div>
</div> </div>
<div style="min-height:100vh"> <div :style="{ minHeight: `calc(100vh - ${tabbarHeight}px)`}">
<div class="sticky" v-if="isLogin"> <div class="sticky" v-if="isLogin">
<div class="g_flex_row_between flex_center" :class="toTop ? 'g_bg_f' : 'g_bg_f_5'" :style="{ 'box-shadow': toTop ? '0px 2px 3px 0px rgba(214, 214, 214, 0.3)' : '' }" id="tttop"> <div class="g_flex_row_between flex_center" :class="toTop ? 'g_bg_f' : 'g_bg_f_5'" :style="{ 'box-shadow': toTop ? '0px 2px 3px 0px rgba(214, 214, 214, 0.3)' : '' }" id="tttop">
<div class="g_flex_1"> <div class="g_flex_1">
@ -102,7 +102,7 @@
</div> </div>
</div> </div>
</scroll-view> </scroll-view>
<div hover-class="none" style="position: fixed; right: 20px; bottom: 20px; z-index: 0" hover-stop-propagation="false" @click="toRecord" v-if="isLogin && userInfo.agencyId"> <div hover-class="none" style="position: fixed; right: 20px; bottom: 120px; z-index: 0" hover-stop-propagation="false" @click="toRecord" v-if="isLogin && userInfo.agencyId">
<g-panel-image :url="cdnBaseImg + 'quick_application0610.svg'" size="96" /> <g-panel-image :url="cdnBaseImg + 'quick_application0610.svg'" size="96" />
</div> </div>
@ -132,7 +132,7 @@
</div> </div>
</u-popup> </u-popup>
</div> </div>
<g-tabbar class="tabbar"></g-tabbar> <g-tabbar class="tabbar"></g-tabbar>
</div> </div>
</template> </template>
@ -149,6 +149,7 @@ export default {
}; };
// return this.G.shareFun(); // return this.G.shareFun();
}, },
onLoad() { onLoad() {
let that = this; let that = this;
that.navInfo = that.G.getNavInfo(); that.navInfo = that.G.getNavInfo();
@ -221,6 +222,20 @@ export default {
// this.searchAnimate(); // this.searchAnimate();
// #endif // #endif
}, },
mounted() {
console.log("mountedmountedmountedmountedmountedmounted");
const query = uni.createSelectorQuery().in(this);
console.log("query", query);
// DOM
query
.select(".tabbar")
.boundingClientRect((res) => {
console.log("resresresrserserserser", res);
this.tabbarHeight = res.height;
uni.setStorageSync("TABBAR_HEIGHT", res.height);
})
.exec();
},
data() { data() {
return { return {
scrollTo: "", scrollTo: "",
@ -229,6 +244,7 @@ export default {
userInfo: {}, userInfo: {},
whichOneShow: "", whichOneShow: "",
toTop: false, // toTop: false, //
tabbarHeight: 0,
getFilterData: { getFilterData: {
sex: "-1", sex: "-1",
ageRangeStr: "", ageRangeStr: "",

@ -357,7 +357,7 @@ export default {
flex: 1; flex: 1;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
padding: 6px 0; padding: 0 0 6px 0;
@include vue-flex; @include vue-flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;

Loading…
Cancel
Save