master
zsk 2 years ago
parent f9f0814a49
commit 9f5e20f38b

@ -6,17 +6,23 @@ App({
// ip: 'http://localhost:8001', // ip: 'http://localhost:8001',
sessionId: "", sessionId: "",
header: { header: {
"content-type": "application/x-www-form-urlencoded", "content-type": "application/x-www-form-urlencoded",
appId:"wxb0c590fd696b79be",
"g-open-env":'MP_MINI',
Authorization: "", Authorization: "",
Cookie: "", Cookie: "",
}, },
headers2: { headers2: {
"content-type": "multipart/form-data", "content-type": "multipart/form-data",
appId:"wxb0c590fd696b79be",
"g-open-env":'MP_MINI',
Authorization: "", Authorization: "",
Cookie: "", Cookie: "",
}, },
headers: { headers: {
"content-type": "application/x-www-form-urlencoded", "content-type": "application/x-www-form-urlencoded",
appId:"wxb0c590fd696b79be",
"g-open-env":'MP_MINI',
Authorization: "", Authorization: "",
Cookie: "", Cookie: "",
}, },

@ -53,6 +53,7 @@
} }
}, },
"requiredPrivateInfos":[ "requiredPrivateInfos":[
"getLocation",
"chooseLocation", "chooseLocation",
"chooseAddress" "chooseAddress"
], ],
@ -99,4 +100,5 @@
"style": "v2", "style": "v2",
"sitemapLocation": "sitemap.json", "sitemapLocation": "sitemap.json",
"lazyCodeLoading": "requiredComponents" "lazyCodeLoading": "requiredComponents"
} }

