格式化代码

This commit is contained in:
wangsongsole 2022-09-26 09:45:20 +08:00
parent c06a284a82
commit d91d240374
1 changed files with 13 additions and 12 deletions

View File

@ -67,9 +67,10 @@
<input class="code" :maxlength="6" v-if="[1,8].includes(pageType)" :style={color:ftcolor?ftcolor:'#333'}
placeholder="请输入验证码" v-model="code" />
<img src="#" alt="" class="codeimg" v-if="[3,4].includes(pageType)" id="captcha_img" @click="captchaimg()" />
<button class="codeimg" :class="disabled?'disabledstyle':'active'" v-if="[1,8].includes(pageType)" @click="getcode()"
:disabled="disabled">{{codetip}}</button>
<img src="#" alt="" class="codeimg" v-if="[3,4].includes(pageType)" id="captcha_img"
@click="captchaimg()" />
<button class="codeimg" :class="disabled?'disabledstyle':'active'" v-if="[1,8].includes(pageType)"
@click="getcode()" :disabled="disabled">{{codetip}}</button>
<div class="submit" @click="submit"></div>
</div>
<div class="bottom" id="bottom">
@ -102,12 +103,12 @@
plan_id: '',
maskshow: false,
disabledBtn: false,
typeList:{//1 白名单 3 兑换码 4优惠券 8 优惠券白名单
'1':'access_conf',
'3':'exchange',
'4':'coupon',
'8':'coupon',
}
typeList: {//1 白名单 3 兑换码 4优惠券 8 优惠券白名单
'1': 'access_conf',
'3': 'exchange',
'4': 'coupon',
'8': 'coupon',
}
}
},
created () {
@ -164,7 +165,7 @@
}
}).catch(err => { });
} else {
let keyName=this.typeList[this.pageType];
let keyName = this.typeList[this.pageType];
self.bgcolor = res.data[keyName].land.bg_color;
self.ftcolor = res.data[keyName].land.font_color;
self.topImg = res.data[keyName].land.top_image;
@ -303,8 +304,8 @@
self.openErrorDialog(res.data.message);
}
}).catch(err => { });
}else {//优惠券
window.location.href='./couponCollection.html'
} else {//优惠券
window.location.href = './couponCollection.html'
}
},
getQueryString (name) {