|
|
-define(["$","template","recharge","native","config","user","product"],function(e,t,n,r,i,s,o){function a(t){t.preventDefault(),e(document).trigger("spa:navigate",{hash:"",pushData:{dontNeedReload:!1}})}var u={};return{title:"企业服务",body:"",init:function(t,n){var r=this,i=e(document);r.on("swipeRight",function(e){a.call(this,e)}),e.newTouch(".back-button",function(e){a.call(this,e)},r),r.on("tapBackButton",function(e){a.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(),i.trigger("spa:navigate",{hash:"advisory-advisory",pushData:{needReset:!0,backHash:"",product:productUrl}})},r),n.resolve()},beforeopen:function(e,t){t.resolve()},afteropen:function(n,r){var s=this,o=e(document);u.pushData=n.pushData,console.log(u.pushData.product),productUrl=u.pushData.product.url;if(s){o.trigger("spa:openloader");if(o){o.trigger("spa:closeloader");var a=t("month/index",{productUrl:productUrl,showNavBar:i.isWX});e(".spa-page-body",s).html(a),setTimeout(function(){n.scroll=new IScroll("#mOneScroll"),console.log(productUrl)},700)}}r.resolve()},beforeclose:function(e,t){t.resolve()}}});
|
|
|
+define(["template","native","config"],function(e,t,n){function r(e){e.preventDefault(),$(document).trigger("spa:navigate",{hash:""})}return{title:"壹管家上门服务",body:"",init:function(t,i){var s=this,o=$(document),u=t.pushData.product,a=e("month/index",{product:u,showNavBar:!n.isWX&&!n.isChubao});$(".spa-page-body",s).html(a),setTimeout(function(){t.scroll=new IScroll("#mOneScroll")},700),$.newTouch(".back-button",function(e){r.call(this,e)},s),s.on("tapBackButton",function(e){r.call(this,e)}),s.on("swipeRight",function(e){r.call(this,e)}),$.newTouch(".appointment",function(e){e.preventDefault(),window.location.href="/index.php?r=moonclub/reserve/month&user_id="+user.id},s),$.newTouch(".im",function(e){e.preventDefault(),o.trigger("spa:navigate",{hash:"advisory-advisory",pushData:{needReset:!0,backHash:""}})},s),i.resolve()}}});
|