Commit d212f7d6 authored by 肖健's avatar 肖健

图形验证码逻辑修复

parent d5eeefbf
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<view class="love_car_list"> <view class="love_car_list">
<view class="love_title"> <view class="love_title">
输入图形验证码 输入图形验证码
<text @click.stop="inputCodeShow = false">x</text> <text @click.stop="inputCodeShow = false; verifyInfo.vi = null;verifyInfo.vc = null;">x</text>
</view> </view>
<view style="width: 600rpx; margin: 0 auto;"> <view style="width: 600rpx; margin: 0 auto;">
<u--form labelPosition="left" errorType="toast" :labelStyle="{'fontSize': '30rpx'}" labelWidth="150rpx" :model="verifyInfo" :rules="verifyRules" ref="form2"> <u--form labelPosition="left" errorType="toast" :labelStyle="{'fontSize': '30rpx'}" labelWidth="150rpx" :model="verifyInfo" :rules="verifyRules" ref="form2">
...@@ -171,8 +171,10 @@ ...@@ -171,8 +171,10 @@
<view style="text-align: center;margin-top: 30rpx;"> <view style="text-align: center;margin-top: 30rpx;">
<text style="color:#620F0F;font-size: 36rpx;line-height: 36rpx;font-weight: 500;">温馨提示</text> <text style="color:#620F0F;font-size: 36rpx;line-height: 36rpx;font-weight: 500;">温馨提示</text>
</view> </view>
<view style="margin: 23rpx auto 0 auto;width:380rpx;text-align: center;"> <view style="margin: 23rpx auto 0 auto;width:380rpx;" v-if="alreadyMsg">
<text style="font-weight: 400;color: #620F0F;font-size: 24rpx;">{{ alreadyMsg}}</text> <text style="font-weight: 400;color: #620F0F;font-size: 24rpx;" space="emsp" :decode="true">
{{ alreadyMsg.replace(/\\n/g,'\n').replaceAll('&amp;', '&')}}
</text>
</view> </view>
<view style="position: absolute; bottom: 52rpx; width: 100%;"> <view style="position: absolute; bottom: 52rpx; width: 100%;">
<view @click="closeReceivedFail" style="margin:0 auto;width: 398rpx; height: 108rpx;background: url('http://jdnc-oss.uzosp.com/2023/01/11/95802c8a6b594f648b826a93bf83d2c2.png') no-repeat; background-size: 100% 100%;"> <view @click="closeReceivedFail" style="margin:0 auto;width: 398rpx; height: 108rpx;background: url('http://jdnc-oss.uzosp.com/2023/01/11/95802c8a6b594f648b826a93bf83d2c2.png') no-repeat; background-size: 100% 100%;">
...@@ -357,7 +359,7 @@ export default { ...@@ -357,7 +359,7 @@ export default {
return return
} }
if (that.$refs.uCode.canGetCode) { if (that.$refs.uCode.canGetCode) {
that.checkCaptchaInfo() that.checkCaptchaInfo(true)
} else { } else {
//uni.$u.toast('倒计时结束后再发送'); //uni.$u.toast('倒计时结束后再发送');
} }
...@@ -450,11 +452,11 @@ export default { ...@@ -450,11 +452,11 @@ export default {
} else { } else {
that.disabledSubmit = false that.disabledSubmit = false
} }
that.alreadyMsg = res.alreadyMsg.replace(/\n/g, ' \n') that.alreadyMsg = res.alreadyMsg
}) })
}, },
//活动检查手机信息 //活动检查手机信息
async checkCaptchaInfo() { async checkCaptchaInfo(show) {
let that = this let that = this
await that.$http.request({ await that.$http.request({
url:'/app/move/activity/c/m', url:'/app/move/activity/c/m',
...@@ -466,7 +468,9 @@ export default { ...@@ -466,7 +468,9 @@ export default {
//为true的时候加载图形验证码 //为true的时候加载图形验证码
if(that.captcha) { if(that.captcha) {
that.getCaptchaImage() that.getCaptchaImage()
if(show) {
this.inputCodeShow = true this.inputCodeShow = true
}
} else { } else {
that.sendSmsCode() that.sendSmsCode()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment