Commit 9a025b2e03a6d5a25bdb5417fa86e178ca0557ac

Authored by 前端开发-罗建龙
1 parent 2e775b71

每月礼包优化

packageE/pages/user/monthgiftbag/giftpackinfo/giftpackinfo.js
@@ -372,16 +372,9 @@ Page({ @@ -372,16 +372,9 @@ Page({
372 } 372 }
373 373
374 if (!d || !d.user_id ) { 374 if (!d || !d.user_id ) {
375 - if (scene==1154) {  
376 - wx.navigateTo({  
377 - url: '/packageE/pages/togoin/togoin',  
378 - })  
379 - return  
380 - }else{  
381 getApp().my_warnning("请先登录", 0, th); 375 getApp().my_warnning("请先登录", 0, th);
382 return false; 376 return false;
383 - }  
384 - 377 +
385 } 378 }
386 //如果还没有开始的话 379 //如果还没有开始的话
387 if (th.data.isStart != 1) { 380 if (th.data.isStart != 1) {
@@ -418,19 +411,17 @@ Page({ @@ -418,19 +411,17 @@ Page({
418 GetBuyIntegral: function (e) { 411 GetBuyIntegral: function (e) {
419 var that = this.data; 412 var that = this.data;
420 var th = this; 413 var th = this;
421 - 414 + let scene =this.data.scene;
  415 + if (scene==1154) {
  416 + wx.navigateTo({
  417 + url: '/packageE/pages/togoin/togoin',
  418 + })
  419 + return
  420 + }
422 if (!d || !d.user_id ) { 421 if (!d || !d.user_id ) {
423 -  let scene = that.data.scene;  
424 - if (scene==1154) {  
425 - wx.navigateTo({  
426 - url: '/packageE/pages/togoin/togoin',  
427 - })  
428 - return  
429 - }else{  
430 getApp().my_warnning("请先登录", 0, th); 422 getApp().my_warnning("请先登录", 0, th);
431 return false; 423 return false;
432 - }  
433 - 424 +
434 } 425 }
435 426
436 //如果还没有开始的话 427 //如果还没有开始的话