Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into feature/xieweiguang
Showing
5 changed files
with
32 additions
and
5 deletions
@@ -127,10 +127,22 @@ orderHammer.on('tap', function(e) { | @@ -127,10 +127,22 @@ orderHammer.on('tap', function(e) { | ||
127 | }, | 127 | }, |
128 | success: function(data) { | 128 | success: function(data) { |
129 | if (data.code === 200) { | 129 | if (data.code === 200) { |
130 | + dialog.showDialog({ | ||
131 | + dialogText: '删除订单成功', | ||
132 | + autoHide: true, | ||
133 | + fast: true | ||
134 | + }); | ||
130 | 135 | ||
131 | //删除订单页面刷新 | 136 | //删除订单页面刷新 |
132 | history.go(0); | 137 | history.go(0); |
133 | } | 138 | } |
139 | + }, | ||
140 | + error: function() { | ||
141 | + dialog.showDialog({ | ||
142 | + dialogText: '删除订单失败', | ||
143 | + autoHide: true, | ||
144 | + fast: true | ||
145 | + }); | ||
134 | } | 146 | } |
135 | }); | 147 | }); |
136 | }); | 148 | }); |
@@ -152,10 +164,22 @@ orderHammer.on('tap', function(e) { | @@ -152,10 +164,22 @@ orderHammer.on('tap', function(e) { | ||
152 | }, | 164 | }, |
153 | success: function(data) { | 165 | success: function(data) { |
154 | if (data.code === 200) { | 166 | if (data.code === 200) { |
167 | + dialog.showDialog({ | ||
168 | + dialogText: '取消订单成功', | ||
169 | + autoHide: true, | ||
170 | + fast: true | ||
171 | + }); | ||
155 | 172 | ||
156 | //取消订单页面刷新 | 173 | //取消订单页面刷新 |
157 | history.go(0); | 174 | history.go(0); |
158 | } | 175 | } |
176 | + }, | ||
177 | + error: function() { | ||
178 | + dialog.showDialog({ | ||
179 | + dialogText: '取消订单失败', | ||
180 | + autoHide: true, | ||
181 | + fast: true | ||
182 | + }); | ||
159 | } | 183 | } |
160 | }); | 184 | }); |
161 | }); | 185 | }); |
@@ -184,4 +208,4 @@ $(window).scroll(function() { | @@ -184,4 +208,4 @@ $(window).scroll(function() { | ||
184 | }); | 208 | }); |
185 | 209 | ||
186 | //初始化请求第一页数据 | 210 | //初始化请求第一页数据 |
187 | -getOrders(); | ||
211 | +getOrders(); |
@@ -82,6 +82,9 @@ headerNavHammer.on('tap', function(e) { | @@ -82,6 +82,9 @@ headerNavHammer.on('tap', function(e) { | ||
82 | autoHide: true, | 82 | autoHide: true, |
83 | dialogText: '提交成功' | 83 | dialogText: '提交成功' |
84 | }); | 84 | }); |
85 | + setTimeout(function() { | ||
86 | + location.pathname = 'home/suggest'; | ||
87 | + }, 2000); | ||
85 | } | 88 | } |
86 | }).fail(function() { | 89 | }).fail(function() { |
87 | 90 |
@@ -104,7 +104,7 @@ class SideModel | @@ -104,7 +104,7 @@ class SideModel | ||
104 | 'textCn' => '查看全部', | 104 | 'textCn' => '查看全部', |
105 | 'textEn' => '', | 105 | 'textEn' => '', |
106 | 'back' => false, | 106 | 'back' => false, |
107 | - 'isSelect' => ($guangChoosed === 'all') ? true : false, | 107 | + 'isSelect' => ($guangChoosed === 'lifestyle' || $guangChoosed === 'kids') ? true : false, |
108 | 'url' => Helpers::url('', array('gender' => '1,2,3'), 'guang') | 108 | 'url' => Helpers::url('', array('gender' => '1,2,3'), 'guang') |
109 | ), | 109 | ), |
110 | 2 => array( | 110 | 2 => array( |
@@ -239,8 +239,8 @@ class UserModel | @@ -239,8 +239,8 @@ class UserModel | ||
239 | $product = array(); | 239 | $product = array(); |
240 | $product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : ''; | 240 | $product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : ''; |
241 | $product['imgUrl'] = (isset($one['default_images']) && !empty($one['default_images'])) ? Images::getImageUrl($one['default_images'], 235, 314) : ''; | 241 | $product['imgUrl'] = (isset($one['default_images']) && !empty($one['default_images'])) ? Images::getImageUrl($one['default_images'], 235, 314) : ''; |
242 | - $product['price'] = !empty($one['market_price']) ? '¥' . $one['market_price'] . '.00' : 0; | ||
243 | - $product['discount'] = !empty($one['sales_price']) ? '¥' . $one['sales_price'] . '.00' : 0; | 242 | + $product['price'] = !empty($one['market_price']) ? '¥' . $one['market_price'] : 0; |
243 | + $product['discount'] = !empty($one['sales_price']) ? '¥' . $one['sales_price'] : 0; | ||
244 | 244 | ||
245 | $brand['productList'][] = $product; | 245 | $brand['productList'][] = $product; |
246 | } | 246 | } |
-
Please register or login to post a comment