|
|
|
|
@ -2091,36 +2091,22 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
app.globalData.openId = res.data.data.pageBean.openId;
|
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
|
|
|
|
|
app.globalData.openId = res.data.data.openId;
|
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null);
|
|
|
|
|
var collected = e.currentTarget.dataset.collected;
|
|
|
|
|
if (collected) {
|
|
|
|
|
|
|
|
|
|
console.log(wx.getStorage("loginUserTokenInfo"))
|
|
|
|
|
console.log(collected)
|
|
|
|
|
promise.then((res) => {
|
|
|
|
|
that.setData({
|
|
|
|
|
isLogin: app.globalData.isLogin,
|
|
|
|
|
});
|
|
|
|
|
// debugger
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
that.doCollected(collected, e.currentTarget.dataset.jobid);
|
|
|
|
|
},1000)
|
|
|
|
|
// that.collectedStoreJobList();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if (that.data.recordBillType == "photo" || that.data.recordBillType == "record") {
|
|
|
|
|
promise.then((res) => {
|
|
|
|
|
if (that.data.recordBillType == "photo") {
|
|
|
|
|
that.chooseIdCard();
|
|
|
|
|
} else {
|
|
|
|
|
that.navigatorToRecord();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
promise.then((res) => {
|
|
|
|
|
let argument;
|
|
|
|
|
argument = JSON.stringify(e.currentTarget.dataset.info).replace(/\=|\&/g, "3D");
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fail: function (res) {
|
|
|
|
|
console.log("获取用户手机号错误");
|
|
|
|
|
@ -2367,7 +2353,7 @@ Page({
|
|
|
|
|
//取消收藏
|
|
|
|
|
for (var i = 0; i != that.data.recordList.length; ++i) {
|
|
|
|
|
if (that.data.recordList[i].id - storeJobId == 0) {
|
|
|
|
|
that.data.recordList[i].collected = 1;
|
|
|
|
|
that.data.recordList[i].collected = 0;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|