发送工单

master
wangxia 3 months ago
parent 04eb6c0f2e
commit 231f64496f

@ -17,7 +17,8 @@
<g-button btnText="去登录" size="small" class="g_mt_32" @clickBtn="goLogin" />
</view>
</view>
<scroll-view v-if="speed > 0" :style="{ height: `calc(100vh - ${99 + tabbarHeight}px)` }" :scroll-y="true" @scrolltolower="reachBottom" :lower-threshold="100">
<!-- :style="{ height: `calc(100vh - ${108 + tabbarHeight}px)` }" :scroll-y="true" @scrolltolower="reachBottom" -->
<view v-if="speed > 0" :lower-threshold="100">
<view class="" style="min-height: calc(100% - 90px)">
<view class="item g_pt_18 g_pl_10 g_pr_10 g_pb_18 g_bg_f g_border_e_b" hover-class="g_bg_f_5" v-for="(item, index) in query.list" :key="index" @click="goDetail(item, index)">
<view class="g_flex_row_start">
@ -36,7 +37,7 @@
</view>
</view>
</view>
<view class="g_flex_row_center flex_center g_mt_8" v-if="from" @click.stop>
<view class="g_flex_row_end flex_center g_mt_8" v-if="from == 'chat'" @click.stop>
<g-button btnText="发送" fontSize="14" type="primary" size="mini" @clickBtn="sendApply(item)" />
</view>
</view>
@ -48,7 +49,7 @@
<!-- #ifdef H5 -->
<view class="g-h-100"></view>
<!-- #endif -->
</scroll-view>
</view>
</view>
</view>
</view>

@ -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,10 +12,13 @@
<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">
<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">
@ -32,8 +35,9 @@
</view>
</view>
<!-- 面板 -->
<g-list-apply from="home" @uploadList="getList('concat')" bg="" class="" :tabActive="tabActive" :loading="loading" :speed="speed" :isLogin="isLogin" :query.sync="query" :navInfo="navInfo" />
<g-list-apply :from="from" @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>

@ -33,18 +33,17 @@
<u-popup v-model="jobListShow" mode="bottom" z-index="999999" border-radius="12" :closeable="true" :mask-close-able="true" :mask="true" @close="jobListShow = false">
<scroll-view :scroll-y="true" @scrolltolower="reachBottom" class="g_bg_ed" style="height: 95vh">
<div class="">
<div class="m-search g_p_10 g_pt_8 g_position_rela g_flex_1 g_bg_ed sticky" style id="searchInputBox">
<div class="" v-if="popType == 'apply'">
<gListApply from="chat" :upAgencyId="beCollectedAgencyId" @sendApply="sendApply"></gListApply>
</div>
<div class="" v-if="popType == 'job'">
<div class="m-search g_p_10 g_pt_8 g_position_rela g_flex_1 g_bg_ed sticky">
<div class="g_text_c g_h_24 g_pt_6 g_pb_12">发送职位</div>
<u-search height="80" v-model="keyword" @input="checkLength" @clear="searchJob" @search="searchJob" class="" placeholder="搜索职位名称" bg-color="#fff" :show-action="false" placeholder-class="g_c_c" search-icon-color="#999999" :maxlength="20"></u-search>
<div class="g_pt_8" v-if="popType == 'job'">
<u-tabs bg-color="transparent" from="index" gutter="20" :showBar="false" :list="tabInfo.list" :is-scroll="true" v-model="tabInfo.active" active-color="#00b666" @change="handleUpdateTab" font-size="34" duration="0.05" height="48"></u-tabs>
</div>
</div>
<div class="" v-if="popType == 'apply'">
<gListApply from="chat" :upAgencyId="beCollectedAgencyId" @sendApply="sendApply"></gListApply>
<!-- <g-list-apply from="home" @uploadList="getList('concat')" bg="" class="" :tabActive="tabActive" :loading="loading" :speed="speed" :isLogin="isLogin" :query.sync="query" :navInfo="navInfo" /> -->
</div>
<div class="" v-if="popType == 'job'">
<g-list-job from="chat" @uploadList="getList" @sendJob="sendJob" bg="#ededed" class="" :query="query" :list="query.list" :loading="loading" :speed="speed" :isShowLoginBtn="false" emptyText="嘿,这里还没有数据呢" />
</div>
</div>

@ -286,7 +286,7 @@ let data = {
type = "YY--MM--DD"
} else if (type == "first-week") { } else {
// 时间戳
time = new Date(str) ;
time = str ? new Date(str) : new Date(new Date().getTime());
}
if (time && typeof time == 'object') {
year = time.getFullYear()
@ -297,7 +297,9 @@ let data = {
second = (time.getSeconds()).toString().padStart(2, '0')
}
let result;
if (!str) {
return '-'
}
switch (type) {
case 'default': // 2023-10-31 09:00:00
result = year + '-' + month + '-' + date + ' ' + hours + ':' + minute + ':' + second;

Loading…
Cancel
Save