|
|
@@ -41,38 +41,38 @@
|
|
|
<van-cell-group :border="false">
|
|
|
<van-field
|
|
|
label="姓名"
|
|
|
- :value="form.nickname"
|
|
|
+ :value="newForm.nickname"
|
|
|
input-align="right"
|
|
|
@input="form.nickname = $event.detail"
|
|
|
- :readonly="activityId"
|
|
|
+ :readonly="!!activityId"
|
|
|
/>
|
|
|
<van-field label="称呼" :value="getSexName(form.sex)" input-align="right" readonly @click="chooseSex" />
|
|
|
<van-field
|
|
|
label="公司名称"
|
|
|
- :value="form.companyName"
|
|
|
+ :value="newForm.companyName"
|
|
|
input-align="right"
|
|
|
@input="form.companyName = $event.detail"
|
|
|
- :readonly="activityId"
|
|
|
+ :readonly="!!activityId"
|
|
|
/>
|
|
|
<van-field
|
|
|
label="职位"
|
|
|
- :value="form.position"
|
|
|
+ :value="newForm.position"
|
|
|
input-align="right"
|
|
|
@input="form.position = $event.detail"
|
|
|
- :readonly="activityId"
|
|
|
+ :readonly="!!activityId"
|
|
|
/>
|
|
|
<van-field
|
|
|
label="电话"
|
|
|
- :value="form.phone"
|
|
|
+ :value="newForm.phone"
|
|
|
input-align="right"
|
|
|
- :readonly="activityId"
|
|
|
+ :readonly="!!activityId"
|
|
|
@input="form.phone = $event.detail"
|
|
|
/>
|
|
|
<van-field
|
|
|
label="邮箱"
|
|
|
- :value="form.email"
|
|
|
+ :value="newForm.email"
|
|
|
input-align="right"
|
|
|
- :readonly="activityId"
|
|
|
+ :readonly="!!activityId"
|
|
|
@input="form.email = $event.detail"
|
|
|
/>
|
|
|
</van-cell-group>
|
|
|
@@ -104,7 +104,15 @@ export default {
|
|
|
return {
|
|
|
information: {},
|
|
|
chooseSession: '',
|
|
|
- form: {},
|
|
|
+ form: {
|
|
|
+ nickname: '',
|
|
|
+ companyName: '',
|
|
|
+ position: '',
|
|
|
+ sex: '',
|
|
|
+ phone: '',
|
|
|
+ email: ''
|
|
|
+ },
|
|
|
+ newForm: {},
|
|
|
activityId: 0
|
|
|
};
|
|
|
},
|
|
|
@@ -137,6 +145,7 @@ export default {
|
|
|
this.$http.get('/eventRegistration/get/' + options.activityId).then(res => {
|
|
|
this.information = res.information;
|
|
|
this.form = { ...res };
|
|
|
+ this.newForm = { ...this.form };
|
|
|
});
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: '报名表信息'
|
|
|
@@ -222,6 +231,7 @@ export default {
|
|
|
informationId: this.informationId,
|
|
|
session: this.getList(this.information.session)
|
|
|
};
|
|
|
+ this.newForm = { ...this.form };
|
|
|
}
|
|
|
},
|
|
|
getSexName(sex) {
|