From 9e627e8a925d9a14d0bd27a96c0eb594bb1161de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Mon, 13 Nov 2023 22:00:38 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/InputAndSwiper/InputAndSwiper.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/InputAndSwiper/InputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue index 3777e2d..3735562 100644 --- a/components/InputAndSwiper/InputAndSwiper.vue +++ b/components/InputAndSwiper/InputAndSwiper.vue @@ -49,7 +49,7 @@ this.open() }, methods: { - getLocation1() { + getUserLocation() { var that = this let qqmapsdk = new QQMapWX({ key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB' @@ -66,8 +66,8 @@ }, success: (re) => { console.log("解析地址成功", re); - console.log(re.result.ad_info.city, ); - console.log(re.result.ad_info.district, ); + console.log(re.result.ad_info.city); + console.log(re.result.ad_info.district); let city = re.result.ad_info.city let district = re.result.ad_info.district that.position = city.slice(0, 2) + district.slice(0, 2) @@ -89,7 +89,7 @@ scope: 'scope.userFuzzyLocation', success: function() { console.log('授权成功'); - that.getLocation1() + that.getUserLocation() }, fail: function() { console.log('授权失败'); @@ -102,7 +102,7 @@ uni.openSetting({ success: (res) => { console.log(res); - that.getLocation1(); + that.getUserLocation(); } }) } else { From 13d7ba738b8ed9ecee183b948c661a44ab005c0b Mon Sep 17 00:00:00 2001 From: hot777zz <912275990@qq.com> Date: Mon, 13 Nov 2023 23:43:03 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E4=B8=8E=E4=B8=AA=E4=BA=BA=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/my.vue | 12 +- .../publish/publishAddress/publishAddress.vue | 10 +- .../publishInvestment/publishInvestment.vue | 16 ++- pages/publish/publishRent/publishRent.vue | 11 +- .../publishTransfer/publishTransfer.vue | 104 +++++++++++++----- static/my/wo_icon_cc.png | Bin 0 -> 672 bytes static/my/wo_icon_hh.png | Bin 0 -> 699 bytes static/my/wo_icon_pppp.png | Bin 0 -> 747 bytes static/my/wo_icon_xz.png | Bin 0 -> 609 bytes static/my/wo_icon_zr.png | Bin 0 -> 593 bytes static/my/wo_icon_zs.png | Bin 0 -> 841 bytes 11 files changed, 113 insertions(+), 40 deletions(-) create mode 100644 static/my/wo_icon_cc.png create mode 100644 static/my/wo_icon_hh.png create mode 100644 static/my/wo_icon_pppp.png create mode 100644 static/my/wo_icon_xz.png create mode 100644 static/my/wo_icon_zr.png create mode 100644 static/my/wo_icon_zs.png diff --git a/pages/my/my.vue b/pages/my/my.vue index ec54cf3..fa59bd8 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -12,12 +12,12 @@ - - - - - - + + + + + + diff --git a/pages/publish/publishAddress/publishAddress.vue b/pages/publish/publishAddress/publishAddress.vue index 01dfc6c..442a5ac 100644 --- a/pages/publish/publishAddress/publishAddress.vue +++ b/pages/publish/publishAddress/publishAddress.vue @@ -6,10 +6,16 @@ 请选择所属区域 + + + 请选择行业业态 + + + @@ -118,6 +124,8 @@ justify-content: space-between; } .arrow-icon{ - float: right; + position: absolute; + right: 10rpx; + transform: translateY(-20rpx); } diff --git a/pages/publish/publishInvestment/publishInvestment.vue b/pages/publish/publishInvestment/publishInvestment.vue index 11ecb52..5acceb5 100644 --- a/pages/publish/publishInvestment/publishInvestment.vue +++ b/pages/publish/publishInvestment/publishInvestment.vue @@ -11,6 +11,9 @@ 请选择所属区域 + + + @@ -18,11 +21,16 @@ 请选择行业类型 - + + + - 请输入行业业态 + 请选择行业业态 + + + @@ -122,6 +130,8 @@ justify-content: space-between; } .arrow-icon{ - float: right; + position: absolute; + right: 10rpx; + transform: translateY(-20rpx); } diff --git a/pages/publish/publishRent/publishRent.vue b/pages/publish/publishRent/publishRent.vue index e5f167b..71ac51f 100644 --- a/pages/publish/publishRent/publishRent.vue +++ b/pages/publish/publishRent/publishRent.vue @@ -11,6 +11,9 @@ 请选择所属区域 + + + @@ -18,7 +21,9 @@ 请选择行业类型 - + + + @@ -123,6 +128,8 @@ justify-content: space-between; } .arrow-icon{ - float: right; + position: absolute; + right: 10rpx; + transform: translateY(-20rpx); } diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue index 2225f68..3bac623 100644 --- a/pages/publish/publishTransfer/publishTransfer.vue +++ b/pages/publish/publishTransfer/publishTransfer.vue @@ -6,42 +6,50 @@ 发布房源图片({{ShopInfomation.count}}/5) - - + + - + 请选择所属区域 - + + + + - - + + 请选择行业类型 - - + + + + - - 请输入行业业态 - + + 请选择行业业态 + + + + - - + + - - + + - - + + - + - - + + - - + + @@ -62,13 +70,39 @@ }, form:{ - title:'' + title:'', + region:'', + place:'', + trade:'', + karma:'', + size:'', + rent:'', + sell:'', + name:'', + call:'', + introduce:'' }, columns:[ + ], show1:false, show2:false, show3:false, + rules:{ + 'title':[{ + type:'string', + require:true, + message:'请输入姓名', + trigger: ['change','blur'] + }], + 'place':[{ + type:'string', + require:true, + message:'请输入地址', + trigger:['change','blur'] + }], + + }, } }, @@ -78,10 +112,22 @@ this.ShopInfomation.area = e.value[1] this.show1 = false }, - submit(){ - console.log('提交'); - } - } + submit() { + this.$refs.uForm.validate().then(res => { + console.log("提交表单信息:" + JSON.stringify(this.form)) + uni.$u.toast('发布成功') + // 调用服务端入表接口W + }).catch(errors => { + console.log("失败信息:" + JSON.stringify(errors)) + // uni.$u.toast('校验失败') + }) + } + }, + + onReady() { + this.$refs.uForm.setRules(this.rules) + }, + } @@ -130,6 +176,8 @@ justify-content: space-between; } .arrow-icon{ - float: right; + position: absolute; + right: 10rpx; + transform: translateY(-20rpx); } diff --git a/static/my/wo_icon_cc.png b/static/my/wo_icon_cc.png new file mode 100644 index 0000000000000000000000000000000000000000..f00430ca0def1a86557b00374175d55c7f0f2cd7 GIT binary patch literal 672 zcmV;R0$=@!P)Px%T1iAfR5(wq)KN@QVH5}O|A!Dr7$77R=*rSI&D^Zb)`ZbqS+UkbQLBeG>xCDp z_0)q;z3`Sza@C7()Y59J*2*=PgVwASE!Ws$g)t$cAYc$k2)Er!5*KcY)c1JrIlu3G z=R5ZjilQj|$3-duC)0DxmImRvWw%}yypnL^Ty%t+}(_h}ne%m>xQl0qA|BY>*IW`4SAP zc4Ig?jSKZVa3(m3A(a7#0{0Qm{`?b92pml&=){^L@YAib3fqJV*fj?*m6}6`PzguU zk0WbZu-$7%JXZt)aBMgV9ew0{g?{K~%E48n2Huv_c#--76<-W%=p_b}JF(Yyn*%%s z-Rec~haYNet}tR1$n3s$ur13@RODm{$8yNGAmv+8I*UIKo+!FeecRXuR0 z!#E}HfNMU8PEi9chhAYkKEsN4Y&uZ_ey~?JHuNmgm$I1#8}mJUlMJHk{YZ7-@2uBb z`q3p;=Rx|XZJvFMk?`B9KD~ZLC$2Z{10f_2{!?is$-e;TIu!vg=mXRM0000Px%bxA})R5(wSluJldQ5?p9*JtBG%rYV)G|G$$GF<9tITU3fObCT56I%4zgcj3d zV-$?5KnWtNMQKG3)Ha1RYEwas7Lil~O@mOBLvPA)e4IFQ$C)#8?+v=Ed(ZjK?|$e1 zo%7d(5Q5ZaCIW9gFy@1aZ(y4b%gSNZMo7;x$khSO0Gy7%U^{#X8W%1of~o_MVGT6` zM{a_Dz}iJgHRLV^zXw)U!HP=Iw75PQI6VosT3}|%8kn95b*G^BBuIT}4Q$wH0Svu^ zdu{)$QFL;1Gra7BPj7U0wZ|c^Fglg&@Z%`-pH+Y|uet3g?~X$dcm{!|y0**->$aKz ze~!a#7hnO3jswm!;JX21FZA!VTcEt&1Sp64S|JorTuO(^$tqY5+mFHZ!|><3uB&K- z61xRZ!tS0n4@L%3>w;h7;5nzmY`IYHhAf)}@W*F(*a4yU#&8xEL(M*T-V6Rm`h4CJ za2$mEr6xeX7ltmv)TC(^(G?llVBZ7s0(dXM>?~yEzz!D_6e}tFA47i!$eU;qY_eSq z9Q$E93rDIGeMR z+BVd{<$GxrtltLRNAwkitIxs@1C2VSf$OL%1AT13| zc)JANtI9r7ubtJVW3{PhfTA)8jzE4Pni#sG0RN|mu^&lbWkdY0nt0_A^teIHTGrn> hm^7$sfi=}}$zRb&{I+x`9lrno002ovPDHLkV1lZnG&%qP literal 0 HcmV?d00001 diff --git a/static/my/wo_icon_pppp.png b/static/my/wo_icon_pppp.png new file mode 100644 index 0000000000000000000000000000000000000000..4885f17d9d230e9ef6560a0b04c7d9f2a7bafdc7 GIT binary patch literal 747 zcmVPx%rAb6VR5(wSliN#FQ51*2eH;s|sBs=_bjoltMoP1rU63viL=Q5UT}&jYm!5s- z$xGmc=&Ao8Ng_$aER}*@x$o1!~yLC)nU@O$69cV`-x`?H_*&Ya_tN)iFQ;ta3-vW^m=g*I@`u zucUkHBEa@)8CSp03yvLv?k1JMtX?P(oVX5lmmn}Bd49(PYWEizz_w~Nt`YA|1W^tW+o)x$H1Nr z<9+aDc%?7r4PZ+YFxI|ZM+KhaFwz6NPYK5QBm6% z(wYbVq-3;D;>s3G`Xuvng49e1{($~x5*gK8sR6uS6}9p}NlgN_b>{S18dO5_x@#xP z6kHztvhFsOPyMFavibyl%1trAq6&pg4!tP!Thek%U4CY#%N5eH^xWGHm5;q9@QMMv zS7|EL(#}jMDAxC|=ZVBOWG=qLDLCR41pV;3Rb?@xExaD(4H1QnQNaIxz)=NP4dC6% z@M=$Y&3sMeH3QguJ50cDE~?RjK{H&6Ui#QG8@E8ojY!L5gDP*jB*D2g3tB#?fi>8% dLP3T{;V-mzJ=Bid8zTS!002ovPDHLkV1oA{Q{Mmp literal 0 HcmV?d00001 diff --git a/static/my/wo_icon_xz.png b/static/my/wo_icon_xz.png new file mode 100644 index 0000000000000000000000000000000000000000..756556a0381ca43ff9ace32e254848d2ef044784 GIT binary patch literal 609 zcmV-n0-pVeP)Px%8%ab#R5(wSls{+`K^Vo~o6R3i5gQQ;jeQi28aW~B-Ejm&6v0B%Xrql5HiFn# zS{bY?w9!TzwGc!RAt-le;Bp4cfu?>fAred6PW+1kA%0y1rSX{;QJ@cOSuxmt+t-gNaYt;kiyqr(@oT$pDRV8_-!0D#J-2tnguGTc% zHvrtB)vYeAWp37Ir3I|Whv^2AeA*bo)yyj1J6&TKr!s4JEUU|HV4M>rfk?R_v1Y|w z^(5yU;6z1PLzO8Eby>&+Q0fM@Jmv2|$ho;8%7AvIM#(+75Is5jQNCdd*!k&niKYn5#|3H!SNAo2rL^=sy)rB4*q9jWgI00000NkvXXu0mjfDF_rn literal 0 HcmV?d00001 diff --git a/static/my/wo_icon_zr.png b/static/my/wo_icon_zr.png new file mode 100644 index 0000000000000000000000000000000000000000..317291ccd87707b58f4abc89162b09362ecaa3a0 GIT binary patch literal 593 zcmV-X0Px%3rR#lR5(wq(@#iLQ547V?|Baqvw}fmT9u^vXYHaOA_HmB!c`;{w2-0}1w|76 zX%aLsDsoYauv)Y+hFZBR#8D(@W3-5LrVNP+D+z=+;F+or%HtGZ$(-jx@IvME?yMgT9Qy%#ijJF^Z~4{ z6m9-SprR5vaUQ8{%H%VkzMe$KM!_+g!@QJbBW)*<{qD~aH7V7xDEex=G$rbP+9O@boXYz#-s=|4E&kcF+M$&7t-jVD(h_oKX zx!ni9*La{E|5y!bX zkO_EgvoCc*cqcmTe}4M*4Sf6R2fHFjy;or(jv4F^9xW8Y?(M^LbwVmt@D|uT5u~9p z-NX1CW*`q({32x%cI0{%xUhif?k-_@FlrACAvHB_g{Wd4K0;$LFivT(Z6k+Uu+N?W fku+EuQ84`nZp-OqR_#<800000NkvXXu0mjf?XU|@ literal 0 HcmV?d00001 diff --git a/static/my/wo_icon_zs.png b/static/my/wo_icon_zs.png new file mode 100644 index 0000000000000000000000000000000000000000..a4bc6e1bccf6898b33de5e9eba1d3f18685fbf4e GIT binary patch literal 841 zcmV-P1GfB$P)Px&14%?dR5(wql}~6?R}{v7=f0OQGbTEzCNa*C*hv~|S`-8;u^^Pvf?%a6fnW?M z-E`9~+z8S|?b21DE~E<)Q4yV;hl^-MV zHVCa+6#OzUH;s;*htVrw=N1Z02-fUEVlCjVC<+dM-VFNiGCFb*yi8E&JF6f?bWRzv zb~mj36mh~Y6^MP-tJ-q}vQz&-iU9J^V$qdEk*2Sa^2T|Q*wi((503eY7tIu&US(H- zZW_KoYIYQWYCY9QzhMVX!|dZFCFvI}TaBsPhg5$EVhTX7`zw{E!(beAqyruN0dnbA zgWWQuwgnUW1o9#MZ%MARUFEIMF_qhbEV9!+)DB-QB%SxdgfOw4K1|#QI(ZXK{|#;g zS+xZzt@8C^C%e__{SFDQ!8Ck^l&uTE&&RR-r_u3Fr0RXloBNQ`O7!^{w&z=Pb^OE$5xNr9|w_@8<0p0JJf+m>_w+;`xE&4 z+3PLpZ2KNr7DeZtV*AfxAN`I~w+E@+g_sgFlS1dFAeX_r^^Fgc@;dDJpP2X#H1#V| z)r_W-NVfZ^=36(72QY7J48~0l;N3fcW=4^UchIpe+)ankr+4x0pTZaW%XvU$;;T}6{Kc6PD3jaS~>5d&WwT0lI{Ew6aNTJ4`M3b#Xh+c z04ti%*(U|y3uS)OyMGot+J%$Yjfs7LO?Kc7{*1f%5c;eiulMA_z`|9OG#_0EoCi-2 zkn1^#PToeU-@{$sjzp>hD@MEU`Y!o);D#~PTX7oO{9qTqV3&Rn3rFvD{{sF6(F0c` TojYx600000NkvXXu0mjf**T2J literal 0 HcmV?d00001 From 63d39a021efb7f2dd4a2bd0d2d188860c5520646 Mon Sep 17 00:00:00 2001 From: hot777zz <912275990@qq.com> Date: Tue, 14 Nov 2023 21:02:31 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9Adetail=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/detail/detail.vue | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index eeef128..b742465 100644 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -23,19 +23,28 @@ + + + 行业: 区域: 地址: + + + - + + + + @@ -105,12 +114,23 @@ \ No newline at end of file diff --git a/pages/my/my.vue b/pages/my/my.vue index fa59bd8..343daf8 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -1,56 +1,89 @@ \ No newline at end of file diff --git a/service/request.js b/service/request.js index d535a2f..c31a40f 100644 --- a/service/request.js +++ b/service/request.js @@ -1,4 +1,4 @@ -const serverHost = 'https://spsp.feashow.com/api/'//http://xx.xxx.xx +const serverHost = 'https://spsp.feashow.com/api/' //http://xx.xxx.xx const service = { get(url, data) { @@ -131,11 +131,25 @@ const apiService = { uploadImgUrl: serverHost + `/upload/image/`, //登录接口 login(data) { - const url = `/login` + const url = '/login/mnpLogin' return new Promise((resolve, reject) => { resolve(service.post(url, data)) }) }, + //code换手机号 + getMobile(data) { + const url = '/user/getMobileByMnp' + return new Promise((resolve, reject) => { + resolve(service.post(url, data)) + }) + }, + // 获取客服电话 + getCsTel() { + const url = '/center/cfg?key=kf_phone' + return new Promise((resolve, reject) => { + resolve(service.get(url)) + }) + }, // 展示用户信息 getUserInfo() { const url = '/user' From d9d7cb36dec70acb8b900e0161472acb2eabee54 Mon Sep 17 00:00:00 2001 From: dengj <209192278@qq.com> Date: Wed, 15 Nov 2023 15:49:30 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=8F=8A=E5=AE=8C=E5=96=84=E5=AE=9A=E4=BD=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/DropDown/DropDown.vue | 61 +++++----- components/DropDown/DropDownItem.vue | 106 ++++++++++-------- components/InputAndSwiper/InputAndSwiper.vue | 88 +-------------- pages/index/index.vue | 102 ++++++++++++++++- .../publish/publishAddress/publishAddress.vue | 3 +- .../publishInvestment/publishInvestment.vue | 3 +- pages/publish/publishRent/publishRent.vue | 3 +- .../publishTransfer/publishTransfer.vue | 3 +- service/request.js | 8 +- 9 files changed, 203 insertions(+), 174 deletions(-) diff --git a/components/DropDown/DropDown.vue b/components/DropDown/DropDown.vue index 759b222..fbb3786 100644 --- a/components/DropDown/DropDown.vue +++ b/components/DropDown/DropDown.vue @@ -1,26 +1,21 @@ @@ -31,21 +26,26 @@ */ import DropDownItem from "./DropDownItem.vue" export default { - name:"DropDown", + name: "DropDown", components: { DropDownItem }, props: { postlist: { - type:Array, - default(){ - return [['全部', '餐饮美食', '百货超市', '美容美发'],['区域1', '区域2', '区域3', '区域4'],['100m2','200m2','300m2'],['附近的', '最新发布的', '其他']] + type: Array, + default () { + return [ + ['全部', '餐饮美食', '百货超市', '美容美发'], + ['区域1', '区域2', '区域3', '区域4'], + ['100m2', '200m2', '300m2'], + ['附近的', '最新发布的', '其他'] + ] } } }, data() { return { - title: ['行业','区域','面积','筛选'], + title: ['行业', '区域', '面积', '筛选'], activeIndex: -1, // postlist: [['全部', '餐饮美食', '百货超市', '美容美发'],['区域1', '区域2', '区域3', '区域4'],['100m2','200m2','300m2'],['附近的', '最新发布的', '其他']] }; @@ -55,29 +55,33 @@ return this.postlist[this.activeIndex] } }, + created() { + this.postlist[1]=JSON.parse(uni.getStorageSync('regionList')) + }, methods: { - changeActiveIndex(index){ - if(this.activeIndex === index){ + changeActiveIndex(index) { + if (this.activeIndex === index) { this.activeIndex = -1; - }else + } else this.activeIndex = index }, cancelDrop() { console.log("取消遮罩"); this.activeIndex = -1; } - }, - + } } + \ No newline at end of file From 830b5482f06cbb19fdb80879c85388af9af85f5d Mon Sep 17 00:00:00 2001 From: dengj <209192278@qq.com> Date: Wed, 15 Nov 2023 17:43:52 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E8=BD=AC=E4=B8=BA=E7=BB=8F=E7=BA=AC=E5=BA=A6=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 4 +-- .../publishTransfer/publishTransfer.vue | 27 +++++++++++++++---- service/request.js | 1 + 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 0e48559..7dddafe 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -51,8 +51,8 @@ methods: { getBanner(){ this.$api.getBanner().then(res=>{ - console.log('lunbo',res.data.data); - this.swiperList = res.data.data.map(item=>item.img) + console.log('轮播图',res.data.data); + this.swiperList = res.data.data.map(item=>this.$api.imgUrl+item.img) }) }, getNotice(){ diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue index a281b2b..de83147 100644 --- a/pages/publish/publishTransfer/publishTransfer.vue +++ b/pages/publish/publishTransfer/publishTransfer.vue @@ -20,7 +20,7 @@ + @change="changeAddress"> 请选择行业类型 @@ -132,13 +132,30 @@ console.log("失败信息:" + JSON.stringify(errors)) // uni.$u.toast('校验失败') }) - } + }, + changeAddress(e) { + console.log('changeAddress', e); + // this.getAddressList(e) + }, + getAddressList(value) { + var that = this + uni.request({ + url: 'https://apis.map.qq.com/ws/geocoder/v1/?address=' + value + '&key=' + + that.$api.key, + success(res) { + console.log('diz', res.data.result.location); + console.log('lat', res.data.result.location.lat); + console.log('lng', res.data.result.location.lng); + }, + fail(err) { + console.log('请求区域失败:', err); + } + }) + }, }, - onReady() { this.$refs.uForm.setRules(this.rules) - }, - + } } diff --git a/service/request.js b/service/request.js index dd9939f..f2a842a 100644 --- a/service/request.js +++ b/service/request.js @@ -128,6 +128,7 @@ const toast = { } const apiService = { serverHost, + imgUrl:'https://spsp.feashow.com/', key:'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB', uploadImgUrl: serverHost + `/upload/image/`, //登录接口 From aef4ba9e7ae5912fc04752efedc121dbd240a61b Mon Sep 17 00:00:00 2001 From: dengj <209192278@qq.com> Date: Wed, 15 Nov 2023 17:53:45 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/login/login.vue | 4 ---- pages/my/my.vue | 3 --- 2 files changed, 7 deletions(-) diff --git a/pages/my/login/login.vue b/pages/my/login/login.vue index 6fc4400..3edeb0b 100644 --- a/pages/my/login/login.vue +++ b/pages/my/login/login.vue @@ -58,10 +58,6 @@ console.log('res.da',res); // console.log('登录code换取的信息', data); uni.setStorageSync('loginToken', data.token); - uni.setStorageSync('avatar', data.avatar); - uni.setStorageSync('nickname', data.nickname); - uni.setStorageSync('account', data.sn); - uni.setStorageSync('mobile', data.mobile); that.$toast.success('登录成功') that.$emit('success') //登录完成后使用手机code换取手机号,调用/user/getMobileByMnp接口 diff --git a/pages/my/my.vue b/pages/my/my.vue index 343daf8..c62e6b4 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -53,9 +53,6 @@ return } this.isLoad = true - this.src = uni.getStorageSync('avatar') - this.username = uni.getStorageSync('nickname') - this.account = uni.getStorageSync('account') }, methods: { reOnLoad() {