Browse Source

no message

featrue/v4.1
xpz2018 5 years ago
parent
commit
c35c15985c
6 changed files with 8 additions and 13 deletions
  1. 4
      pages/api/user.js
  2. 2
      pages/api/ztb.js
  3. 4
      pages/bank/create/index.js
  4. 1
      pages/bank/password/index.js
  5. 6
      pages/home/mobile/index.js
  6. 4
      pages/withdrawal/checkout/index.js

4
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
}

2
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,

4
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('验证码已经发送')

1
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 })

6
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('验证码已经发送')

4
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) {

Loading…
Cancel
Save