Commit 6e299b23 by 张立顺

fix bug

1 parent 76e32cd7
...@@ -166,11 +166,8 @@ Page({ ...@@ -166,11 +166,8 @@ Page({
const year = date.getFullYear() const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0') const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0') const day = String(date.getDate()).padStart(2, '0')
const hours = String(date.getHours()).padStart(2, '0') const formattedDate = `${year}年${month}月${day}日`
const minutes = String(date.getMinutes()).padStart(2, '0') const apiDate = `${year}-${month}-${day} 00:00:00`
const seconds = String(date.getSeconds()).padStart(2, '0')
const formattedDate = `${year}年${month}月${day}日 ${hours}:${minutes}:${seconds}`
const apiDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
const { formData, pageScrollTop, popupType } = this.data const { formData, pageScrollTop, popupType } = this.data
......
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
<!-- 时间选择器 --> <!-- 时间选择器 -->
<van-popup show="{{ timeShow }}" position="bottom" round bind:close="calcelDate" catchtouchmove="preventTouchMove"> <van-popup show="{{ timeShow }}" position="bottom" round bind:close="calcelDate" catchtouchmove="preventTouchMove">
<van-datetime-picker <van-datetime-picker
type="datetime" type="date"
value="{{ currentDate }}" value="{{ currentDate }}"
formatter="{{ formatter }}" formatter="{{ formatter }}"
min-date="{{ minDate }}" min-date="{{ minDate }}"
......
...@@ -28,6 +28,10 @@ export const statusList = [ ...@@ -28,6 +28,10 @@ export const statusList = [
{ {
confId: 3, confId: 3,
confName: '已驳回' confName: '已驳回'
},
{
confId: 4,
confName: '待督导确认'
} }
] ]
export const mentorshipFormData = [ export const mentorshipFormData = [
......
<!-- 招聘管理 --> <!-- 招聘管理 -->
<glsx-privacy appletName="招聘管理" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="招聘管理" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="container_page"> <view class="container_page">
<!-- 顶部Tab模块 --> <!-- 顶部Tab模块 -->
<view class="top_content" wx:if="{{ tabList.length }}"> <view class="top_content" wx:if="{{ tabList.length }}">
<view class="tab_box"> <view class="tab_box">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" /> <tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
</view> </view>
</view> </view>
<!-- 列表模块 --> <!-- 列表模块 -->
<view class="content"> <view class="content">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" bindscroll="handleScroll" class="list" scroll-top="{{ scrollTop }}" lower-threshold="400" refresher-threshold="104" refresher-triggered="{{ triggered }}"> <scroll-view
<!-- 需求列表 --> scroll-y
<block wx:if="{{ list.length && list[0].length }}"> enable-back-to-top
<block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind"> refresher-enabled="{{ true }}"
<view wx:for="{{ i }}" wx:key="index" class="item {{ userInfo.isSuper ? 'super_item' : '' }}" bind:tap="handleDetail" data-item="{{ item }}"> bindrefresherrefresh="search"
<view class="item_header"> bindscrolltolower="onBottomRefresh"
<image wx:if="{{ item.urgent == 1 }}" class="ji" src="{{ IMG_URL }}ji.png" mode="aspectFill"></image> bindscroll="handleScroll"
<text class="merchant-name">{{item.merchantName}}</text> class="list"
<text class="status-tag status-{{ item.status }}">{{item.statusName}}</text> scroll-top="{{ scrollTop }}"
</view> lower-threshold="400"
<view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd"> refresher-threshold="104"
<block> refresher-triggered="{{ triggered }}"
<view class="label">{{it.label}}</view> >
<view class="value"> <!-- 需求列表 -->
{{item[it.labelName] || '-'}} <block wx:if="{{ list.length && list[0].length }}">
<text wx:if="{{ it.label == '招聘数量' }}">人</text> <block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
</view> <view
</block> wx:for="{{ i }}"
</view> wx:key="index"
<!-- 提示消息 --> class="item {{ userInfo.isSuper ? 'super_item' : '' }}"
<view class="item_footer" wx:if="{{ tabIndex == 0 && item.showTip && item.confirmFlag == 'N' && item.status !== 0 }}"> bind:tap="handleDetail"
<view class="msg_tips"> data-item="{{ item }}"
<text>{{item.tipText}}</text> >
<image class="arrow_right" src="/packageWorkspace/pages/image/arrow-right.png" mode="aspectFill" /> <view class="item_header">
</view> <image wx:if="{{ item.urgent == 1 }}" class="ji" src="{{ IMG_URL }}ji.png" mode="aspectFill"></image>
</view> <text class="merchant-name">{{item.merchantName}}</text>
</view> <text class="status-tag status-{{ item.status }}">{{item.statusName}}</text>
</block> </view>
<block wx:if="{{ nothing }}"> <view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd">
<view class="list-nothing">没有更多了</view> <block>
</block> <view class="label">{{it.label}}</view>
</block> <view class="value">
<!-- 空数据占位 --> {{item[it.labelName] || '-'}}
<view class="no_data" wx:else> <text wx:if="{{ it.label == '招聘数量' }}">人</text>
<empty-data /> </view>
</view> </block>
</scroll-view> </view>
</view> <!-- 提示消息 -->
<!-- 添加招聘按钮 --> <view class="item_footer" wx:if="{{ tabIndex == 0 && item.showTip }}">
<view class="insert_btn {{ btnVisible ? 'btn-visible' : 'btn-hidden' }}" bindtap="handleInsertRecruit"> <view class="msg_tips">
<image class="insert_icon" src="{{IMG_URL}}new-recruitment.png" mode="widthFix" /> <text>{{item.tipText}}</text>
<view class="label"> <image class="arrow_right" src="/packageWorkspace/pages/image/arrow-right.png" mode="aspectFill" />
<text>新增招聘</text> </view>
</view> </view>
</view> </view>
<!-- 箭头图标 - 与按钮互斥显示 --> </block>
<view class="arrowIcon {{ btnVisible ? 'arrow-hidden' : 'arrow-visible' }}"> <block wx:if="{{ nothing }}">
<image class="image" src="{{ IMG_URL }}arrow-left.png" /> <view class="list-nothing">没有更多了</view>
</view> </block>
</block>
<!-- 空数据占位 -->
<view class="no_data" wx:else>
<empty-data />
</view>
</scroll-view>
</view>
<!-- 添加招聘按钮 -->
<view class="insert_btn {{ btnVisible ? 'btn-visible' : 'btn-hidden' }}" bindtap="handleInsertRecruit">
<image class="insert_icon" src="{{ IMG_URL }}new-recruitment.png" mode="widthFix" />
<view class="label">
<text>新增招聘</text>
</view>
</view>
<!-- 箭头图标 - 与按钮互斥显示 -->
<view class="arrowIcon {{ btnVisible ? 'arrow-hidden' : 'arrow-visible' }}">
<image class="image" src="{{ IMG_URL }}arrow-left.png" />
</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!