|
|
-define(["$","template","IScroll","native","config","user","product"],function(e,t,n,r,i,s,o){function u(t){t.preventDefault(),e(document).trigger("spa:navigate",{hash:"",pushData:{dontNeedReload:!0}})}return{title:"双十一活动",body:"",init:function(t,n){var r=this,i=e(document);r.on("swipeRight",function(e){u.call(this,e)}),e.newTouch(".back-button",function(e){u.call(this,e)},r),r.on("tapBackButton",function(e){u.call(this,e)}),e.newTouch(".appointment",function(e){e.preventDefault(),window.location.href="/index.php?r=moonclub/reserve/month"},r),e.newTouch(".im",function(e){e.preventDefault(),console.log("测试"),window.location.href="/index.php?r=moonclub/reserve/xyhIm"},r),n.resolve()},beforeopen:function(e,t){t.resolve()},afteropen:function(r,s){var o=this,u=e(document);u.trigger("spa:openloader");if(!r.pushData.dontNeedReload){var a=t("month/four",{showNavBar:!i.isWX,title:"至尊套餐"});e(".spa-page-body",o).html(a),setTimeout(function(){r.scroll=new n("#monthFourScroll")},500),u.trigger("spa:closeloader"),s.resolve()}s.resolve()},beforeclose:function(e,t){t.resolve()}}});
|
|
|
+define(["$","template","IScroll","native","config","user","product"],function(e,t,n,r,i,s,o){function u(t){t.preventDefault(),e(document).trigger("spa:navigate",{hash:"",pushData:{dontNeedReload:!0}})}return{title:"双十一活动",body:"",init:function(t,n){var r=this,i=e(document);r.on("swipeRight",function(e){u.call(this,e)}),e.newTouch(".back-button",function(e){u.call(this,e)},r),r.on("tapBackButton",function(e){u.call(this,e)}),e.newTouch(".appointment",function(e){e.preventDefault(),window.location.href="/index.php?r=moonclub/reserve/month&user_id="+s.id},r),e.newTouch(".im",function(e){e.preventDefault(),console.log("测试"),window.location.href="/index.php?r=moonclub/reserve/xyhIm"},r),n.resolve()},beforeopen:function(e,t){t.resolve()},afteropen:function(r,s){var o=this,u=e(document);u.trigger("spa:openloader");if(!r.pushData.dontNeedReload){var a=t("month/four",{showNavBar:!i.isWX,title:"至尊套餐"});e(".spa-page-body",o).html(a),setTimeout(function(){r.scroll=new n("#monthFourScroll")},500),u.trigger("spa:closeloader"),s.resolve()}s.resolve()},beforeclose:function(e,t){t.resolve()}}});
|