|
@@ -132,9 +132,6 @@ setTimeout(() => { |
|
@@ -132,9 +132,6 @@ setTimeout(() => { |
132
|
}
|
132
|
}
|
133
|
|
133
|
|
134
|
if (productId && (goodsId || productSkn)) {
|
134
|
if (productId && (goodsId || productSkn)) {
|
135
|
- let $promotionYohoCoin = $('#placeholder-promotion-yohocoin');
|
|
|
136
|
- let promotionYohoCoinT = require('product/detail/promotion-yoho-coin.hbs');
|
|
|
137
|
-
|
|
|
138
|
setTimeout(() => {
|
135
|
setTimeout(() => {
|
139
|
$.ajax({
|
136
|
$.ajax({
|
140
|
type: 'GET',
|
137
|
type: 'GET',
|
|
@@ -153,23 +150,6 @@ setTimeout(() => { |
|
@@ -153,23 +150,6 @@ setTimeout(() => { |
153
|
let regPro = /\/product\/pro_([\d]+)_([\d]+)/;
|
150
|
let regPro = /\/product\/pro_([\d]+)_([\d]+)/;
|
154
|
let regSeckill = /\/product\/seckill/;
|
151
|
let regSeckill = /\/product\/seckill/;
|
155
|
|
152
|
|
156
|
- $promotionYohoCoin.replaceWith(promotionYohoCoinT({
|
|
|
157
|
- promYohoCoinText: data.promYohoCoinText
|
|
|
158
|
- }));
|
|
|
159
|
-
|
|
|
160
|
- let $coinItem = $('#goodsDiscountYohoCoin');
|
|
|
161
|
- let $coinIntroBox = $('.coin-intro-box');
|
|
|
162
|
-
|
|
|
163
|
- // 返有货币促销模块点击事件
|
|
|
164
|
- $coinItem.on('click', function() {
|
|
|
165
|
- $coinIntroBox.removeClass('hide');
|
|
|
166
|
- });
|
|
|
167
|
-
|
|
|
168
|
- // 关闭有货币促销展示面板
|
|
|
169
|
- $coinIntroBox.on('click', function() {
|
|
|
170
|
- $coinIntroBox.addClass('hide');
|
|
|
171
|
- });
|
|
|
172
|
-
|
|
|
173
|
// let regProSeckill = /\/product\/seckill\/pro_([\d]+)_([\d]+)/;
|
153
|
// let regProSeckill = /\/product\/seckill\/pro_([\d]+)_([\d]+)/;
|
174
|
let thisHref = window.location.href;
|
154
|
let thisHref = window.location.href;
|
175
|
let thisRefer = document.referrer;
|
155
|
let thisRefer = document.referrer;
|
|
@@ -325,7 +305,7 @@ setTimeout(() => { |
|
@@ -325,7 +305,7 @@ setTimeout(() => { |
325
|
/*
|
305
|
/*
|
326
|
* 获取商品 相关数据: 1. 促销 2. feedback 3. 店铺, 并初始化
|
306
|
* 获取商品 相关数据: 1. 促销 2. feedback 3. 店铺, 并初始化
|
327
|
*/
|
307
|
*/
|
328
|
-(function(skn, productId, brandId) { // eslint-disable-line
|
308
|
++ (function(skn, productId, brandId) { // eslint-disable-line
|
329
|
// 模版: 促销, feedback, 店铺
|
309
|
// 模版: 促销, feedback, 店铺
|
330
|
let promotionT = require('product/detail/promotion.hbs');
|
310
|
let promotionT = require('product/detail/promotion.hbs');
|
331
|
let feedbackT = require('product/detail/feedbacks.hbs');
|
311
|
let feedbackT = require('product/detail/feedbacks.hbs');
|
|
@@ -386,7 +366,7 @@ setTimeout(() => { |
|
@@ -386,7 +366,7 @@ setTimeout(() => { |
386
|
|
366
|
|
387
|
// goods-discount下拉按钮点击事件
|
367
|
// goods-discount下拉按钮点击事件
|
388
|
if ($goodsDiscount.length && $discountFolder.children().length > 0) {
|
368
|
if ($goodsDiscount.length && $discountFolder.children().length > 0) {
|
389
|
- $discountFirstItem.on('click', function() {
|
369
|
+ $goodsDiscount.on('click', function() {
|
390
|
if ($discountFolder.is(':hidden')) {
|
370
|
if ($discountFolder.is(':hidden')) {
|
391
|
$discountFirstItem.removeClass('short-text');
|
371
|
$discountFirstItem.removeClass('short-text');
|
392
|
$discountArrow.removeClass('icon-down').addClass('icon-up').html('');
|
372
|
$discountArrow.removeClass('icon-down').addClass('icon-up').html('');
|