|
|
|
|
@ -350,41 +350,43 @@
|
|
|
|
|
this.form.type = (options.type == 'user' ? 2 : 1);
|
|
|
|
|
this.form.activity_id = parseInt(options.activity_id);
|
|
|
|
|
this.form.activity_number_id = parseInt(options.activity_number_id);
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.getStorage({
|
|
|
|
|
key: 'activityinfo',
|
|
|
|
|
success(res) {
|
|
|
|
|
that.list = res.data;
|
|
|
|
|
console.log(that.list)
|
|
|
|
|
for (var m of that.list.numbers) {
|
|
|
|
|
if (that.form.activity_number_id == m.id) {
|
|
|
|
|
that.numberlist = m
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log(that.numberlist)
|
|
|
|
|
if (that.form.type == 2) {
|
|
|
|
|
that.form.total = 1
|
|
|
|
|
} else if (that.form.type == 1) {
|
|
|
|
|
that.form.total = 1;//res.data.team_min_count;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//先登录
|
|
|
|
|
that.util.getOpenidInfo(function(res) {
|
|
|
|
|
//手机号
|
|
|
|
|
that.util.getUserInfo(function(r) {
|
|
|
|
|
//如果手机号为空 需要先授权手机号
|
|
|
|
|
if (that.util.isNull(r.mobile)) {
|
|
|
|
|
that.showAuthorization = true;
|
|
|
|
|
} else {
|
|
|
|
|
that.showAuthorization = false;
|
|
|
|
|
that.form.mobile = r.mobile;
|
|
|
|
|
}
|
|
|
|
|
}, true);
|
|
|
|
|
that.loadCommonUser()
|
|
|
|
|
|
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onShow(){
|
|
|
|
|
var that = this;
|
|
|
|
|
that.numberlist={};
|
|
|
|
|
wx.getStorage({
|
|
|
|
|
key: 'activityinfo',
|
|
|
|
|
success(res) {
|
|
|
|
|
that.list = res.data;
|
|
|
|
|
for (var m of that.list.numbers) {
|
|
|
|
|
if (that.form.activity_number_id == m.id) {
|
|
|
|
|
that.numberlist = m
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (that.form.type == 2) {
|
|
|
|
|
that.form.total = 1
|
|
|
|
|
} else if (that.form.type == 1) {
|
|
|
|
|
that.form.total = 1;//res.data.team_min_count;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//先登录
|
|
|
|
|
that.util.getOpenidInfo(function(res) {
|
|
|
|
|
//手机号
|
|
|
|
|
that.util.getUserInfo(function(r) {
|
|
|
|
|
//如果手机号为空 需要先授权手机号
|
|
|
|
|
if (that.util.isNull(r.mobile)) {
|
|
|
|
|
that.showAuthorization = true;
|
|
|
|
|
} else {
|
|
|
|
|
that.showAuthorization = false;
|
|
|
|
|
that.form.mobile = r.mobile;
|
|
|
|
|
}
|
|
|
|
|
}, true);
|
|
|
|
|
that.loadCommonUser()
|
|
|
|
|
|
|
|
|
|
}, true);
|
|
|
|
|
},
|
|
|
|
|
onHide() {
|
|
|
|
|
clearInterval(this.t)
|
|
|
|
|
|