From c35c15985ca56cc672cd70f3dfe3b07cf8aa21ff Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Mon, 18 Jan 2021 16:32:22 +0800 Subject: [PATCH] no message --- pages/api/user.js | 4 +++- pages/api/ztb.js | 2 -- pages/bank/create/index.js | 4 ++-- pages/bank/password/index.js | 1 - pages/home/mobile/index.js | 6 ++---- pages/withdrawal/checkout/index.js | 4 +--- 6 files changed, 8 insertions(+), 13 deletions(-) diff --git a/pages/api/user.js b/pages/api/user.js index e831143..9597233 100644 --- a/pages/api/user.js +++ b/pages/api/user.js @@ -18,6 +18,7 @@ const loginCaptcha = (params) => mPost(`/uec/authorize/by-captcha`, params, conf const loginPwd = (params) => mPost(`/uec/authorize/by-password`, params, config) const postCaptcha = (params) => mPost(`/uec/get/auth-captcha`, params, config) const setPassword = (params) => mPost(`/uec/user/set/sign-in-password`, params, config) +const modifyMobile = (params) => mPost(`/uec/user/modify/mobile`, params, config) const getUserInfo = (params) => mGet('/uec/get/user-info', params, config) const updateUserInfo = (params) => mPost('/uec/user/update/user-info', params, config) const getAuthSession = () => mGet('/uec/create/identity-auth-session', null, config) @@ -194,5 +195,6 @@ export { certificateIdentity, phoneWechat, loginWechat, - setPassword + setPassword, + modifyMobile } \ No newline at end of file diff --git a/pages/api/ztb.js b/pages/api/ztb.js index 3605fc4..9d3c3af 100644 --- a/pages/api/ztb.js +++ b/pages/api/ztb.js @@ -90,7 +90,6 @@ const getAddressList = () => mGet(`/recycle-service/get/shipping-address-list`, const getBillList = () => mGet(`/recycle-service/get/bill-list`, null, zconfig) const getBillDetail = (id) => mGet(`/recycle-service/get/bill-detail/${id}`, null, zconfig) const sendCaptcha = (params) => mPost(`/recycle-service/send/captcha`, params, zconfig) -const modifyMobile = (params) => mPost(`/recycle-service/user/modify/mobile`, params, zconfig) const getMessageList = (params) => mGet(`/message-center/message/get/message-list`, params, zconfig) const getNotificationList = (params) => mGet(`/message-center/message/get/notification-list`, params, zconfig) @@ -184,7 +183,6 @@ export { getBillList, getBillDetail, sendCaptcha, - modifyMobile, getMessageList, getNotificationList, readMessage, diff --git a/pages/bank/create/index.js b/pages/bank/create/index.js index 42e9ba1..39fe667 100644 --- a/pages/bank/create/index.js +++ b/pages/bank/create/index.js @@ -1,6 +1,6 @@ // pages/bank/edit/index.js import { getBankcardInfo, ocrBankcard, verifyBankcard } from "../../api/payment" -import { sendCaptcha } from "../../api/ztb" +import { postCaptcha } from "../../api/user" const util = require('../../../utils/util') import { $wuxCountDown } from '../../../components/index' const app = getApp() @@ -113,7 +113,7 @@ Page({ } this.data.form.cardNo = this.data.form.cardNo.replace(/\s+/g, '') wx.showLoading({ title: '处理中', mask: true }) - sendCaptcha({ account: this.data.form.phone, accountType: 'MOBILE', purpose: 'RECYCLE_CLIENT_BIND_BANK_CARD' }).then(result => { + postCaptcha({ verifiableAccount: this.data.form.phone, verifiableAccountType: 1, purpose: 4 }).then(result => { wx.hideLoading() this.setData({ codeEnable: false }) util.showToast('验证码已经发送') diff --git a/pages/bank/password/index.js b/pages/bank/password/index.js index 5180b98..71f0b4a 100644 --- a/pages/bank/password/index.js +++ b/pages/bank/password/index.js @@ -30,7 +30,6 @@ Page({ } if (this.second && this.second.interval) return !1 wx.showLoading({ title: '正在获取', mask: true }) - // /login/h5/mobile/send_sms_code 发送验证码 sendCaptcha({ account: this.data.form.mobile, accountType: 'MOBILE', purpose: 'RECYCLE_CLIENT_UPDATE_PAY_PASSWORD' }).then(result => { wx.hideLoading() this.setData({ codeEnable: false }) diff --git a/pages/home/mobile/index.js b/pages/home/mobile/index.js index 88cf37c..baae0ed 100644 --- a/pages/home/mobile/index.js +++ b/pages/home/mobile/index.js @@ -1,7 +1,6 @@ // pages/home/password/index.js -import { sendCaptcha } from "../../api/ztb" import { $wuxCountDown } from '../../../components/index' -import { modifyMobile } from '../../api/ztb' +import { postCaptcha, modifyMobile } from '../../api/user' const util = require('../../../utils/util') const app = getApp() @@ -62,8 +61,7 @@ Page({ } if (this.second && this.second.interval) return !1 wx.showLoading({ title: '正在获取', mask: true }) - // /login/h5/mobile/send_sms_code 发送验证码 - sendCaptcha({ account: this.data.form.newMobile, accountType: 'MOBILE', purpose: 'RECYCLE_CLIENT_UPDATE_MOBILE' }).then(result => { + postCaptcha({ verifiableAccount: this.data.form.newMobile, verifiableAccountType: 1, purpose: 3 }).then(result => { wx.hideLoading() this.setData({ codeEnable: false }) util.showToast('验证码已经发送') diff --git a/pages/withdrawal/checkout/index.js b/pages/withdrawal/checkout/index.js index fdae059..cb12545 100644 --- a/pages/withdrawal/checkout/index.js +++ b/pages/withdrawal/checkout/index.js @@ -118,9 +118,7 @@ Page({ return true }, onForget(type) { - wx.navigateTo({ - url: '/pages/bank/password/index' - }) + wx.navigateTo({ url: '/pages/bank/password/index' }) } }) } else if (this.data.isSetPwd == -1) {