|
|
@ -401,27 +401,54 @@ |
|
|
|
// console.log('=======', res) |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
// 如果用户已经登陆 |
|
|
|
|
|
|
|
console.log('options.sportCategoryName', options.sportCategoryName) |
|
|
|
console.log('options.sportCategorySid', options.sportCategorySid) |
|
|
|
// 活动类型赋值 |
|
|
|
this.data.sportCategoryName = options.sportCategoryName // 活动类型名称 |
|
|
|
this.data.sportCategorySid = options.sportCategorySid // 活动类型sid |
|
|
|
|
|
|
|
// 控件赋值 |
|
|
|
this.page.cancelEnrollRefundDesc = this.control.listCancelEnrollRefund[1] |
|
|
|
this.page.inviteTypeDesc = this.control.listInviteType[0] |
|
|
|
this.setEnrollRequiredName() |
|
|
|
// this.data.disclaimer = options.disclaimer // 默认免责声明 |
|
|
|
// 设定默认值 |
|
|
|
// 联系人 |
|
|
|
|
|
|
|
// 判断是否登陆 |
|
|
|
let _this = this |
|
|
|
if (!_this.isLogin){ |
|
|
|
this.WxAuthLogin() |
|
|
|
} |
|
|
|
|
|
|
|
_this.data.sysUserSid = getApp().globalData.sysUserSid |
|
|
|
|
|
|
|
_this.HTTP({ |
|
|
|
url: 'aos/v1/aosUser/getRealInfoBySysUserSid/' + _this.data.sysUserSid, |
|
|
|
method: 'GET', |
|
|
|
paramsType: "FORM", |
|
|
|
loading: true |
|
|
|
}).then((res) => { |
|
|
|
_this.data.linkerName=res.data.realName // 联系人姓名 |
|
|
|
console.log('联系人姓名', _this.data.linkerName) |
|
|
|
}) |
|
|
|
|
|
|
|
this.data.linkerPhone=res.data.linkerPhone // 联系人电话 |
|
|
|
|
|
|
|
|
|
|
|
console.log('联系人电话', this.data.linkerPhone) |
|
|
|
// 免责条款 |
|
|
|
_this.HTTP({ |
|
|
|
url: 'aos/v1/sportCategory/getSportCategory/' + this.data.sportCategorySid, |
|
|
|
method: 'GET', |
|
|
|
paramsType: "FORM", |
|
|
|
loading: true |
|
|
|
}).then((res) => { |
|
|
|
this.data.disclaimer = res.data.disclaimerTemplate |
|
|
|
// console.log('=============================================================',_this.disclaimerTemplate) |
|
|
|
this.data.disclaimer = res.data.disclaimerTemplate |
|
|
|
}) |
|
|
|
|
|
|
|
// 控件赋值 |
|
|
|
this.page.cancelEnrollRefundDesc = this.control.listCancelEnrollRefund[1] |
|
|
|
this.page.inviteTypeDesc = this.control.listInviteType[0] |
|
|
|
|
|
|
|
this.setEnrollRequiredName() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|