zsk 1 year ago
parent 9f52cf84d2
commit 95f7cfc31c

@ -555,4 +555,5 @@ export default {
</script> </script>
<style> <style>
@import './app.css'; @import './app.css';
@import './iconfont-weapp/iconfont-weapp-icon.css'
</style> </style>

@ -299,21 +299,21 @@ export default {
infoClone: that.info infoClone: that.info
}); });
// //
Object.defineProperty(that, 'show', { // Object.defineProperty(that, 'show', {
enumerable: true, // enumerable: true,
configurable: true, // configurable: true,
set(val) { // set(val) {
console.log(val); // // console.log(val); //
if (val) { // if (val) {
that.setData({ // that.setData({
tel: app.globalData.loginUserInfo.tel, // tel: app.globalData.loginUserInfo.tel,
userName: app.globalData.loginUserInfo.user.realName, // userName: app.globalData.loginUserInfo.user.realName,
idCardNum: app.globalData.loginUserInfo.user.idcard // idCardNum: app.globalData.loginUserInfo.user.idcard
}); // });
} // }
} // }
}); // });
let hour = new Date().getHours(); let hour = new Date().getHours();
if (hour < 20 && hour >= 6) { if (hour < 20 && hour >= 6) {
if (that.currentTime == that.copyTime) { if (that.currentTime == that.copyTime) {
@ -686,9 +686,9 @@ export default {
show: { show: {
handler: function (newVal, oldVal) { handler: function (newVal, oldVal) {
// alert(newVal) console.log(newVal)
console.log(oldVal)
this.showClone = newVal; this.showClone = newVal;
this.$forceUpdate()
}, },
immediate: true immediate: true

File diff suppressed because one or more lines are too long

@ -3889,44 +3889,44 @@ export default {
recordBill(e) { recordBill(e) {
console.log(e.currentTarget.dataset.job); console.log(e.currentTarget.dataset.job);
console.log(this.recordShow); console.log(this.recordShow);
// uni.hideTabBar({ uni.hideTabBar({
// animation: false, animation: false,
// success: (result) => { success: (result) => {
// this.setData({ this.setData({
// recordShow: true, recordShow: true,
// currentInfo: e.currentTarget.dataset.job currentInfo: e.currentTarget.dataset.job
});
},
fail: () => {},
complete: () => {}
});
this.setData({
recordShow: true,
currentInfo: e.currentTarget.dataset.job
});
// this.recordShow = true;
// this.currentInfo = e.currentTarget.dataset.job
// return;
// if (!this.isLogin) {
// uni.navigateTo({
// url: '/pages/login/index'
// }); // });
// }, // return;
// fail: () => {}, // }
// complete: () => {} // 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
// }); // });
// this.setData({ // console.log(info);
// recordShow: true, // uni.navigateTo({
// currentInfo: e.currentTarget.dataset.job // url: `../newEnroll/enroll/index?applyType=1&info=${info}`
// }); // });
this.recordShow = true;
this.currentInfo = e.currentTarget.dataset.job
return;
if (!this.isLogin) {
uni.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);
uni.navigateTo({
url: `../newEnroll/enroll/index?applyType=1&info=${info}`
});
// wx.navigateTo({ // wx.navigateTo({
// url: `../newEnroll/enroll/index?applyType=1&info=${info}`, // url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
// }); // });

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -418,20 +418,21 @@ var _default2 = {
infoClone: that.info infoClone: that.info
}); });
// 监听弹窗的显示与隐藏 // 监听弹窗的显示与隐藏
Object.defineProperty(that, 'show', { // Object.defineProperty(that, 'show', {
enumerable: true, // enumerable: true,
configurable: true, // configurable: true,
set: function set(val) {
console.log(val); //打印设置好的值 // set(val) {
if (val) { // console.log(val); //打印设置好的值
that.setData({ // if (val) {
tel: app.globalData.loginUserInfo.tel, // that.setData({
userName: app.globalData.loginUserInfo.user.realName, // tel: app.globalData.loginUserInfo.tel,
idCardNum: app.globalData.loginUserInfo.user.idcard // userName: app.globalData.loginUserInfo.user.realName,
}); // idCardNum: app.globalData.loginUserInfo.user.idcard
} // });
} // }
}); // }
// });
var hour = new Date().getHours(); var hour = new Date().getHours();
if (hour < 20 && hour >= 6) { if (hour < 20 && hour >= 6) {
if (that.currentTime == that.copyTime) { if (that.currentTime == that.copyTime) {
@ -778,9 +779,9 @@ var _default2 = {
}, },
show: { show: {
handler: function handler(newVal, oldVal) { handler: function handler(newVal, oldVal) {
// alert(newVal) console.log(newVal);
console.log(oldVal);
this.showClone = newVal; this.showClone = newVal;
this.$forceUpdate();
}, },
immediate: true immediate: true
} }

@ -2893,46 +2893,47 @@ var _default = {
url: "/pages/configAnnunciate/index" url: "/pages/configAnnunciate/index"
}); });
}), (0, _defineProperty2.default)(_methods, "recordBill", function recordBill(e) { }), (0, _defineProperty2.default)(_methods, "recordBill", function recordBill(e) {
var _this5 = this;
console.log(e.currentTarget.dataset.job); console.log(e.currentTarget.dataset.job);
console.log(this.recordShow); console.log(this.recordShow);
// uni.hideTabBar({ uni.hideTabBar({
// animation: false, animation: false,
// success: (result) => { success: function success(result) {
// this.setData({ _this5.setData({
// recordShow: true, recordShow: true,
// currentInfo: e.currentTarget.dataset.job currentInfo: e.currentTarget.dataset.job
});
},
fail: function fail() {},
complete: function complete() {}
});
this.setData({
recordShow: true,
currentInfo: e.currentTarget.dataset.job
});
// this.recordShow = true;
// this.currentInfo = e.currentTarget.dataset.job
// return;
// if (!this.isLogin) {
// uni.navigateTo({
// url: '/pages/login/index'
// }); // });
// }, // return;
// fail: () => {}, // }
// complete: () => {} // 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
// }); // });
// this.setData({ // console.log(info);
// recordShow: true, // uni.navigateTo({
// currentInfo: e.currentTarget.dataset.job // url: `../newEnroll/enroll/index?applyType=1&info=${info}`
// }); // });
this.recordShow = true;
this.currentInfo = e.currentTarget.dataset.job;
return;
if (!this.isLogin) {
uni.navigateTo({
url: '/pages/login/index'
});
return;
}
console.log(e.currentTarget.dataset.job);
console.log(123);
var middleInfo = e.currentTarget.dataset.job;
var info = JSON.stringify({
id: middleInfo.id,
jobName: middleInfo.jobName,
storeName: middleInfo.storeName,
aliasName: middleInfo.aliasName,
storeId: middleInfo.storeId
});
console.log(info);
uni.navigateTo({
url: "../newEnroll/enroll/index?applyType=1&info=".concat(info)
});
// wx.navigateTo({ // wx.navigateTo({
// url: `../newEnroll/enroll/index?applyType=1&info=${info}`, // url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
// }); // });
@ -3046,14 +3047,14 @@ var _default = {
this.lastX = event.touches[0].pageX; this.lastX = event.touches[0].pageX;
this.lastY = event.touches[0].pageY; this.lastY = event.touches[0].pageY;
}), (0, _defineProperty2.default)(_methods, "searchAnimate", function searchAnimate() { }), (0, _defineProperty2.default)(_methods, "searchAnimate", function searchAnimate() {
var _this5 = this; var _this6 = this;
var that = this; var that = this;
return; return;
uni.createSelectorQuery().in(uni).select('#listBox').fields({ uni.createSelectorQuery().in(uni).select('#listBox').fields({
scrollOffset: true, scrollOffset: true,
size: true size: true
}, function (res) { }, function (res) {
_this5.$scope.animate('#searchInputBox', [{ _this6.$scope.animate('#searchInputBox', [{
// paddingTop: "10px", // paddingTop: "10px",
// paddingBottom: "10px", // paddingBottom: "10px",
top: '10px', top: '10px',
@ -3074,7 +3075,7 @@ var _default = {
startScrollOffset: 0, startScrollOffset: 0,
endScrollOffset: 60 endScrollOffset: 60
}); });
_this5.$scope.animate('.the_city', [{ _this6.$scope.animate('.the_city', [{
color: '#333' color: '#333'
}, { }, {
color: '#fff' color: '#fff'
@ -3084,7 +3085,7 @@ var _default = {
startScrollOffset: 0, startScrollOffset: 0,
endScrollOffset: 90 endScrollOffset: 90
}); });
_this5.$scope.animate('.daotian', [{ _this6.$scope.animate('.daotian', [{
opacity: '1' opacity: '1'
}, { }, {
opacity: '0' opacity: '0'
@ -3096,7 +3097,7 @@ var _default = {
}); });
}).exec(); }).exec();
}), (0, _defineProperty2.default)(_methods, "deleteMark", function deleteMark(e) { }), (0, _defineProperty2.default)(_methods, "deleteMark", function deleteMark(e) {
var _this6 = this; var _this7 = this;
// console.log(e); // console.log(e);
console.log(e); console.log(e);
var data = e.currentTarget.dataset.item; var data = e.currentTarget.dataset.item;
@ -3109,11 +3110,11 @@ var _default = {
this.selectJobList.forEach(function (item, index) { this.selectJobList.forEach(function (item, index) {
console.log(item); console.log(item);
if (item.id == data.id) { if (item.id == data.id) {
_this6.selectJobList.splice(index, 1); _this7.selectJobList.splice(index, 1);
var ind = filter.jobFilter['tagArray' + data.typeClassify].indexOf(item); var ind = filter.jobFilter['tagArray' + data.typeClassify].indexOf(item);
console.log(filter.jobFilter['tagArray' + data.typeClassify][ind]); console.log(filter.jobFilter['tagArray' + data.typeClassify][ind]);
filter.jobFilter['tagArray' + data.typeClassify][ind].active = 0; filter.jobFilter['tagArray' + data.typeClassify][ind].active = 0;
_this6.toList(); _this7.toList();
} }
}); });
this.setData({ this.setData({
@ -3123,14 +3124,14 @@ var _default = {
} else { } else {
this.selectBrandList.forEach(function (item, index) { this.selectBrandList.forEach(function (item, index) {
if (item.id == data.id) { if (item.id == data.id) {
_this6.selectBrandList.splice(index, 1); _this7.selectBrandList.splice(index, 1);
// let ind = filter.jobFilter["tagArray" + data.typeClassify].indexOf(item); // let ind = filter.jobFilter["tagArray" + data.typeClassify].indexOf(item);
// console.log(filter.jobFilter["tagArray" + data.typeClassify][ind]); // console.log(filter.jobFilter["tagArray" + data.typeClassify][ind]);
// filter.jobFilter["tagArray" + data.typeClassify][ind].active = 0; // filter.jobFilter["tagArray" + data.typeClassify][ind].active = 0;
var ind = filter.classifyList.indexOf(item); var ind = filter.classifyList.indexOf(item);
console.log(filter.classifyList[ind]); console.log(filter.classifyList[ind]);
filter.classifyList[ind].active = 0; filter.classifyList[ind].active = 0;
_this6.toList(); _this7.toList();
} }
}); });
this.setData({ this.setData({

Loading…
Cancel
Save