| | |
| | | <view> |
| | | <up-sticky bgColor="#fff"> |
| | | <view class="coreshop-ff content c-p-10"> |
| | | <up-search placeholder="请点击选择日期" @clear='clear' @clickIcon='clickTime' @custom='search' |
| | | v-model="workTime" search-icon="calendar" @search='search'></up-search> |
| | | <!-- <up-search placeholder="请点击选择日期" @clear='clear' @clickIcon='clickTime' @custom='search' |
| | | v-model="workTime" search-icon="calendar" @search='search'></up-search> --> |
| | | <up-search placeholder="请输入工作名称" @clear='clear' @custom='search' |
| | | v-model="state.orderName" @search='search'></up-search> |
| | | </view> |
| | | <!-- <up-subsection :list="list" :current="current4" activeColor="#f9ae3d" |
| | | @change="sectionChange"></up-subsection> --> |
| | |
| | | import { |
| | | onLoad, |
| | | onShow, |
| | | onReachBottom |
| | | onReachBottom, |
| | | onPullDownRefresh |
| | | } from "@dcloudio/uni-app"; |
| | | import { |
| | | reactive, |
| | |
| | | let state = reactive({ |
| | | pageIndex: 1, |
| | | pageSize: 20, |
| | | orderName: '' |
| | | }) |
| | | let workTime = ref('') |
| | | let datePickerShow = ref(false) |
| | |
| | | onLoad(() => { |
| | | PostMyListPageCompany() |
| | | }) |
| | | onPullDownRefresh(() => { |
| | | state.pageIndex = 1 |
| | | state.pageSize = 20 |
| | | loadStatus.value = 'loadmore' |
| | | PostMyListPageCompany() |
| | | uni.stopPullDownRefresh(); |
| | | }) |
| | | const current4 = ref(0); |
| | | const list = ref(['全部', '发布', '招工完毕', '结算完毕']); |
| | | const changePicker = (val) => { |
| | |
| | | } |
| | | |
| | | const search = (index) => { |
| | | console.log(index, '------’'); |
| | | if (index == 0) { |
| | | PostMyListPageCompany() |
| | | } else { |
| | | PostMyListPageCompany(index - 1) |
| | | } |
| | | |
| | | PostMyListPageCompany() |
| | | } |
| | | const clear = () => { |
| | | state.orderName = '' |
| | | state.wordStartTime = "" |
| | | state.wordEndTime = "" |
| | | } |
| | |
| | | if (state.wordEndTime) { |
| | | data.wordEndTime = state.wordEndTime |
| | | } |
| | | if (state.orderName) { |
| | | data.orderName = state.orderName |
| | | } |
| | | loadStatus.value = 'loading'; |
| | | $api.PostMyListPageCompany(data).then(res => { |
| | | console.log(res, res.code, '-----------123’'); |