Commit 6e299b23 by 张立顺

fix bug

1 parent 76e32cd7
......@@ -166,11 +166,8 @@ Page({
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')
const hours = String(date.getHours()).padStart(2, '0')
const minutes = String(date.getMinutes()).padStart(2, '0')
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 formattedDate = `${year}年${month}月${day}日`
const apiDate = `${year}-${month}-${day} 00:00:00`
const { formData, pageScrollTop, popupType } = this.data
......
......@@ -290,7 +290,7 @@
<!-- 时间选择器 -->
<van-popup show="{{ timeShow }}" position="bottom" round bind:close="calcelDate" catchtouchmove="preventTouchMove">
<van-datetime-picker
type="datetime"
type="date"
value="{{ currentDate }}"
formatter="{{ formatter }}"
min-date="{{ minDate }}"
......
......@@ -28,6 +28,10 @@ export const statusList = [
{
confId: 3,
confName: '已驳回'
},
{
confId: 4,
confName: '待督导确认'
}
]
export const mentorshipFormData = [
......
<!-- 招聘管理 -->
<glsx-privacy appletName="招聘管理" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="container_page">
<!-- 顶部Tab模块 -->
<view class="top_content" wx:if="{{ tabList.length }}">
<view class="tab_box">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
</view>
</view>
<!-- 列表模块 -->
<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 }}">
<!-- 需求列表 -->
<block wx:if="{{ list.length && list[0].length }}">
<block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view wx:for="{{ i }}" wx:key="index" class="item {{ userInfo.isSuper ? 'super_item' : '' }}" bind:tap="handleDetail" data-item="{{ item }}">
<view class="item_header">
<image wx:if="{{ item.urgent == 1 }}" class="ji" src="{{ IMG_URL }}ji.png" mode="aspectFill"></image>
<text class="merchant-name">{{item.merchantName}}</text>
<text class="status-tag status-{{ item.status }}">{{item.statusName}}</text>
</view>
<view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd">
<block>
<view class="label">{{it.label}}</view>
<view class="value">
{{item[it.labelName] || '-'}}
<text wx:if="{{ it.label == '招聘数量' }}">人</text>
</view>
</block>
</view>
<!-- 提示消息 -->
<view class="item_footer" wx:if="{{ tabIndex == 0 && item.showTip && item.confirmFlag == 'N' && item.status !== 0 }}">
<view class="msg_tips">
<text>{{item.tipText}}</text>
<image class="arrow_right" src="/packageWorkspace/pages/image/arrow-right.png" mode="aspectFill" />
</view>
</view>
</view>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">没有更多了</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>
<!-- 顶部Tab模块 -->
<view class="top_content" wx:if="{{ tabList.length }}">
<view class="tab_box">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
</view>
</view>
<!-- 列表模块 -->
<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 }}"
>
<!-- 需求列表 -->
<block wx:if="{{ list.length && list[0].length }}">
<block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view
wx:for="{{ i }}"
wx:key="index"
class="item {{ userInfo.isSuper ? 'super_item' : '' }}"
bind:tap="handleDetail"
data-item="{{ item }}"
>
<view class="item_header">
<image wx:if="{{ item.urgent == 1 }}" class="ji" src="{{ IMG_URL }}ji.png" mode="aspectFill"></image>
<text class="merchant-name">{{item.merchantName}}</text>
<text class="status-tag status-{{ item.status }}">{{item.statusName}}</text>
</view>
<view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd">
<block>
<view class="label">{{it.label}}</view>
<view class="value">
{{item[it.labelName] || '-'}}
<text wx:if="{{ it.label == '招聘数量' }}">人</text>
</view>
</block>
</view>
<!-- 提示消息 -->
<view class="item_footer" wx:if="{{ tabIndex == 0 && item.showTip }}">
<view class="msg_tips">
<text>{{item.tipText}}</text>
<image class="arrow_right" src="/packageWorkspace/pages/image/arrow-right.png" mode="aspectFill" />
</view>
</view>
</view>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">没有更多了</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>
\ 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!