master
zsk 2 years ago
parent 35d041344d
commit 548ba9ad78

@ -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: {

@ -252,6 +252,13 @@ Component({
show: false,
ageIndex:-1
})
wx.showTabBar({
animation: false,
success: (result) => {
},
fail: () => { },
complete: () => { }
});
} else {
wx.showToast({

@ -67,7 +67,7 @@
</label>
</view>
<view class="weui-cell__bd">
<input class="weui-input f17" type="idCard" name="idCard" placeholder="请输入您的身份证号" placeholder-class="input__placeholder cccc" />
<input class="weui-input f17" type="idcard" maxlength="18" name="idCard" placeholder="请输入您的身份证号" placeholder-class="input__placeholder cccc" />
</view>
</view>
<view class="weui-cell bb1 pb12 pt12">
@ -78,7 +78,7 @@
</label>
</view>
<view class="weui-cell__bd">
<input class="weui-input f17" type="tel" maxlength="11" name="tel" placeholder="请输入您的手机号" placeholder-class="input__placeholder cccc" />
<input class="weui-input f17" type="number" maxlength="11" name="tel" placeholder="请输入您的手机号" placeholder-class="input__placeholder cccc" />
</view>
</view>
<view class="weui-cell bb1 pb12 pt12" wx:if="{{info.agencyOperation == 1}}">

@ -3,6 +3,7 @@ const app = getApp();
const commonUtil = require("../../utils/commonUtil.js");
Page({
data: {
recordShow: false,
toped: "1",
recordList: [],
storeJobListSearchForm: {
@ -19,7 +20,7 @@ Page({
cityName: "",
brandIds: "",
jobCategoryLabelIds: "",
ucj: 1,
ujc: 1,
},
loading: true,
hasMoreData: false, //下拉是否还有更多数据
@ -45,8 +46,10 @@ Page({
onShow(){
var that = this;
// that.getJobList();
that.setData({
recordList: [],
});
that.getJobList();
},
goDetail(e){
console.log(e);
@ -58,127 +61,105 @@ Page({
},
getJobList() {
var that = this;
var that = this;
// debugger
// that.setData({
// })
that.setData({
that.setData({
pageShow: false,
recordList: []
});
return new Promise(function (resolve, reject) {
if (that.data.storeJobListSearchForm.sortTag == 2) {
//如果按照距离排序,拼接上坐标
that.data.storeJobListSearchForm.lng = app.globalData.lng;
that.data.storeJobListSearchForm.lat = app.globalData.lat;
}
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.keys = that.data.inputVal == "搜索工作" ? "" : that.data.inputVal;
// debugger;
wx.showLoading({
title: "加载中...",
});
console.log(that.data.storeJobListSearchForm);
wx.request({
url: app.globalData.ip + "/overall/store/job/list",
method: "POST",
header: app.globalData.headers,
data: that.data.storeJobListSearchForm,
success: function (res) {
console.log("职位列表↓↓↓↓");
console.log(res);
});
return new Promise(function (resolve, reject) {
wx.showLoading({
title: "加载中...",
});
console.log(that.data.storeJobListSearchForm);
wx.request({
url: app.globalData.ip + "/yishoudan/custom/job/listApp",
method: "POST",
header: app.globalData.headers,
data: that.data.storeJobListSearchForm,
success: function (res) {
console.log("职位列表↓↓↓↓");
console.log(res);
that.setData({
totalPage: res.data.data.pageCount,
currPage: res.data.data.currentPage,
});
that.setData({
totalPage: res.data.data.pageBean.pageCount,
currPage: res.data.data.pageBean.currentPage,
});
setTimeout(function () {
that.setData({
triggered: false,
});
}, 1000);
if (res.data.data.recordList == null || res.data.data.recordList.length == 0 || res.data.data.recordList.length < that.data.storeJobListSearchForm.pageSize) {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp);
setTimeout(function () {
that.setData({
triggered: false,
});
}, 1000);
if (res.data.data.pageBean.recordList == null || res.data.data.pageBean.recordList.length == 0 || res.data.data.pageBean.recordList.length < that.data.storeJobListSearchForm.pageSize) {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({
recordList: that.data.recordList,
hasMoreData: false,
isTrigger: false,
});
} else {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({
recordList: that.data.recordList,
hasMoreData: false,
isTrigger: false,
});
} else {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({
recordList: that.data.recordList,
hasMoreData: true,
isTrigger: false,
});
}
that.setData({
recordList: that.data.recordList,
hasMoreData: true,
isTrigger: false,
});
}
wx.hideLoading({
success: (res) => {},
});
that.setData({
loading: false,
pageShow: true,
storeJobListSearchForm: that.data.storeJobListSearchForm,
});
resolve();
wx.hideLoading({
success: (res) => { },
});
that.setData({
loading: false,
pageShow: true,
storeJobListSearchForm: that.data.storeJobListSearchForm,
});
resolve();
// that.getTag();
that.data.recordList.forEach((item, index) => {
// console.log(item);
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee);
} else {
item["fuWuFei"] = "";
}
});
that.setData({
recordList: that.data.recordList,
currentJobDrawer: that.data.currentJobDrawer,
});
// if (that.data.recordList.length < res.data.data.recordCount) {
// that.setData({
// hasMoreData: true,
// });
// } else {
// that.setData({
// hasMoreData: false,
// });
// }
},
});
});
that.data.recordList.forEach((item, index) => {
console.log(item.storeDistrict);
item['citys'] = commonUtil.setJobInfoPosition(item.storeDistrict)
// console.log(item);
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee);
} else {
item["fuWuFei"] = "";
}
});
that.setData({
recordList: that.data.recordList,
currentJobDrawer: that.data.currentJobDrawer,
});
console.log(that.data.recordList)
// if (that.data.recordList.length < res.data.data.pageBean.recordCount) {
// that.setData({
// hasMoreData: true,
// });
// } else {
// that.setData({
// hasMoreData: false,
// });
// }
},
});
});
},
collectPaste(e) {
var txt;
var that = this;
if (!this.data.isLogin) {
wx.navigateTo({
url: "/pages/login/index",
});
return;
}
var collected = e.currentTarget.dataset.collected;
var storeJobId = e.currentTarget.dataset.jobid;
that.doCollected(collected, storeJobId);
},
doCollected(collected, storeJobId) {
var that = this;
var url = "/user/collect/job/add";
if (collected - 1 == 0) {
url = "/user/collect/job/remove";
}
var url = "/yishoudan/custom/job/collect/" + storeJobId;
console.log(app.globalData.headers);
//发起网络请求
wx.request({
@ -199,16 +180,10 @@ Page({
}
}
txt = "取消收藏";
that.data.currentJobDrawer.collected = 2;
if (that.data.choiceCollect == 1) {
if (that.data.drawerShow) {
that.data.drawerShow = false;
}
that.data.storeJobListSearchForm.pageNum = 1;
that.setData({
recordList: [],
drawerShow: that.data.drawerShow,
storeJobListSearchForm: that.data.storeJobListSearchForm,
});
that.getJobList();
@ -221,17 +196,10 @@ Page({
break;
}
}
that.data.currentJobDrawer.collected = 1;
txt = "收藏成功";
}
console.log(that.data.currentJobDrawer);
that.setData({
recordList: that.data.recordList,
currentJobDrawer: that.data.currentJobDrawer,
isLogin: app.globalData.isLogin,
});
wx.showToast({
icon: "none",
@ -242,5 +210,59 @@ Page({
console.log("操作失败");
},
});
},
},
hidedrawershow (e) {
console.log(e);
this.setData({
[e.detail.type]: false
})
wx.showTabBar({
animation: false,
success: (result) => {
},
fail: () => { },
complete: () => { }
});
},
recordBill (e) {
console.log(e.currentTarget.dataset.job);
this.setData({
recordShow: true,
currentInfo: e.currentTarget.dataset.job,
})
console.log(this.data.recordShow);
wx.hideTabBar({
animation: false,
success: (result) => {
},
fail: () => { },
complete: () => { }
});
return
if (!this.data.isLogin) {
wx.navigateTo({
url: "/pages/login/index",
});
return;
}
console.log(e.currentTarget.dataset.job);
console.log(123);
let middleInfo = e.currentTarget.dataset.job;
let info = JSON.stringify({
id: middleInfo.id,
jobName: middleInfo.jobName,
storeName: middleInfo.storeName,
aliasName: middleInfo.aliasName,
storeId: middleInfo.storeId,
});
console.log(info);
wx.navigateTo({
url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
});
// wx.navigateTo({
// url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
// });
},
});

@ -1,4 +1,7 @@
{
"usingComponents": {
"bottom-drawer": "../../components/bottom-drawer/index"
},
"navigationBarTitleText": "我的收藏",
"backgroundColor": "#f5f5f5"

@ -1,36 +1,15 @@
<view style class="container" bindtouchstart="touchStart">
<view class="tc bgf" style="height:100vh">
<view class="tc bgf" style="height:100vh" wx:if="{{recordList.length == 0}}">
<view class="t-icon t-icon-zanwu" style="width: 80px; height: 80px; margin: 80px auto 20px"></view>
<view class="tc f14 c045">暂无记录</view>
</view>
<!-- bindrefresherrefresh="onScrollRefresh" refresher-triggered="{{isTrigger}}" refresher-enabled="{{true}}" -->
<scroll-view id="listBox" bindscrolltolower="onScrollToLower" scroll-top="{{topNum}}" enhanced binddragstart="listTouchStart" bindscroll="listTouchMove" style="height:calc(100vh)" enable-passive scroll-x="false" scroll-y="true" scroll-into-view="{{scrollTo}}" scroll-with-animation="false" enable-back-to-top="true">
<view class hover-class="none" hover-stop-propagation="false">
<view class='dn' hover-class="none" hover-stop-propagation="false">
<view id="navBox" hover-class="none" hover-stop-propagation="false">
<view class="bannerContainer">
<!-- indicator-dots="{{true}}" -->
<swiper class="banner" autoplay="{{true}}" previous-margin="-3px" next-margin="-3px" circular="{{true}}" current="0" current-item-id interval="5000" duration="300" display-multiple-items="1" skip-hidden-item-layout="false">
<swiper-item class wx:for="{{bannerList}}" item-id>
<image bindtap="toHot" data-path="{{item.path}}" class="size100 br8" src="{{item.img}}" mode="aspectFit|aspectFill|widthFix" binderror bindload />
</swiper-item>
</swiper>
</view>
<view class="navListContainer">
<view class="navList">
<view class="navSub" bindtap="witchNav" data-title="{{item.title}}" data-url="{{item.path}}" wx:for="{{navList}}" target wx:key="index" aria-role="navigate" open-type="navigate">
<image class src="{{item.img}}" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
<view class="f12 lh1" hover-class="none" hover-stop-propagation="false">{{item.title}}</view>
</view>
</view>
</view>
</view>
</view>
<!-- 标准列表 -->
<view style="display:{{toped == 1 ? 'block' : 'none'}}">
<view>
<view class="standardList" style="padding-top: 0px;min-height: calc(100vh - {{selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'zuigao' || sexid != '-1' ? '170px':'214px'}})">
<view>
<view x:if="{{recordList != null && recordList.length > 0}}" style="padding-top: 0;overflow-x: hidden;">
@ -68,7 +47,7 @@
<block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">{{item.distanceKm}}</block>
<block wx:else>{{item.age}}</block>
</view>
<view class="fr f14s fw400" style="color: var(--color-f40);">{{item.monthlyPay}}</view>
<!-- <view class="fr f14s fw400" style="color: var(--color-f40);">{{item.monthlyPay}}</view> -->
</view>
</view>
<view class="display-flex">
@ -79,10 +58,10 @@
</scroll-view>
<block wx:if="{{item.state == 1 && item.recruitment == 2}}">
<view class="miniBtn disabled" hover-stop-propagation="false">报名</view>
<view class="miniBtn disabled" hover-stop-propagation="false">立即报名</view>
</block>
<block wx:else>
<view class="miniBtn" bindtap="recordBill" data-job="{{item}}" hover-class="thover" hover-stop-propagation="false">报名</view>
<view class="miniBtn" catchtap="recordBill" data-job="{{item}}" hover-class="thover" hover-stop-propagation="false">立即报名</view>
</block>
@ -116,3 +95,4 @@
</view>
</scroll-view>
</view>
<bottom-drawer show="{{recordShow}}" info="{{currentInfo}}" drawerType="recordShow" cancerShow="{{false}}" touchClose="{{true}}" bindhidedrawer="hidedrawershow" class="bottomDrawer" height="494px"></bottom-drawer>

@ -31,13 +31,13 @@
<view class="servicebox mt_10 br8 fsa" style="margin-bottom: 60px;">
<view class="serviceinfo display-flex" hover-class="none">
<view class="mr10">
<image wx:if="{{serviceInfo.avatar}}" class="br_8" src="{{serviceInfo.avatar}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<image wx:if="{{storeInfo.contactAvatar}}" class="br_8" src="{{storeInfo.contactAvatar}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<image wx:else class="br_8" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/service.jpg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
</view>
<view class="servicenamebox">
<view class="mb2 f20 fw500"> {{serviceInfo.contactUserName || '暂无联系人' }}</view>
<view class="mb2 f20 fw500"> {{storeInfo.contactUserName || '暂无联系人' }}</view>
<view class="c3 f16">
<p class="f14">{{serviceInfo.contactTel || '暂无联系方式'}}</p>
<p class="f14">{{storeInfo.contactTel || '暂无联系方式'}}</p>
</view>
</view>
</view>

@ -88,12 +88,12 @@
<view>工作</view>
</navigator>
</view> -->
<view>
<!-- <view>
<navigator class target url="{{isLogin? '/pages/mine/vitaeList/index?type=edit': '/pages/login/index'}}" hover-class="thover" aria-role="navigate" open-type="navigate">
<image class src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/yhk911.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<view>简历</view>
</navigator>
</view>
</view> -->
<view>

@ -49,10 +49,6 @@ Page({
item["age"] = item.customJob.maxAge + "岁以下";
}
})
that.setData({
recordList:res.data.data
})

@ -36,56 +36,54 @@ Page({
that.data.subLoad = true
console.log(that.data.textVal)
that.setData({
success: true,
loading: false,
subLoad:false
});
// that.setData({
// success: true,
// loading: false,
// subLoad:false
// });
// if (that.data.textVal.trim() != '') {
// console.log(312313123);
// that.setData({
// loading: true,
// });
// wx.request({
// url: app.globalData.ip + "/daotian/feedback/add",
// method: 'post',
// header: app.globalData.headers,
// data: {
// content: that.data.textVal
// },
// success: function (res) {
// console.log(res);
// if (res.data.status == 200) {
// that.setData({
// success: true,
// });
// } else {
// wx.showToast({
// title: res.data.msg,
// icon: 'none'
// })
// }
// that.setData({
// loading: false,
// });
// that.data.subLoad = false
if (that.data.textVal.trim() != '') {
console.log(312313123);
that.setData({
loading: true,
});
wx.request({
url: app.globalData.ip + "/daotian/feedback/add",
method: 'post',
header: app.globalData.headers,
data: {
content: that.data.textVal
},
success: function (res) {
console.log(res);
if (res.data.status == 200) {
that.setData({
success: true,
});
} else {
wx.showToast({
title: res.data.msg,
icon: 'none'
})
}
that.setData({
loading: false,
});
that.data.subLoad = false
// },
// fail: function (res) {
// that.setData({
// loading: false,
// });
// },
// });
// } else {
// wx.showToast({
// title: '请输入内容再提交',
// icon: 'none'
// })
// }
},
fail: function (res) {
that.setData({
loading: false,
});
},
});
} else {
wx.showToast({
title: '请输入内容再提交',
icon: 'none'
})
}
},
@ -97,9 +95,12 @@ that.setData({
console.log(this.data.textVal);
},
goback () {
wx.navigateBack({
delta: 1,
});
// wx.navigateBack({
// delta: 1,
// });
wx.switchTab({
url: '../../mine/index',
})
},
goList () {
wx.navigateTo({

Loading…
Cancel
Save