Authored by 毕凯

Merge branch 'beta/wap' into develop/wap

@@ -13,6 +13,11 @@ use Plugin\Images; @@ -13,6 +13,11 @@ use Plugin\Images;
13 13
14 class CouponFloorProcess 14 class CouponFloorProcess
15 { 15 {
  16 + // 兼容驼峰规则命名的 template_name,此处是以 templateName 命名的数据
  17 + private static $TEMPLATE_LIST = array(
  18 + 'single_image',
  19 + 'focus'
  20 + );
16 21
17 /** 22 /**
18 * 获取楼层数据 23 * 获取楼层数据
@@ -38,7 +43,7 @@ class CouponFloorProcess @@ -38,7 +43,7 @@ class CouponFloorProcess
38 continue; 43 continue;
39 } 44 }
40 } 45 }
41 - if ($fun !== 'single_image') { 46 + if (!in_array($fun, self::$TEMPLATE_LIST)) {
42 $fun = $v['template_name']; 47 $fun = $v['template_name'];
43 } 48 }
44 if (empty($v['data']) || !is_callable("self::$fun")) { 49 if (empty($v['data']) || !is_callable("self::$fun")) {
@@ -152,4 +157,22 @@ class CouponFloorProcess @@ -152,4 +157,22 @@ class CouponFloorProcess
152 $data[0]['isSingleImage'] = true; 157 $data[0]['isSingleImage'] = true;
153 return $data[0]; 158 return $data[0];
154 } 159 }
  160 +
  161 + /**
  162 + *
  163 + * 辅助方法 Debug 数据输出
  164 + *
  165 + * @param $data
  166 + * @param bool $is_exit 输出后是否中断执行
  167 + */
  168 + public static function debugOut($data, $is_exit = true)
  169 + {
  170 + header("Content-type:text/html;charset=utf-8");
  171 + echo '<pre>';
  172 + print_r($data);
  173 + echo '</pre>';
  174 + if ($is_exit) {
  175 + exit;
  176 + }
  177 + }
155 } 178 }
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.

21.3 KB | W: | H:

21.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

17.3 KB | W: | H:

17.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -343,4 +343,7 @@ function phoneHidden(phone) { @@ -343,4 +343,7 @@ function phoneHidden(phone) {
343 343
344 $('.info-phone').html(phoneHidden($('.info-phone').html())); 344 $('.info-phone').html(phoneHidden($('.info-phone').html()));
345 345
346 - 346 +if (orderInfo('address').is_support === 'N') {
  347 + orderInfo('deliveryId', $('.delivery-id .icon-cb-radio').data('id'));
  348 + orderCompute();
  349 +}
@@ -108,7 +108,6 @@ $(document).on('touchstart', '.collection', function() { @@ -108,7 +108,6 @@ $(document).on('touchstart', '.collection', function() {
108 $icon.addClass('collected'); 108 $icon.addClass('collected');
109 } 109 }
110 110
111 - $that.find('.collected-num').html(data.num);  
112 } 111 }
113 112
114 if (code === 201) { 113 if (code === 201) {
@@ -54,6 +54,29 @@ module.exports = function(useInRegister, useForBind, useForRelate) { @@ -54,6 +54,29 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
54 }); 54 });
55 } 55 }
56 56
  57 + function startReg() {
  58 + $.ajax({
  59 + type: 'POST',
  60 + url: '/passport/' + urlMid + '/verifycode',
  61 + data: {
  62 + phoneNum: phoneNum,
  63 + areaCode: areaCode,
  64 + code: trim($captcha.val()),
  65 + token: $('#token').val()
  66 + },
  67 + success: function(data) {
  68 + if (data.code === 200) {
  69 + location.href = data.data;
  70 + } else {
  71 +
  72 + //验证码不正确,显示提示
  73 + showErrTip(data.message);
  74 + }
  75 +
  76 + }
  77 + });
  78 + }
  79 +
