feat(login): 验证码相关逻辑验证,重置支付密码获取验证码更换接口
This commit is contained in:
parent
7d9d9e2bf3
commit
bbc69676e3
|
@ -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)
|
||||
|
||||
|
|
|
@ -50,9 +50,11 @@
|
|||
<u-form-item :label="'验证码'"
|
||||
label-width="80px"
|
||||
prop="code">
|
||||
<view style="display: flex; align-items: center; padding-right:10rpx;">
|
||||
<u-input v-model="emailObj.code"
|
||||
class="border-color width-s"
|
||||
class="border-color"
|
||||
:placeholder="'请输入验证码'"
|
||||
style="width: auto;"
|
||||
placeholder-class="place-class" />
|
||||
|
||||
<button :disabled="disabled"
|
||||
|
@ -60,7 +62,7 @@
|
|||
@click.stop="getCode()">
|
||||
{{getCodeText}}
|
||||
</button>
|
||||
|
||||
</view>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
</view>
|
||||
|
|
|
@ -137,7 +137,7 @@ export default {
|
|||
this.getYzm()
|
||||
},
|
||||
getYzm() {
|
||||
api.selfVerification().then(res => {
|
||||
api.resetPayPasswordVerification().then(res => {
|
||||
if (res.code == '200') {
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
<u-form-item label-width="200rpx" :label="'联系方式'" prop="phone" borderBottom ref="item1">
|
||||
<u--input v-model="dataForm.phone" :placeholder="'请输入'" maxlength="20" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<!-- <u-form-item v-if="userInfo.pkCountry==1&&cancode" label-width="200rpx" :label="'验证码'"
|
||||
<u-form-item v-if="userInfo.pkCountry==1&&cancode" label-width="200rpx" :label="'验证码'"
|
||||
prop="verificationCode" borderBottom ref="item1">
|
||||
<u--input v-model="dataForm.verificationCode" :placeholder="'请输入'" border="none"></u--input>
|
||||
<u-button @tap='getCode' class="getcodes" type="primary" shape="circle" :text="tips"
|
||||
color="#2FBC42"></u-button>
|
||||
</u-form-item> -->
|
||||
</u-form-item>
|
||||
|
||||
<u-code :seconds="seconds" @end="end" @start="start" ref="uCode" @change="codeChange"></u-code>
|
||||
<u-picker @cancel='showAmount=false' :show="showAmount" ref="uPicker" :columns="bankCardChioceList"
|
||||
|
@ -235,7 +235,7 @@
|
|||
.theform {
|
||||
margin-top: 6rpx;
|
||||
background: #FFFFFF;
|
||||
padding: 20rpx 23rpx 48rpx 23rpx;
|
||||
padding: 20rpx 23rpx 0rpx 23rpx;
|
||||
|
||||
.contentye {
|
||||
font-size: 28rpx;
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
>
|
||||
<u--input v-model="dataForm.phone" :placeholder="'请输入'"></u--input>
|
||||
</u-form-item>
|
||||
<!-- <u-form-item
|
||||
<u-form-item
|
||||
required
|
||||
label-width="180rpx"
|
||||
:label="'验证码'"
|
||||
|
@ -195,7 +195,8 @@
|
|||
<text style="color: #18acff" @tap="getCode">{{ tips }}</text>
|
||||
</template>
|
||||
</u--input>
|
||||
</u-form-item> -->
|
||||
</u-form-item>
|
||||
|
||||
|
||||
<u-code
|
||||
:seconds="seconds"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
</view>
|
||||
<view class="">
|
||||
<u-button shape="circle" color="#f93025" size="small" :text="'申请变更'"
|
||||
<u-button shape="circle" color="#005BAC" size="small" :text="'申请变更'"
|
||||
@click="updateDomicile(item)"></u-button>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
class="border-style">
|
||||
<view slot="title"
|
||||
class="u-slot-title">
|
||||
<text class="u-cell-text">{{'重置支付密码'}}</text>
|
||||
<text class="u-cell-text">重置支付密码</text>
|
||||
</view>
|
||||
</u-cell>
|
||||
<u-cell v-if="showFix == 1">
|
||||
|
@ -92,25 +92,9 @@ 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',
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
surePsw() {
|
||||
min
|
||||
|
|
Loading…
Reference in New Issue