zsk 1 year ago
parent fe9e6cdbb7
commit fee8d0376a

@ -1,8 +1,8 @@
App({ App({
globalData: { globalData: {
userInfo: null, userInfo: null,
ip: 'https://test.renminshitang.com.cn/daotian/api_dev', // ip: 'https://test.renminshitang.com.cn/daotian/api_dev',
// ip: "https://daotian.matripe.com.cn", ip: "https://daotian.matripe.com.cn",
// ip: 'http://localhost:8001', // ip: 'http://localhost:8001',
sessionId: "", sessionId: "",
header: { header: {

@ -283,7 +283,8 @@ Page({
that.clearAllChecked(); that.clearAllChecked();
that.data.selectedQuanGuo.checked = true; that.data.selectedQuanGuo.checked = true;
temp = that.data.selectedQuanGuo; // temp = that.data.selectedQuanGuo;
temp = that.data.selectedQuanGuo;
} else if (that.data.selectedCity.checked) { } else if (that.data.selectedCity.checked) {
that.clearAllChecked(); that.clearAllChecked();
that.data.selectedCity.checked = true; that.data.selectedCity.checked = true;

@ -1120,7 +1120,7 @@ Page({
//时薪 //时薪
// var hourlyPayStr = ""; // var hourlyPayStr = "";
var hasHourlyPay = true; var hasHourlyPay = true;
console.log(jobDetail); // console.log(jobDetail);
// if (app.isNotEmptyCheck(jobDetail.hourlyPay)) { // if (app.isNotEmptyCheck(jobDetail.hourlyPay)) {
// hourlyPayStr = jobDetail.hourlyPay + "元/小时"; // hourlyPayStr = jobDetail.hourlyPay + "元/小时";
// hasHourlyPay = true; // hasHourlyPay = true;

@ -1062,6 +1062,10 @@ Page({
this.setData({ this.setData({
copyList: JSON.parse(JSON.stringify(this.data.filterData)), copyList: JSON.parse(JSON.stringify(this.data.filterData)),
}); });
that.setData({
recordList: [],
});
that.getJobList();
// that.getJobList(); // that.getJobList();
}, },
onReady () { onReady () {
@ -1509,10 +1513,10 @@ Page({
} }
wx.removeStorageSync("FROMCITY"); wx.removeStorageSync("FROMCITY");
} else { } else {
that.setData({ // that.setData({
recordList: [], // recordList: [],
}); // });
that.getJobList(); // that.getJobList();
} }
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
@ -1781,7 +1785,9 @@ Page({
console.log(that.data.inputVal); console.log(that.data.inputVal);
that.data.storeJobListSearchForm.cityName = that.data.searchCityParamStorage.name; that.data.storeJobListSearchForm.cityName = that.data.searchCityParamStorage.name;
if (app.isEmptyCheck(that.data.searchCityParamStorage.name)) { console.log(that.data.storeJobListSearchForm.cityName)
if (app.isEmptyCheck(that.data.searchCityParamStorage.name) || that.data.storeJobListSearchForm.cityName == '全国') {
that.data.storeJobListSearchForm.cityName = ""; that.data.storeJobListSearchForm.cityName = "";
} }
that.data.storeJobListSearchForm.keys = that.data.inputVal == "搜索职位" ? "" : that.data.inputVal; that.data.storeJobListSearchForm.keys = that.data.inputVal == "搜索职位" ? "" : that.data.inputVal;
@ -1841,7 +1847,7 @@ Page({
that.getTag(); that.getTag();
that.data.recordList.forEach((item, index) => { that.data.recordList.forEach((item, index) => {
console.log(item.storeDistrict); // console.log(item.storeDistrict);
item['citys'] = commonUtil.setJobInfoPosition(item.storeDistrict) item['citys'] = commonUtil.setJobInfoPosition(item.storeDistrict)
// console.log(item); // console.log(item);
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") { if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {

@ -62,7 +62,8 @@
</view> </view>
</view> </view>
</navigator> </navigator>
<navigator class url="{{isLogin? '/pages/mine/listManagement/index': '/pages/login/index'}}" hover-class="none" hover-stop-propagation="false" wx:if="{{isMyPro}}"> <!-- wx:if="{{isMyPro}}"
<navigator class url="{{isLogin? '/pages/mine/listManagement/index': '/pages/login/index'}}" hover-class="none" hover-stop-propagation="false">
<view class="br_8" hover-class="none" style="background-color:#fff" hover-stop-propagation="false"> <view class="br_8" hover-class="none" style="background-color:#fff" hover-stop-propagation="false">
<view class="setting mt_10" hover-class="thover"> <view class="setting mt_10" hover-class="thover">
<view> <view>
@ -74,7 +75,7 @@
</view> </view>
</view> </view>
</view> </view>
</navigator> </navigator> -->
<!-- 我的服务 --> <!-- 我的服务 -->
<view class="myserve mt_10 br_8"> <view class="myserve mt_10 br_8">

@ -13,10 +13,16 @@ Page({
inputVal: '', inputVal: '',
hasMoreData: true, //下拉是否还有更多数据 hasMoreData: true, //下拉是否还有更多数据
navigatorBarHeight: 0, // 头部整体高度信息 navigatorBarHeight: 0, // 头部整体高度信息
// editJobList: [
// "复制内容",
// "编辑",
// "删除"
// ],
editJobList: [ editJobList: [
"复制内容", "复制内容",
"编辑", "删除"], // "编辑",
"删除"
],
totalPage: 0, totalPage: 0,
currPage: 0, currPage: 0,
isTrigger: 0, isTrigger: 0,
@ -84,12 +90,14 @@ Page({
if (res.tapIndex == 0) { if (res.tapIndex == 0) {
that.getJobDetail(item.id); that.getJobDetail(item.id);
} else if (res.tapIndex == 1) { }
//else if (res.tapIndex == 1) {
// uni.navigateTo({ // uni.navigateTo({
// url: "/root/home/jobForm?id=" + e.jobId, // url: "/root/home/jobForm?id=" + e.jobId,
// }); // });
// that.delJob(item.id); // that.delJob(item.id);
} else if (res.tapIndex == 2) { //}
else if (res.tapIndex == 1) {
that.delJob(item.id); that.delJob(item.id);
} }
}, },

@ -2,7 +2,7 @@
<view class="p10 " style="background-color: #fff" hover-class="none" hover-stop-propagation="false"> <view class="p10 " style="background-color: #fff" hover-class="none" hover-stop-propagation="false">
<view class="weui-search-bar__box flex-1 fsa" style="background-color: #f5f5f5;border-radius: 17px;padding-left:16px"> <view class="weui-search-bar__box flex-1 fsa" style="background-color: #f5f5f5;border-radius: 17px;padding-left:16px">
<i class="iconfont icon-sousuo"></i> <i class="iconfont icon-sousuo"></i>
<input type="text" class="weui-search-bar__input flex-1 c3 ml8" style="" placeholder-style="color:#999;" value="{{inputVal}}" placeholder="搜索职位名称" bindinput="inputTyping" bindconfirm="searchKey" auto-focus confirm-type="search" /> <input type="text" class="weui-search-bar__input flex-1 c3 ml8" placeholder-style="color:#999;" value="{{inputVal}}" placeholder="搜索职位名称" bindinput="inputTyping" bindconfirm="searchKey" auto-focus confirm-type="search" />
<view class="iconfont icon-qingchu biggerSize c9 mr12" wx:if="{{inputVal}}" catchtap="clearInput"></view> <view class="iconfont icon-qingchu biggerSize c9 mr12" wx:if="{{inputVal}}" catchtap="clearInput"></view>
<view class="search" catchtap="searchKey">搜索</view> <view class="search" catchtap="searchKey">搜索</view>
</view> </view>

@ -996,8 +996,6 @@ export function formatDateYMD(val) {
*/ */
export function getSalaryClassifyValue(salaryClassify, salaryClassifyValue,monthlyPayStr) { export function getSalaryClassifyValue(salaryClassify, salaryClassifyValue,monthlyPayStr) {
var hourlyPay = moneyToFixed(salaryClassifyValue); var hourlyPay = moneyToFixed(salaryClassifyValue);
console.log("=====1====");
// console.log(salaryClassify); // console.log(salaryClassify);
if (salaryClassify == 0) { if (salaryClassify == 0) {
return `${hourlyPay}元/时`; return `${hourlyPay}元/时`;
@ -1272,7 +1270,7 @@ export function disposeJobListData(recordList) {
} else if (isNotEmptyCheck(item.maxMonthlyPay)) { } else if (isNotEmptyCheck(item.maxMonthlyPay)) {
monthlyPayStr = item.maxMonthlyPay / 100; monthlyPayStr = item.maxMonthlyPay / 100;
} }
console.log(monthlyPayStr); // console.log(monthlyPayStr);
// } // }
item["monthlyPay"] = monthlyPayStr; item["monthlyPay"] = monthlyPayStr;
item["salaryClassifyValue"] = getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue,monthlyPayStr); item["salaryClassifyValue"] = getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue,monthlyPayStr);

Loading…
Cancel
Save