@ -21,7 +21,27 @@ Page({
onReady() { onReady() {
}, },
goMap(){
console.log("123")
wx.getLocation({
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
success (res) {
console.log(res);
const latitude = 34.757034;
const longitude = 113.772587;
wx.openLocation({
latitude,
longitude,
name:'郑州一才企业管理有限公司',
address:'河南省郑州市管城回族区心怡路与东站南街交叉口郑东升龙广场2号楼5楼',
scale: 18
})
},
fail(res){
console.log(res)
}
})
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */

@ -32,7 +32,7 @@
<view class="servicenamebox"> <view class="servicenamebox">
<view class="mb2 f20 fw500">客户经理</view> <view class="mb2 f20 fw500">客户经理</view>
<view class="c3 f16"> <view class="c3 f16">
{{serviceInfo.userName }} {{serviceInfo.userName || '李经理' }}
<i class="mr4"></i> <i class="mr4"></i>
<p class="f14">{{serviceInfo.tel || '0371-6611 3723'}}</p> <p class="f14">{{serviceInfo.tel || '0371-6611 3723'}}</p>
</view> </view>

@ -468,7 +468,8 @@ Page({
// that.getStoreJobDetailById(); // that.getStoreJobDetailById();
// }, // },
// }) // })
}, },
onShareAppMessage(){},
// onShareAppMessage1: function () { // onShareAppMessage1: function () {
// var path = commonUtil.getCurrentPageUrlWithArgs(); // var path = commonUtil.getCurrentPageUrlWithArgs();
// if (app.globalData.isLogin && app.globalData.agencyStatus - 0 != 0) { // if (app.globalData.isLogin && app.globalData.agencyStatus - 0 != 0) {

@ -636,57 +636,7 @@ Page({
console.log("清除成功"); console.log("清除成功");
}, },
inputBlur () { }, inputBlur () { },
getListByTypeAndIndustry: function () { getListByTypeAndIndustry: function () {},
var that = this;
wx.request({
url: app.globalData.ip + "/labels/getListByTypeAndIndustry",
data: {
type: 90,
industry: 2,
},
header: app.globalData.header,
method: "GET",
success: function (res) {
console.log(res.data.data);
wx.setStorageSync("FILTER_LIST", res.data.data);
res.data.data.forEach((item) => {
if (item.typeClassify == "0") {
that.data.tagArray0.push(item);
} else if (item.typeClassify == "1") {
that.data.tagArray1.push(item);
} else if (item.typeClassify == "2") {
that.data.tagArray2.push(item);
} else if (item.typeClassify == "3") {
that.data.tagArray3.push(item);
} else if (item.typeClassify == "4") {
that.data.tagArray4.push(item);
}
});
that.setData({
tagArray0: that.data.tagArray0,
tagArray1: that.data.tagArray1,
tagArray2: that.data.tagArray2,
tagArray3: that.data.tagArray3,
tagArray4: that.data.tagArray4,
});
var jobSpecialLabelIdArray = that.data.storeJobListSearchForm.jobSpecialLabelIds.split(",");
res.data.data.forEach((item) => {
item["checked"] = false;
jobSpecialLabelIdArray.forEach((item1) => {
if (item.id == item1) {
item["checked"] = true;
}
});
});
that.setData({
jobSpecialLabelList: res.data.data,
});
},
});
},
golistSharePage () { golistSharePage () {
if (this.data.isLogin) { if (this.data.isLogin) {
if (app.globalData.loginUserInfo.agencyStatus == 1) { if (app.globalData.loginUserInfo.agencyStatus == 1) {
@ -706,58 +656,7 @@ Page({
}, },
getBrandNameAllList: function () { getBrandNameAllList: function () {
var that = this; var that = this;
wx.request({ },
url: app.globalData.ip + "/labels/type/95", // 分类列表获取接口
header: app.globalData.header,
method: "GET",
success: function (res) {
console.log(res);
if (res.data.status == 200) {
if (that.data.storeJobListSearchForm.brandIds) {
var brandIdArray = that.data.storeJobListSearchForm.brandIds.split(",");
}
console.log(res.data.data.labels);
wx.setStorageSync("CLASSIFY_LIST", res.data.data.labels);
res.data.data.labels.forEach((item) => {
item["checked"] = false;
if (brandIdArray) {
brandIdArray.forEach((item1) => {
if (item.id == item1) {
item["checked"] = true;
}
});
}
});
that.setData({
brandList: res.data.data.labels,
});
}
},
});
// wx.request({
// url: app.globalData.ip + "/brand/getBrandNameAllList", // 品牌列表获取接口
// data: {},
// header: app.globalData.header,
// method: "GET",
// success: function (res) {
// console.log(res);
// var brandIdArray = that.data.storeJobListSearchForm.brandIds.split(",");
// res.data.data.forEach((item) => {
// item["checked"] = false;
// brandIdArray.forEach((item1) => {
// if (item.id == item1) {
// item["checked"] = true;
// }
// });
// });
// that.setData({
// brandList: res.data.data,
// });
// },
// });
},
selectBrand: function (e) { selectBrand: function (e) {
var that = this; var that = this;
@ -1094,8 +993,6 @@ Page({
copyList: JSON.parse(JSON.stringify(this.data.filterData)), copyList: JSON.parse(JSON.stringify(this.data.filterData)),
}); });
// that.getJobList(); // that.getJobList();
that.getBannerList();
that.getchannelList();
}, },
onReady () { onReady () {
let that = this; let that = this;
@ -1186,7 +1083,7 @@ Page({
console.log(res); console.log(res);
if (res.data.status == 200) { if (res.data.status == 200) {
that.setData({ that.setData({
bannerList: res.data.data.banners, bannerList: res.data.data.pageBean.banners,
}); });
} }
}, },
@ -1199,19 +1096,19 @@ Page({
* *
*/ */
getTemplateList () { getTemplateList () {
let that = this; // let that = this;
wx.request({ // wx.request({
url: app.globalData.ip + "/daotian/image/list", // url: app.globalData.ip + "/daotian/image/list",
success (res) { // success (res) {
console.log(res); // console.log(res);
if (res.data.status == 200) { // if (res.data.status == 200) {
app.globalData.templateList = res.data.data.images; // app.globalData.templateList = res.data.data.pageBean.images;
that.setData({ // that.setData({
templateList: res.data.data.images, // templateList: res.data.data.pageBean.images,
}); // });
} // }
}, // },
}); // });
}, },
/** /**
@ -1227,7 +1124,7 @@ Page({
console.log(res); console.log(res);
if (res.data.status == 200) { if (res.data.status == 200) {
that.setData({ that.setData({
navList: res.data.data.channels, navList: res.data.data.pageBean.channels,
}); });
} }
}, },
@ -1618,7 +1515,7 @@ Page({
header: app.globalData.headers, header: app.globalData.headers,
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let collectList = res.data.data.recordList; let collectList = res.data.data.pageBean.recordList;
let jobs = that.data.recordList; let jobs = that.data.recordList;
if (collectList != null && collectList != "" && collectList != undefined && collectList.length != 0 && jobs != null && jobs != "" && jobs != undefined && jobs.length != 0) { if (collectList != null && collectList != "" && collectList != undefined && collectList.length != 0 && jobs != null && jobs != "" && jobs != undefined && jobs.length != 0) {
for (var j = 0; j != jobs.length; ++j) { for (var j = 0; j != jobs.length; ++j) {
@ -1815,7 +1712,7 @@ Page({
}); });
console.log(that.data.storeJobListSearchForm); console.log(that.data.storeJobListSearchForm);
wx.request({ wx.request({
url: app.globalData.ip + "/overall/store/job/list", url: app.globalData.ip + "/yishoudan/custom/job/listApp",
method: "POST", method: "POST",
header: app.globalData.headers, header: app.globalData.headers,
data: that.data.storeJobListSearchForm, data: that.data.storeJobListSearchForm,
@ -1824,8 +1721,8 @@ Page({
console.log(res); console.log(res);
that.setData({ that.setData({
totalPage: res.data.data.pageCount, totalPage: res.data.data.pageBean.pageCount,
currPage: res.data.data.currentPage, currPage: res.data.data.pageBean.currentPage,
}); });
setTimeout(function () { setTimeout(function () {
@ -1833,8 +1730,8 @@ Page({
triggered: false, triggered: false,
}); });
}, 1000); }, 1000);
if (res.data.data.recordList == null || res.data.data.recordList.length == 0 || res.data.data.recordList.length < that.data.storeJobListSearchForm.pageSize) { 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.recordList); var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp); that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({ that.setData({
@ -1843,7 +1740,7 @@ Page({
isTrigger: false, isTrigger: false,
}); });
} else { } else {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList); var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp); that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({ that.setData({
@ -1887,7 +1784,7 @@ Page({
recordList: that.data.recordList, recordList: that.data.recordList,
currentJobDrawer: that.data.currentJobDrawer, currentJobDrawer: that.data.currentJobDrawer,
}); });
// if (that.data.recordList.length < res.data.data.recordCount) { // if (that.data.recordList.length < res.data.data.pageBean.recordCount) {
// that.setData({ // that.setData({
// hasMoreData: true, // hasMoreData: true,
// }); // });
@ -2156,8 +2053,8 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
app.globalData.openId = res.data.data.openId; app.globalData.openId = res.data.data.pageBean.openId;
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
var collected = e.currentTarget.dataset.collected; var collected = e.currentTarget.dataset.collected;
if (collected) { if (collected) {
promise.then((res) => { promise.then((res) => {
@ -2210,7 +2107,7 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
var collected = e.currentTarget.dataset.collected; var collected = e.currentTarget.dataset.collected;
if (collected) { if (collected) {
promise.then((res) => { promise.then((res) => {
@ -2223,7 +2120,7 @@ Page({
promise.then((res) => { promise.then((res) => {
wx.navigateTo({ wx.navigateTo({
url: "../enroll/index?applyType=1", url: "../enroll/index?applyType=1",
//url: "../enroll/index?applyType=1&tel=" + res.data.data.phoneNumber //url: "../enroll/index?applyType=1&tel=" + res.data.data.pageBean.phoneNumber
}); });
}); });
} }
@ -2288,7 +2185,7 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
promise.then((res) => { promise.then((res) => {
that.setData({ that.setData({
isLogin: app.globalData.isLogin, isLogin: app.globalData.isLogin,
@ -2319,7 +2216,7 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
promise.then((res) => { promise.then((res) => {
that.setData({ that.setData({
isLogin: app.globalData.isLogin, isLogin: app.globalData.isLogin,
@ -2368,8 +2265,8 @@ Page({
console.log("获取来源对应的代理人来源ID", id); console.log("获取来源对应的代理人来源ID", id);
console.log(res); console.log(res);
try { try {
if (app.isNotEmptyCheck(res.data.data)) { if (app.isNotEmptyCheck(res.data.data.pageBean)) {
wx.setStorageSync("storageSyncAgencyUserId", res.data.data); wx.setStorageSync("storageSyncAgencyUserId", res.data.data.pageBean);
} }
//先设置代理人缓存人再登录 //先设置代理人缓存人再登录
app.getLoginUserTokenInfo(); app.getLoginUserTokenInfo();

@ -1,7 +1,4 @@
{ {
"usingComponents": {
"mp-html": "mp-html"
},
"navigationBarTitleText" : "消息", "navigationBarTitleText" : "消息",
"backgroundColor":"#f5f5f5", "backgroundColor":"#f5f5f5",
"navigationBarBackgroundColor": "#0dcc91", "navigationBarBackgroundColor": "#0dcc91",

@ -61,6 +61,6 @@
</view> </view>
<view class="content" wx:else hover-class="none" hover-stop-propagation="false"> <view class="content" wx:else hover-class="none" hover-stop-propagation="false">
<view class="title f18 fw500">{{currentInfo.title}}</view> <view class="title f18 fw500">{{currentInfo.title}}</view>
<mp-html content="{{html}}" tag-style="{{tagStyle}}" container-style="font-size:14px;color:#333" scroll-table="true"/> <!-- <mp-html content="{{html}}" tag-style="{{tagStyle}}" container-style="font-size:14px;color:#333" scroll-table="true"/> -->
<!-- <rich-text class="info f14" space='nbsp'>{{currentInfo.content}}</rich-text> --> <!-- <rich-text class="info f14" space='nbsp'>{{currentInfo.content}}</rich-text> -->
</view> </view>

@ -87,6 +87,16 @@ Page({
scrollInfoView:'category_0', scrollInfoView:'category_0',
sList:[], sList:[],
},
handleTab(e){
console.log('点击tab',e)
this.setData({
active:e.currentTarget.dataset.active,// tab切换
scrollInfoView:'category_' + e.currentTarget.dataset.active // 右侧锚点滚动
});
console.log(this.data.scrollInfoView)
}, },
goLogin() { goLogin() {
wx.setStorageSync("comeFromPage", "index"); wx.setStorageSync("comeFromPage", "index");

Loading…
Cancel
Save