zsk 2 years ago
parent ec719ab7b9
commit cdb3a0feb5

@ -1,6 +1,7 @@
// pages/mine/myJob/index.js // pages/mine/myJob/index.js
const app = getApp(); const app = getApp();
const commonUtil = require("../../../utils/commonUtil"); const commonUtil = require("../../../utils/commonUtil");
const dateUtil = require("../../../utils/dateUtil");
Page({ Page({
/** /**
@ -9,6 +10,10 @@ Page({
data: { data: {
recordList:[], recordList:[],
inputVal:'', inputVal:'',
jobListSearchForm:{
pageNum: 1,
pageSize: 50,
}
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
@ -35,19 +40,21 @@ Page({
wx.request({ wx.request({
url: app.globalData.ip + "/yishoudan/common/order/list", url: app.globalData.ip + "/yishoudan/common/order/list",
method: "Post", method: "Post",
data:that.data.jobListSearchForm,
header: app.globalData.headers, header: app.globalData.headers,
success: function (res) { success: function (res) {
console.log(res); console.log(res);
res.data.data.forEach((item,index) => { res.data.data.forEach((item,index) => {
item['citys'] = commonUtil.setJobInfoPosition(item.customJob.storeDistrict); item['citys'] = commonUtil.setJobInfoPosition(item.storeDistrict);
// item['genderRestrict'] = commonUtil.getGenderByMinAge(item.customJob.customJob); // item['genderRestrict'] = commonUtil.getGenderByMinAge(item.customJob.customJob);
if (app.isNotEmptyCheck(item.customJob.minAge) && app.isNotEmptyCheck(item.customJob.maxAge)) { if (app.isNotEmptyCheck(item.minAge) && app.isNotEmptyCheck(item.maxAge)) {
item["age"] = item.customJob.minAge + "-" + item.customJob.maxAge + "岁"; item["age"] = item.minAge + "-" + item.maxAge + "岁";
} else if (app.isNotEmptyCheck(item.customJob.minAge)) { } else if (app.isNotEmptyCheck(item.minAge)) {
item["age"] = item.customJob.minAge + "岁以上"; item["age"] = item.minAge + "岁以上";
} else if (app.isNotEmptyCheck(item.customJob.maxAge)) { } else if (app.isNotEmptyCheck(item.maxAge)) {
item["age"] = item.customJob.maxAge + "岁以下"; item["age"] = item.maxAge + "岁以下";
} }
item["createTime"] = dateUtil.formatDateYMDHM(item.createTime)
}) })
that.setData({ that.setData({
recordList:res.data.data recordList:res.data.data

@ -11,14 +11,14 @@
</view> --> </view> -->
<view class="bt1"> <view class="bt1">
<view class="bgf display-flex p16 pb0" data-id="{{item.customJob.id}}" bindtap="goDetail" hover-class="g_bg_f_5" wx:for="{{recordList}}" wx:key="index" wx:item="item"> <view class="bgf display-flex p16 pb0" data-id="{{item.id}}" bindtap="goDetail" hover-class="g_bg_f_5" wx:for="{{recordList}}" wx:key="index" wx:item="item">
<view class="display-flex flex-1 pb16 bb1"> <view class="display-flex flex-1 pb16 bb1">
<view class="flex-1"> <view class="flex-1">
<view class="f16 fwb">{{item.customJob.jobName}}</view> <view class="f16 fwb">{{item.jobName}}</view>
<view class="f14 c6 mt8">{{(item.citys && item.citys != '-') ? item.citys + ' | ' : ''}} {{item.age}}</view> <view class="f14 c6 mt8">{{(item.citys && item.citys != '-') ? item.citys + ' | ' : ''}} {{item.age}}</view>
</view> </view>
<view class="tr"> <view class="tr">
<view class="f14 c9">2023-08-31 18:02</view> <view class="f14 c9">{{item.createTime}}</view>
</view> </view>
</view> </view>
</view> </view>

@ -201,7 +201,7 @@ console.log(that.data.newAddImg)
header: app.globalData.headers, header: app.globalData.headers,
data: { data: {
content: that.data.textVal, content: that.data.textVal,
actived: Number(that.data.actived + 1), classify: Number(that.data.actived + 1),
imgs:that.data.newAddImg.toString() imgs:that.data.newAddImg.toString()
}, },
success: function (res) { success: function (res) {

@ -27,8 +27,12 @@
</view> </view>
</block> </block>
</view> </view>
<view class="weui-uploader__input-box" wx:if="{{files.length < 4}}"> <view class="weui-uploader__input-box" wx:if="{{files.length < 4}}" bindtap="chooseMedia">
<view class="weui-uploader__input" bindtap="chooseMedia"></view> <image src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/my_uploadphotos.svg"
mode="widthFix"
style="width: 72px;height: 72px;"
/>
<!-- <view class="weui-uploader__input" bindtap="chooseMedia"></view> -->
</view> </view>
</view> </view>
</view> </view>

@ -59,4 +59,7 @@
width: 76px; width: 76px;
height: 76px; height: 76px;
margin-right: 11px; margin-right: 11px;
}
.weui-uploader__input-box::after, .weui-uploader__input-box::before {
content: none;
} }

@ -95,7 +95,7 @@ Page({
getType(){ getType(){
var that = this; var that = this;
wx.request({ wx.request({
url: app.globalData.ip + "/yishoudan/labels/type/app/95", url: app.globalData.ip + "/yishoudan/custom/job/categoryLabels",
method: "get", method: "get",
header: app.globalData.headers, header: app.globalData.headers,
success: function (res) { success: function (res) {

Loading…
Cancel
Save