|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="p-apply-inedx g_w_all g_h_all g_bg_f_5 g_kuaishou g-apply-tab">
|
|
|
|
|
<view class="p-apply-inedx g_w_all g_bg_page g_kuaishou g-apply-tab">
|
|
|
|
|
<!-- #ifdef MP-TOUTIAO -->
|
|
|
|
|
<view class="g_flex_row_center apply-header" v-if="isHaveOrder == 1">
|
|
|
|
|
<view class="g_flex_row_between box">
|
|
|
|
|
@ -12,28 +12,32 @@
|
|
|
|
|
|
|
|
|
|
<view class="">
|
|
|
|
|
<!-- #ifdef APP-PLUS || H5 || MP-KUAISHOU || MP-WEIXIN -->
|
|
|
|
|
<view class="" style="height: calc(58px + 48px)" v-if="from != 'chat'"></view>
|
|
|
|
|
<!-- <view class="" style="height: calc(58px + 48px)" v-if="from != 'chat'"></view> -->
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="m-box-fixed" :style="{ top: 0 }" v-if="isLogin">
|
|
|
|
|
<view style="background-color: #fff" class="">
|
|
|
|
|
<view class="m-select">
|
|
|
|
|
<view style="height: 52px" class="g_flex_column_center g_pt_8">
|
|
|
|
|
<view class="m-search g_pb_0 g_position_rela" style="padding-bottom: 0; padding-left: 12px; padding-right: 12px">
|
|
|
|
|
<u-search @btnSearch="getSearch" height="80" v-model="keyword" placeholder="搜索姓名/职位/手机号" bg-color="#ededed" :show-action="false" @clear="getSearch('search')" @change="getSearch('clear')" @search="getSearch('search')" search-icon-color="#999999" :maxlength="20"></u-search>
|
|
|
|
|
<!-- <view class="g_w_all g_h_40 g_position_abso" style="left: 0; top: 0px; z-index: 9999" @click.stop="goSearch"></view> -->
|
|
|
|
|
<scroll-view class="m-list" :style="{ height: from != 'chat' ? `calc(100vh - ${tabbarHeight}px)` : `calc(95vh )` }" :scroll-y="true" @scrolltolower="reachBottom">
|
|
|
|
|
<!-- <view class=""> -->
|
|
|
|
|
<view>
|
|
|
|
|
<view :class="[from ? 'sticky' : '']" v-if="isLogin">
|
|
|
|
|
<div class="g_text_c g_h_24 g_pt_12 g_pb_12 g_bg_f" style="z-index: 100" v-if="from == 'chat'">发送工单</div>
|
|
|
|
|
<view style="background-color: #fff" class="">
|
|
|
|
|
<view class="m-select">
|
|
|
|
|
<view style="height: 52px" class="g_flex_column_center g_pt_8">
|
|
|
|
|
<view class="m-search g_pb_0 g_position_rela" style="padding-bottom: 0; padding-left: 12px; padding-right: 12px">
|
|
|
|
|
<u-search @btnSearch="getSearch" height="80" v-model="keyword" placeholder="搜索姓名/职位/手机号" bg-color="#ededed" :show-action="false" @clear="getSearch('search')" @change="getSearch('clear')" @search="getSearch('search')" search-icon-color="#999999" :maxlength="20"></u-search>
|
|
|
|
|
<!-- <view class="g_w_all g_h_40 g_position_abso" style="left: 0; top: 0px; z-index: 9999" @click.stop="goSearch"></view> -->
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="g_h_10 g_bg_f_5"></view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view style="width: 100vw" class="g_border_e_b" v-if="isLogin">
|
|
|
|
|
<u-tabs :list="menuList" item-width="126" v-model="menuActive" active-color="#00b666" bar-width="60" bar-height="6" font-size="32" @change="handleUpdateMenu" :gutter="22" duration="0.1" itemWidth="auto" height="84"></u-tabs>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="g_h_10 g_bg_f_5"></view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view style="width: 100vw" class="g_border_e_b" v-if="isLogin">
|
|
|
|
|
<u-tabs :list="menuList" item-width="126" v-model="menuActive" active-color="#00b666" bar-width="60" bar-height="6" font-size="32" @change="handleUpdateMenu" :gutter="22" duration="0.1" itemWidth="auto" height="84"></u-tabs>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 面板 -->
|
|
|
|
|
<g-list-apply :from="from" @uploadList="getList('concat')" bg="" class="" :tabActive="tabActive" :loading="loading" :speed="speed" :isLogin="isLogin" :query.sync="query" :navInfo="navInfo" />
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 面板 -->
|
|
|
|
|
<g-list-apply from="home" @uploadList="getList('concat')" bg="" class="" :tabActive="tabActive" :loading="loading" :speed="speed" :isLogin="isLogin" :query.sync="query" :navInfo="navInfo" />
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</view>
|
|
|
|
|
<g-tabbar class="tabbar" v-if="from != 'chat'"></g-tabbar>
|
|
|
|
|
</view>
|
|
|
|
|
@ -54,7 +58,7 @@ export default {
|
|
|
|
|
props: {
|
|
|
|
|
from: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: "",
|
|
|
|
|
default: "home",
|
|
|
|
|
},
|
|
|
|
|
upAgencyId: {
|
|
|
|
|
type: Number,
|
|
|
|
|
@ -75,6 +79,7 @@ export default {
|
|
|
|
|
GZHInfo: 0,
|
|
|
|
|
cdnBaseImg: this.G.store().cdnBaseImg,
|
|
|
|
|
keyword: "",
|
|
|
|
|
tabbarHeight: uni.getStorageSync("TABBAR_HEIGHT"),
|
|
|
|
|
|
|
|
|
|
tabActive: 0,
|
|
|
|
|
tabTip: "",
|
|
|
|
|
@ -231,6 +236,16 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
reachBottom() {
|
|
|
|
|
let that = this;
|
|
|
|
|
this.G.isLogin();
|
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
|
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
|
|
|
|
that.query.page++;
|
|
|
|
|
that.getList("concat");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getList($type = "init") {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log("是否登录", that.isLogin);
|
|
|
|
|
@ -531,4 +546,10 @@ export default {
|
|
|
|
|
z-index: 999;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.sticky {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0px;
|
|
|
|
|
left: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|