Commit bd07be1e authored by limeimei's avatar limeimei

2

parent 1da095f3
......@@ -5,7 +5,7 @@
<div class="return_btn"><el-button v-show="this.type==0" @click="toBack">返回上一步</el-button></div>
<div class="card_left_c" @click="openCamera">
<img src="@/assets/head.png" alt="" class="card_left_img2" v-if="imgSrc!=''">
<img :src="imgSrc" alt="" class="card_left_img2" v-if="imgSrc!=''">
<img src="@/assets/visitor/camera.png" alt="" class="card_left_img" v-else>
</div>
<div class="card_item"><span class="card_item_span">姓名:</span>
......@@ -18,7 +18,7 @@
<el-input v-model="vform.idnumber"></el-input>
</div>
<div class="card_item"><span class="card_item_span">来访事由:</span>
<el-select v-model="vform.name" width="360px">
<el-select v-model="vform.aaa" width="360px">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
......@@ -55,8 +55,11 @@
created() {
if (this.$route.params.imgSrc)
this.imgSrc = this.$route.params.imgSrc
if (this.$route.params.imgSrc) {
this.imgSrc = this.$route.params.imgSrc;
this.vform = { name: "陈雨", cname: "", num: "1", aaa: 0, phone: "134147112585", idnumber: "440514200004510028" }
}
if (this.$route.params.vform) {
this.vform = JSON.parse(this.$route.params.vform)
}
......
......@@ -5,20 +5,20 @@
<div class="return_btn"><el-button v-show="this.type==0" @click="toBack">返回上一步</el-button></div>
<div class="card_left_c">
<img :src="imgSrc" alt="" class="card_left_img" v-if="imgSrc!=''">
<img src="@/assets/head.png" alt="" class="card_left_img" v-else>
<!-- <img :src="imgSrc" alt="" class="card_left_img" v-if="imgSrc!=''"> -->
<img src="@/assets/head.png" alt="" class="card_left_img">
</div>
<div class="card_item"><span class="card_item_span">姓名:</span>
<el-input v-model="vform.name"></el-input>
<el-input value="陈雨"></el-input>
</div>
<div class="card_item"><span class="card_item_span">手机号:</span>
<el-input v-model="vform.name" placeholder="必填"></el-input>
<el-input v-model="vform.phone" placeholder="必填"></el-input>
</div>
<div class="card_item"><span class="card_item_span">身份证号:</span>
<el-input v-model="vform.name"></el-input>
<el-input value="440514200006230010"></el-input>
</div>
<div class="card_item"><span class="card_item_span">来访事由:</span>
<el-select v-model="vform.name" width="360px">
<el-select value="面试" width="360px">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
......@@ -28,10 +28,10 @@
<div class="card_center"></div>
<div class="card_right">
<div class="card_item"><span class="card_item_span">公司名称:</span>
<el-input v-model="vform.name" placeholder="必填"></el-input>
<el-input value="广州思想有限公司" placeholder="必填"></el-input>
</div>
<div class="card_item"><span class="card_item_span">到访人数:</span>
<el-input v-model="vform.name" placeholder="必填"></el-input>
<el-input value="1" placeholder="必填"></el-input>
</div>
<div class="card_item_next"><el-button type="primary" @click="toNext">下一步</el-button></div>
......@@ -54,9 +54,10 @@
created() {
if (this.$route.params.vform)
this.vform = JSON.parse(this.$route.params.vform)
if (this.$route.params.phone)
this.vform.phone = this.$route.params.phone
this.type = this.$route.params.type;
},
methods: {
toBack() {
......
......@@ -54,7 +54,7 @@
},
comfirm() {
this.$router.push({ name: "disreserve2", params: { title: '访客信息', type: 0 } });
this.$router.push({ name: "disreserve2", params: { title: '访客信息', type: 0, phone: this.phone } });
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment