Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
4 changed files
with
31 additions
and
32 deletions
@@ -92,7 +92,7 @@ function callpay(orderCode) { | @@ -92,7 +92,7 @@ function callpay(orderCode) { | ||
92 | function isWXOpen() { | 92 | function isWXOpen() { |
93 | var ua = window.navigator.userAgent.toLowerCase(); | 93 | var ua = window.navigator.userAgent.toLowerCase(); |
94 | 94 | ||
95 | - if (ua.match(/MicroMessenger/i) === 'micromessenger') { | 95 | + if (ua.match(/MicroMessenger/i).toString() === 'micromessenger') { |
96 | return true; | 96 | return true; |
97 | } else { | 97 | } else { |
98 | return false; | 98 | return false; |
@@ -16,6 +16,7 @@ var goodsDiscountEl = document.getElementById('goodsDiscount'), | @@ -16,6 +16,7 @@ var goodsDiscountEl = document.getElementById('goodsDiscount'), | ||
16 | goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl); | 16 | goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl); |
17 | 17 | ||
18 | var $cart = $('.cart-bar'); | 18 | var $cart = $('.cart-bar'); |
19 | +var UA = navigator.userAgent.toLowerCase().toString(); | ||
19 | 20 | ||
20 | require('./desc'); | 21 | require('./desc'); |
21 | require('./comments-consults'); | 22 | require('./comments-consults'); |
@@ -81,4 +82,8 @@ $.ajax({ | @@ -81,4 +82,8 @@ $.ajax({ | ||
81 | } | 82 | } |
82 | }); | 83 | }); |
83 | 84 | ||
85 | + | ||
86 | +if (UA.indexOf('MQQBrowser') > -1) { | ||
87 | + $('.detail > div').removeClass('column').addClass('oldbox'); | ||
88 | +} | ||
84 | require('./like'); | 89 | require('./like'); |
@@ -64,6 +64,20 @@ $basicBtnC:#eb0313; | @@ -64,6 +64,20 @@ $basicBtnC:#eb0313; | ||
64 | flex-basis: 49.9% | 64 | flex-basis: 49.9% |
65 | )) | 65 | )) |
66 | } | 66 | } |
67 | + .oldbox{ | ||
68 | + padding: 4% 3%; | ||
69 | + width: 49.9%; | ||
70 | + background-color: $tableCellC; | ||
71 | + box-sizing: border-box; | ||
72 | + border-bottom: 1px solid #fff; | ||
73 | + border-right: 1px solid #fff; | ||
74 | + width: 49.9%; | ||
75 | + height: 100%; | ||
76 | + float: left; | ||
77 | + text-overflow:ellipsis; | ||
78 | + white-space:nowrap; | ||
79 | + overflow:hidden; | ||
80 | + } | ||
67 | } | 81 | } |
68 | } | 82 | } |
69 | } | 83 | } |
@@ -11,10 +11,6 @@ | @@ -11,10 +11,6 @@ | ||
11 | background-size: cover; | 11 | background-size: cover; |
12 | } | 12 | } |
13 | .detail{ | 13 | .detail{ |
14 | - // background-color: $tableCellC; | ||
15 | - // &.table .inner-container{ | ||
16 | - // background-color: $tableCellC; | ||
17 | - // } | ||
18 | margin-bottom: 1px; | 14 | margin-bottom: 1px; |
19 | } | 15 | } |
20 | .desc-text { | 16 | .desc-text { |
@@ -42,30 +38,21 @@ | @@ -42,30 +38,21 @@ | ||
42 | .detail { | 38 | .detail { |
43 | .material-item{ | 39 | .material-item{ |
44 | margin: pxToRem(10px) 0; | 40 | margin: pxToRem(10px) 0; |
45 | - @include flexbox(( | ||
46 | - display: box, | ||
47 | - box-align: center | ||
48 | - ), $version: 1); | ||
49 | - @include flexbox(( | ||
50 | - display: flex, | ||
51 | - align-items: center | ||
52 | - )); | 41 | + width: 100%; |
42 | + height: auto; | ||
43 | + overflow: hidden; | ||
44 | + display: block; | ||
45 | + position: relative; | ||
53 | 46 | ||
54 | img { | 47 | img { |
55 | margin: 0; | 48 | margin: 0; |
56 | } | 49 | } |
57 | .material-image { | 50 | .material-image { |
58 | width: 23%; | 51 | width: 23%; |
59 | - @include flexbox(( | ||
60 | - box-flex: 1.0, | ||
61 | - display: box, | ||
62 | - box-pack: center | ||
63 | - ), $version: 1); | ||
64 | - @include flexbox(( | ||
65 | - display: flex, | ||
66 | - flex-basis: 23%, | ||
67 | - justify-content: center | ||
68 | - )); | 52 | + position: absolute; |
53 | + left: 0; | ||
54 | + top: 50%; | ||
55 | + @include transform(translateY(-50%)) | ||
69 | } | 56 | } |
70 | .material-desc { | 57 | .material-desc { |
71 | font-size: pxToRem(24px); | 58 | font-size: pxToRem(24px); |
@@ -76,15 +63,8 @@ | @@ -76,15 +63,8 @@ | ||
76 | line-height: pxToRem(38px); | 63 | line-height: pxToRem(38px); |
77 | color: #4b4b4b; | 64 | color: #4b4b4b; |
78 | word-wrap: break-word; | 65 | word-wrap: break-word; |
79 | - width: 76.9; | ||
80 | - @include flexbox(( | ||
81 | - box-flex: 1.0, | ||
82 | - display: box | ||
83 | - ), $version: 1); | ||
84 | - @include flexbox(( | ||
85 | - display: flex, | ||
86 | - flex-basis: 76.9% | ||
87 | - )); | 66 | + width: 76.9%; |
67 | + float: right; | ||
88 | } | 68 | } |
89 | &:last-child{ | 69 | &:last-child{ |
90 | border-bottom: none; | 70 | border-bottom: none; |
-
Please register or login to post a comment