Compare commits

..

No commits in common. "5b6391c9ee9c2246cabbfb8f5961a64d4ef4b3ff" and "aa6d9a2c1b404fb8d0ce97834233a2657d000548" have entirely different histories.

2 changed files with 5 additions and 25 deletions

View File

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

View File

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