Compare commits

...

2 Commits

@ -313,7 +313,7 @@
}, },
onShow() { onShow() {
let that = this; let that = this;
console.log('==============',this.G.store()) // console.log('==============',this.G.store())
if (uni.getStorageSync("apply-token")) { if (uni.getStorageSync("apply-token")) {
that.checkRecordingPermission(); that.checkRecordingPermission();
@ -388,7 +388,7 @@
RecordApp.UniWebViewActivate(this); //AppWebView RecordApp.UniWebViewActivate(this); //AppWebView
RecordApp.RequestPermission( RecordApp.RequestPermission(
() => { () => {
console.log("已获得录音权限,可以开始录音了"); // console.log("");
that.msgType = "voice"; that.msgType = "voice";
that.isAuth = true; that.isAuth = true;
}, },
@ -495,7 +495,7 @@
RecordApp.Start( RecordApp.Start(
set, set,
() => { () => {
console.log("已开始录音"); // console.log("");
//WDTonProcess //WDTonProcess
//var wdt=this.watchDogTimer=setInterval ... Demomain_recTest.vuewatchDogTimer //var wdt=this.watchDogTimer=setInterval ... Demomain_recTest.vuewatchDogTimer
@ -519,14 +519,14 @@
recPause() { recPause() {
if (RecordApp.GetCurrentRecOrNull()) { if (RecordApp.GetCurrentRecOrNull()) {
RecordApp.Pause(); RecordApp.Pause();
console.log("已暂停"); // console.log("");
} }
}, },
// //
recResume() { recResume() {
if (RecordApp.GetCurrentRecOrNull()) { if (RecordApp.GetCurrentRecOrNull()) {
RecordApp.Resume(); RecordApp.Resume();
console.log("继续录音中..."); // console.log("...");
} }
}, },
@ -580,7 +580,7 @@
// encoding: 'binary', // encoding: 'binary',
responseType: "arraybuffer", // responseType: "arraybuffer", //
success: (res) => { success: (res) => {
console.log("读取音频文件成功", res); // console.log("", res);
resolve(new Int8Array(res.data)); resolve(new Int8Array(res.data));
}, },
fail: (err) => { fail: (err) => {
@ -627,7 +627,7 @@
}, },
updateTextareaHeight() {}, updateTextareaHeight() {},
linechange(e) { linechange(e) {
console.log('获取行数变化:',e.detail) // console.log('',e.detail)
let that = this; let that = this;
that.isFocus = true; that.isFocus = true;
setTimeout(()=>{ setTimeout(()=>{
@ -709,9 +709,9 @@
const touch = e.touches[0]; const touch = e.touches[0];
let _x = touch.clientX, let _x = touch.clientX,
_y = touch.clientY; _y = touch.clientY;
console.log('y 坐标:',_y,' 按妞:',that.writeStyle) // console.log('y ',_y,' ',that.writeStyle)
let _bool = that.writeStyle.split(':')[1].split('px')[0] let _bool = that.writeStyle.split(':')[1].split('px')[0]
console.log('Y临界值',uni.getSystemInfoSync().windowHeight - _bool - 72) // console.log('Y',uni.getSystemInfoSync().windowHeight - _bool - 72)
if (_y > uni.getSystemInfoSync().windowHeight - _bool - 72) { if (_y > uni.getSystemInfoSync().windowHeight - _bool - 72) {
that.voiceStatus = 0; that.voiceStatus = 0;
that.spec = true; that.spec = true;
@ -768,7 +768,7 @@
let that = this; let that = this;
setTimeout(() => { setTimeout(() => {
that.voiceStatus = 0; // that.voiceStatus = 0; //
console.log("that.isFluency", that.isFluency); // console.log("that.isFluency", that.isFluency);
if (!that.isFluency) { if (!that.isFluency) {
that.isSending = false; that.isSending = false;
// //
@ -800,7 +800,7 @@
sendAudioAI($msg) { sendAudioAI($msg) {
let that = this; let that = this;
if (that.isSending) { if (that.isSending) {
console.log("正在发送消息,忽略重复发送请求"); // console.log("");
return; return;
} }
that.isSending = true; that.isSending = true;
@ -817,7 +817,7 @@
sendBaseData($sendMessage = "", $type) { sendBaseData($sendMessage = "", $type) {
let that = this; let that = this;
if (!$sendMessage) { if (!$sendMessage) {
console.log("防抖"); // console.log("");
return false; return false;
} }
that.saveHistory(0, $sendMessage, () => { that.saveHistory(0, $sendMessage, () => {
@ -843,7 +843,7 @@
uni.vibrateShort({ uni.vibrateShort({
type: $type, type: $type,
fail(err){ fail(err){
console.log('震动失败:',err) // console.log('',err)
} }
}); });
}, },

@ -176,7 +176,7 @@ export default {
// that.getInviteList(); // that.getInviteList();
// } // }
// } // }
console.log('uni.getStorageSync("apply-supplierAccount")', uni.getStorageSync("apply-supplierAccount")); // console.log('uni.getStorageSync("apply-supplierAccount")', uni.getStorageSync("apply-supplierAccount"));
that.updateJobInfo(); that.updateJobInfo();
} }
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
@ -184,14 +184,14 @@ export default {
// #endif // #endif
}, },
mounted() { mounted() {
console.log("mountedmountedmountedmountedmountedmounted"); // console.log("mountedmountedmountedmountedmountedmounted");
const query = uni.createSelectorQuery().in(this); const query = uni.createSelectorQuery().in(this);
console.log("query", query); // console.log("query", query);
// DOM // DOM
query query
.select(".tabbar") .select(".tabbar")
.boundingClientRect((res) => { .boundingClientRect((res) => {
console.log("resresresrserserserser", res); // console.log("resresresrserserserser", res);
this.tabbarHeight = res.height; this.tabbarHeight = res.height;
uni.setStorageSync("TABBAR_HEIGHT", res.height); uni.setStorageSync("TABBAR_HEIGHT", res.height);
}) })
@ -312,7 +312,7 @@ export default {
watch: { watch: {
"tabInfo.list": { "tabInfo.list": {
handler(val) { handler(val) {
console.log("tabInfo.list", val); // console.log("tabInfo.list", val);
}, },
deep: true, deep: true,
immediate: true, immediate: true,
@ -338,10 +338,10 @@ export default {
onReachBottom() { onReachBottom() {
let that = this; let that = this;
console.log("onReachBottom", that.query.isFinish); // console.log("onReachBottom", that.query.isFinish);
this.G.isLogin(); this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
console.log("that.query.size", that.query.size); // console.log("that.query.size", that.query.size);
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) { if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
that.query.page++; that.query.page++;
that.getList("concat"); that.getList("concat");
@ -419,7 +419,7 @@ export default {
.createSelectorQuery() .createSelectorQuery()
.select("#tttop") .select("#tttop")
.boundingClientRect((data) => { .boundingClientRect((data) => {
console.log("data", data); // console.log("data", data);
if(data){ if(data){
if (data.top <= 0) { if (data.top <= 0) {
that.toTop = true; that.toTop = true;
@ -445,7 +445,7 @@ export default {
}, },
reachBottom() { reachBottom() {
let that = this; let that = this;
console.log("onReachBottom", that.query.isFinish); // console.log("onReachBottom", that.query.isFinish);
if(uni.getStorageSync("apply-token")){ if(uni.getStorageSync("apply-token")){
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) { if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
that.query.page++; that.query.page++;
@ -462,8 +462,8 @@ export default {
getList($type = "init") { getList($type = "init") {
let that = this; let that = this;
this.loading = true; this.loading = true;
console.log("job_list __F________________________", 1); // console.log("job_list __F________________________", 1);
console.log("that.tabInfo.active", that.tabInfo.active); // console.log("that.tabInfo.active", that.tabInfo.active);
let time = new Date().getTime(); let time = new Date().getTime();
that.G.Post( that.G.Post(
that.api.job_list, that.api.job_list,
@ -480,7 +480,7 @@ export default {
(res) => { (res) => {
that.isTrigger = false; that.isTrigger = false;
that.computeCode = 1; that.computeCode = 1;
console.log("job_list __________________________", (new Date().getTime() - time) / 1000); // console.log("job_list __________________________", (new Date().getTime() - time) / 1000);
// res.recordCount = 0; // res.recordCount = 0;
// res.recordList = []; // res.recordList = [];
@ -498,7 +498,7 @@ export default {
that.query.list = []; that.query.list = [];
if (res.recordList.length > 0) { if (res.recordList.length > 0) {
that.query.list = res.recordList.map((item, index) => { that.query.list = res.recordList.map((item, index) => {
// console.log(item) // // console.log(item)
return { return {
...item, ...item,
title: item.jobName, title: item.jobName,
@ -541,7 +541,7 @@ export default {
}) })
); );
} }
console.log("首页 列表:", that.query.list); // console.log(" ", that.query.list);
} }
); );
}, },
@ -561,7 +561,7 @@ export default {
pageNum: that.attentionConfig.num, pageNum: that.attentionConfig.num,
}, },
(res) => { (res) => {
console.log(res); // console.log(res);
if (that.attentionList.length > 0) { if (that.attentionList.length > 0) {
res.forEach((item) => { res.forEach((item) => {
item.checked = false; item.checked = false;
@ -673,7 +673,7 @@ export default {
}, },
shareJob(e) { shareJob(e) {
console.log(e); // console.log(e);
this.currentJob = e; this.currentJob = e;
}, },
/** /**
@ -689,32 +689,32 @@ export default {
}, },
handleUpdateTab(e) { handleUpdateTab(e) {
console.log("e", e); // console.log("e", e);
this.G.isLogin(); this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
if (this.loading == true) { if (this.loading == true) {
return; return;
} }
console.log("一级tab切换"); // console.log("tab");
this.tabInfo.active = e; this.tabInfo.active = e;
this.speed = -1; this.speed = -1;
this.loading = true; this.loading = true;
this.query.page = 1; this.query.page = 1;
this.getList(); this.getList();
} else { } else {
console.log("请先登录"); // console.log("");
} }
}, },
checkAllChange(e) { checkAllChange(e) {
console.log(e); // console.log(e);
this.attentionList.forEach((item) => { this.attentionList.forEach((item) => {
item.checked = e.value; item.checked = e.value;
}); });
this.upInfo = this.getListNum(); this.upInfo = this.getListNum();
}, },
checkChange(e) { checkChange(e) {
console.log(e); // console.log(e);
console.log(this.attentionList); // console.log(this.attentionList);
var check = true; var check = true;
this.attentionList.forEach((item) => { this.attentionList.forEach((item) => {
if (item.id == e.id) { if (item.id == e.id) {
@ -760,7 +760,7 @@ export default {
agencyIds: that.upInfo.list.join(","), agencyIds: that.upInfo.list.join(","),
}, },
(res) => { (res) => {
console.log(res); // console.log(res);
uni.showToast({ uni.showToast({
title: "关注成功", title: "关注成功",
icon: "", icon: "",
@ -775,7 +775,7 @@ export default {
// setTimeout(() => {}, 2000); // setTimeout(() => {}, 2000);
}, },
onScrollToLower() { onScrollToLower() {
console.log(123); // console.log(123);
let that = this; let that = this;
that.attentionConfig.num++; that.attentionConfig.num++;
@ -786,24 +786,24 @@ export default {
* 筛选相关======================================================== * 筛选相关========================================================
*/ */
deleteSex() { deleteSex() {
console.log("deleteSex"); // console.log("deleteSex");
this.getFilterData.sex = -1; this.getFilterData.sex = -1;
this.getList(); this.getList();
}, },
deleteAge() { deleteAge() {
console.log("deleteAge"); // console.log("deleteAge");
this.getFilterData.ageRangeStr = ""; this.getFilterData.ageRangeStr = "";
this.getList(); this.getList();
}, },
deleteJobCategoryLabel(id) { deleteJobCategoryLabel(id) {
console.log(id); // console.log(id);
this.getFilterData.jobCategoryLabelObjects = this.getFilterData.jobCategoryLabelObjects.filter((obj) => obj.id != id); this.getFilterData.jobCategoryLabelObjects = this.getFilterData.jobCategoryLabelObjects.filter((obj) => obj.id != id);
const idsArray = this.getFilterData.jobCategoryLabelObjects.map((obj) => obj.id); const idsArray = this.getFilterData.jobCategoryLabelObjects.map((obj) => obj.id);
// //
this.getFilterData.jobCategoryLabelIds = idsArray.join(","); this.getFilterData.jobCategoryLabelIds = idsArray.join(",");
console.log("deleteJobCategoryLabel", this.getFilterData); // console.log("deleteJobCategoryLabel", this.getFilterData);
this.getList(); this.getList();
}, },
@ -812,7 +812,7 @@ export default {
const idsArray = this.getFilterData.jobSpecialLabelObjects.map((obj) => obj.id); const idsArray = this.getFilterData.jobSpecialLabelObjects.map((obj) => obj.id);
// //
this.getFilterData.jobSpecialLabelIds = idsArray.join(","); this.getFilterData.jobSpecialLabelIds = idsArray.join(",");
console.log("deleteJobSpecialLabel", this.getFilterData); // console.log("deleteJobSpecialLabel", this.getFilterData);
this.getList(); this.getList();
}, },
clearFilter1() { clearFilter1() {
@ -824,21 +824,21 @@ export default {
this.scrollTo = ""; this.scrollTo = "";
this.getFilterData.sex = -1; this.getFilterData.sex = -1;
this.getFilterData.ageRangeStr = ""; this.getFilterData.ageRangeStr = "";
console.log("this.getFilterData", this.getFilterData); // console.log("this.getFilterData", this.getFilterData);
this.$refs.filterChild.clearFilter(); this.$refs.filterChild.clearFilter();
this.getList(); this.getList();
setTimeout(() => { setTimeout(() => {
that.scrollTo = "listBox"; that.scrollTo = "listBox";
console.log("aaaaaaaaa"); // console.log("aaaaaaaaa");
}, 1); }, 1);
}, },
receiveFromChild(data) { receiveFromChild(data) {
console.log(data); // console.log(data);
this.whichOneShow = ""; this.whichOneShow = "";
this.query.page = 1; this.query.page = 1;
this.getFilterData = JSON.parse(JSON.stringify(data)); this.getFilterData = JSON.parse(JSON.stringify(data));
console.log("getFilterData in receiveFromChild", this.getFilterData); // console.log("getFilterData in receiveFromChild", this.getFilterData);
this.getList(); this.getList();
// this.messageFromChild = data.message; // this.messageFromChild = data.message;
}, },
@ -861,10 +861,10 @@ export default {
if (this.query.sortTag === 2) { if (this.query.sortTag === 2) {
// 60 * 60 * 24 // 60 * 60 * 24
if (that.currentInfo.latitude && new Date().getTime() - that.currentInfo.timestamp < 1000 * 10) { if (that.currentInfo.latitude && new Date().getTime() - that.currentInfo.timestamp < 1000 * 10) {
console.log("inTime"); // console.log("inTime");
this.getList(); this.getList();
} else { } else {
console.log("outTime"); // console.log("outTime");
this.getLocation().then(() => { this.getLocation().then(() => {
this.getList(); this.getList();
}); });
@ -874,8 +874,8 @@ export default {
} }
}, },
checkLength(e) { checkLength(e) {
console.log("e", e); // console.log("e", e);
console.log("keyword", this.keyword); // console.log("keyword", this.keyword);
if (e.length == 0) { if (e.length == 0) {
this.keyword = ""; this.keyword = "";
this.searchJob(); this.searchJob();

@ -119,7 +119,7 @@ export default {
this.G.setNavStyle(); this.G.setNavStyle();
let that = this; let that = this;
uni.$on("getTownsman", (data) => { uni.$on("getTownsman", (data) => {
console.log("getTownsman", data); // console.log("getTownsman", data);
// //
if (data.info.idCard && (data.info.idCard.length == 15 || data.info.idCard.length == 18)) { if (data.info.idCard && (data.info.idCard.length == 15 || data.info.idCard.length == 18)) {
let infoByIDcard = this.G.getInfoByIDcard(data.info.idCard); let infoByIDcard = this.G.getInfoByIDcard(data.info.idCard);
@ -139,7 +139,7 @@ export default {
index: that.persenInfo.length, index: that.persenInfo.length,
}; };
} }
console.log("that.persenInfo", that.persenInfo); // console.log("that.persenInfo", that.persenInfo);
that.$forceUpdate(); that.$forceUpdate();
}); });
uni.$on("changeJobInfo", function (data) { uni.$on("changeJobInfo", function (data) {
@ -148,7 +148,7 @@ export default {
that.currentJobInfo = data.info; that.currentJobInfo = data.info;
that.jobType = data.info.jobType; that.jobType = data.info.jobType;
console.log("data.info", data.info); // console.log("data.info", data.info);
that.getJobDetail(data.info); that.getJobDetail(data.info);
that.$forceUpdate(); that.$forceUpdate();
}); });
@ -164,8 +164,8 @@ export default {
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
console.log("options", options); // console.log("options", options);
console.log("options.jobId", options.jobId); // console.log("options.jobId", options.jobId);
let params = options.params ? JSON.parse(options.params) : {}; let params = options.params ? JSON.parse(options.params) : {};
if (params.jobId) { if (params.jobId) {
that.currentJobInfo = JSON.parse(JSON.stringify(params)); that.currentJobInfo = JSON.parse(JSON.stringify(params));
@ -185,7 +185,7 @@ export default {
setTimeout(() => { setTimeout(() => {
that.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; that.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
that.updateInfo.interviewTimeStr = ""; that.updateInfo.interviewTimeStr = "";
console.log("获取面试时间:", that.updateInfo.interviewTimeStr); // console.log("", that.updateInfo.interviewTimeStr);
// //
let hour = new Date().getHours(); let hour = new Date().getHours();
if (hour < 20 && hour >= 6) { if (hour < 20 && hour >= 6) {
@ -249,7 +249,7 @@ export default {
}, },
methods: { methods: {
getTownsManInfo(info) { getTownsManInfo(info) {
console.log("info", info); // console.log("info", info);
uni.$emit("getTownsman", { uni.$emit("getTownsman", {
info, info,
}); });
@ -269,14 +269,14 @@ export default {
} else { } else {
policyStr = "薪资待遇:" + (res.record.salaryDetail || "-") + "\n\n"; policyStr = "薪资待遇:" + (res.record.salaryDetail || "-") + "\n\n";
} }
console.log("政策列表:", res); // console.log("", res);
that.setFormList(policyStr); that.setFormList(policyStr);
} }
); );
}, },
setFormList(policyStr) { setFormList(policyStr) {
let that = this; let that = this;
// console.log("that.updateInfo", that.updateInfo); // // console.log("that.updateInfo", that.updateInfo);
if (that.isFans == 2) { if (that.isFans == 2) {
that.jobData = [ that.jobData = [
{ {
@ -403,26 +403,26 @@ export default {
}); });
}, },
getInviteTime(e) { getInviteTime(e) {
console.log("获取预约面试时间:", e); // console.log("", e);
this.updateInfo.interviewTimeStr = e; this.updateInfo.interviewTimeStr = e;
}, },
updateDom() {}, updateDom() {},
chooseAddress(e) { chooseAddress(e) {
let that = this; let that = this;
console.log(e); // console.log(e);
this.updateInfo.interviewLat = e.lat; this.updateInfo.interviewLat = e.lat;
this.updateInfo.interviewLng = e.lng; this.updateInfo.interviewLng = e.lng;
this.updateInfo.interviewAddress = e.address; this.updateInfo.interviewAddress = e.address;
this.jobData[1].value = this.updateInfo.interviewAddress; this.jobData[1].value = this.updateInfo.interviewAddress;
// billForm.value.storeAddr = e.address; // billForm.value.storeAddr = e.address;
console.log("this.updateInfo", this.updateInfo); // console.log("this.updateInfo", this.updateInfo);
console.log("e", e); // console.log("e", e);
this.$forceUpdate(); this.$forceUpdate();
}, },
changeAddress(e) { changeAddress(e) {
this.updateInfo.interviewAddress = e; this.updateInfo.interviewAddress = e;
console.log("this.updateInfo", this.updateInfo); // console.log("this.updateInfo", this.updateInfo);
console.log("e", e); // console.log("e", e);
// this.info.address = e; // this.info.address = e;
this.$forceUpdate(); this.$forceUpdate();
}, },
@ -463,7 +463,7 @@ export default {
index: $index, index: $index,
}; };
} }
console.log("params", params); // console.log("params", params);
if (info) { if (info) {
uni.navigateTo({ uni.navigateTo({
url: "/root/home/editTownsman?" + that.G.objToStr(params), url: "/root/home/editTownsman?" + that.G.objToStr(params),
@ -546,7 +546,7 @@ export default {
// _upAgencyName = that.detailRes.userName; // _upAgencyName = that.detailRes.userName;
// } // }
// submitInfo.upAgencyName = _upAgencyName ? _upAgencyName : ''; // submitInfo.upAgencyName = _upAgencyName ? _upAgencyName : '';
console.log("submitInfo", submitInfo); // console.log("submitInfo", submitInfo);
that.G.Post("/yishoudan/common/order/addBatch", submitInfo, (res) => { that.G.Post("/yishoudan/common/order/addBatch", submitInfo, (res) => {
// uni.hideLoading(); // uni.hideLoading();
uni.showToast({ uni.showToast({

@ -69,10 +69,10 @@ const openTel2 = ref(null);
onMounted(() => { onMounted(() => {
// const query = uni.createSelectorQuery(); // const query = uni.createSelectorQuery();
// query.select("#openTel2").exec(function (res) { // query.select("#openTel2").exec(function (res) {
// console.log("resresres", res); // // console.log("resresres", res);
// }); // });
// setTimeout(() => { // setTimeout(() => {
// console.log("openTel2.value", openTel2.value); // // console.log("openTel2.value", openTel2.value);
// openTel2.value.handleClick(); // openTel2.value.handleClick();
// }, 1000); // }, 1000);
}); });
@ -94,7 +94,7 @@ const userInfo = ref({});
onLoad(() => {}); onLoad(() => {});
onShow(() => { onShow(() => {
isLogin.value = uni.getStorageSync("apply-token") ? true : false; isLogin.value = uni.getStorageSync("apply-token") ? true : false;
console.log("count.value", count.value); // console.log("count.value", count.value);
corpUserFlag.value = uni.getStorageSync("apply-userinfo").corpUserFlag; corpUserFlag.value = uni.getStorageSync("apply-userinfo").corpUserFlag;
userInfo.value = uni.getStorageSync("apply-userinfo"); userInfo.value = uni.getStorageSync("apply-userinfo");
// //
@ -125,11 +125,11 @@ onShow(() => {
// //
uni.$UIKitStore?.uiStore.selectConversation(""); uni.$UIKitStore?.uiStore.selectConversation("");
const conversationId = uni.$UIKitStore.uiStore.selectedConversation; const conversationId = uni.$UIKitStore.uiStore.selectedConversation;
console.log("conversationId", conversationId); // console.log("conversationId", conversationId);
// (im, , ) // (im, , )
uni.$UIKitStore.conversationStore.getConversationListActive(0, 100).then((res) => { uni.$UIKitStore.conversationStore.getConversationListActive(0, 100).then((res) => {
console.log("reresresresress", res); // console.log("reresresresress", res);
console.log("contactListcontactListcontactListcontactListcontactList", contactList.value.conversationList); // console.log("contactListcontactListcontactListcontactListcontactList", contactList.value.conversationList);
contactList.value.conversationList = res.conversationList; contactList.value.conversationList = res.conversationList;
}); });
@ -162,11 +162,11 @@ const goPage = ($path) => {
} }
}; };
const openTel1 = ($tel) => { const openTel1 = ($tel) => {
console.log("openTel2", openTel2.value); // console.log("openTel2", openTel2.value);
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
tmplIds: ["UPYUMYWBtgWD3ZZHVEJC9qX04ahF81-yBPdsDzArp_4"], tmplIds: ["UPYUMYWBtgWD3ZZHVEJC9qX04ahF81-yBPdsDzArp_4"],
success(res) { success(res) {
console.log("ssssssssssssssssssssssssss", res); // console.log("ssssssssssssssssssssssssss", res);
}, },
}); });
}; };
@ -202,7 +202,7 @@ const getScrollInfo = (e) => {
}; };
const updateType = (e) => { const updateType = (e) => {
console.log(e); // console.log(e);
resetScroll.value = 1; resetScroll.value = 1;
globalData.value.messageTab = e; globalData.value.messageTab = e;
}; };

@ -407,7 +407,7 @@ export default {
getNewApplyNum() { getNewApplyNum() {
let that = this; let that = this;
this.G.Get(this.api.order_getNewApplyNumNotViewed, {}, (res) => { this.G.Get(this.api.order_getNewApplyNumNotViewed, {}, (res) => {
console.log(res, "getNewApplyNum"); // console.log(res, "getNewApplyNum");
that.applyNum = res; that.applyNum = res;
}); });
}, },
@ -480,7 +480,7 @@ export default {
let userInfo = uni.getStorageSync("apply-userinfo"); let userInfo = uni.getStorageSync("apply-userinfo");
that.isLogin = true; that.isLogin = true;
that.userInfo = { ...userInfo }; that.userInfo = { ...userInfo };
console.log(that.userInfo, "that.userInfo"); // console.log(that.userInfo, "that.userInfo");
that.userInfo.avatar = that.userInfo.user.imgSrc; that.userInfo.avatar = that.userInfo.user.imgSrc;
that.userInfo.name = userInfo.userName || userInfo.aliasName; that.userInfo.name = userInfo.userName || userInfo.aliasName;
that.userInfo.tel = that.userInfo.user.tel; that.userInfo.tel = that.userInfo.user.tel;
@ -554,7 +554,7 @@ export default {
type: 1, type: 1,
}, },
(res) => { (res) => {
console.log("item.", res); // console.log("item.", res);
that.pageSpeed = 1; that.pageSpeed = 1;
if (uni.getStorageSync("apply-supplierAccount") == 1) { if (uni.getStorageSync("apply-supplierAccount") == 1) {
// //
@ -605,7 +605,7 @@ export default {
let that = this; let that = this;
this.G.isLogin(); this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
console.log("数据展示:", item.name); // console.log("", item.name);
switch (item.name) { switch (item.name) {
case "全部职位": case "全部职位":
uni.navigateTo({ uni.navigateTo({
@ -641,9 +641,9 @@ export default {
handleClickItem(e) { handleClickItem(e) {
this.G.isLogin(); this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
console.log("e", e); // console.log("e", e);
if (e.item.path == "qiehuan") { if (e.item.path == "qiehuan") {
console.log("切换团队"); // console.log("");
this.showTeamToggle = true; this.showTeamToggle = true;
} else { } else {
uni.navigateTo({ uni.navigateTo({
@ -658,7 +658,7 @@ export default {
getTeamList() { getTeamList() {
let that = this; let that = this;
that.G.Get(that.api.user_getTeamList, {}, (res) => { that.G.Get(that.api.user_getTeamList, {}, (res) => {
console.log("res", res); // console.log("res", res);
res.forEach((item) => { res.forEach((item) => {
if (item.id == that.userInfo.user.agencyId) { if (item.id == that.userInfo.user.agencyId) {
item.checked = true; item.checked = true;
@ -671,9 +671,9 @@ export default {
let that = this; let that = this;
uni.setStorageSync("apply-agencyId", _item.id); uni.setStorageSync("apply-agencyId", _item.id);
that.G.checkTokenNew().then((res) => { that.G.checkTokenNew().then((res) => {
console.log(" checkToken res", res); // console.log(" checkToken res", res);
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => { that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
console.log(" checkToken aRes", aRes); // console.log(" checkToken aRes", aRes);
uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1 2 uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1 2
that.showTeamToggle = false; that.showTeamToggle = false;
that.setUserInfo(); that.setUserInfo();
@ -688,7 +688,7 @@ export default {
*/ */
toogleTeam(item) { toogleTeam(item) {
let that = this; let that = this;
console.log(item); // console.log(item);
if (wx.getStorageSync("apply-agencyId") == item.id) { if (wx.getStorageSync("apply-agencyId") == item.id) {
return false; return false;
} }
@ -696,7 +696,7 @@ export default {
title: "切换中...", title: "切换中...",
}); });
that.G.Get(that.api.user_toggleTeam + `/${item.id}`, {}, (res) => { that.G.Get(that.api.user_toggleTeam + `/${item.id}`, {}, (res) => {
console.log("res", res); // console.log("res", res);
that.checkToken(item); that.checkToken(item);
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
@ -713,9 +713,9 @@ export default {
getAuthInfo() { getAuthInfo() {
let that = this; let that = this;
console.log("this.agencyInfo.id", this.agencyInfo); // console.log("this.agencyInfo.id", this.agencyInfo);
this.G.Get(this.api.get_supplier_info, { agencyId: this.agencyInfo.id || "" }, (res) => { this.G.Get(this.api.get_supplier_info, { agencyId: this.agencyInfo.id || "" }, (res) => {
console.log("resresresresresres", res); // console.log("resresresresresres", res);
that.authInfo = res; that.authInfo = res;
}); });
}, },
@ -727,7 +727,7 @@ export default {
classify: 1, classify: 1,
}, },
(res) => { (res) => {
console.log("res", res); // console.log("res", res);
if (res) { if (res) {
that.map = res; that.map = res;
let resdata = res.classify1num; let resdata = res.classify1num;
@ -803,7 +803,7 @@ export default {
type: 1, type: 1,
}, },
(res) => { (res) => {
console.log("item.", res); // console.log("item.", res);
that.userNum = res; that.userNum = res;
} }
); );
@ -811,7 +811,7 @@ export default {
getNum() { getNum() {
let that = this; let that = this;
that.G.Get(that.api.bind_getApplyNum, {}, (res) => { that.G.Get(that.api.bind_getApplyNum, {}, (res) => {
console.log("获取待处理数量:", res); // console.log("", res);
if (res.approvePassHasNotRed > 0) { if (res.approvePassHasNotRed > 0) {
that.readed = false; that.readed = false;
} else { } else {
@ -823,14 +823,14 @@ export default {
index: 2, index: 2,
text: String(res.approvePassHasNotRed + applyNum), text: String(res.approvePassHasNotRed + applyNum),
fail(err) { fail(err) {
console.log("err", err); // console.log("err", err);
}, },
}); });
} else { } else {
uni.removeTabBarBadge({ uni.removeTabBarBadge({
index: 2, index: 2,
fail(err) { fail(err) {
console.log("err", err); // console.log("err", err);
}, },
}); });
} }
@ -838,7 +838,7 @@ export default {
}); });
}, },
goOrder(e) { goOrder(e) {
console.log("e", e); // console.log("e", e);
uni.setStorageSync("applyType", e.item.type ? e.item.type : 0); uni.setStorageSync("applyType", e.item.type ? e.item.type : 0);
uni.switchTab({ uni.switchTab({
url: "/pages/workBench/index", url: "/pages/workBench/index",

@ -142,11 +142,11 @@ export default {
// }, 200); // }, 200);
} }
console.log(123123123); // console.log(123123123);
}, },
created() { created() {
let that = this; let that = this;
// console.log(4567456456); // // console.log(4567456456);
// // // //
// that.navInfo = that.G.getNavInfo(); // that.navInfo = that.G.getNavInfo();
// if (uni.getStorageSync("apply-supplierAccount") == 1) { // if (uni.getStorageSync("apply-supplierAccount") == 1) {
@ -163,7 +163,7 @@ export default {
// that.tabActive = 0; // that.tabActive = 0;
// } // }
that.isLogin = uni.getStorageSync("apply-token") ? true : false; that.isLogin = uni.getStorageSync("apply-token") ? true : false;
// console.log("that.isLogin", that.isLogin); // // console.log("that.isLogin", that.isLogin);
// that.loginInfo = uni.getStorageSync("apply-userinfo"); // that.loginInfo = uni.getStorageSync("apply-userinfo");
// this.getList(); // this.getList();
@ -214,7 +214,7 @@ export default {
}, },
getList($type = "init") { getList($type = "init") {
let that = this; let that = this;
console.log("是否登录", that.isLogin); // console.log("", that.isLogin);
if (!that.isLogin) { if (!that.isLogin) {
return false; return false;
} }
@ -230,7 +230,7 @@ export default {
statusStr: that.tabInfo[that.tabActive].childList[that.menuActive].tip, statusStr: that.tabInfo[that.tabActive].childList[that.menuActive].tip,
}, },
(res) => { (res) => {
console.log("res", res); // console.log("res", res);
// return // return
if (res.recordCount == 0) { if (res.recordCount == 0) {
that.loading = false; that.loading = false;
@ -290,7 +290,7 @@ export default {
); );
}, },
goTel($item) { goTel($item) {
console.log($item); // console.log($item);
if ($item) { if ($item) {
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: $item, phoneNumber: $item,
@ -301,7 +301,7 @@ export default {
let that = this; let that = this;
if (that.isLogin) { if (that.isLogin) {
that.G.Get(that.api.user_getGZHstatus, { type: "BMZS" }, (res) => { that.G.Get(that.api.user_getGZHstatus, { type: "BMZS" }, (res) => {
console.log(res); // console.log(res);
that.GZHInfo = res; that.GZHInfo = res;
}); });
} }
@ -320,7 +320,7 @@ export default {
// tab // tab
handleUpdateTab(e) { handleUpdateTab(e) {
let that = this; let that = this;
console.log("e", e); // console.log("e", e);
this.tabActive = e; this.tabActive = e;
this.menuActive = 0; this.menuActive = 0;
this.menuList = this.tabInfo[this.tabActive].childList; this.menuList = this.tabInfo[this.tabActive].childList;
@ -334,7 +334,7 @@ export default {
// tab // tab
handleUpdateMenu($item, $index) { handleUpdateMenu($item, $index) {
let that = this; let that = this;
console.log("$item", $item); // console.log("$item", $item);
this.menuActive = $item; this.menuActive = $item;
this.loading = true; this.loading = true;
this.speed = -1; this.speed = -1;
@ -346,8 +346,8 @@ export default {
}, },
getSearch(type) { getSearch(type) {
let that = this; let that = this;
console.log("typetypetype", type); // console.log("typetypetype", type);
console.log("getSearch", that.keyword); // console.log("getSearch", that.keyword);
if (type == "clear" && !that.keyword) { if (type == "clear" && !that.keyword) {
that.getList(); that.getList();
} else if (type == "search") { } else if (type == "search") {
@ -356,7 +356,7 @@ export default {
}, },
goDetail($item, $index) { goDetail($item, $index) {
let that = this; let that = this;
console.log("$item", $item); // console.log("$item", $item);
// return // return
uni.navigateTo({ uni.navigateTo({
// url: "/root/detail/apply?id=" + $item.id + "&type=" + (that.tabActive + 1), // url: "/root/detail/apply?id=" + $item.id + "&type=" + (that.tabActive + 1),

Loading…
Cancel
Save