Authored by 陈峰

Merge branch 'gray' into 'master'

Gray



See merge request !1397
@@ -13,7 +13,8 @@ exports.category = (req, res, next) => { @@ -13,7 +13,8 @@ exports.category = (req, res, next) => {
13 channel: req.query.channel, 13 channel: req.query.channel,
14 season: req.query.season, 14 season: req.query.season,
15 isApp: req.yoho.isApp, 15 isApp: req.yoho.isApp,
16 - scene: req.query.scene || 1 16 + scene: req.query.scene || 1,
  17 + imageType: req.query.imageType || 2
17 }; 18 };
18 let renders = {}; 19 let renders = {};
19 20
@@ -49,7 +50,8 @@ exports.shop = (req, res, next) => { @@ -49,7 +50,8 @@ exports.shop = (req, res, next) => {
49 channel: req.query.channel, 50 channel: req.query.channel,
50 season: req.query.season, 51 season: req.query.season,
51 isApp: req.yoho.isApp, 52 isApp: req.yoho.isApp,
52 - scene: req.query.scene || 1 53 + scene: req.query.scene || 1,
  54 + imageType: req.query.imageType || 2
53 }; 55 };
54 let renders = {}; 56 let renders = {};
55 57
@@ -34,6 +34,7 @@ router.get('/index/new/pay', authMW, payController.pay);// 统一支付 URLï¼Œæ” @@ -34,6 +34,7 @@ router.get('/index/new/pay', authMW, payController.pay);// 统一支付 URL,æ”
34 router.get('/index/new/pay/alipayresult', authMW, payController.payAli);// 支付宝付款支付成功 34 router.get('/index/new/pay/alipayresult', authMW, payController.payAli);// 支付宝付款支付成功
35 35
36 router.get('/index/new/orderEnsure', authMW, disableBFCache, order.orderEnsure); // 订单结算 36 router.get('/index/new/orderEnsure', authMW, disableBFCache, order.orderEnsure); // 订单结算
  37 +router.get('/index/new/orderEnsureAjax', authMW, disableBFCache, order.orderEnsure); // 订单结算ajax
37 router.post('/index/new/orderCompute', authMW, order.orderCompute); // 结算页参数改变,重新运算 38 router.post('/index/new/orderCompute', authMW, order.orderCompute); // 结算页参数改变,重新运算
38 router.post('/index/new/orderSub', authMW, order.orderSub); // 订单提交 39 router.post('/index/new/orderSub', authMW, order.orderSub); // 订单提交
39 40
@@ -334,6 +334,9 @@ class IndexModel extends global.yoho.BaseModel { @@ -334,6 +334,9 @@ class IndexModel extends global.yoho.BaseModel {
334 id: id, 334 id: id,
335 uid: uid, 335 uid: uid,
336 udid: udid 336 udid: udid
  337 + },
  338 + param: {
  339 + cache: true
337 } 340 }
338 }); 341 });
339 } 342 }
1 { 1 {
2 "name": "yohobuywap-node", 2 "name": "yohobuywap-node",
3 - "version": "6.6.3", 3 + "version": "6.6.5",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -168,7 +168,7 @@ let cartObj = { @@ -168,7 +168,7 @@ let cartObj = {
168 168
169 $.ajax({ 169 $.ajax({
170 type: 'get', 170 type: 'get',
171 - url: '/cart/index/new/orderEnsure', 171 + url: '/cart/index/new/orderEnsureAjax',
172 timeout: 10000, // 10s overtime 172 timeout: 10000, // 10s overtime
173 data: { 173 data: {
174 cartType: cartType 174 cartType: cartType
@@ -202,7 +202,7 @@ setTimeout(() => { @@ -202,7 +202,7 @@ setTimeout(() => {
202 } 202 }
203 } 203 }
204 204
205 - $('#addtoCart, #ticketsToCart').on('touchstart', function() { 205 + $('#addtoCart, #ticketsToCart').on('click', function() {
206 let productCode = $('#limitProductCode').val(); 206 let productCode = $('#limitProductCode').val();
207 let seckill = $('.seckill-time').length; 207 let seckill = $('.seckill-time').length;
208 208
@@ -143,6 +143,7 @@ @@ -143,6 +143,7 @@
143 font-size: 13px; 143 font-size: 13px;
144 color: #ccc; 144 color: #ccc;
145 font-weight: normal; 145 font-weight: normal;
  146 + text-decoration: line-through;
146 } 147 }
147 148
148 .cart-icon { 149 .cart-icon {
@@ -286,6 +287,6 @@ @@ -286,6 +287,6 @@
286 287
287 .tide-border-top { 288 .tide-border-top {
288 margin: 35px 30px 10px 40px; 289 margin: 35px 30px 10px 40px;
289 - border-top: 2px solid #b0b0b0; 290 + border-top: 10px solid #b0b0b0;
290 } 291 }
291 } 292 }