From 570b8ab98f1190f0d7b6e942c29f187d55b81ce8 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Fri, 19 Sep 2025 18:28:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 49 +++++++++++++++- root/detail/apply.vue | 42 +++++++++++++- root/home/applicationSuccess.vue | 120 +++++++++++++++++++++++++++++++++++++-- root/home/quickApplication.vue | 5 ++ utils/common.js | 3 +- 5 files changed, 211 insertions(+), 8 deletions(-) diff --git a/main.js b/main.js index b6999b1..4881722 100644 --- a/main.js +++ b/main.js @@ -34,7 +34,7 @@ export function createApp () { app.config.productionTip = false; app.component('g-empty', gEmpty); - app.component('g-tabbar', gTabbar); + app.component('g-tabbar', gTabbar); app.component('g-loading', gLoading); app.component('g-button', gButton); app.component('g-list-job', gListJob); @@ -100,7 +100,7 @@ export function createApp () { uni.setStorageSync("apply-agencyId", res.user.agencyId); // 单独存储 -- 代理id,方便获取 uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号 if (res.agencyId) { - // if (res.agencyStatus == 1) { + // if (res.agencyStatus == 1) { G.Get(apiInfo.login_agencyInfo, {}, (aRes) => { uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员 uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1是创建者 2是普通成员 @@ -242,6 +242,51 @@ export function createApp () { }, $sourceType); }, /** +* 上传到oss +*/ + uploadImgToOss (callback = () => { }, customDir = '', type = 'default', $num = 1, $sourceType = ['album', 'camera']) { + var that = this; + G.uploadImage($num, (imgRes) => { + uni.showLoading({ + title: '上传中...', + }) + console.log('imgRes', imgRes); + let imgPath = JSON.parse(imgRes)[0] + console.log('imgPath', imgPath); + G.Get(apiInfo.getOssInfo, { prefix: customDir }, ({ data }) => { + console.log('uploadImgToOssresresresres', data); + const { policy, signature, accessid, dir, host } = data; + let key = dir + that.getUUID() + const formData = { + "key": key + "_${filename}", + "policy": policy, + "OSSAccessKeyId": accessid, + signature, + "success_action_status": "200", + }; + + uni.uploadFile({ + url: host, + filePath: imgPath, + name: "file", + + formData: formData, + success: function (res) { + if (res.errMsg = "uploadFile:ok") { + const imgUrl = `${host}/${key}_${imgPath.split('/').pop()}`; + callback({ + status: '上传成功', + image: imgUrl + }); + } + console.log('resresresresresresres', res); + }, + fail: function (res) { }, + }); + }) + }) + }, + /** * 上传临时文件(不需要选择图库) */ uploadTmpImg ($fileName, callback = () => { }) { diff --git a/root/detail/apply.vue b/root/detail/apply.vue index fe05930..adb12d4 100644 --- a/root/detail/apply.vue +++ b/root/detail/apply.vue @@ -1174,7 +1174,47 @@ export default { }, goIm(cusData) { let that = this; + that.F.wyyxPost( + that.api.wyyx_create, + { + // senderUserId: uni.getStorageSync("apply-uid"), + // receiverUserId: cusData, + senderAccid: uni.getStorageSync("im-accid"), + receiverAccid: cusData.accid, + }, + (res) => { + uni.$UIKitStore.uiStore.selectConversation(res.conversationId); + const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage( + "", + JSON.stringify({ + type: 100002, + userName: that.orderDetail.userName + that.G.titleToStr(that.orderDetail) || "-", + idCard: that.orderDetail.idCard || "-", + storeJobName: that.orderDetail.storeJobName || "-", + interviewTime: that.G.getPointTime(that.orderDetail.interviewTime, "YY--MM--DD HH:MM") || "-", + tel: that.orderDetail.tel || "-", + applyId: that.orderDetail.id || null, + relationId: that.orderDetail.relationId || null, + active: that.orderDetail.active, + }) + ); + console.log("customMsg", customMsg); + uni.$UIKitStore.msgStore.sendMessageActive({ + msg: customMsg, + conversationId: res.conversationId, + sendBefore: () => { + uni.navigateTo({ + url: "/root/NEUIKit/pages/Chat/index", + }); + that.goImLoading = false; + // scrollBottom(); + }, + }); + }, + () => {} + ); + return; that.F.wyyxPost( that.api.wyyx_create, { @@ -1196,7 +1236,7 @@ export default { that.F.wyyxPost( that.api.wyyx_sendMessage, { - conversationType: 1, + conversationType: 1, senderAccid: uni.getStorageSync("im-accid"), receiverAccid: cusData.accid, text: that.G.objToStr(params, "copy"), diff --git a/root/home/applicationSuccess.vue b/root/home/applicationSuccess.vue index 5d8ab2b..52c637b 100644 --- a/root/home/applicationSuccess.vue +++ b/root/home/applicationSuccess.vue @@ -5,8 +5,13 @@ 已报名成功 您已成功报名该岗位,请等待发单号审核。 - - + + + + + + + 查看报名工单 @@ -16,6 +21,13 @@ diff --git a/root/home/quickApplication.vue b/root/home/quickApplication.vue index 01db7fd..c613eb3 100644 --- a/root/home/quickApplication.vue +++ b/root/home/quickApplication.vue @@ -459,6 +459,11 @@ export default { handleClickMobile() {}, submitForm() { let that = this; + + uni.navigateTo({ + url: "/root/home/applicationSuccess?jobId=" + that.updateInfo.jobId, + }); + return if (!that.agreeRadio) { uni.showToast({ icon: "none", diff --git a/utils/common.js b/utils/common.js index 9b0b693..a32ecf9 100644 --- a/utils/common.js +++ b/utils/common.js @@ -14,7 +14,7 @@ let data = { loginText: '请登录', coziID: '7537572244600471579', baseUrl: "https://daotian.matripe.com.cn",// 网络请求的基础路径 - // baseUrl: "http://192.168.3.83:8001", // 网络请求的基础路径 + // baseUrl: "http://192.168.1.87:8001", // 网络请求的基础路径 // #ifdef MP-WEIXIN version: uni.getAccountInfoSync().miniProgram.version || "1.0.16", // #endif @@ -118,6 +118,7 @@ let data = { } }); }, + /* 上传图片 */ uploadImage ($num = 1, callback = () => { }, $sourceType = ['album', 'camera']) { From 084eb8d1276f485e01d47d450e08353fd7630e8b Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Fri, 19 Sep 2025 18:47:13 +0800 Subject: [PATCH 2/2] no message --- pages.json | 18 +++++++++--------- static/image/apply-active.png | Bin 765 -> 0 bytes static/image/apply.png | Bin 819 -> 0 bytes static/image/home-active.png | Bin 578 -> 0 bytes static/image/message.png | Bin 1332 -> 0 bytes static/image/message_active.png | Bin 1279 -> 0 bytes static/image/person-active.png | Bin 1154 -> 0 bytes static/image/person.png | Bin 1187 -> 0 bytes 8 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 static/image/apply-active.png delete mode 100644 static/image/apply.png delete mode 100644 static/image/home-active.png delete mode 100644 static/image/message.png delete mode 100644 static/image/message_active.png delete mode 100644 static/image/person-active.png delete mode 100644 static/image/person.png diff --git a/pages.json b/pages.json index 4ad6e15..428bed4 100644 --- a/pages.json +++ b/pages.json @@ -676,25 +676,25 @@ { "pagePath": "pages/home/index", "iconPath": "static/image/home.png", - "selectedIconPath": "static/image/home-active.png", + "selectedIconPath": "static/image/home.png", "text": "首页" }, { "pagePath": "pages/home/order", - "iconPath": "static/image/apply.png", - "selectedIconPath": "static/image/apply-active.png", + "iconPath": "static/image/home.png", + "selectedIconPath": "static/image/home.png", "text": "发单号" }, { - "iconPath": "static/image/message.png", - "selectedIconPath": "static/image/message_active.png", + "iconPath": "static/image/home.png", + "selectedIconPath": "static/image/home.png", "pagePath": "pages/message/index", "text": "消息" }, { "pagePath": "pages/workBench/index", - "iconPath": "static/image/apply.png", - "selectedIconPath": "static/image/apply-active.png", + "iconPath": "static/image/home.png", + "selectedIconPath": "static/image/home.png", "text": "工单" }, // { ai @@ -705,8 +705,8 @@ // }, { "pagePath": "pages/person/index", - "iconPath": "static/image/person.png", - "selectedIconPath": "static/image/person-active.png", + "iconPath": "static/image/home.png", + "selectedIconPath": "static/image/home.png", "text": "我的" } ] diff --git a/static/image/apply-active.png b/static/image/apply-active.png deleted file mode 100644 index d5a0a7451172f31c9cc9acd0b6b02205e3e5566e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 765 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&g$MYAxB_X0t!WI~(-^j;G3-hK zk?1HDBmz{hH4(;uDTC;Ok{KX15cak-rwG&<85*U~z4luC2VX}C1tk0Ucpcp9W&#bbaXR^KvSaO0)0neHpPZ;KOGxGc} zZFn+0@l$ID<9(?G^Zsx5Vkt0GU|KM3+5TrU;;WTkzhGEf_2u={KF$@hW&Z2tzsg_; zeXyEKl+)m0Ot6SU`{z~)0G^u&;LKe zV9g&T)bN}8y)pB;EW%Z@L;8M0uy3adlk!IV|Ui`5la9rimpa5W@ue(?9c=xI~^l>s$w4X?TO zFFWk${Fu{&L9f<&;r*>UZ!9<0R$$!m>eKtxx10-2pB`Q3F|UD1z^{sliJ@^pG^c{F zNj^hUQ_a~AMdb`9a?OvuQft!u(c|E-DP`CBawbMkY0(0i|{iLMH$K diff --git a/static/image/apply.png b/static/image/apply.png deleted file mode 100644 index a105aef29467084814677ba1b59e9cdd2c3f40c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 819 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&;?C9tKGT|hU z0R#|n2pdR36hH)lWLH;LOG^t}8L}Y|#XynP*4F0cW{3&Za$EKRtyC!q@(X5Y2o)=_ zew223|IS7IuA4Ju&#sDor^Ef_=&ZW#z^>c`Zxg{A%r-AKGB7atd%8G=RNQ)dD>Hww zfk4B+~Ku!c3+G%DFA2vp6J&`^Bf*rvymm+M4kzYPE~KQUaYm0DJ3iKOMykuVM)OSFYNy}a{et1xWG_k`qj$d;VQK!CJkqH zooo5Ulfm#yYIEFDl?JE$@7MIZnwSJ;OkeQSh)07V=)Li^xn4mGe|{ekmw5No?)d+S z4VLnbPkt#)nR0qV<3p*fp%e048vpLOFo{9yc=SfQq8K){m@6#vf4sKX_P6@Q)L#yl zY-QeEDR8S-(LPq^7_q)UgV)XP%4o5r*nZ0s;&iEKgk+W*+#@azKkC z(dqe7#wdjZua}+?-4B$R7|%_5cQ2ls#p3NGW?;IQ{zhMUs`#dd%9~VxNs+20f zpWZyNX;HFnQIxmfXA4D97G6coXa)wxX`U{QAr-gY-ngCDSe`_>u^nZ~M1rPd{BYJuUiTe7H*Xo83&`Vi|w0Yp4xBuunVT zzUYScTsN+>zWL4ct(Nh3>PoH~{wKj=<*Znh(ndI5Y(qZBr`q5EuG*AshmS55{3USZ z`R$*_UIYi+?aN;5fAG`q4^O^mMtnZ=V}2{@zt~>!caC)TZ6#c(D4y z+H0DdZ5F)QZ2gRJ$1J`TpBmmhZLs2B5zqI+U5tS@K<8c94u&{31qMbA2L>jA1_l-o v^T2E-Io|0O&zCXP)q^Dr7?L*LxPM!HvT>AaX-A|5C^2}t`njxgN@xNA*-iaR diff --git a/static/image/message.png b/static/image/message.png deleted file mode 100644 index c3db319ed236aa1f56631472b7e44f28f8c5f158..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1332 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&H3s;ExB}_+_V$jBj?T_bAPEN$ zL1Ypxh0JJeZG~`w+98UOWzpC`1#mTRMyTcQDL_YPl?3?(Gc=rCwdnD^<7pUJYZ~hwH}^QJkICWkIV)nSoG#z2K5bML zul_w#_Il0dy^{kb-Oh?ze@`UYbm9BhkM?d;L>B}+$<$6g_u_Qo#aH^0UnXq*mCCvJ z%>VytykD+Z{K#Tcp7Y=PZ|#94x9^8fR<`iX*2>OKV)>W-saQg%JkVr=;+6IB_7Yc} zd___X99k9$xb5oiO<4Bp!4K}ro7UADvrH~Av3CZ4-P3mDUwK2Pj>^do{W6K0GG3%; zP0Vp4z8CFhORp@mIJWU--%sJk6`qePPV8kmZd|o)hq_NA@7!5&4yKwnEv~eO_@6(J z>U%!z)Z3qoY70NHXgt<$YRL-td83F`?&zz##hiw%(^Ygb`tSAyFJX&tk@eiC;L9cE z7C!U(q~p%dcqU9L=e~0;_{4)_J6U;UkAz>+O1#sw*LiV-;kuuFneX<-MgBPCIWO+@ z)Fi$MJ-Q6szpsjiGg#Wm%Iz0$c<`-O*nzP?^#DhmVuQd*Av<}8HkH=%>>J!tnSL-k zfCvkX`*T0D7q}!HI?nvT%wyg3e)bCsUa;HAIxP8RC|=Lt+PlcI#)9Fz>qSXBX$R5V zfRd(#j9Z>uxc^kuYs?{7+uZTYl@-(&tx7a;J28OT6gH z`t#qwVxgHETk@Gn5~T%c{1-IV7Yc0GaoGIz=COT~bPG66u~dIJY`S6R6wmMRduNE= zevwlC=VovG1Ko4GZ|%Pq_wU{JuV25K9+PJ{ukDuZqN)olc^Euh{an^LB{Ts5HBxyf diff --git a/static/image/message_active.png b/static/image/message_active.png deleted file mode 100644 index 9c312c102239e104498db3e6f80a27fbcbeedd32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1279 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&k@j?P45_&F zcJ}Q_iwp$XqWL(LT+Ve=%z690{@B`Ew~S_XdMYfNE4}}A#>dI;{_XDMkhiP(@!_;Z2HcPIyJgr=o>NUf;E%x9=uyi@o=B!{x5st*l#S zrE+{o`v2LFMaSij&uQL@fd4uxMd#+NSUp{I!*!ph+80Ik6#d=u`NRW}&@ib(Pk+A^ zj}wzx?8UA9V8x{d^{wlhdbgKkD}L`@+^!W~(U`RQ+Q%&$+CubCKXetkI`w+JYWwtu z+18T-?y@r-xF-7eYtJMhrwN+YQERvw8Weo8n=UMBaaOQWUBTxqKb32TgMrl1Q1R#h zD<_M-S+YB87q>L<+)hnX*utW~aftKG2|g=-fhmU5H^zoAnX(77HHXGCxu}F$@6#@}5L|v-wQqs)* z%Atf^iO-0AEpsx9Nzc^354FSUR1_Cpt+|lm%H;8&&r5zqvcS$ue-_xvO>%Q^zmVtn z%BEH4+>~gA{PnZuL@I4>cyz#S+m`HI$+M*7zx-Ri@?TBpG?6J=QkaBdrp1RaS=CJF z->yQkZ5JMP&caf7&kRQ`OifMwIlybm?s zn%|WEV{UhQ?k{hFOV!upD;G3-O!>C=zUk$HNVXWyP@g|i~oht2V(XG=bsO$JYzzM|Us!jBoo$lzDf6mFYh?sNQ(uTL zb8_M2ROv`_R+2t)@wv*B?;Q)4v(GW?lY6l+Z$ruXx0`M;H>}@0cX4%D!#3fwHy?|? ztC7_`J9ojF1(MUR{aENHdsZYM^x~PN2c6HhrfF$p$!ydXi|yRWRuz=QZd0f*?bu3& zYMZV7LA;Y1X0KJc@?`DP|2#jVc8A(CFf%T$W0C)|w#C8ozTJXHXCAk;H$0#Cbj_S* zRu`_PJ|+uo*G)gt6LYxP?Z<;ffxO218b6$y>gXVI#k3{MPx`FH8O3SYZi&YQMdh~7 zO%vK8kZpSTfbKcQrkw{KzSp^*UU4VltY1On4cE=mTVmP|%@0_cW;{>9tkC(Ij*CFB zu8ZXL(7W?nu3ybA5DV(vFRfw0QPFPfV9cw*y|+CTf5r4!o%0Ke+W5B~)6d#xAe?M%crtiGm&R|)=H)(fa_@SasnGeqt2C^UZ8`*-E8xYfb-kM8ks zhP+tYq{8;a#6iilYNeuNyPV9DB;G1Rv7imwRnfX0n}s*|m_0oI|G(-EZnhm3KSO7n zTfJ+g#JcMXXIL5S6pHVkpZ_UFf5YY%=BA%SvN%?jZu>B8ZulLJt*yCzA(;=wx4CHL zC!4QYxvtUPL^g=OV}jyBnTi6gPM$*(_gGzju+naFPiun8f@O^Py^5L2ml{{}h+3;& zn7?C1C4MzT~nL=xb6v)aDc4g@v9meFJEE(&;44^ zE=}p?1=SUTx9(~(dj~j+$cA<8ypT;?^||N$q{?lx5AErb|!QIPNi>?RA*f*r1bs?13YfyTkdM0RKzYyr!RLT6oPrxqE(O@fn|g z9{0poyY4^veyhbbkzB?3Vui_Tk1@ZW+9rP0vF?jrJ6tN-;!6!dg^8!DpUXO@geCxE6bqIB diff --git a/static/image/person.png b/static/image/person.png deleted file mode 100644 index 85b109bc10c3a8074f62f63d5315f786a081a59f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1187 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&H3s;ExB}@8RM6Gcg)Gq7*$Lsc zx3?pU!`To85Lt*`AiJ%tt)-;}sAj^132>EI8O*ub^MH=fDhcunX1I0Wlj%f_b6dVY znbFtYSiWx2oc#DO9}jz7`9K#bK_0djmyhpVRg;kcwMxZ{6Iq z$bpC9f`YY%h6Y#OjsR+q3uHDhbZNA7Y? zDc^~ST(^8Cq%u`ms2R=V%LsVDZNKh!v%ZJ|zqQ}VYnK0Fr=K&kOl0qvojh57-NIDa zUpGwH6SrSGa6XRZ=FF{4h0KB8IT3H}FL}XgrsJyqfYXyBztzKUl5k<$6F&Jn6VH4} zX)vwXa%~cC&aN!p_$xnBnkU=|KlwR0YW2<^3_A`y=;CJ#WzaNO5+d8c(XCg((x!ZO zgX$i({4;Ab_Xue&<14;e^o-}eoV?zFl7sA>R+ZiSf(EWXHncvxl*SU0Ji$wBk=llt zlUTD_|IcZB+w(ufK;o8}-j zRXGc7PPP{^RdSZX~NmfPwMSlR2RO{eWIwvU3_q-cmn@Huj84VoH6=6uXI)~zEI4p z@@TnQxA^Bfan8qY)opYWYhqR0dFAztVx$)W=mgv62eq0@q%)!2e(q&l_wyfLCye;bU+!dCp0wUBw<>jFu;RCONB3MmaI~rVR_XlDzl7Mde$RO(J?Zuy z)wSwhWnP^$+g*N2Fyhp^mAO|rX0Qts7-+I}MQ&gcoSI}d$5dHCx_M?4%O4?^Df@zW z`2Jj3IxoU=o2A8qMR>q}H7*Bc2;wp};#05G%lx-DL3@2ETHz|vx-WMD>T@O1Ta JS?83{1OO=%Bzyn>