From 9cb3fa95e1cd3381674f5809066f5db984398233 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Tue, 30 Jan 2024 18:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E7=94=B3=E8=AF=B7=20-=20=E9=A9=B3=E5=9B=9E=E5=90=8E?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/supplier.js | 10 +- pages.json | 8 +- pages/supplier/{ => apply}/apply_join.vue | 42 ++++-- pages/supplier/apply/record.vue | 169 ++++++++++++++++++++++ static/images/not-pass.png | Bin 0 -> 534 bytes static/images/passed.png | Bin 0 -> 518 bytes static/images/pending.png | Bin 0 -> 535 bytes 7 files changed, 217 insertions(+), 12 deletions(-) rename pages/supplier/{ => apply}/apply_join.vue (93%) create mode 100644 pages/supplier/apply/record.vue create mode 100644 static/images/not-pass.png create mode 100644 static/images/passed.png create mode 100644 static/images/pending.png diff --git a/api/supplier.js b/api/supplier.js index b0e8704..8aebf5b 100644 --- a/api/supplier.js +++ b/api/supplier.js @@ -4,8 +4,14 @@ import request from "@/utils/request.js"; export function supplierApplyJoin(data) { return request.post(`supplier/apply`, data); } - - +// 入驻申请记录 +export function supplierApplyRecord(data) { + return request.post(`supplier/apply_record`, data); +} +// 入驻申请记录 +export function supplierApplyInfo(data) { + return request.get(`supplier/apply_info`, data); +} diff --git a/pages.json b/pages.json index a448d3a..55da0e7 100644 --- a/pages.json +++ b/pages.json @@ -1335,10 +1335,16 @@ "name": "supplier", "pages": [ { - "path": "apply_join", + "path": "apply/apply_join", "style": { "navigationBarTitleText": "申请入驻" } + }, + { + "path": "apply/record", + "style": { + "navigationBarTitleText": "申请记录" + } } diff --git a/pages/supplier/apply_join.vue b/pages/supplier/apply/apply_join.vue similarity index 93% rename from pages/supplier/apply_join.vue rename to pages/supplier/apply/apply_join.vue index 2163245..5714a74 100644 --- a/pages/supplier/apply_join.vue +++ b/pages/supplier/apply/apply_join.vue @@ -7,9 +7,9 @@ - - - + + 申请记录 + @@ -148,7 +148,7 @@ import {mapGetters} from "vuex"; import authorize from '@/components/Authorize'; import {getSingleAgentInfo} from "@/api/agent"; -import {supplierApplyJoin} from "@/api/supplier"; +import {supplierApplyJoin, supplierApplyInfo} from "@/api/supplier"; export default { name: 'business', @@ -160,6 +160,7 @@ export default { }, data() { return { + apply_id: 0, apply_info:{ invite_agent_id: 0, winery_name: '', @@ -187,13 +188,15 @@ export default { onLoad(options) { let _this = this; if(options.scene){ - console.log('转换前参数:',options.scene) + // console.log('转换前参数:',options.scene) let scene = _this.$util.getUrlParams(decodeURIComponent(options.scene)); - console.log("接收参数",scene) + // console.log("接收参数",scene) this.apply_info.invite_agent_id = scene.agent_id || 0; } + // 申请信息ID + this.apply_id = options.apply_id || 0; // 判断:是否存在邀请人 - if(Number(_this.apply_info.invite_agent_id) <= 0){ + if(Number(_this.apply_info.invite_agent_id) <= 0 && Number(this.apply_id) <= 0){ _this.$util.Tips({ title: '非法访问,无邀请人!', },{tab:1,url:'/pages/user/index'}); @@ -222,6 +225,7 @@ export default { }, // 授权成功 初始化 init () { + if(Number(this.apply_id) > 0) this.getApplyInfo(); this.getInviteAgentInfo() }, // 获取邀请人信息 @@ -274,17 +278,37 @@ export default { submitInfo(){ let _this = this; supplierApplyJoin(_this.apply_info).then(res => { - console.log("提交结果",res) if (res.status == 200) { _this.$util.Tips({ title: '操作成功!', + },{ + tab: 5, + url: '/pages/supplier/apply/record' }); } }).catch(err => { this.$util.Tips({title: err}); }); }, - + // 查看申请记录 + applyRecord(){ + uni.navigateTo({ + url: `/pages/supplier/apply/record` + }) + }, + // 获取申请信息 + getApplyInfo(){ + let _this = this; + supplierApplyInfo({ apply_id: _this.apply_id }).then(res => { + if (res.status == 200) { + let data = res.data || {}; + _this.apply_info = data || {}; + _this.getInviteAgentInfo(); + } + }).catch(err => { + this.$util.Tips({title: err}); + }); + } diff --git a/pages/supplier/apply/record.vue b/pages/supplier/apply/record.vue new file mode 100644 index 0000000..8e065e9 --- /dev/null +++ b/pages/supplier/apply/record.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/static/images/not-pass.png b/static/images/not-pass.png new file mode 100644 index 0000000000000000000000000000000000000000..4852a33905d33acd35be4d47ed0c2078a4e63556 GIT binary patch literal 534 zcmeAS@N?(olHy`uVBq!ia0vp^HXzKw3=&b&bO2KJ0X`wFK>EFdzNv1Tv)GJ4k$R1~EXgPSQYSU@7U3E;658Wq|4xAGs_C8X-~=}GT;eNfnTIrRE3=E7#o-U3d9>=#{_wH*p5OBR{G^Jjk?&R(NQPGkMCMExo znsrWANj7rRnoSek)~8=%VetI?S@n7GdG4eWGDeq|fxQG?Bgbej2ytyu7rF*EM)+ ztV8~;Eq@OxvUaG634BzT6;%=GXtFgzwK+3wqU%AE%>kYXvm$et1blTB6lO*C?UpTP z2|m45C2eP%%goZg%&BK`?iuj*q;gx24#d0n*s^O_yM7i`?6z0KHt zIqPgAm*Uf=+rQ60^IiV+HG!SIhtJB3oJ&p){eO18(dqS()6Jtz)~_|KXZU(+kIa0( S?!Ca+VeoYIb6Mw<&;$TU=IUVp literal 0 HcmV?d00001 diff --git a/static/images/passed.png b/static/images/passed.png new file mode 100644 index 0000000000000000000000000000000000000000..c6f5e2b9e776cb1d1c469276228206de75442387 GIT binary patch literal 518 zcmeAS@N?(olHy`uVBq!ia0vp^HXzKw3=&b&bO3Pzd_r7-bi(<9#B(JH=ZX`~1Idzv z^QDRBih&5k262lL&I7q631@*K#UK)hz*>UWbzKDN7cL3%3uX{F@WJ7{!G#441qlHg z=08|JLBS%gat#9mW16RnV~EG`t=I3aYgQ0odBD1n$!qJm-}_&C`p(`OazoVr`K2e^ zg)Vg~1jOH!u{GSh*Q{LYv*kq6;=sV|4-C2|uXHuscJ4asRh?xy%lVvktxS0z@TBlg zA%AFe4Eo&A8Op1@iFwqj?2k^>*Y^8ir{w;2@CU< zJAR8NZo>!n%b&lds&+dBXZm%D^>MK3MioqNxAJDM_`gM16Q{?-d+Ouu`u~)Lq*mg6u z`dDi9q10;GQ=vZ&AGeyk>FqNXF}_k!_J8J)ov+yJQ!BWlgnEMicE#U!jM*#pS++c2 W{gvH!l+A%L#Ng@b=d#Wzp$P!nRqd|; literal 0 HcmV?d00001