登录校验
This commit is contained in:
@@ -2,9 +2,12 @@
|
|||||||
<div class="integralAdd">
|
<div class="integralAdd">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="left">事件类型</div>
|
<div class="left">事件类型</div>
|
||||||
<!-- <div class="right"> -->
|
<AiSelect class="right" dict="clapEventStatus" v-model="form.type"></AiSelect>
|
||||||
<AiSelect class="right" dict="clapEventStatus" v-model="form.type"></AiSelect>
|
</div>
|
||||||
<!-- </div> -->
|
<div class="items">
|
||||||
|
<p>详情描述</p>
|
||||||
|
<textarea v-model="form.content" :maxlength="300" placeholder="请输入详细描述..."></textarea>
|
||||||
|
<div class="tips">{{ form.content.length }}/300</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -17,6 +20,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
type: 0,
|
type: 0,
|
||||||
|
content: '',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -34,6 +38,8 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
padding: 24px 32px;
|
padding: 24px 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-top: 24px;
|
||||||
.left {
|
.left {
|
||||||
width: 250px;;
|
width: 250px;;
|
||||||
}
|
}
|
||||||
@@ -41,6 +47,37 @@ export default {
|
|||||||
width: calc(100% - 200px);
|
width: calc(100% - 200px);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
::v-deep .AiSelect {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.items {
|
||||||
|
width: 100%;
|
||||||
|
background: #FFF;
|
||||||
|
margin-top: 24px;
|
||||||
|
p {
|
||||||
|
padding: 24px 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1px solid #EEEEEE;
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
padding: 24px 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
::v-deep .el-textarea__inner::placeholder {
|
||||||
|
color: #f56c6c;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tips {
|
||||||
|
padding: 12px 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
text-align: right;
|
||||||
|
color: #999999;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -343,7 +343,24 @@ export default {
|
|||||||
getAuth() {
|
getAuth() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.token && this.getUserInfo('qujing')
|
this.token && this.getUserInfo('qujing')
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.toAuth()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
toAuth() {
|
||||||
|
if (!this.user.idNumber) {
|
||||||
|
this.$dialog.confirm({
|
||||||
|
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||||
|
confirmText: '去认证'
|
||||||
|
}).then(() => {
|
||||||
|
this.$linkTo('/pages/AppMine/userInfo')
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.getDetail()
|
||||||
|
this.showPages = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(o) {
|
onLoad(o) {
|
||||||
@@ -356,19 +373,9 @@ export default {
|
|||||||
});
|
});
|
||||||
if (!this.token) {
|
if (!this.token) {
|
||||||
this.$refs.login.show()
|
this.$refs.login.show()
|
||||||
}
|
|
||||||
if (!this.user.idNumber) {
|
|
||||||
this.$dialog.confirm({
|
|
||||||
content: '您只有完成信息认证后,才可进行相关操作。',
|
|
||||||
confirmText: '去认证'
|
|
||||||
}).then(() => {
|
|
||||||
this.$linkTo('/pages/AppMine/userInfo')
|
|
||||||
}).catch(() => {
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.getDetail()
|
this.toAuth()
|
||||||
this.showPages = true
|
}
|
||||||
}
|
|
||||||
this.qqmapsdk = new QQMapWX({
|
this.qqmapsdk = new QQMapWX({
|
||||||
key: process.env.NODE_ENV == 'production' ? 'RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S' : '3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY'
|
key: process.env.NODE_ENV == 'production' ? 'RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S' : '3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user