Compare commits

..

2 Commits

2 changed files with 25 additions and 5 deletions

View File

@ -94,7 +94,7 @@
<view style="padding-top: 40rpx;">
<view style="display: flex;align-items: center;justify-content: space-between;">
<view>
<view style="font-size: 28rpx;color: #323232;">{{ item.name }}</view>
<view style="font-size: 28rpx;color: #323232;">{{ item.name }} {{item.mobile}}</view>
<view style="color: #9C9C9C;font-size: 24rpx;margin-top: 10rpx;">身份证 {{ item.idnum }}
</view>
</view>

View File

@ -38,7 +38,7 @@
</view>
<view style="width: 75%;">
<input :cursor-spacing="300" type="text" placeholder="请填写真实姓名" class="input"
v-model="form.name" />
v-model="form.name" @confirm="checkFormValidity"/>
</view>
</view>
<view style="height: 1px;background-color: #eeeeee;width: 100%;margin-top: 20rpx;"></view>
@ -48,7 +48,7 @@
</view>
<view style="width: 75%;">
<input :cursor-spacing="300" type="idcard" placeholder="请填写身份证号" class="input"
v-model="form.idnum" />
v-model="form.idnum" @confirm="checkFormValidity"/>
</view>
</view>
<view style="height: 1px;background-color: #eeeeee;width: 100%;"></view>
@ -58,7 +58,7 @@
</view>
<view style="width: 75%;">
<input :cursor-spacing="300" type="number" placeholder="请填写手机号" class="input"
v-model="form.mobile" />
v-model="form.mobile" @confirm="checkFormValidity"/>
</view>
</view>
<view style="height: 1px;background-color: #eeeeee;width: 100%;"></view>
@ -79,7 +79,7 @@
</view>
</view>
<view style="margin-top: 40rpx;">
<view class="btn_1" @click="save" v-if="form.name != '' && form.idnum != '' && form.mobile != ''">确认
<view class="btn_1" v-if="btnShow == true" @click="save">确认
</view>
<view class="btn_3" v-else @click="unSave">确认</view>
</view>
@ -92,6 +92,7 @@
data() {
return {
privacyShow: false,
btnShow: false,
show: false,
form: {
name: '',
@ -101,18 +102,37 @@
isAdd: 1,
list: []
}
},
watch() {
},
onLoad() {
this.getList()
},
methods: {
checkFormValidity() {
console.log('checkFormValidity?',this.form);
if(this.form.name.length > 0 && this.form.idnum.length > 0 && this.form.mobile.length > 0 ) {
console.log('true?');
this.btnShow = true;
}
console.log('btnShow', this.btnShow);
},
edit(item) {
console.log('修改报名人',item);
this.isAdd = 0;
this.form.name = item.name;
this.form.idnum = item.idnum;
this.form.ids = item.id;
this.form.mobile = item.mobile;
this.form.open = item.open;
this.show = true;
if(this.form.open == 0) {
this.privacyShow = true;
}else {
this.privacyShow = false;
}
this.checkFormValidity();
},
del(item) {
var that = this;