|
@@ -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
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
});
|