From 611fb9bd2bd662e93fc61eb067c98129a527094b Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Fri, 2 Aug 2024 14:27:23 +0800 Subject: [PATCH] 1 --- app.js | 4 ++-- pages/index/index.js | 4 ++-- pages/mine/index.wxml | 4 ++-- pages/type/type/index.js | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index a97f3c1..4f30300 100644 --- a/app.js +++ b/app.js @@ -1,8 +1,8 @@ App({ globalData: { userInfo: null, - ip: 'https://test.renminshitang.com.cn/daotian/api_dev', - // ip: "https://daotian.matripe.com.cn", + // ip: 'https://test.renminshitang.com.cn/daotian/api_dev', + ip: "https://daotian.matripe.com.cn", // ip: 'http://localhost:8001', sessionId: "", header: { diff --git a/pages/index/index.js b/pages/index/index.js index d9ef5bc..3bd28eb 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -1492,7 +1492,7 @@ Page({ console.log("searchCityParamStorage======", searchCityParamStorage); that.data.storeJobListSearchForm.cityName = searchCityParamStorage.name; if (app.isEmptyCheck(searchCityParamStorage.name)) { - that.data.storeJobListSearchForm.cityName = "全国"; + that.data.storeJobListSearchForm.cityName = ""; } that.setData({ @@ -1782,7 +1782,7 @@ Page({ console.log(that.data.inputVal); that.data.storeJobListSearchForm.cityName = that.data.searchCityParamStorage.name; if (app.isEmptyCheck(that.data.searchCityParamStorage.name)) { - that.data.storeJobListSearchForm.cityName = "全国"; + that.data.storeJobListSearchForm.cityName = ""; } that.data.storeJobListSearchForm.keys = that.data.inputVal == "搜索职位" ? "" : that.data.inputVal; // debugger; diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml index 445b1b5..4bf46ab 100644 --- a/pages/mine/index.wxml +++ b/pages/mine/index.wxml @@ -49,7 +49,7 @@ - + diff --git a/pages/type/type/index.js b/pages/type/type/index.js index 1705b4a..9b75f01 100644 --- a/pages/type/type/index.js +++ b/pages/type/type/index.js @@ -115,8 +115,9 @@ Page({ res.data.data.labels.push(last); } - - that.data.storeJobListSearchForm['jobCategoryLabelIds'] = res.data.data.labels[0].id + if(res.data.data.labels[0]){ + that.data.storeJobListSearchForm['jobCategoryLabelIds'] = res.data.data.labels[0].id + } that.setData({ list:res.data.data.labels, storeJobListSearchForm: that.data.storeJobListSearchForm