|
@@ -1,14 +1,66 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <header class="mui-bar mui-bar-nav">
|
|
|
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
|
|
- <h1 class="mui-title">扫码通行</h1>
|
|
|
- </header>
|
|
|
- <div class="mui-content">
|
|
|
+ <common @asynCallBack="asynCallBack"></common>
|
|
|
+ <header class="mui-bar mui-bar-nav" v-if="step==2">
|
|
|
+ <h1 class="mui-title">扫码通行</h1>
|
|
|
+ <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" @click="back"></a>
|
|
|
+ </header>
|
|
|
+
|
|
|
+ <header class="mui-bar mui-bar-nav" v-if="step==1">
|
|
|
+ <h1 class="mui-title">访客信息登记</h1>
|
|
|
+ <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
|
|
+ </header>
|
|
|
+ <div class="mui-content margin60" v-if="step==2">
|
|
|
+ <div class="mui-content-padded vongi-editme vongi-qingjiadt">
|
|
|
+ <form class="mui-input-group">
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label>访客姓名<i class="colorfe616c">*</i></label>
|
|
|
+ <span>孙鹏</span>
|
|
|
+ </div>
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label style='width:40%'>访客手机号码<i class="colorfe616c">*</i></label>
|
|
|
+ <span style="width:60%">15599998888</span>
|
|
|
+ </div>
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label>身份证号<i class="colorfe616c">*</i></label>
|
|
|
+ <span>420400200001011010</span>
|
|
|
+ </div>
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label>访客单位<i class="colorfe616c">*</i></label>
|
|
|
+ <span>湖北荆盛商贸有限公司湖北荆盛商贸有限公司湖北荆盛商贸有限公司湖北荆盛商贸有限公司湖北荆盛商贸有限公司</span>
|
|
|
+ </div>
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label>车牌号</label>
|
|
|
+ <input type="text" class="mui-input-clear" placeholder="请填写车牌号">
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div class="mui-content-padded vongi-editme vongi-qingjiadt">
|
|
|
+ <form class="mui-input-group">
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label>受访人<i class="colorfe616c">*</i></label>
|
|
|
+ <span>孙鹏</span>
|
|
|
+ </div>
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label style='width:45%'>受访人手机号码<i class="colorfe616c">*</i></label>
|
|
|
+ <span style="width:55%">15599998888</span>
|
|
|
+ </div>
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <label>访问事由</label>
|
|
|
+ <input type="text" class="mui-input-clear" placeholder="请填写访问事由">
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="fyy-footer" v-if="step==1">
|
|
|
+ <div class="bindfyy-btn"><button type="submit" class="mui-btn mui-btn-primary ">下一步</button></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mui-content" v-if="step==2">
|
|
|
<div class="fyy-scon">
|
|
|
<div class="fyy-scon-top">
|
|
|
<div class="fyy-scon-head mui-col-xs-5">
|
|
|
- <img src="~$project/assets/img/zhaop2.png" alt="">
|
|
|
+ <img src="~$project/assets/img/default_photo.png" alt="">
|
|
|
</div>
|
|
|
<div class="fyy-scon-det mui-col-xs-7">
|
|
|
<div class="fyy-scon-det-top">
|
|
@@ -66,7 +118,7 @@
|
|
|
<!--<div class="examine-btn examine-btn3">灰色按钮</div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="vongi-popup">
|
|
|
+ <div class="vongi-popup" v-if="step==2">
|
|
|
<div class="vongi-popup-bg"></div>
|
|
|
<div class="vongi-popup-ceter">
|
|
|
<div class="vongi-popup-inner">
|
|
@@ -77,12 +129,84 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <loading :visible="isLoading"></loading>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+
|
|
|
+ import * as API_Current from '@/apis/Guest/current'
|
|
|
+ import Common from '$project/components/Common.vue'
|
|
|
+ import Loading from '$project/components/Loading.vue'
|
|
|
+ import TopHeader from '$project/components/TopHeader.vue'
|
|
|
+ import {
|
|
|
+ mapGetters,
|
|
|
+ mapMutations
|
|
|
+ } from 'vuex'
|
|
|
+ import {
|
|
|
+ currentTimeStamp,
|
|
|
+ parseUnixTime
|
|
|
+ } from '$project/utils'
|
|
|
+ export default {
|
|
|
+ name: 'GuestFromInfo',
|
|
|
+ components: {
|
|
|
+ Common,
|
|
|
+ Loading,
|
|
|
+ TopHeader
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ pageTitle: '扫码通行',
|
|
|
+ detail: {
|
|
|
+
|
|
|
+ },
|
|
|
+ step:'1',
|
|
|
+ isLoading: false,
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ back(){
|
|
|
+ this.step='1';
|
|
|
+ },
|
|
|
+ //获取详情
|
|
|
+ getDetail() {
|
|
|
+ this.isLoading = true;
|
|
|
+
|
|
|
+ API_Current.info(this.id ).then(response => {
|
|
|
+ this.isLoading = false;
|
|
|
+
|
|
|
+ this.detail = response.info;
|
|
|
+ this.list=response.list;
|
|
|
+ }).catch(error => {
|
|
|
+ this.isLoading = false;
|
|
|
+ mui.toast(error);
|
|
|
+ })
|
|
|
+ },asynCallBack(){},
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ //this.getDetail(this.openId);
|
|
|
+ },
|
|
|
+ destroyed() {
|
|
|
+
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ openId: 'wx_openid',
|
|
|
+ token: 'token',
|
|
|
+ person_data: 'person_data',
|
|
|
+ person_popedom: 'person_popedom',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
<style scoped src="$project/assets/css/xpwyfyy.css"></style>
|
|
|
<style src="$project/assets/css/iconfont.css"></style>
|
|
|
<style>
|