Showing
13 changed files
with
24 additions
and
36 deletions
@@ -146,6 +146,8 @@ const order = { | @@ -146,6 +146,8 @@ const order = { | ||
146 | 146 | ||
147 | // API- 订单-物流 | 147 | // API- 订单-物流 |
148 | getOrderLogisticdate: (req, res) => { | 148 | getOrderLogisticdate: (req, res) => { |
149 | + (req.query.type === 'exchange') && (req.query.type = 'change'); | ||
150 | + | ||
149 | orderModel.getOrderLogisticdate({ | 151 | orderModel.getOrderLogisticdate({ |
150 | uid: req.user.uid || '', | 152 | uid: req.user.uid || '', |
151 | type: req.query.type || '', | 153 | type: req.query.type || '', |
@@ -16,10 +16,6 @@ const refund = { | @@ -16,10 +16,6 @@ const refund = { | ||
16 | }).then(global.yoho.camelCase); | 16 | }).then(global.yoho.camelCase); |
17 | }, | 17 | }, |
18 | submitRefundData(uid, params) { | 18 | submitRefundData(uid, params) { |
19 | - console.log(Object.assign({ | ||
20 | - method: 'app.refund.submit', | ||
21 | - uid: uid, | ||
22 | - }, params)); | ||
23 | return api.post('', Object.assign({ | 19 | return api.post('', Object.assign({ |
24 | method: 'app.refund.submit', | 20 | method: 'app.refund.submit', |
25 | uid: uid, | 21 | uid: uid, |
@@ -78,9 +74,7 @@ const refund = { | @@ -78,9 +74,7 @@ const refund = { | ||
78 | method: 'app.refund.getList' | 74 | method: 'app.refund.getList' |
79 | }, param); | 75 | }, param); |
80 | 76 | ||
81 | - return api.get('', param, { | ||
82 | - code: 200 | ||
83 | - }).then(global.yoho.camelCase); | 77 | + return api.get('', param).then(global.yoho.camelCase); |
84 | }, | 78 | }, |
85 | 79 | ||
86 | /** | 80 | /** |
@@ -52,14 +52,14 @@ class Overlay { | @@ -52,14 +52,14 @@ class Overlay { | ||
52 | } | 52 | } |
53 | }); | 53 | }); |
54 | 54 | ||
55 | - if (this.settings.disableScrolling) { | ||
56 | - // 覆盖层出现时阻止滚动 | ||
57 | - $(window).on('touchmove', (e)=> { | ||
58 | - if (this.isVisible) { | ||
59 | - e.preventDefault(); | ||
60 | - } | ||
61 | - }); | ||
62 | - } | 55 | + // if (this.settings.disableScrolling) { |
56 | + // // 覆盖层出现时阻止滚动 | ||
57 | + // $(window).on('touchmove', (e)=> { | ||
58 | + // if (this.isVisible) { | ||
59 | + // e.preventDefault(); | ||
60 | + // } | ||
61 | + // }); | ||
62 | + // } | ||
63 | 63 | ||
64 | this.elem[0].addEventListener('webkitTransitionEnd', this._cleanup.bind(this)); | 64 | this.elem[0].addEventListener('webkitTransitionEnd', this._cleanup.bind(this)); |
65 | } | 65 | } |
@@ -134,7 +134,6 @@ | @@ -134,7 +134,6 @@ | ||
134 | const self = this; | 134 | const self = this; |
135 | 135 | ||
136 | this.overlay = new Overlay({ | 136 | this.overlay = new Overlay({ |
137 | - disableScrolling: false, | ||
138 | onClose: function() { | 137 | onClose: function() { |
139 | self.isVisible = false; | 138 | self.isVisible = false; |
140 | } | 139 | } |
@@ -156,7 +155,7 @@ | @@ -156,7 +155,7 @@ | ||
156 | top: 0; | 155 | top: 0; |
157 | right: 0; | 156 | right: 0; |
158 | bottom: 0; | 157 | bottom: 0; |
159 | - left: 150px; | 158 | + width: 530px; |
160 | background-color: #fff; | 159 | background-color: #fff; |
161 | transform: translate3d(100%, 0, 0); | 160 | transform: translate3d(100%, 0, 0); |
162 | transition: all 0.3s 0.2s; | 161 | transition: all 0.3s 0.2s; |
@@ -208,7 +207,7 @@ | @@ -208,7 +207,7 @@ | ||
208 | .filter-cate-val { | 207 | .filter-cate-val { |
209 | float: right; | 208 | float: right; |
210 | font-size: 28px; | 209 | font-size: 28px; |
211 | - max-width: 45%; | 210 | + max-width: 33%%; |
212 | white-space: nowrap; | 211 | white-space: nowrap; |
213 | text-overflow: ellipsis; | 212 | text-overflow: ellipsis; |
214 | overflow: hidden; | 213 | overflow: hidden; |
@@ -151,7 +151,6 @@ | @@ -151,7 +151,6 @@ | ||
151 | goodsId: selection.size.goodsId, | 151 | goodsId: selection.size.goodsId, |
152 | sku: selection.size.value | 152 | sku: selection.size.value |
153 | }; | 153 | }; |
154 | - console.log(goods.goodsId); | ||
155 | 154 | ||
156 | this.showFeatureSelector = false; | 155 | this.showFeatureSelector = false; |
157 | }, | 156 | }, |
@@ -174,6 +174,7 @@ $border_color_light: #eee; | @@ -174,6 +174,7 @@ $border_color_light: #eee; | ||
174 | let data = { | 174 | let data = { |
175 | orderCode: qs.order_code || '', | 175 | orderCode: qs.order_code || '', |
176 | type: qs.type || '', | 176 | type: qs.type || '', |
177 | + id: qs.id || '' | ||
177 | }; | 178 | }; |
178 | 179 | ||
179 | $.ajax({ | 180 | $.ajax({ |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | <div v-if="detail.status == 20" | 16 | <div v-if="detail.status == 20" |
17 | class="logistics-detail"> | 17 | class="logistics-detail"> |
18 | <template v-if="detail.notice"> | 18 | <template v-if="detail.notice"> |
19 | - <a href="/me/logistic?order_code={{sourceOrderCode}}&type=refund"> | 19 | + <a href="/me/logistic?order_code={{sourceOrderCode}}&id={{applyid}}&type={{type}}"> |
20 | <h2>{{detail.notice.title}}</h2> | 20 | <h2>{{detail.notice.title}}</h2> |
21 | <p>物流公司: {{detail.notice.expressCompany}}<br>快递单号: {{detail.notice.expressNumber}}</p> | 21 | <p>物流公司: {{detail.notice.expressCompany}}<br>快递单号: {{detail.notice.expressNumber}}</p> |
22 | <span class="right"><span class="icon icon-right"></span></span> | 22 | <span class="right"><span class="icon icon-right"></span></span> |
@@ -147,8 +147,8 @@ | @@ -147,8 +147,8 @@ | ||
147 | 147 | ||
148 | this.id = this.detail.id; | 148 | this.id = this.detail.id; |
149 | this.sourceOrderCode = this.detail.sourceOrderCode; | 149 | this.sourceOrderCode = this.detail.sourceOrderCode; |
150 | - } else if (result.code !== 500) { | ||
151 | - tip(result.message); | 150 | + } else if (res.code !== 500) { |
151 | + tip(res.message); | ||
152 | } else { | 152 | } else { |
153 | tip('数据获取失败'); | 153 | tip('数据获取失败'); |
154 | } | 154 | } |
@@ -160,7 +160,7 @@ | @@ -160,7 +160,7 @@ | ||
160 | 160 | ||
161 | </show-box> | 161 | </show-box> |
162 | 162 | ||
163 | - <div class="control-box" v-if="isApp"> | 163 | + <div class="control-box" v-if="isApp && isReady"> |
164 | <button class="button control-button"> | 164 | <button class="button control-button"> |
165 | <span @click="yoho.goShopingCart()" style="position: relative;"> | 165 | <span @click="yoho.goShopingCart()" style="position: relative;"> |
166 | <i class="icon icon-bag"></i> | 166 | <i class="icon icon-bag"></i> |
@@ -435,7 +435,8 @@ | @@ -435,7 +435,8 @@ | ||
435 | 435 | ||
436 | //state | 436 | //state |
437 | isApp: yoho.isApp, | 437 | isApp: yoho.isApp, |
438 | - isSoldOut: true | 438 | + isSoldOut: false, |
439 | + isReady: false | ||
439 | }; | 440 | }; |
440 | }, | 441 | }, |
441 | computed: { | 442 | computed: { |
@@ -490,8 +491,6 @@ | @@ -490,8 +491,6 @@ | ||
490 | const self = this; | 491 | const self = this; |
491 | const pid = app.data('pid'); | 492 | const pid = app.data('pid'); |
492 | 493 | ||
493 | - this.isSoldOut = true; | ||
494 | - | ||
495 | // 显示商品特征选择组件 | 494 | // 显示商品特征选择组件 |
496 | this.$on('feature.close', function() { | 495 | this.$on('feature.close', function() { |
497 | self.showFeatureSelector = false; | 496 | self.showFeatureSelector = false; |
@@ -502,8 +501,8 @@ | @@ -502,8 +501,8 @@ | ||
502 | // TODO: 异常处理 | 501 | // TODO: 异常处理 |
503 | this.entity = result; | 502 | this.entity = result; |
504 | 503 | ||
505 | - if (this.entity.storage !== 0 && this.entity.status !== 0) { | ||
506 | - this.isSoldOut = false; | 504 | + if (this.entity.storage === 0 || this.entity.status === 0) { |
505 | + this.isSoldOut = true; | ||
507 | } | 506 | } |
508 | 507 | ||
509 | this.entity.goodsList.forEach((goods)=> { | 508 | this.entity.goodsList.forEach((goods)=> { |
@@ -533,7 +532,8 @@ | @@ -533,7 +532,8 @@ | ||
533 | $.get(`/product/product/intro_${pid}.json`, {skn: result.productPriceBo.productSkn}).then(intro => { | 532 | $.get(`/product/product/intro_${pid}.json`, {skn: result.productPriceBo.productSkn}).then(intro => { |
534 | this.intro = intro; | 533 | this.intro = intro; |
535 | }); | 534 | }); |
536 | - }); | 535 | + }) |
536 | + .always(()=>{this.isReady = true}); | ||
537 | 537 | ||
538 | // 读取购物车数量 | 538 | // 读取购物车数量 |
539 | if (this.isApp) { | 539 | if (this.isApp) { |
@@ -60,7 +60,6 @@ | @@ -60,7 +60,6 @@ | ||
60 | const self = this; | 60 | const self = this; |
61 | const nextPage = this.page + 1; | 61 | const nextPage = this.page + 1; |
62 | 62 | ||
63 | - console.log(nextPage); | ||
64 | if (this.inSearching) { | 63 | if (this.inSearching) { |
65 | return; | 64 | return; |
66 | } | 65 | } |
@@ -130,7 +129,6 @@ | @@ -130,7 +129,6 @@ | ||
130 | * 2. 关闭 drawer 组件 | 129 | * 2. 关闭 drawer 组件 |
131 | */ | 130 | */ |
132 | bus.$on('filter.change', function({val}) { | 131 | bus.$on('filter.change', function({val}) { |
133 | - console.log(val); | ||
134 | let filter = {}; | 132 | let filter = {}; |
135 | 133 | ||
136 | $.each(val, (type, item) => { | 134 | $.each(val, (type, item) => { |
-
Please register or login to post a comment