Showing
1 changed file
with
11 additions
and
7 deletions
@@ -15,11 +15,11 @@ | @@ -15,11 +15,11 @@ | ||
15 | <span class="size">{{sizeInfo}}</span> | 15 | <span class="size">{{sizeInfo}}</span> |
16 | <div class="pricedetail"> | 16 | <div class="pricedetail"> |
17 | <div> | 17 | <div> |
18 | - <span class="priceTitle">最低售价: </span> | 18 | + <span class="priceTitle">现货最低售价: </span> |
19 | <span class="price">¥{{originProductData.least_price || '-'}}</span> | 19 | <span class="price">¥{{originProductData.least_price || '-'}}</span> |
20 | </div> | 20 | </div> |
21 | <div> | 21 | <div> |
22 | - <span class="priceTitle">最高求购价: </span> | 22 | + <span class="priceTitle">现货最高求购价: </span> |
23 | <span class="price">¥{{originProductData.bid_moster_price || '-'}}</span> | 23 | <span class="price">¥{{originProductData.bid_moster_price || '-'}}</span> |
24 | </div> | 24 | </div> |
25 | </div> | 25 | </div> |
@@ -98,7 +98,7 @@ const {mapState, mapActions, mapMutations, mapGetters} = createNamespacedHelpers | @@ -98,7 +98,7 @@ const {mapState, mapActions, mapMutations, mapGetters} = createNamespacedHelpers | ||
98 | export default { | 98 | export default { |
99 | name: 'BuyerAskOrder', | 99 | name: 'BuyerAskOrder', |
100 | components: {Button, Input, DayChoose, OrderAddress, OrderAgree}, | 100 | components: {Button, Input, DayChoose, OrderAddress, OrderAgree}, |
101 | - props:['lazy', 'storageId'], | 101 | + props: ['lazy', 'storageId'], |
102 | component: { | 102 | component: { |
103 | Input, | 103 | Input, |
104 | OrderAddress, | 104 | OrderAddress, |
@@ -141,10 +141,14 @@ export default { | @@ -141,10 +141,14 @@ export default { | ||
141 | 141 | ||
142 | beforeRouteEnter(to, from, next) { | 142 | beforeRouteEnter(to, from, next) { |
143 | 143 | ||
144 | + console.log(from.name); | ||
144 | next(vm => { | 145 | next(vm => { |
145 | // 通过 `vm` 访问组件实例 | 146 | // 通过 `vm` 访问组件实例 |
146 | - vm.inputPrice = ''; | ||
147 | - vm.BUYER_ASK_RESET_DATA(); | 147 | + if (from.name !== 'address') { |
148 | + vm.inputPrice = ''; | ||
149 | + vm.BUYER_ASK_RESET_DATA(); | ||
150 | + } | ||
151 | + | ||
148 | }); | 152 | }); |
149 | 153 | ||
150 | }, | 154 | }, |
@@ -344,7 +348,7 @@ export default { | @@ -344,7 +348,7 @@ export default { | ||
344 | title: '选择求购时限', | 348 | title: '选择求购时限', |
345 | data: [this.dayOptions], | 349 | data: [this.dayOptions], |
346 | onSelect: (value) => { | 350 | onSelect: (value) => { |
347 | - this.BUYER_ASK_SET_CHOOSEDAY(value[0]) | 351 | + this.BUYER_ASK_SET_CHOOSEDAY(value[0]); |
348 | }, | 352 | }, |
349 | selectedIndex: [2], | 353 | selectedIndex: [2], |
350 | onCancel: () => { | 354 | onCancel: () => { |
@@ -430,7 +434,7 @@ export default { | @@ -430,7 +434,7 @@ export default { | ||
430 | 434 | ||
431 | .productPrice { | 435 | .productPrice { |
432 | 436 | ||
433 | - width: calc(100% - 120*2px - 40*2px - 10*2px); | 437 | + width: calc(100% - 120*2px - 10*2px); |
434 | height: 120*2px; | 438 | height: 120*2px; |
435 | margin-left: 10*2px; | 439 | margin-left: 10*2px; |
436 | } | 440 | } |
-
Please register or login to post a comment