提交 73730199 编写于 作者: huangwensu's avatar huangwensu

首页弹框token问题

上级 6bc84dc4
......@@ -150,12 +150,9 @@ export default {
}
getNewActivityDesc({ id: req.id, token: req.token }).then(res => {
if(res.code == '000000') {
// if(res.data.loginStatus == 2) { // 未登录 或者token失效
// cookies.remove('token');
// this.tokenFlag = false;
// }else {
// this.tokenFlag = true;
// }
if(res.data.loginStatus == 2) { // 未登录 或者token失效
delCookie('token');
}
this.taskList = res.data.taskRuleData;
for(let i = 0; i < this.taskList.length; i++) {
// if(this.taskList[i].resourceType == 7 && this.taskList[i].resourceId == 2) {
......
<template>
<div class="point-container">
<img class="bg-img" src="../../static/images/background.png"/>
<div class="info-text">
<img :src="avatarl" />
<p class="info-name">{{name}}邀请您助力 为他点赞</p>
......@@ -7,22 +8,22 @@
</div>
<div class="form-info">
<div class="field-wrap">
<label>联系方式</label>
<input v-model="mobilePhone" type="tel" maxlength="11" placeholder="请输入手机号">
<label for="tel">联系方式</label>
<input id="tel" v-model="mobilePhone" type="tel" maxlength="11" placeholder="请输入手机号">
</div>
<div class="field-wrap">
<label>图形验证码</label>
<input v-model="captchaAnswer" type="text" maxlength="6" placeholder="请输入">
<label for="captcha">图形验证码</label>
<input id="captcha" v-model="captchaAnswer" type="text" maxlength="6" placeholder="请输入">
<div class="cap-box"><img :src="captchaImg" @click="getCaptcha"></div>
</div>
<div class="field-wrap">
<label>短信验证码</label>
<input v-model="authCode" type="tel" maxlength="6" placeholder="请输入">
<label for="auth">短信验证码</label>
<input id="auth" v-model="authCode" type="tel" maxlength="6" placeholder="请输入">
<button v-if="notSend" @click="sendSms">{{btnMsg}}</button>
<van-count-down v-if="!notSend" :time="time" @finish="finishCount" :format="'ss' + 's'" />
</div>
<button class="btn-post" @click="gotoPoint" v-bp="{ component_tag: '361#360009'}">登录点赞 助力好友</button>
<loading v-if="loadingFlag" class="load-container"></loading>
<loading v-if="loadingFlag"></loading>
</div>
</div>
</template>
......@@ -193,15 +194,26 @@ export default {
</script>
<style lang="less" scoped>
.point-container {
// position: fixed;
// top: 0;
// left: 0;
// background-image: url('../../static/images/background.png');
// width: 100%;
// height: auto;
// min-height: 100%;
// background-size: 100% 100%;
.bg-img {
position: fixed;
top: 0;
left: 0;
background-image: url('../../static/images/background.png');
top: 0;
width: 100%;
height: auto;
min-height: 100%;
background-size: 100% 100%;
height: 100vh;
}
.info-text {
position: absolute;
left: 85px;
top: 0px;
padding: 30px 0;
text-align: center;
img {
......@@ -223,6 +235,9 @@ export default {
}
}
.form-info {
position: absolute;
left: 0px;
top: 180px;
padding: 15px;
margin: 0 15px;
height: 250px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册