Authored by 郝肖肖

代码回退

@@ -38,9 +38,7 @@ function show(con, dur) { @@ -38,9 +38,7 @@ function show(con, dur) {
38 content = con.toString(); 38 content = con.toString();
39 duration = (dur && dur > 0) ? dur : 2000; 39 duration = (dur && dur > 0) ? dur : 2000;
40 40
41 - $tip.text(content).css({  
42 - left: ($(window).width() - $tip.width() - 30) / 2  
43 - }).show(); 41 + $tip.text(content).show();
44 42
45 tipItime = setTimeout(function() { 43 tipItime = setTimeout(function() {
46 if ($tip.css('display') === 'block') { 44 if ($tip.css('display') === 'block') {
1 var $ = require('jquery'), 1 var $ = require('jquery'),
2 IScroll = require('iscroll/iscroll-probe'), 2 IScroll = require('iscroll/iscroll-probe'),
3 Swiper = require('yoho.iswiper'), 3 Swiper = require('yoho.iswiper'),
4 - ellipsis = require('yoho.mlellipsis'),  
5 tip = require('../plugin/tip'); 4 tip = require('../plugin/tip');
6 5
7 var appVersion = $('input[name="app_version"]').val(); 6 var appVersion = $('input[name="app_version"]').val();
8 7
9 -ellipsis.init();  
10 -  
11 $(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function(e) { 8 $(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function(e) {
12 var that = this, 9 var that = this,
13 code = $(this).data('id') || ''; 10 code = $(this).data('id') || '';
@@ -59,8 +56,4 @@ $(function() { @@ -59,8 +56,4 @@ $(function() {
59 slidesPerView: 'auto', 56 slidesPerView: 'auto',
60 watchSlidesVisibility: true 57 watchSlidesVisibility: true
61 }); 58 });
62 -  
63 - $('.coupon-content .coupon-left-name').each(function() {  
64 - this.mlellipsis(2);  
65 - });  
66 }) 59 })
@@ -151,6 +151,8 @@ iframe[height="0"] { @@ -151,6 +151,8 @@ iframe[height="0"] {
151 z-index:4; 151 z-index:4;
152 border-radius: 10PX; 152 border-radius: 10PX;
153 margin: 0 auto; 153 margin: 0 auto;
  154 + left: 50%;
  155 + transform: translateX(-50%);
154 } 156 }
155 157
156 .tap-hightlight { 158 .tap-hightlight {
@@ -87,9 +87,12 @@ @@ -87,9 +87,12 @@
87 width: 150px; 87 width: 150px;
88 height: 45px; 88 height: 45px;
89 line-height: 24px; 89 line-height: 24px;
90 - display: table-cell;  
91 - vertical-align: middle; 90 + padding-top: 2px;
92 overflow: hidden; 91 overflow: hidden;
  92 + word-break: break-all;
  93 + display: -webkit-box;
  94 + -webkit-box-orient: vertical;
  95 + -webkit-line-clamp: 2;
93 } 96 }
94 97
95 .coupon-right { 98 .coupon-right {
@@ -621,9 +621,9 @@ class IndexController extends AbstractAction @@ -621,9 +621,9 @@ class IndexController extends AbstractAction
621 $data['goodList']['cartUrl'] = Helpers::url('/cart/index/index', null); 621 $data['goodList']['cartUrl'] = Helpers::url('/cart/index/index', null);
622 $data['goodList'] += $condition; 622 $data['goodList'] += $condition;
623 $data['pageFooter'] = true; 623 $data['pageFooter'] = true;
624 -  
625 - $data['shopCoupons'] = ListModel::getShopCouponsList($shop['shops_id'], $uid);  
626 - $data['shopCouponsOne'] = count($data['shopCoupons']) === 1; 624 + //基础模板,于水说APP没有,H5暂时不须要
  625 + // $data['shopCoupons'] = ListModel::getShopCouponsList($shop['shops_id'], $uid);
  626 + // $data['shopCouponsOne'] = count($data['shopCoupons']) === 1;
627 627
628 $this->setTitle($title); 628 $this->setTitle($title);
629 $this->setNavHeader($title, true, SITE_MAIN); 629 $this->setNavHeader($title, true, SITE_MAIN);