扫码报名的测试

This commit is contained in:
fengachen
2021-10-26 20:00:20 +08:00
parent 872b55e7bc
commit cf9dc355f9
4 changed files with 19 additions and 15 deletions
+7 -7
View File
@@ -168,7 +168,7 @@ Page({
})
return
}
// 邮寄联系人
// 邮寄联系人
if (formData.postContactId === undefined) {
wx.showToast({
title: '请选择邮寄联系人',
@@ -186,7 +186,7 @@ Page({
})
return
}
// 邮编
// 邮编
if (formData.postCode === '') {
wx.showToast({
title: '请输入邮编',
@@ -271,7 +271,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
indexMsg: options.type,
})
@@ -279,12 +279,12 @@ Page({
// selectedCompany:JSON.parse(options.company)
// })
const that = this
// 是否是从首页消息进来的报名
// 是否是从首页消息进来的报名
if (options.type === 'indexMsg') {
this.setData({
indexMsgBool:true
})
// 查询会议信息
// 查询会议信息
this.queryMeetingInfo(options.meetingId)
// 默认填写个人信息
// 从缓存中拿个人信息
@@ -308,7 +308,7 @@ Page({
}
},
// 手机号验证
// 手机号验证
validatePhone(e) {
console.log(e);
let value = e.detail.value
@@ -391,7 +391,7 @@ Page({
onShow: function () {
const that = this
console.log(this.data.type ,'this.data.type ');
// 是否是从首页消息进来的报名
// 是否是从首页消息进来的报名
if (this.data.type === 'indexMsg') {
// 默认填写个人信息
// 从缓存中拿个人信息
+1 -1
View File
@@ -5,7 +5,7 @@
<!-- 如果是小程序消息进入的报名页面 需要回显企业与参会人 参会企业不可更改 -->
<view class="form-item">
<text class="item-label flex-1">参会单位:</text>
<input placeholder-class="text-right" disabled="{{indexMsgBool}}" bindfocus="selectCompany" name="selectedCompany.companyName" bindinput="bindInputPhone" value="{{selectedCompany.companyName}}" placeholder="请选择参会单位" />
<input placeholder-class="text-right" bindfocus="selectCompany" name="selectedCompany.companyName" bindinput="bindInputPhone" value="{{selectedCompany.companyName}}" placeholder="请选择参会单位" />
</view>
<view class="form-item">