From cdb3a0feb544ceaeb66d4a70ea00a74e2fc2e437 Mon Sep 17 00:00:00 2001
From: zsk <710162063@qq.com>
Date: Tue, 26 Mar 2024 15:03:39 +0800
Subject: [PATCH] 1
---
pages/mine/myJob/index.js | 21 ++++++++++++++-------
pages/mine/myJob/index.wxml | 6 +++---
pages/mine/opinion/index.js | 2 +-
pages/mine/opinion/index.wxml | 8 ++++++--
pages/mine/opinion/index.wxss | 3 +++
pages/type/type/index.js | 2 +-
6 files changed, 28 insertions(+), 14 deletions(-)
diff --git a/pages/mine/myJob/index.js b/pages/mine/myJob/index.js
index 8043fcd..0fe8715 100644
--- a/pages/mine/myJob/index.js
+++ b/pages/mine/myJob/index.js
@@ -1,6 +1,7 @@
// pages/mine/myJob/index.js
const app = getApp();
const commonUtil = require("../../../utils/commonUtil");
+const dateUtil = require("../../../utils/dateUtil");
Page({
/**
@@ -9,6 +10,10 @@ Page({
data: {
recordList:[],
inputVal:'',
+ jobListSearchForm:{
+ pageNum: 1,
+ pageSize: 50,
+ }
},
/**
* 生命周期函数--监听页面加载
@@ -35,19 +40,21 @@ Page({
wx.request({
url: app.globalData.ip + "/yishoudan/common/order/list",
method: "Post",
+ data:that.data.jobListSearchForm,
header: app.globalData.headers,
success: function (res) {
console.log(res);
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);
- if (app.isNotEmptyCheck(item.customJob.minAge) && app.isNotEmptyCheck(item.customJob.maxAge)) {
- item["age"] = item.customJob.minAge + "-" + item.customJob.maxAge + "岁";
- } else if (app.isNotEmptyCheck(item.customJob.minAge)) {
- item["age"] = item.customJob.minAge + "岁以上";
- } else if (app.isNotEmptyCheck(item.customJob.maxAge)) {
- item["age"] = item.customJob.maxAge + "岁以下";
+ if (app.isNotEmptyCheck(item.minAge) && app.isNotEmptyCheck(item.maxAge)) {
+ item["age"] = item.minAge + "-" + item.maxAge + "岁";
+ } else if (app.isNotEmptyCheck(item.minAge)) {
+ item["age"] = item.minAge + "岁以上";
+ } else if (app.isNotEmptyCheck(item.maxAge)) {
+ item["age"] = item.maxAge + "岁以下";
}
+ item["createTime"] = dateUtil.formatDateYMDHM(item.createTime)
})
that.setData({
recordList:res.data.data
diff --git a/pages/mine/myJob/index.wxml b/pages/mine/myJob/index.wxml
index 770de8f..fa61731 100644
--- a/pages/mine/myJob/index.wxml
+++ b/pages/mine/myJob/index.wxml
@@ -11,14 +11,14 @@
-->
-
+
- {{item.customJob.jobName}}
+ {{item.jobName}}
{{(item.citys && item.citys != '-') ? item.citys + ' | ' : ''}} {{item.age}}
- 2023-08-31 18:02
+ {{item.createTime}}
diff --git a/pages/mine/opinion/index.js b/pages/mine/opinion/index.js
index ad17f6f..351f0d0 100644
--- a/pages/mine/opinion/index.js
+++ b/pages/mine/opinion/index.js
@@ -201,7 +201,7 @@ console.log(that.data.newAddImg)
header: app.globalData.headers,
data: {
content: that.data.textVal,
- actived: Number(that.data.actived + 1),
+ classify: Number(that.data.actived + 1),
imgs:that.data.newAddImg.toString()
},
success: function (res) {
diff --git a/pages/mine/opinion/index.wxml b/pages/mine/opinion/index.wxml
index e6ae112..6bd4d41 100644
--- a/pages/mine/opinion/index.wxml
+++ b/pages/mine/opinion/index.wxml
@@ -27,8 +27,12 @@
-
-
+
+
+
diff --git a/pages/mine/opinion/index.wxss b/pages/mine/opinion/index.wxss
index 7ab2474..6e99772 100644
--- a/pages/mine/opinion/index.wxss
+++ b/pages/mine/opinion/index.wxss
@@ -59,4 +59,7 @@
width: 76px;
height: 76px;
margin-right: 11px;
+}
+.weui-uploader__input-box::after, .weui-uploader__input-box::before {
+ content: none;
}
\ No newline at end of file
diff --git a/pages/type/type/index.js b/pages/type/type/index.js
index ab54b0f..c62c6e8 100644
--- a/pages/type/type/index.js
+++ b/pages/type/type/index.js
@@ -95,7 +95,7 @@ Page({
getType(){
var that = this;
wx.request({
- url: app.globalData.ip + "/yishoudan/labels/type/app/95",
+ url: app.globalData.ip + "/yishoudan/custom/job/categoryLabels",
method: "get",
header: app.globalData.headers,
success: function (res) {