|
@@ -129,7 +129,7 @@ function scanRecord(latitude,longitude) {
|
|
|
function receiveReward() {
|
|
|
if (!userIsSubscribeApp()) {
|
|
|
// alert("未关注");
|
|
|
- location.href = "/qrcode.html";
|
|
|
+ location.href = "http://ws.js-dctech.com/qrcode.html";
|
|
|
return false;
|
|
|
}
|
|
|
if (!userIsRegister()) {
|
|
@@ -177,6 +177,9 @@ function userIsRegister() {
|
|
|
|
|
|
//红包处理流程
|
|
|
function redpackProcess() {
|
|
|
+
|
|
|
+ $.showLoading('红包发放中');
|
|
|
+
|
|
|
getLocation(
|
|
|
function (latitude,longitude) {
|
|
|
$.ajax({
|
|
@@ -191,16 +194,21 @@ function redpackProcess() {
|
|
|
longitude: longitude
|
|
|
},
|
|
|
success: function (res) {
|
|
|
+ $.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
$.toast(res.msg);
|
|
|
} else {
|
|
|
$.toast(res.msg, "cancel");
|
|
|
}
|
|
|
//TODO 跳转到对应领取成功页面
|
|
|
+ },
|
|
|
+ error: function (res) {
|
|
|
+ $.hideLoading();
|
|
|
+ $.toast("请求失败", "cancel");
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
);
|
|
|
|
|
|
|
|
|
-}
|
|
|
+}
|