From bbc69676e353ddd2ce90531d48c166f8ec1adda0 Mon Sep 17 00:00:00 2001 From: woody Date: Fri, 9 May 2025 14:07:56 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat(login):=20=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E9=80=BB=E8=BE=91=E9=AA=8C=E8=AF=81=EF=BC=8C?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=94=AF=E4=BB=98=E5=AF=86=E7=A0=81=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=AA=8C=E8=AF=81=E7=A0=81=E6=9B=B4=E6=8D=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/login.js | 5 +++-- pages/forgetPassword/index.vue | 22 ++++++++++--------- pages/forgetPayPassword/index.vue | 2 +- pages/mine/bindBank/bindBank.vue | 6 ++--- pages/selfService/realName/realName.vue | 5 +++-- .../updateDomicile/updateDomicile.vue | 2 +- pages/userSecure/index.vue | 22 +++---------------- 7 files changed, 26 insertions(+), 38 deletions(-) diff --git a/config/login.js b/config/login.js index 531cab4..4e1abce 100644 --- a/config/login.js +++ b/config/login.js @@ -16,7 +16,7 @@ export const getData = (params) => http.get('/member/api/member/get-data', { par export const getCard = (params) => http.get('/member/api/member/get-card', { params }) //获取验证码 -export const verification = (params) => http.get('/member/api/sms/verification', { params }) +export const verification = (params) => http.get('/member/api/sms/self-verification', { params }) //忘记密码获取验证码 export const forgetVerification = (params) => http.get('/member/api/sms/forget-verification', { params }) @@ -101,7 +101,8 @@ export const fansConvertCode = (params) => http.get('/member/api/member/fans-con export const getIndexAwards = (params) => http.get('/member/api/member/index-awards', { params }) //当前用户短信验证码 export const selfVerification = (params) => http.get('/member/api/sms/self-verification', { params }) - +// 重置支付密码获取验证码 +export const resetPayPasswordVerification = (params) => http.get('/member/api/sms/reset-verification', { params }) //更新支付密码 export const forgetPayPassword = (data) => http.put('/member/api/member/forget-pay-password', data) diff --git a/pages/forgetPassword/index.vue b/pages/forgetPassword/index.vue index 20b5ea2..8857531 100644 --- a/pages/forgetPassword/index.vue +++ b/pages/forgetPassword/index.vue @@ -50,17 +50,19 @@ - - - + + + + diff --git a/pages/forgetPayPassword/index.vue b/pages/forgetPayPassword/index.vue index 4d9e4c1..fa59282 100644 --- a/pages/forgetPayPassword/index.vue +++ b/pages/forgetPayPassword/index.vue @@ -137,7 +137,7 @@ export default { this.getYzm() }, getYzm() { - api.selfVerification().then(res => { + api.resetPayPasswordVerification().then(res => { if (res.code == '200') { setTimeout(() => { uni.showToast({ diff --git a/pages/mine/bindBank/bindBank.vue b/pages/mine/bindBank/bindBank.vue index 851cb08..776f89d 100644 --- a/pages/mine/bindBank/bindBank.vue +++ b/pages/mine/bindBank/bindBank.vue @@ -26,12 +26,12 @@ - + - + + - diff --git a/pages/userSecure/index.vue b/pages/userSecure/index.vue index 1872465..f01b41f 100644 --- a/pages/userSecure/index.vue +++ b/pages/userSecure/index.vue @@ -24,7 +24,7 @@ class="border-style"> - {{'重置支付密码'}} + 重置支付密码 @@ -92,24 +92,8 @@ export default { }) }, goUrl() { - ban.authenticationDetails().then((res) => { - if (res.data) { - uni.navigateTo({ - url: '/pages/forgetPayPassword/index', - }) - } else { - uni.showModal({ - title: '提示', - content: '请先进行实名认证', - success: (res) => { - if (res.confirm) { - uni.navigateTo({ - url: '/pages/selfService/realName/realName', - }) - } - }, - }) - } + uni.navigateTo({ + url: '/pages/forgetPayPassword/index', }) }, surePsw() { From b5e1d3974c84bb56d1cc272b8c3f422813407815 Mon Sep 17 00:00:00 2001 From: woody Date: Fri, 9 May 2025 16:09:55 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat(api):=20=E7=A7=BB=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/login.js | 1 - config/regiest.js | 4 ---- pages/hiFans/index.vue | 43 ++---------------------------------- pages/index/index.vue | 27 ++--------------------- pages/login/index.vue | 20 ----------------- pages/mine/index.vue | 25 --------------------- pages/other/index.vue | 49 ++++------------------------------------- pages/regiest/index.vue | 48 +++------------------------------------- 8 files changed, 11 insertions(+), 206 deletions(-) diff --git a/config/login.js b/config/login.js index 4e1abce..e082941 100644 --- a/config/login.js +++ b/config/login.js @@ -67,7 +67,6 @@ export const queryBonusHaiFun = (data, data1) => http.post('/bonus/api/bonus/que export const getBonusType = (params) => http.get('/system/api/bd-bonus-items/list', { params }) //获取语言下拉 -export const getLanguages = (params) => http.get('/system/pub/enums/get-languages', { params }) //上传图片 diff --git a/config/regiest.js b/config/regiest.js index ebb3550..16d2489 100644 --- a/config/regiest.js +++ b/config/regiest.js @@ -48,10 +48,6 @@ export const waresinfo = (params) => http.post('/sale/api/wares/query-confirm-wa export const confirmShareOrder = (params) => http.post('/sale/api/order/confirm-share-order', params) //删除地址 export const delAddress = (data) => http.delete('/member/api/member-address/' + data) -//仓库店铺 -export const storehouseList = (params) => http.get('/system/api/storehouse/list', { params }) -//会员店铺 -export const storeList = (params) => http.get('/member/api/store/list', { params }) //省市区 export const areaList = (params) => http.get('system/api/area/get-level-list', { params }) //创客空间选择 diff --git a/pages/hiFans/index.vue b/pages/hiFans/index.vue index bf0cd69..545e2d5 100644 --- a/pages/hiFans/index.vue +++ b/pages/hiFans/index.vue @@ -409,18 +409,7 @@ @confirm="sureTrans" :columns="transList" keyName="label"> - - - - + { - let data = res.rows.map((item) => { - return { - id: item.pkId, - label: item.name, - } - }) - this.storehouseList = [data] - }) - }, - getStoreList() { - api.storeList().then((res) => { - let data = res.rows.map((item) => { - return { - id: item.pkId, - label: item.storeName, - } - }) - this.storeList = [data] - }) - }, + sureBank(e) { const { value } = e this.form.pkBank = value[0].id diff --git a/pages/index/index.vue b/pages/index/index.vue index 8b69502..ad19c89 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -207,7 +207,6 @@ export default { promptMsg: "", confirmText: "", userInfo: uni.getStorageSync("User"), - getLanguageList: [], moreFlag: false, index: 0, indicatorDots: true, @@ -552,12 +551,7 @@ export default { this.goodsList = res.data; }); }, - bindPickerChange(e) { - this.index = e.detail.value; - uni.setStorageSync("lang", this.getLanguageList[e.detail.value].field); - this.$i18n.locale = this.getLanguageList[e.detail.value].field; - window.location.reload(); - }, + goUrl(item) { ban.agreementName().then((res) => { if (res.data == 0) { @@ -656,24 +650,7 @@ export default { url: "/pages/index/specialArea/index", }); }, - getLanguage() { - api.getLanguages().then((res) => { - if (res.code == 200) { - res.data.forEach((item, index) => { - if (item.field == uni.getStorageSync("lang")) { - this.index = index; - } - }); - if ( - uni.getStorageSync("lang") == undefined || - uni.getStorageSync("lang") == "undefined" - ) { - uni.setStorageSync("lang", "zh-CN"); - } - this.getLanguageList = res.data; - } - }); - }, + }, }; diff --git a/pages/login/index.vue b/pages/login/index.vue index d0f70bb..6f4e897 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -1,21 +1,6 @@