|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
loading = require('../../plugin/loading'),
|
|
|
tip = require('../../plugin/tip'),
|
...
|
...
|
@@ -21,13 +20,15 @@ inviteObj = { |
|
|
// 变量
|
|
|
inter: 0, // 定时器变量
|
|
|
ischeckCode: false, // 是否成功发送验证码
|
|
|
actId: $('.invite-group input[name="actId"]').val(), // 活动id
|
|
|
shareUid: $('.invite-group input[name="shareUid"]').val(), // 分享者id
|
|
|
openId: $('.invite-group input[name="openId"]').val(), // 微信openId
|
|
|
actId: $('.invite-group input[name="actId"]').val(), // 活动id
|
|
|
shareUid: $('.invite-group input[name="shareUid"]').val(), // 分享者id
|
|
|
openId: $('.invite-group input[name="openId"]').val(), // 微信openId
|
|
|
nums: $('.invite-group input[name="nums"]').val() // 发送优惠券的次数
|
|
|
},
|
|
|
init: function() {
|
|
|
var $el = this.el, that = this, isreceiveBtn = false;
|
|
|
var $el = this.el,
|
|
|
that = this,
|
|
|
isreceiveBtn = false;
|
|
|
|
|
|
// 设置大背景,因为body只能后来设置,前期设置page里面
|
|
|
if ($('.invite-page').length > 0) {
|
...
|
...
|
@@ -91,7 +92,7 @@ inviteObj = { |
|
|
|
|
|
// 下载app
|
|
|
$el.$downloadBtn.click(function() {
|
|
|
that.downLoadApp();
|
|
|
window.downLoadApp();
|
|
|
});
|
|
|
|
|
|
// 领取福利
|
...
|
...
|
@@ -109,7 +110,8 @@ inviteObj = { |
|
|
|
|
|
// 发送已注册用户参与活动的优惠券
|
|
|
ischeckOldUserCoupon: function(mobile) {
|
|
|
var that = this, $el = this.el;
|
|
|
var that = this,
|
|
|
$el = this.el;
|
|
|
|
|
|
$.ajax({
|
|
|
url: '/activity/invite/checkOldUserCoupon',
|
...
|
...
|
@@ -317,15 +319,6 @@ inviteObj = { |
|
|
$('.invite-dialog-bg').remove();
|
|
|
$el.$inviteDialog.hide();
|
|
|
that.clearGrayInfo();
|
|
|
},
|
|
|
|
|
|
// 下载app
|
|
|
downLoadApp: function() {
|
|
|
var appUrl = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445';
|
|
|
|
|
|
setTimeout(function() {
|
|
|
window.location = appUrl;
|
|
|
}, 200);
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|