瀏覽代碼

详情页后退测试1

jmx 8 年之前
父節點
當前提交
8372c96a58

文件差異過大導致無法顯示
+ 0 - 0
www/webapp/o2o/dist/js/build/template.js


文件差異過大導致無法顯示
+ 0 - 0
www/webapp/o2o/dist/js/main.js


文件差異過大導致無法顯示
+ 0 - 0
www/webapp/o2o/dist/js/page/product.js


+ 4 - 4
www/webapp/o2o/js/build/template.js

@@ -832,7 +832,7 @@ $out+=' <p class="bold">联系电话: <a class="service-telephone">021-62109097<
 }
 $out+=' <br> </div> </div> </div> ';
 return new String($out);
-});/*v:71*/
+});/*v:1*/
 template('home/index',function($data,$filename
 /**/) {
 'use strict';var $utils=this,$helpers=$utils.$helpers,showNavBar=$data.showNavBar,$out='';if(showNavBar ){
@@ -1449,7 +1449,7 @@ $out+=' <div class="content"> <div class="box-container"> <div class="box-contai
 include('./list');
 $out+=' </ul> </div> <div class="result-item btn-container prevent-scroll"> <div class="cost"> 总计 <span class="order-cost" data-pay="0">¥ 0</span> </div> <a class="btn btn-main btn-block btn-place">确认预约</a> </div> </div> </div> </div> ';
 return new String($out);
-});/*v:6*/
+});/*v:1*/
 template('placeOrder/index',function($data,$filename
 /**/) {
 'use strict';var $utils=this,$helpers=$utils.$helpers,showNavBar=$data.showNavBar,$escape=$utils.$escape,title=$data.title,imgSrc=$data.imgSrc,extra=$data.extra,$each=$utils.$each,e=$data.e,$index=$data.$index,type=$data.type,petName=$data.petName,petWeight=$data.petWeight,extraServiceType=$data.extraServiceType,extraService=$data.extraService,extraServiceList=$data.extraServiceList,i=$data.i,beauticianName=$data.beauticianName,showCoupon=$data.showCoupon,productType=$data.productType,petPrice=$data.petPrice,precedence=$data.precedence,couponVal=$data.couponVal,balance=$data.balance,$out='';if(showNavBar ){
@@ -1622,7 +1622,7 @@ $out+=$escape(extraServiceList.price);
 $out+='</span> </div> ';
 });
 return new String($out);
-});/*v:4*/
+});/*v:1*/
 template('product/index',function($data,$filename
 /**/) {
 'use strict';var $utils=this,$helpers=$utils.$helpers,showNavBar=$data.showNavBar,$escape=$utils.$escape,title=$data.title,type=$data.type,commentCounts=$data.commentCounts,isShowVideo=$data.isShowVideo,$each=$utils.$each,picLists=$data.picLists,pic=$data.pic,$index=$data.$index,tips=$data.tips,desc=$data.desc,note=$data.note,fromHome=$data.fromHome,$out='';if(showNavBar ){
@@ -1860,7 +1860,7 @@ $out+=' <div class="review-content-container"> <textarea class="review-content e
 $out+=$escape(cacheReview);
 $out+='</textarea> <p>评论内容至少10个字~</p> </div> <a class="btn btn-main btn-block btn-main btn-post disable">发表评价</a> </div> </div> ';
 return new String($out);
-});/*v:16*/
+});/*v:1*/
 template('success/index',function($data,$filename
 /**/) {
 'use strict';var $utils=this,$helpers=$utils.$helpers,showNavBar=$data.showNavBar,WX=$data.WX,$out='';if(showNavBar ){

+ 0 - 53
www/webapp/o2o/js/page/product.js

@@ -8,16 +8,6 @@ define(['$', 'template', 'product', 'cart', 'api', 'order', 'user', 'config', 'r
         });
     }
 
-    function renderTemplate(productType) {
-        var $view = this;
-        var tpl = template('product/price', {
-            // productDic: product.productDic,
-            petTypes: product.productGroup[productType]
-        });
-
-        $('.price-table', $view).html(tpl);
-    }
-
     function renderReviewTemplate(reviews, hasMore) {
         var tpl = template('product/reviewList', {
             reviews: reviews,
@@ -175,30 +165,6 @@ define(['$', 'template', 'product', 'cart', 'api', 'order', 'user', 'config', 'r
                 }, false);
             }, $view);
 
-            /* 立即下单
-            $.newTouch('.btn-next', function (event) {
-                if (isShowVideo()) {
-                    $('#iframe-service-introduce', $view).contents().find('video')[0].pause();
-                }
-                event.preventDefault();
-                $doc.trigger('spa:navigate', {
-                    hash: 'placeOrder',
-                    pushData: {
-                        product: cachePageData.product,
-                        needReset: true
-                    }
-                });
-            }, $view); */
-
-            /*
-            $.newTouch('.video', function (event) {
-                if ($('#iframe-service-introduce', $view).contents().find('video')[0].attr('controls')) {
-                    $('#iframe-service-introduce', $view).contents().find('video')[0].removeAttr('controls');
-                } else {
-                    $('#iframe-service-introduce', $view).contents().find('video')[0].attr('controls', 'controls');
-                }
-            }, $view); */
-
             dtd.resolve();
         },
         beforeopen: function (pageData, dtd) {
@@ -241,25 +207,6 @@ define(['$', 'template', 'product', 'cart', 'api', 'order', 'user', 'config', 'r
             }
 
             dtd.resolve();
-        },
-        afteropen: function (pageData, dtd) {
-            dtd.resolve();
-            var type = pageData.pushData.type;
-            if (config.isWX) {
-                wx.ready(function () {
-                    wx.onMenuShareTimeline({
-                        title: '家政服务' + product.getWXShare(type).name + ',首选壹管家',
-                        link: 'http://www.yiguanjia.me/o2o/web/index',
-                        imgUrl: product.getWXShare(type).className
-                    });
-                    wx.onMenuShareAppMessage({
-                        title: '家政服务' + product.getWXShare(type).name + ',首选壹管家',
-                        desc: '全程管家,精心没一个细节',
-                        link: 'http://www.yiguanjia.me/o2o/web/index',
-                        imgUrl: product.getWXShare(type).className
-                    });
-                });
-            }
         }
     }
 });

部分文件因文件數量過多而無法顯示