💊 fix: 修复bug
This commit is contained in:
parent
56cae53fdd
commit
b9e13fbcb7
|
@ -42,14 +42,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<div>
|
<div v-show="ysf.available!==9">
|
||||||
<p class="form-label">云闪付账号</p>
|
<p class="form-label">云闪付账号</p>
|
||||||
<input class="form-input" maxlength="11" v-model="account" type="text" placeholder="请输入手机号" />
|
<input class="form-input" maxlength="11" v-model="account" type="text" placeholder="请输入手机号" />
|
||||||
<input class="form-input mt0" maxlength="11" v-model="confirmAccount" type="text"
|
<input class="form-input mt0" maxlength="11" v-model="confirmAccount" type="text"
|
||||||
placeholder="请再次输入手机号" />
|
placeholder="请再次输入手机号" />
|
||||||
<p class="form-note">您可在云闪付的个人信息中查看【云闪付账号】</p>
|
<p class="form-note">您可在云闪付的个人信息中查看【云闪付账号】</p>
|
||||||
</div>
|
</div>
|
||||||
<button :class="ysf.available!==1?'disable':''" class="form-button" @click="submit">立即领取</button>
|
<button :class="ysf.available!==1?'disable':''" class="form-button"
|
||||||
|
@click="submit">{{ysf.available===9?'已领取':'立即领取'}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="segmentation">
|
<div class="segmentation">
|
||||||
<i class="left"></i>
|
<i class="left"></i>
|
||||||
|
@ -128,7 +129,7 @@
|
||||||
this.isMini = /miniProgram/i.test(ua);
|
this.isMini = /miniProgram/i.test(ua);
|
||||||
|
|
||||||
/* 初始弹窗 */
|
/* 初始弹窗 */
|
||||||
if (this.ysf.available != 1) {
|
if ([1, 9].includes(ysf.available)) {
|
||||||
this.is = true;
|
this.is = true;
|
||||||
this.tip(product_status(this.ysf.available, this.ysf), 2);
|
this.tip(product_status(this.ysf.available, this.ysf), 2);
|
||||||
}
|
}
|
||||||
|
@ -190,8 +191,9 @@
|
||||||
req.axiosPost("/voucher/grant", params)
|
req.axiosPost("/voucher/grant", params)
|
||||||
.then(({ code, message }) => {
|
.then(({ code, message }) => {
|
||||||
if (code === 200) {
|
if (code === 200) {
|
||||||
this.tip('领取成功,请前往【云闪付】-【卡包】中查看', 1);
|
this.is = false;
|
||||||
this.ysf.available = 9;
|
this.ysf.available = 9;
|
||||||
|
this.tip('领取成功,请前往【云闪付】-【卡包】中查看', 1);
|
||||||
} else {
|
} else {
|
||||||
this.axiosErrorFun(code, message, 2);
|
this.axiosErrorFun(code, message, 2);
|
||||||
}
|
}
|
||||||
|
@ -219,6 +221,7 @@
|
||||||
|
|
||||||
/* 接口异常处理 */
|
/* 接口异常处理 */
|
||||||
axiosErrorFun (code, message, status) {
|
axiosErrorFun (code, message, status) {
|
||||||
|
this.is = false;
|
||||||
if (code == 403) {
|
if (code == 403) {
|
||||||
if (this.backAble) {
|
if (this.backAble) {
|
||||||
this.tip(message, status);
|
this.tip(message, status);
|
||||||
|
|
Loading…
Reference in New Issue