e 8 năm trước cách đây
mục cha
commit
1834d88e3c

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
www/webapp/moonclub/dist/js/build/template.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
www/webapp/moonclub/dist/js/main.js


+ 1 - 1
www/webapp/moonclub/dist/js/page/advisory/advisory.js

@@ -1 +1 @@
-define(["$","template","user","config","api"],function(e,t,n,r,i){function s(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){s.call(this,e)}),e.newTouch(".back-button",function(e){s.call(this,e)},r),r.on("tapBackButton",function(e){s.call(this,e)}),n.resolve()},beforeopen:function(n,i){var s=this,o=e(document);o.trigger("spa:openloader");if(!n.pushData.dontNeedReload){o.trigger("spa:closeloader");var u={showNavBar:!r.isWX&&!r.isChubao},a=t("advisory/index",u);e(".spa-page-body",s).html(a)}i.resolve(),r.isWX&&wx.ready(function(){wx.onMenuShareTimeline({title:"家政服务,首选壹管家",link:"http://www.yiguanjia.me/o2o/web/index",imgUrl:"http://wozhua-others.qiniudn.com/icon-o2o-home.jpg"}),wx.onMenuShareAppMessage({title:"家政服务,首选壹管家",desc:"全程管家,精心每一个细节!",link:"http://www.yiguanjia.me/o2o/web/index",imgUrl:"http://wozhua-others.qiniudn.com/icon-o2o-home.jpg"})})}}});
+define(["$","template","user","config","api"],function(e,t,n,r,i){function o(t){t.preventDefault(),e(document).trigger("spa:navigate",{hash:"",pushData:{dontNeedReload:!1,product:s}})}var s;return{title:"壹管家上门服务",body:"",init:function(t,n){var r=this,i=e(document);r.on("swipeRight",function(e){o.call(this,e)}),e.newTouch(".back-button",function(e){o.call(this,e)},r),r.on("tapBackButton",function(e){o.call(this,e)}),n.resolve()},beforeopen:function(n,i){var o=this,u=e(document);u.trigger("spa:openloader");if(!n.pushData.dontNeedReload){s=n.pushData.product,u.trigger("spa:closeloader");var a={showNavBar:!r.isWX&&!r.isChubao},f=t("advisory/index",a);console.log(s),e(".spa-page-body",o).html(f)}i.resolve(),r.isWX&&wx.ready(function(){wx.onMenuShareTimeline({title:"家政服务,首选壹管家",link:"http://www.yiguanjia.me/o2o/web/index",imgUrl:"http://wozhua-others.qiniudn.com/icon-o2o-home.jpg"}),wx.onMenuShareAppMessage({title:"家政服务,首选壹管家",desc:"全程管家,精心每一个细节!",link:"http://www.yiguanjia.me/o2o/web/index",imgUrl:"http://wozhua-others.qiniudn.com/icon-o2o-home.jpg"})})}}});

+ 1 - 1
www/webapp/moonclub/dist/js/page/month.js

@@ -1 +1 @@
-define(["$","template","recharge","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(),i.trigger("spa:navigate",{hash:"advisory-advisory",pushData:{needReset:!0,backHash:""}})},r),n.resolve()},beforeopen:function(e,t){t.resolve()},afteropen:function(n,r){var s=this,o=e(document),u=n.pushData,a=u.product;if(s){o.trigger("spa:openloader");if(o){o.trigger("spa:closeloader");var f=t("month/index",{product:a,showNavBar:i.isWX});e(".spa-page-body",s).html(f),setTimeout(function(){n.scroll=new IScroll("#mOneScroll")},700)}}r.resolve()},beforeclose:function(e,t){t.resolve()}}});
+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()}}});

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
www/webapp/moonclub/js/build/template.js


+ 5 - 2
www/webapp/moonclub/js/page/advisory/advisory.js

@@ -1,10 +1,12 @@
 define(['$', 'template', 'user', 'config', 'api'], function ($, template, user, config, api) {
+    var product;
     function back(event) {
         event.preventDefault();
         $(document).trigger('spa:navigate', {
             hash: '',
             pushData: {
-                dontNeedReload: true
+                dontNeedReload: false,
+                product:product
             }
         });
     }
@@ -35,12 +37,13 @@ define(['$', 'template', 'user', 'config', 'api'], function ($, template, user,
             var $doc = $(document);
             $doc.trigger('spa:openloader');
             if (!pageData.pushData.dontNeedReload) {
+                product=pageData.pushData.product;
                 $doc.trigger('spa:closeloader');
                 var tmpData = {
                     showNavBar: !config.isWX && !config.isChubao
                 };
                 var tpl = template('advisory/index', tmpData);
-
+console.log(product);
                 $('.spa-page-body', $view).html(tpl);
 
             }

+ 9 - 5
www/webapp/moonclub/js/page/month.js

@@ -1,10 +1,11 @@
 define(['$', 'template', 'recharge', 'native', 'config', 'user','product'], function ($, template, recharge, native, config, user,product) {
+    var cachePageData={};//内部数据通信
     function back(event) {
         event.preventDefault();
         $(document).trigger('spa:navigate', {
             hash: '',
             pushData: {
-                dontNeedReload: true
+                dontNeedReload: false
             }
         });
     }
@@ -41,7 +42,8 @@ define(['$', 'template', 'recharge', 'native', 'config', 'user','product'], func
                     hash: 'advisory-advisory',
                     pushData: {
                         needReset: true,
-                        backHash: ''
+                        backHash: '',
+                        product:productUrl
                     }
                 })
             }, $view);
@@ -54,19 +56,21 @@ define(['$', 'template', 'recharge', 'native', 'config', 'user','product'], func
         afteropen: function (pageData, dtd) {
             var $view = this;
             var $doc = $(document);
-            var pushData=pageData.pushData;
-            var product=pushData.product;
+            cachePageData.pushData=pageData.pushData;
+            console.log(cachePageData.pushData.product);
+            productUrl=cachePageData.pushData.product.url;
             if ($view) {
                 $doc.trigger('spa:openloader');
                 if ($doc) {
                     $doc.trigger('spa:closeloader');
                     var tpl = template('month/index', {
-                        product:product,
+                        productUrl:productUrl,
                         showNavBar:config.isWX
                     });
                     $('.spa-page-body', $view).html(tpl);
                     setTimeout(function () {
                         pageData.scroll = new IScroll('#mOneScroll');
+                        console.log(productUrl);
                     }, 700);
                 }
             }

+ 1 - 1
www/webapp/moonclub/tpl/month/index.html

@@ -12,7 +12,7 @@
             <div id="mOneScroll" class="scroll-container box-flex-1">
                 <div class="scroller">
                     <div class="home-stay-content">
-                        <img src="{{product.url}}" style="width: 100%;">
+                        <img src="{{productUrl}}" style="width: 100%;">
                         <div style="padding-bottom:10%;"></div>
                     </div>
                 </div>

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác