初始化
parent
4a699d11e5
commit
fe40961ec5
|
@ -1,5 +1,18 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
export function updbyid(data) {
|
||||
return request({
|
||||
url: '/market/apitype/standing/'+data,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
export function standing(data) {
|
||||
return request({
|
||||
url: '/market/apitype/standing',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export function getAirQuality(query,query2) {
|
||||
return request({
|
||||
url: '/market/apitype/third/'+query+"/"+query2,
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
|
||||
<div class="right-menu">
|
||||
<template v-if="device!=='mobile'">
|
||||
<el-tooltip content="实名认证" effect="dark" placement="bottom">
|
||||
<el-button id="notice" icon="el-icon-user-solid " class="right-menu-item hover-effect" @click="dialogFormVisible=true" style="border: 0" />
|
||||
</el-tooltip>
|
||||
|
||||
<el-tooltip content="通知" effect="dark" placement="bottom">
|
||||
<el-button id="notice" icon="el-icon-message " class="right-menu-item hover-effect" @click="selNotice" style="border: 0" />
|
||||
</el-tooltip>
|
||||
|
@ -21,6 +25,22 @@
|
|||
|
||||
</template>
|
||||
|
||||
<el-dialog title="实名认证" :visible.sync="dialogFormVisible">
|
||||
<el-form :model="standing">
|
||||
<el-form-item label="姓名">
|
||||
<el-input v-model="standing.realname" autocomplete="off"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证">
|
||||
<el-input v-model="standing.idcard" autocomplete="off"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="authentication">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
|
||||
<div class="avatar-wrapper">
|
||||
<img :src="avatar" class="user-avatar">
|
||||
|
@ -157,10 +177,13 @@ import Screenfull from '@/components/Screenfull'
|
|||
import SizeSelect from '@/components/SizeSelect'
|
||||
import Search from '@/components/HeaderSearch'
|
||||
import { findNoticeByNoticeId, findNoticeByNoticeIdAndUserId, listNoticeByUserId } from '../../api/system/notice'
|
||||
import {standing, updbyid} from "../../api/market/apitype";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
standing:{},
|
||||
dialogFormVisible:false,
|
||||
drawer: false,
|
||||
// 阅读状态 默认为空(全部)
|
||||
readingStatu: '',
|
||||
|
@ -215,6 +238,15 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
authentication(){
|
||||
standing(this.standing).then(res=>{
|
||||
console.log(res.result.res)
|
||||
updbyid(res.result.res).then(res=>{
|
||||
console.log(res)
|
||||
location.reload()
|
||||
})
|
||||
})
|
||||
},
|
||||
findNoticeByNoticeIdAndSta(noticeId,sta) {
|
||||
findNoticeByNoticeIdAndUserId({ noticeId: noticeId, sta: sta }).then(res => {
|
||||
this.noticeData = res.data
|
||||
|
|
|
@ -179,6 +179,7 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
|
||||
dialogTableVisible:false,
|
||||
dialogVisible:false,
|
||||
all:"全部类型",
|
||||
|
|
Loading…
Reference in New Issue