57 function countDown() { 80 function countDown() {
58 var count = 59, 81 var count = 59,
59 itime; 82 itime;
@@ -109,38 +132,11 @@ module.exports = function(useInRegister, useForBind, useForRelate) { @@ -109,38 +132,11 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
109 return; 132 return;
110 } 133 }
111 134
112 - startBind();  
113 -  
114 - // $.ajax({  
115 - // type: 'POST',  
116 - // url: useForBind ? '/passport/bind/checkBindMsg' : '/passport/' + urlMid + '/verifycode',  
117 - // data: {  
118 - // phoneNum: phoneNum,  
119 - // areaCode: areaCode,  
120 - // code: trim($captcha.val()),  
121 - // token: $('#token').val()  
122 - // },  
123 - // success: function(data) {  
124 - // if (data.code === 200) {  
125 - // if (useForBind) {  
126 - // if (isReg) {  
127 - // startBind();  
128 - // } else {  
129 - // location.href = '/passport/bind/password?phoneNum=' +  
130 - // phoneNum + '&areaCode=' + areaCode + '&openId=' +  
131 - // openId + '&sourceType=' + sourceType + '&nickname=' + nickname;  
132 - // }  
133 - // } else {  
134 - // location.href = data.data;  
135 - // }  
136 - // } else {  
137 - //  
138 - // //验证码不正确,显示提示  
139 - // showErrTip(data.message);  
140 - // }  
141 - //  
142 - // }  
143 - // }); 135 + if (useForBind || useForRelate) {
  136 + startBind();
  137 + } else {
  138 + startReg();
  139 + }
144 }); 140 });
145 141
146 countDown(); 142 countDown();
@@ -731,7 +731,7 @@ @@ -731,7 +731,7 @@
731 } 731 }
732 732
733 .cont-txt { 733 .cont-txt {
734 - font-size: 30px; 734 + font-size: 28px;
735 line-height: 46px; 735 line-height: 46px;
736 color: #b0b0b0; 736 color: #b0b0b0;
737 margin-top: 10px; 737 margin-top: 10px;
@@ -747,11 +747,17 @@ @@ -747,11 +747,17 @@
747 } 747 }
748 748
749 .title { 749 .title {
750 - font-size: 42px; 750 + font-size: 40px;
751 line-height: 48px; 751 line-height: 48px;
752 752
753 a { 753 a {
754 color: #fff; 754 color: #fff;
  755 + width: 100%;
  756 + overflow: hidden;
  757 + text-overflow: ellipsis;
  758 + display: -webkit-box;
  759 + -webkit-line-clamp: 2;
  760 + -webkit-box-orient: vertical;
755 } 761 }
756 } 762 }
757 763
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 width: 74PX; 5 width: 74PX;
6 height: 74PX; 6 height: 74PX;
7 margin: 60PX auto 30PX; 7 margin: 60PX auto 30PX;
8 - background: image-url("passport/success.png"); 8 + background: resolve("passport/success.png");
9 background-size: 100%; 9 background-size: 100%;
10 } 10 }
11 11
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 {{#each dispatchMode}} 51 {{#each dispatchMode}}
52 <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}"> 52 <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">
53 <span>{{name}}:运费¥{{cost}}</span> 53 <span>{{name}}:运费¥{{cost}}</span>
54 - <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}"></i> 54 + <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}"></i>
55 </li> 55 </li>
56 {{/each}} 56 {{/each}}
57 </ul> 57 </ul>
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <div class="count-area"> 9 <div class="count-area">
10 <span class="time"><i class="iconfont time-ico">&#xe603;</i>{{time}}</span> 10 <span class="time"><i class="iconfont time-ico">&#xe603;</i>{{time}}</span>
11 <span class="see"><i class="iconfont see-ico">&#xe602;</i>{{seeNum}}</span> 11 <span class="see"><i class="iconfont see-ico">&#xe602;</i>{{seeNum}}</span>
12 - <span class="collection"><i class="iconfont collected-ico {{#isCollected}} collected {{/isCollected}}">&#xe605;</i><i class="collected-num">{{zanNum}}</i></span> 12 + <span class="collection"><i class="iconfont collected-ico {{#isCollected}} collected {{/isCollected}}">&#xe605;</i></span>
13 {{# share}} 13 {{# share}}
14 <a href="{{this}}" class="iconfont forward">&#xe600;</a> 14 <a href="{{this}}" class="iconfont forward">&#xe600;</a>
15 {{/share}} 15 {{/share}}