格式化代码

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