|
@@ -164,6 +164,9 @@ function userIsRegister() {
|
|
|
|
|
|
//红包处理流程
|
|
|
function redpackProcess() {
|
|
|
+
|
|
|
+ $.showLoading('红包发放中');
|
|
|
+
|
|
|
getLocation(
|
|
|
function (latitude,longitude) {
|
|
|
$.authAjax({
|
|
@@ -174,12 +177,17 @@ 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");
|
|
|
}
|
|
|
})
|
|
|
}
|