|
|
|
|
@ -6,7 +6,7 @@ var qqmapsdk;
|
|
|
|
|
|
|
|
|
|
Page({
|
|
|
|
|
data: {
|
|
|
|
|
isLogin:false,
|
|
|
|
|
isLogin: false,
|
|
|
|
|
statusBarHeight: wx.getStorageSync("statusBarHeight"), // 状态栏高度
|
|
|
|
|
|
|
|
|
|
navigationBarHeight: wx.getStorageSync("navigationBarHeight"), // 导航栏高度
|
|
|
|
|
@ -14,7 +14,7 @@ Page({
|
|
|
|
|
menuButtonHeight: wx.getStorageSync("menuButtonHeight"), // 胶囊按钮高度
|
|
|
|
|
|
|
|
|
|
menuButton: wx.getStorageSync("menuButtonInfo"), // 胶囊信息
|
|
|
|
|
backHeight:wx.getMenuButtonBoundingClientRect().top + (wx.getMenuButtonBoundingClientRect().height/2) +'px',
|
|
|
|
|
backHeight: wx.getMenuButtonBoundingClientRect().top + (wx.getMenuButtonBoundingClientRect().height / 2) + 'px',
|
|
|
|
|
storeJobId: "",
|
|
|
|
|
iosDialog: false,
|
|
|
|
|
//职位ID
|
|
|
|
|
@ -60,21 +60,22 @@ Page({
|
|
|
|
|
shareListImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/detail830-1.png",
|
|
|
|
|
shareDetailImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/posterbg1.1.png",
|
|
|
|
|
posterImg: "",
|
|
|
|
|
safeBottom:wx.getWindowInfo().screenHeight - wx.getWindowInfo().safeArea.height+'px',
|
|
|
|
|
fromScene:false,
|
|
|
|
|
fromShoucangOrBaoming:''
|
|
|
|
|
safeBottom: wx.getWindowInfo().screenHeight - wx.getWindowInfo().safeArea.height + 'px',
|
|
|
|
|
fromScene: false,
|
|
|
|
|
fromShoucangOrBaoming: '',
|
|
|
|
|
recordBillShow: false
|
|
|
|
|
},
|
|
|
|
|
showdialog() {
|
|
|
|
|
showdialog () {
|
|
|
|
|
this.setData({
|
|
|
|
|
iosDialog: true,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
closeDialog() {
|
|
|
|
|
closeDialog () {
|
|
|
|
|
this.setData({
|
|
|
|
|
iosDialog: false,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
onShow () {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
console.log(that.data.safeBottom);
|
|
|
|
|
@ -109,10 +110,10 @@ Page({
|
|
|
|
|
phoneDialog: false,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
wxLogin() {
|
|
|
|
|
wxLogin () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.login({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.code) {
|
|
|
|
|
that.setData({
|
|
|
|
|
wxCode: res.code,
|
|
|
|
|
@ -123,7 +124,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
showImage(e) {
|
|
|
|
|
showImage (e) {
|
|
|
|
|
let resImg = e.currentTarget.dataset.src;
|
|
|
|
|
var imgArr = [];
|
|
|
|
|
|
|
|
|
|
@ -140,7 +141,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
renderToCanvas() {
|
|
|
|
|
renderToCanvas () {
|
|
|
|
|
const p1 = this.widget.renderToCanvas({ wxml: wxml(that.data.wxml), style });
|
|
|
|
|
p1.then((res) => {
|
|
|
|
|
console.log("container", res.layoutBox);
|
|
|
|
|
@ -148,7 +149,7 @@ Page({
|
|
|
|
|
console.log(res);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
extraImage() {
|
|
|
|
|
extraImage () {
|
|
|
|
|
var that = this;
|
|
|
|
|
// return new Promise(function (resolve, reject) {
|
|
|
|
|
that.widget.renderToCanvas({ wxml: wxml(that.data.wxml), style }).then((res1) => {
|
|
|
|
|
@ -162,17 +163,17 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
onLoad(query) {
|
|
|
|
|
onLoad (query) {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let systemInfo = wx.getSystemInfoSync();
|
|
|
|
|
// let rect = wx.getMenuButtonBoundingClientRect ? wx.getMenuButtonBoundingClientRect() : null; //胶囊按钮位置信息
|
|
|
|
|
// wx.getMenuButtonBoundingClientRect();
|
|
|
|
|
// let navBarHeight = (function() { //导航栏高度
|
|
|
|
|
// let gap = rect.top - systemInfo.statusBarHeight; //动态计算每台手机状态栏到胶囊按钮间距
|
|
|
|
|
// return 2 * gap + rect.height;
|
|
|
|
|
// })();
|
|
|
|
|
// let systemInfo = wx.getSystemInfoSync();
|
|
|
|
|
// let rect = wx.getMenuButtonBoundingClientRect ? wx.getMenuButtonBoundingClientRect() : null; //胶囊按钮位置信息
|
|
|
|
|
// wx.getMenuButtonBoundingClientRect();
|
|
|
|
|
// let navBarHeight = (function() { //导航栏高度
|
|
|
|
|
// let gap = rect.top - systemInfo.statusBarHeight; //动态计算每台手机状态栏到胶囊按钮间距
|
|
|
|
|
// return 2 * gap + rect.height;
|
|
|
|
|
// })();
|
|
|
|
|
|
|
|
|
|
console.log((wx.getMenuButtonBoundingClientRect().top - wx.getWindowInfo().statusBarHeight) * 2 + wx.getMenuButtonBoundingClientRect().height + wx.getWindowInfo().statusBarHeight);
|
|
|
|
|
|
|
|
|
|
@ -211,9 +212,9 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
console.log(query);
|
|
|
|
|
if(app.isNotEmptyCheck(query.fromShoucangOrBaoming)){
|
|
|
|
|
if (app.isNotEmptyCheck(query.fromShoucangOrBaoming)) {
|
|
|
|
|
that.setData({
|
|
|
|
|
fromShoucangOrBaoming:query.fromShoucangOrBaoming
|
|
|
|
|
fromShoucangOrBaoming: query.fromShoucangOrBaoming
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
console.log("HHHHHHHHHHHHH" + query.storeJobId);
|
|
|
|
|
@ -227,27 +228,27 @@ Page({
|
|
|
|
|
var sceneJson = commonUtil.sceneToJson(sceneStr);
|
|
|
|
|
console.log("sceneJson===", sceneJson);
|
|
|
|
|
let arr = sceneJson.i.split('_')
|
|
|
|
|
if(arr[0] > 0){
|
|
|
|
|
if (arr[0] > 0) {
|
|
|
|
|
wx.setStorageSync("applyUserId", arr[0]);
|
|
|
|
|
}
|
|
|
|
|
if(arr[1] > 0){
|
|
|
|
|
if (arr[1] > 0) {
|
|
|
|
|
wx.setStorageSync("agencyId", arr[1]);
|
|
|
|
|
app.globalData.agencyId = arr[1]
|
|
|
|
|
}
|
|
|
|
|
if(arr[2] > 0){
|
|
|
|
|
if (arr[2] > 0) {
|
|
|
|
|
this.data.searchForm.storeJobId = arr[2];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// wx.setStorageSync("agencyId", sceneJson.agencyId);
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
fromScene:true
|
|
|
|
|
fromScene: true
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(app.isNotEmptyCheck(query.from)){
|
|
|
|
|
if (app.isNotEmptyCheck(query.from)) {
|
|
|
|
|
that.setData({
|
|
|
|
|
fromScene:true
|
|
|
|
|
fromScene: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -272,12 +273,12 @@ Page({
|
|
|
|
|
app.globalData.isCommission = 1;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
backIndex(){
|
|
|
|
|
backIndex () {
|
|
|
|
|
wx.switchTab({
|
|
|
|
|
url: '../index/index',
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
searchAnimate() {
|
|
|
|
|
searchAnimate () {
|
|
|
|
|
let that = this;
|
|
|
|
|
wx.createSelectorQuery()
|
|
|
|
|
.select("#listBox")
|
|
|
|
|
@ -331,7 +332,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAgencyInfo(job) {
|
|
|
|
|
getAgencyInfo (job) {
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(job);
|
|
|
|
|
console.log("打印基本信息");
|
|
|
|
|
@ -374,7 +375,7 @@ Page({
|
|
|
|
|
// return agencyStr + '\n' + objAgency.returnFeeDesp;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toMapChoice(e) {
|
|
|
|
|
toMapChoice (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
try {
|
|
|
|
|
@ -421,13 +422,13 @@ Page({
|
|
|
|
|
// },
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
changeMenu(e) {
|
|
|
|
|
changeMenu (e) {
|
|
|
|
|
let currentIndex = parseInt(e.currentTarget.dataset.id);
|
|
|
|
|
this.setData({
|
|
|
|
|
currIndex: e.currentTarget.dataset.id,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getLocation() {
|
|
|
|
|
getLocation () {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
wx.getSetting({
|
|
|
|
|
@ -436,7 +437,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
if (res.authSetting.location) {
|
|
|
|
|
wx.getLocation({
|
|
|
|
|
success(res1) {
|
|
|
|
|
success (res1) {
|
|
|
|
|
console.log("获取位置");
|
|
|
|
|
console.log(res1);
|
|
|
|
|
|
|
|
|
|
@ -448,7 +449,7 @@ Page({
|
|
|
|
|
that.getStoreJobDetailById();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
fail() {
|
|
|
|
|
fail () {
|
|
|
|
|
that.getStoreJobDetailById();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
@ -501,7 +502,7 @@ Page({
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
getCanvas() {
|
|
|
|
|
getCanvas () {
|
|
|
|
|
const that = this;
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
var mycenter = 0; //文字左右居中显示
|
|
|
|
|
@ -518,7 +519,7 @@ Page({
|
|
|
|
|
// 绘制背景图片
|
|
|
|
|
wx.getImageInfo({
|
|
|
|
|
src: that.data.img, //网络图片,如果不行请换一个
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
var width = res.width;
|
|
|
|
|
var height = res.height;
|
|
|
|
|
@ -549,7 +550,7 @@ Page({
|
|
|
|
|
.then(function () {
|
|
|
|
|
wx.canvasToTempFilePath({
|
|
|
|
|
canvas: canvas,
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
that.setData({
|
|
|
|
|
canvasImg: res.tempFilePath,
|
|
|
|
|
@ -560,7 +561,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
.catch((err) => { });
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
@ -570,7 +571,7 @@ Page({
|
|
|
|
|
// query: "?storeJobId=" + this.data.storeJobId,
|
|
|
|
|
// };
|
|
|
|
|
// },
|
|
|
|
|
getCanvas() {
|
|
|
|
|
getCanvas () {
|
|
|
|
|
const that = this;
|
|
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
@ -588,7 +589,7 @@ Page({
|
|
|
|
|
// 绘制背景图片
|
|
|
|
|
wx.getImageInfo({
|
|
|
|
|
src: that.data.shareDetailImg, //网络图片,如果不行请换一个
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
var width = res.width;
|
|
|
|
|
var height = res.height;
|
|
|
|
|
@ -648,7 +649,7 @@ Page({
|
|
|
|
|
// 恢复之前保存的绘图上下文
|
|
|
|
|
ctx.restore();
|
|
|
|
|
};
|
|
|
|
|
function roundRect1(ctx, x, y, w, h, r, color) {
|
|
|
|
|
function roundRect1 (ctx, x, y, w, h, r, color) {
|
|
|
|
|
//绘制圆角矩形(无填充色))
|
|
|
|
|
ctx.save();
|
|
|
|
|
ctx.fillStyle = color;
|
|
|
|
|
@ -719,7 +720,7 @@ Page({
|
|
|
|
|
console.log(that.data.jobDetail.store.logo);
|
|
|
|
|
wx.downloadFile({
|
|
|
|
|
url: that.data.jobDetail.store.logo, //网络图片,如果不行请换一个
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
const img = canvas.createImage();
|
|
|
|
|
img.src = res.tempFilePath;
|
|
|
|
|
@ -732,7 +733,7 @@ Page({
|
|
|
|
|
// }
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
fail(err){
|
|
|
|
|
fail (err) {
|
|
|
|
|
console.log(err);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -743,14 +744,14 @@ Page({
|
|
|
|
|
.then(function () {
|
|
|
|
|
wx.canvasToTempFilePath({
|
|
|
|
|
canvas: canvas,
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
that.setData({
|
|
|
|
|
canvasImg: res.tempFilePath,
|
|
|
|
|
});
|
|
|
|
|
resolve(res);
|
|
|
|
|
},
|
|
|
|
|
fail(res) {
|
|
|
|
|
fail (res) {
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
|
|
|
|
|
wx.showToast({
|
|
|
|
|
@ -772,7 +773,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
sharePoster() {
|
|
|
|
|
sharePoster () {
|
|
|
|
|
wx.showLoading({
|
|
|
|
|
title: "生成中...",
|
|
|
|
|
});
|
|
|
|
|
@ -787,16 +788,16 @@ Page({
|
|
|
|
|
// this.setData({
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
hidePoster() {
|
|
|
|
|
hidePoster () {
|
|
|
|
|
this.setData({
|
|
|
|
|
posterShow: false,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
saveToalbum() {
|
|
|
|
|
saveToalbum () {
|
|
|
|
|
let that = this;
|
|
|
|
|
wx.saveImageToPhotosAlbum({
|
|
|
|
|
filePath: that.data.posterImg,
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.errMsg == "saveImageToPhotosAlbum:ok") {
|
|
|
|
|
wx.showToast({
|
|
|
|
|
@ -806,7 +807,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fail(res) {
|
|
|
|
|
fail (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
wx.showToast({
|
|
|
|
|
title: "图片保存失败",
|
|
|
|
|
@ -816,18 +817,18 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
goBack(){
|
|
|
|
|
if(this.data.fromScene){
|
|
|
|
|
goBack () {
|
|
|
|
|
if (this.data.fromScene) {
|
|
|
|
|
wx.switchTab({
|
|
|
|
|
url: '../index/index',
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
wx.navigateBack({
|
|
|
|
|
delta: -1,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getStoreJobDetailById() {
|
|
|
|
|
getStoreJobDetailById () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.showLoading({
|
|
|
|
|
title: "加载中...",
|
|
|
|
|
@ -970,7 +971,7 @@ Page({
|
|
|
|
|
console.log(commonUtil);
|
|
|
|
|
let citys = commonUtil.setJobInfoPosition(result.store.district);
|
|
|
|
|
// city = city.replace(/,/g, " | ")
|
|
|
|
|
result.storeImage.splice(0,1)
|
|
|
|
|
result.storeImage.splice(0, 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1002,7 +1003,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
showSexAge() {
|
|
|
|
|
showSexAge () {
|
|
|
|
|
var that = this;
|
|
|
|
|
var manStr = "";
|
|
|
|
|
var womanStr = "";
|
|
|
|
|
@ -1039,7 +1040,7 @@ Page({
|
|
|
|
|
/**
|
|
|
|
|
* 处理后台返回的职位列表
|
|
|
|
|
*/
|
|
|
|
|
disposeJobListData(jobDetail) {
|
|
|
|
|
disposeJobListData (jobDetail) {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
// item["workType"] = commonUtil.getWorkTypeById(
|
|
|
|
|
@ -1128,20 +1129,20 @@ Page({
|
|
|
|
|
// jobDetail.storeJob['jobRequestLabelNames'] = that.getJobRequestLabelNamesArray(jobDetail.storeJob.jobRequestLabelNames);
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
getJobSpecialLabelNamesArray(jobSpecialLabelNames) {
|
|
|
|
|
getJobSpecialLabelNamesArray (jobSpecialLabelNames) {
|
|
|
|
|
if (app.isNotEmptyCheck(jobSpecialLabelNames)) {
|
|
|
|
|
return jobSpecialLabelNames.split(", ");
|
|
|
|
|
}
|
|
|
|
|
return [];
|
|
|
|
|
},
|
|
|
|
|
getJobRequestLabelNamesArray(jobRequestLabelNames) {
|
|
|
|
|
getJobRequestLabelNamesArray (jobRequestLabelNames) {
|
|
|
|
|
console.log(jobRequestLabelNames);
|
|
|
|
|
if (app.isNotEmptyCheck(jobRequestLabelNames)) {
|
|
|
|
|
return jobRequestLabelNames.split(", ");
|
|
|
|
|
}
|
|
|
|
|
return [];
|
|
|
|
|
},
|
|
|
|
|
goSimilar() {
|
|
|
|
|
goSimilar () {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
console.log(that.data.jobDetail);
|
|
|
|
|
@ -1152,7 +1153,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
makePhoneCall() {
|
|
|
|
|
makePhoneCall () {
|
|
|
|
|
console.log(1);
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.makePhoneCall({
|
|
|
|
|
@ -1193,7 +1194,7 @@ Page({
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
textPaste() {
|
|
|
|
|
textPaste () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.setClipboardData({
|
|
|
|
|
// data: that.data.jobDetail.assistantUserWechat,
|
|
|
|
|
@ -1210,7 +1211,7 @@ Page({
|
|
|
|
|
title: "已复制微信号",
|
|
|
|
|
content: "快去搜索添加经纪人好友吧",
|
|
|
|
|
showCancel: false,
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
console.log("用户点击确定");
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
@ -1245,34 +1246,42 @@ Page({
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},*/
|
|
|
|
|
|
|
|
|
|
goNewEnroll(e) {
|
|
|
|
|
hideModal () {
|
|
|
|
|
this.setData({
|
|
|
|
|
recordBillShow: false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goNewEnroll (e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
// this.data.recordBillShow = true
|
|
|
|
|
this.setData({
|
|
|
|
|
recordBillShow: true
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
let argument;
|
|
|
|
|
argument = JSON.stringify(that.data.jobDetail.storeJob).replace(/\=|\&/g, "3D");
|
|
|
|
|
|
|
|
|
|
if (!app.globalData.isLogin) {
|
|
|
|
|
wx.setStorageSync("comeFromPage", "detailBaoming");
|
|
|
|
|
wx.setStorageSync("baomingDetail",argument);
|
|
|
|
|
wx.setStorageSync("baomingDetail", argument);
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "/pages/login/index",
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
});
|
|
|
|
|
// wx.navigateTo({
|
|
|
|
|
// url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
// });
|
|
|
|
|
// wx.navigateTo({
|
|
|
|
|
// url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
emptyMethod() {},
|
|
|
|
|
wxLogin() {
|
|
|
|
|
emptyMethod () { },
|
|
|
|
|
wxLogin () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.login({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.code) {
|
|
|
|
|
that.setData({
|
|
|
|
|
wxCode: res.code,
|
|
|
|
|
@ -1283,7 +1292,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getPhoneNumber(e) {
|
|
|
|
|
getPhoneNumber (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
console.log(e.detail.errMsg);
|
|
|
|
|
@ -1302,7 +1311,7 @@ Page({
|
|
|
|
|
var iv = e.detail.iv;
|
|
|
|
|
var encryptedData = e.detail.encryptedData;
|
|
|
|
|
wx.checkSession({
|
|
|
|
|
success() {
|
|
|
|
|
success () {
|
|
|
|
|
//session_key 未过期,并且在本生命周期一直有效
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/getWechatTel",
|
|
|
|
|
@ -1311,7 +1320,7 @@ Page({
|
|
|
|
|
iv: iv,
|
|
|
|
|
encryptedData: encryptedData,
|
|
|
|
|
type: "yishoudan",
|
|
|
|
|
appId:app.globalData.appId
|
|
|
|
|
appId: app.globalData.appId
|
|
|
|
|
},
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -1354,10 +1363,10 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
fail() {
|
|
|
|
|
fail () {
|
|
|
|
|
// session_key 已经失效,需要重新执行登录流程
|
|
|
|
|
wx.login({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.code) {
|
|
|
|
|
console.log(res.code);
|
|
|
|
|
//发起网络请求
|
|
|
|
|
@ -1368,7 +1377,7 @@ Page({
|
|
|
|
|
iv: iv,
|
|
|
|
|
encryptedData: encryptedData,
|
|
|
|
|
type: "yishoudan",
|
|
|
|
|
appId:app.globalData.appId
|
|
|
|
|
appId: app.globalData.appId
|
|
|
|
|
},
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -1432,7 +1441,7 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
setCopy(e) {
|
|
|
|
|
setCopy (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
var contentInfo;
|
|
|
|
|
const query = wx.createSelectorQuery().in(this);
|
|
|
|
|
@ -1442,9 +1451,9 @@ Page({
|
|
|
|
|
contentInfo = res.dataset.info;
|
|
|
|
|
wx.setClipboardData({
|
|
|
|
|
data: e.currentTarget.dataset.content + contentInfo,
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
wx.getClipboardData({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res.data); // data
|
|
|
|
|
wx.showToast({
|
|
|
|
|
title: "内容已复制",
|
|
|
|
|
@ -1458,13 +1467,13 @@ Page({
|
|
|
|
|
})
|
|
|
|
|
.exec();
|
|
|
|
|
},
|
|
|
|
|
changeContact() {
|
|
|
|
|
changeContact () {
|
|
|
|
|
console.log(2123);
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: `/pages/configAnnunciate/index`,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
collectPaste(e) {
|
|
|
|
|
collectPaste (e) {
|
|
|
|
|
var txt;
|
|
|
|
|
var that = this;
|
|
|
|
|
if (!this.data.isLogin) {
|
|
|
|
|
@ -1491,7 +1500,7 @@ Page({
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
doCollected(collected, storeJobId) {
|
|
|
|
|
doCollected (collected, storeJobId) {
|
|
|
|
|
var that = this;
|
|
|
|
|
var url = "/user/collect/job/add";
|
|
|
|
|
if (collected - 1 == 0) {
|
|
|
|
|
@ -1533,7 +1542,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
toggleprice(type) {
|
|
|
|
|
toggleprice (type) {
|
|
|
|
|
console.log(type);
|
|
|
|
|
if (type.target.dataset.index == 1) {
|
|
|
|
|
this.setData({
|
|
|
|
|
@ -1545,7 +1554,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
imageLoad() {
|
|
|
|
|
imageLoad () {
|
|
|
|
|
this.setData({
|
|
|
|
|
isLoading: false,
|
|
|
|
|
});
|
|
|
|
|
@ -1555,15 +1564,15 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
modalMove() {
|
|
|
|
|
modalMove () {
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
showTobe() {
|
|
|
|
|
showTobe () {
|
|
|
|
|
this.setData({
|
|
|
|
|
iosDialogTobe: true,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
closeTobe() {
|
|
|
|
|
closeTobe () {
|
|
|
|
|
this.setData({
|
|
|
|
|
iosDialogTobe: false,
|
|
|
|
|
});
|
|
|
|
|
|