- {{serviceInfo.userName }}
+ {{serviceInfo.userName || '李经理' }}
{{serviceInfo.tel || '0371-6611 3723'}}
diff --git a/pages/detail/index.js b/pages/detail/index.js
index 06f71a9..c0126d5 100644
--- a/pages/detail/index.js
+++ b/pages/detail/index.js
@@ -468,7 +468,8 @@ Page({
// that.getStoreJobDetailById();
// },
// })
- },
+ },
+ onShareAppMessage(){},
// onShareAppMessage1: function () {
// var path = commonUtil.getCurrentPageUrlWithArgs();
// if (app.globalData.isLogin && app.globalData.agencyStatus - 0 != 0) {
diff --git a/pages/index/index.js b/pages/index/index.js
index 509dbb7..b78a507 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -636,57 +636,7 @@ Page({
console.log("清除成功");
},
inputBlur () { },
- 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,
- });
- },
- });
- },
+ getListByTypeAndIndustry: function () {},
golistSharePage () {
if (this.data.isLogin) {
if (app.globalData.loginUserInfo.agencyStatus == 1) {
@@ -706,58 +656,7 @@ Page({
},
getBrandNameAllList: function () {
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) {
var that = this;
@@ -1094,8 +993,6 @@ Page({
copyList: JSON.parse(JSON.stringify(this.data.filterData)),
});
// that.getJobList();
- that.getBannerList();
- that.getchannelList();
},
onReady () {
let that = this;
@@ -1186,7 +1083,7 @@ Page({
console.log(res);
if (res.data.status == 200) {
that.setData({
- bannerList: res.data.data.banners,
+ bannerList: res.data.data.pageBean.banners,
});
}
},
@@ -1199,19 +1096,19 @@ Page({
*
*/
getTemplateList () {
- let that = this;
- wx.request({
- url: app.globalData.ip + "/daotian/image/list",
- success (res) {
- console.log(res);
- if (res.data.status == 200) {
- app.globalData.templateList = res.data.data.images;
- that.setData({
- templateList: res.data.data.images,
- });
- }
- },
- });
+ // let that = this;
+ // wx.request({
+ // url: app.globalData.ip + "/daotian/image/list",
+ // success (res) {
+ // console.log(res);
+ // if (res.data.status == 200) {
+ // app.globalData.templateList = res.data.data.pageBean.images;
+ // that.setData({
+ // templateList: res.data.data.pageBean.images,
+ // });
+ // }
+ // },
+ // });
},
/**
@@ -1227,7 +1124,7 @@ Page({
console.log(res);
if (res.data.status == 200) {
that.setData({
- navList: res.data.data.channels,
+ navList: res.data.data.pageBean.channels,
});
}
},
@@ -1618,7 +1515,7 @@ Page({
header: app.globalData.headers,
success: function (res) {
console.log(res);
- let collectList = res.data.data.recordList;
+ let collectList = res.data.data.pageBean.recordList;
let jobs = that.data.recordList;
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) {
@@ -1815,7 +1712,7 @@ Page({
});
console.log(that.data.storeJobListSearchForm);
wx.request({
- url: app.globalData.ip + "/overall/store/job/list",
+ url: app.globalData.ip + "/yishoudan/custom/job/listApp",
method: "POST",
header: app.globalData.headers,
data: that.data.storeJobListSearchForm,
@@ -1824,8 +1721,8 @@ Page({
console.log(res);
that.setData({
- totalPage: res.data.data.pageCount,
- currPage: res.data.data.currentPage,
+ totalPage: res.data.data.pageBean.pageCount,
+ currPage: res.data.data.pageBean.currentPage,
});
setTimeout(function () {
@@ -1833,8 +1730,8 @@ Page({
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);
+ 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({
@@ -1843,7 +1740,7 @@ Page({
isTrigger: false,
});
} 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.setData({
@@ -1887,7 +1784,7 @@ Page({
recordList: that.data.recordList,
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({
// hasMoreData: true,
// });
@@ -2156,8 +2053,8 @@ Page({
},
success: function (res) {
console.log(res);
- app.globalData.openId = res.data.data.openId;
- let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null);
+ app.globalData.openId = res.data.data.pageBean.openId;
+ let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
var collected = e.currentTarget.dataset.collected;
if (collected) {
promise.then((res) => {
@@ -2210,7 +2107,7 @@ Page({
},
success: function (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;
if (collected) {
promise.then((res) => {
@@ -2223,7 +2120,7 @@ Page({
promise.then((res) => {
wx.navigateTo({
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) {
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) => {
that.setData({
isLogin: app.globalData.isLogin,
@@ -2319,7 +2216,7 @@ Page({
},
success: function (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) => {
that.setData({
isLogin: app.globalData.isLogin,
@@ -2368,8 +2265,8 @@ Page({
console.log("获取来源对应的代理人,来源ID:", id);
console.log(res);
try {
- if (app.isNotEmptyCheck(res.data.data)) {
- wx.setStorageSync("storageSyncAgencyUserId", res.data.data);
+ if (app.isNotEmptyCheck(res.data.data.pageBean)) {
+ wx.setStorageSync("storageSyncAgencyUserId", res.data.data.pageBean);
}
//先设置代理人缓存人再登录
app.getLoginUserTokenInfo();
diff --git a/pages/messageDetail/index.json b/pages/messageDetail/index.json
index 3be9a48..1322522 100644
--- a/pages/messageDetail/index.json
+++ b/pages/messageDetail/index.json
@@ -1,7 +1,4 @@
{
- "usingComponents": {
- "mp-html": "mp-html"
- },
"navigationBarTitleText" : "消息",
"backgroundColor":"#f5f5f5",
"navigationBarBackgroundColor": "#0dcc91",
diff --git a/pages/messageDetail/index.wxml b/pages/messageDetail/index.wxml
index 240ad6b..09ceb49 100644
--- a/pages/messageDetail/index.wxml
+++ b/pages/messageDetail/index.wxml
@@ -61,6 +61,6 @@