Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop
Showing
6 changed files
with
25 additions
and
8 deletions
@@ -178,7 +178,9 @@ gulp.task('font', () => { | @@ -178,7 +178,9 @@ gulp.task('font', () => { | ||
178 | gulp.task('postcss', ['assets'], () => { | 178 | gulp.task('postcss', ['assets'], () => { |
179 | return gulp.src('scss/index.css') | 179 | return gulp.src('scss/index.css') |
180 | .pipe(postcss(postcssPlugin(env.pro))) | 180 | .pipe(postcss(postcssPlugin(env.pro))) |
181 | - .pipe(cssnano()) | 181 | + .pipe(cssnano({ |
182 | + safe: true | ||
183 | + })) | ||
182 | .pipe(gulp.dest(dist.css)); | 184 | .pipe(gulp.dest(dist.css)); |
183 | }); | 185 | }); |
184 | 186 |
@@ -10,6 +10,7 @@ var $ = require('jquery'), | @@ -10,6 +10,7 @@ var $ = require('jquery'), | ||
10 | interceptClick = require('common/intercept-click'); | 10 | interceptClick = require('common/intercept-click'); |
11 | 11 | ||
12 | $(() => { | 12 | $(() => { |
13 | + setTimeout(() => { | ||
13 | yoho.addNativeMethod('saveFeedback', function() { | 14 | yoho.addNativeMethod('saveFeedback', function() { |
14 | var suggestText = $('#suggest-textarea').val(), | 15 | var suggestText = $('#suggest-textarea').val(), |
15 | textReg = /\S+/; | 16 | textReg = /\S+/; |
@@ -51,4 +52,5 @@ $(() => { | @@ -51,4 +52,5 @@ $(() => { | ||
51 | header: header, | 52 | header: header, |
52 | url: location.origin + '/me/feedback' | 53 | url: location.origin + '/me/feedback' |
53 | }); | 54 | }); |
55 | + }, 200); | ||
54 | }); | 56 | }); |
@@ -2,13 +2,14 @@ var yoho = require('yoho'); | @@ -2,13 +2,14 @@ var yoho = require('yoho'); | ||
2 | var $ = require('jquery'); | 2 | var $ = require('jquery'); |
3 | const util = require('common/util'); | 3 | const util = require('common/util'); |
4 | 4 | ||
5 | -if (!yoho.isLogin) { | 5 | +$(() => { |
6 | + if (!yoho.isLogin) { | ||
6 | $('.auth').addClass('no-intercept'); | 7 | $('.auth').addClass('no-intercept'); |
7 | $('.auth').on('click', function() { | 8 | $('.auth').on('click', function() { |
8 | yoho.goLogin(); | 9 | yoho.goLogin(); |
9 | return false; | 10 | return false; |
10 | }); | 11 | }); |
11 | -} else { | 12 | + } else { |
12 | // 地址管理 | 13 | // 地址管理 |
13 | $('#address').on('click', function() { | 14 | $('#address').on('click', function() { |
14 | yoho.goAddress({ | 15 | yoho.goAddress({ |
@@ -16,15 +17,14 @@ if (!yoho.isLogin) { | @@ -16,15 +17,14 @@ if (!yoho.isLogin) { | ||
16 | }); | 17 | }); |
17 | return false; | 18 | return false; |
18 | }); | 19 | }); |
19 | -} | 20 | + } |
20 | 21 | ||
21 | -// 系统设置 | ||
22 | -$('#setting').on('click', function() { | 22 | + // 系统设置 |
23 | + $('#setting').on('click', function() { | ||
23 | yoho.goSetting(); | 24 | yoho.goSetting(); |
24 | return false; | 25 | return false; |
25 | -}); | 26 | + }); |
26 | 27 | ||
27 | -$(() => { | ||
28 | yoho.showLoading(false); | 28 | yoho.showLoading(false); |
29 | util.visibilitychange(); | 29 | util.visibilitychange(); |
30 | }); | 30 | }); |
@@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
15 | <div class="order-goods"> | 15 | <div class="order-goods"> |
16 | <ul> | 16 | <ul> |
17 | <li class="goods-info" v-for="product in order.orderGoods"> | 17 | <li class="goods-info" v-for="product in order.orderGoods"> |
18 | + <a :href="product | goodsUrl 'collection'"> | ||
18 | <div class="img-box"> | 19 | <div class="img-box"> |
19 | <img v-bind:src="product.goodsImage | resize 49 65"> | 20 | <img v-bind:src="product.goodsImage | resize 49 65"> |
20 | <label v-if="product.goodsType === 'gift'">赠品</label> | 21 | <label v-if="product.goodsType === 'gift'">赠品</label> |
@@ -31,6 +32,7 @@ | @@ -31,6 +32,7 @@ | ||
31 | <p>¥{{product.goodsPrice}}</p> | 32 | <p>¥{{product.goodsPrice}}</p> |
32 | <p>×{{product.buyNumber}}</p> | 33 | <p>×{{product.buyNumber}}</p> |
33 | </div> | 34 | </div> |
35 | + </a> | ||
34 | </li> | 36 | </li> |
35 | </ul> | 37 | </ul> |
36 | </div> | 38 | </div> |
@@ -209,6 +211,8 @@ | @@ -209,6 +211,8 @@ | ||
209 | }); | 211 | }); |
210 | }, | 212 | }, |
211 | confirmGoods(code) { | 213 | confirmGoods(code) { |
214 | + Modal.confirm('', '确认删除订单?', function() { | ||
215 | + this.hide(); | ||
212 | $.ajax({ | 216 | $.ajax({ |
213 | url: '/me/confirmReceive', | 217 | url: '/me/confirmReceive', |
214 | type: 'post', | 218 | type: 'post', |
@@ -224,6 +228,7 @@ | @@ -224,6 +228,7 @@ | ||
224 | }).fail(() => { | 228 | }).fail(() => { |
225 | tip('操作失败'); | 229 | tip('操作失败'); |
226 | }); | 230 | }); |
231 | + }); | ||
227 | }, | 232 | }, |
228 | goBuy(order) { | 233 | goBuy(order) { |
229 | yohoAPI.goPay({ | 234 | yohoAPI.goPay({ |
@@ -206,6 +206,8 @@ | @@ -206,6 +206,8 @@ | ||
206 | }); | 206 | }); |
207 | }, | 207 | }, |
208 | confirmGoods(code) { | 208 | confirmGoods(code) { |
209 | + Modal.confirm('', '确认收货?', function() { | ||
210 | + this.hide(); | ||
209 | $.ajax({ | 211 | $.ajax({ |
210 | url: '/me/confirmReceive', | 212 | url: '/me/confirmReceive', |
211 | type: 'post', | 213 | type: 'post', |
@@ -221,6 +223,7 @@ | @@ -221,6 +223,7 @@ | ||
221 | }).fail(() => { | 223 | }).fail(() => { |
222 | tip('操作失败'); | 224 | tip('操作失败'); |
223 | }); | 225 | }); |
226 | + }); | ||
224 | }, | 227 | }, |
225 | goBuy(order) { | 228 | goBuy(order) { |
226 | yohoAPI.goPay({ | 229 | yohoAPI.goPay({ |
-
Please register or login to post a comment