Showing
8 changed files
with
94 additions
and
18 deletions
1 | <template> | 1 | <template> |
2 | - <CubeInput v-bind="$attrs" v-bind:value="value" v-bind:needBlur="needBlur" v-on="inputListeners" :maxlength="8" class="input-number"> | 2 | + <CubeInput v-bind="$attrs" v-bind:value="value" v-on="inputListeners" :maxlength="8" class="input-number"> |
3 | <span slot="prepend"> | 3 | <span slot="prepend"> |
4 | <slot name="prepend"></slot> | 4 | <slot name="prepend"></slot> |
5 | </span> | 5 | </span> |
@@ -14,7 +14,7 @@ import {Input} from 'cube-ui'; | @@ -14,7 +14,7 @@ import {Input} from 'cube-ui'; | ||
14 | 14 | ||
15 | export default { | 15 | export default { |
16 | name: 'InputUfo', | 16 | name: 'InputUfo', |
17 | - props: ['value', 'needBlur'], | 17 | + props: ['value'], |
18 | computed: { | 18 | computed: { |
19 | inputListeners() { | 19 | inputListeners() { |
20 | return Object.assign({}, | 20 | return Object.assign({}, |
@@ -31,11 +31,6 @@ export default { | @@ -31,11 +31,6 @@ export default { | ||
31 | } | 31 | } |
32 | }, | 32 | }, |
33 | methods: { | 33 | methods: { |
34 | - onBlur() { | ||
35 | - if (this.needBlur) { | ||
36 | - | ||
37 | - } | ||
38 | - } | ||
39 | }, | 34 | }, |
40 | components: {CubeInput: Input} | 35 | components: {CubeInput: Input} |
41 | }; | 36 | }; |
1 | +<template> | ||
2 | + <div class="payment-confirm-wrapper"> | ||
3 | + | ||
4 | + </div> | ||
5 | +</template> | ||
6 | + | ||
7 | +<script> | ||
8 | + export default { | ||
9 | + name: 'paymentSheet' | ||
10 | + }; | ||
11 | +</script> | ||
12 | + | ||
13 | +<style lang="scss" scoped> | ||
14 | + .payment-confirm-wrapper { | ||
15 | + position: fixed; | ||
16 | + width: 100%; | ||
17 | + height: 100%; | ||
18 | + background-color: rgba(0, 0, 0, 0.5); | ||
19 | + z-index: 99; | ||
20 | + } | ||
21 | +</style> |
@@ -67,7 +67,7 @@ export default { | @@ -67,7 +67,7 @@ export default { | ||
67 | <style lang="scss" scoped> | 67 | <style lang="scss" scoped> |
68 | .item-content { | 68 | .item-content { |
69 | width: 100%; | 69 | width: 100%; |
70 | - height: 156px; | 70 | + height: 158px; |
71 | overflow: hidden; | 71 | overflow: hidden; |
72 | border-bottom: 1px solid #f0f0f0; | 72 | border-bottom: 1px solid #f0f0f0; |
73 | 73 | ||
@@ -115,7 +115,7 @@ export default { | @@ -115,7 +115,7 @@ export default { | ||
115 | box-sizing: border-box; | 115 | box-sizing: border-box; |
116 | 116 | ||
117 | .button-container { | 117 | .button-container { |
118 | - margin: 48px 0 0 62px; | 118 | + margin: 48px 0 0 52px; |
119 | 119 | ||
120 | button { | 120 | button { |
121 | width: 130px; | 121 | width: 130px; |
@@ -135,6 +135,8 @@ export default { | @@ -135,6 +135,8 @@ export default { | ||
135 | background-color: #0c2b4a; | 135 | background-color: #0c2b4a; |
136 | color: #fff; | 136 | color: #fff; |
137 | border-radius: 30px; | 137 | border-radius: 30px; |
138 | + border: none; | ||
139 | + margin-left: 10px; | ||
138 | } | 140 | } |
139 | } | 141 | } |
140 | } | 142 | } |
1 | <template> | 1 | <template> |
2 | - <div class="product-group"> | 2 | + <div class="product-group" v-if="skcs.length > 0"> |
3 | <ProductItem | 3 | <ProductItem |
4 | v-for="(skc, i) in skcs" | 4 | v-for="(skc, i) in skcs" |
5 | :key="i" :value="skc" | 5 | :key="i" :value="skc" |
6 | @on-change-price="onChangePrice" | 6 | @on-change-price="onChangePrice" |
7 | @on-no-sale="onNoSale"></ProductItem> | 7 | @on-no-sale="onNoSale"></ProductItem> |
8 | </div> | 8 | </div> |
9 | + <div class="no-item" v-else> | ||
10 | + <div class="no-item-bg"></div> | ||
11 | + <p>暂无数据</p> | ||
12 | + </div> | ||
9 | </template> | 13 | </template> |
10 | 14 | ||
11 | <script> | 15 | <script> |
@@ -31,11 +35,33 @@ export default { | @@ -31,11 +35,33 @@ export default { | ||
31 | }; | 35 | }; |
32 | </script> | 36 | </script> |
33 | 37 | ||
34 | -<style scoped> | 38 | +<style lang="scss" scoped> |
35 | .product-group { | 39 | .product-group { |
36 | position: relative; | 40 | position: relative; |
37 | width: 690px; | 41 | width: 690px; |
38 | margin: 0 auto; | 42 | margin: 0 auto; |
39 | overflow: hidden; | 43 | overflow: hidden; |
40 | } | 44 | } |
45 | + | ||
46 | + .no-item { | ||
47 | + position: relative; | ||
48 | + display: flex; | ||
49 | + height: 70%; | ||
50 | + flex-direction: column; | ||
51 | + align-items: center; | ||
52 | + justify-content: center; | ||
53 | + | ||
54 | + .no-item-bg { | ||
55 | + width: 186px; | ||
56 | + height: 242px; | ||
57 | + background-image: url("~statics/image/order/ufo-empty.png"); | ||
58 | + background-size: 100% 100%; | ||
59 | + } | ||
60 | + | ||
61 | + p { | ||
62 | + color: #999; | ||
63 | + line-height: 32px; | ||
64 | + } | ||
65 | + } | ||
66 | + | ||
41 | </style> | 67 | </style> |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <LayoutApp :title="title" :class="classes"> | 2 | <LayoutApp :title="title" :class="classes"> |
3 | <ScrollView ref="scroll" :options="scrollOption" @pulling-up="onPullingUp" @pulling-down="onPullingDown"> | 3 | <ScrollView ref="scroll" :options="scrollOption" @pulling-up="onPullingUp" @pulling-down="onPullingDown"> |
4 | <div class="order-page"> | 4 | <div class="order-page"> |
5 | - <div class="title">出售中</div> | 5 | +<!-- <div class="title">出售中</div>--> |
6 | <!--商品详情--> | 6 | <!--商品详情--> |
7 | <div class="product" @click="onClickProduct"> | 7 | <div class="product" @click="onClickProduct"> |
8 | <div class="pro-img"> | 8 | <div class="pro-img"> |
@@ -197,6 +197,9 @@ export default { | @@ -197,6 +197,9 @@ export default { | ||
197 | 197 | ||
198 | <style lang="scss" scoped> | 198 | <style lang="scss" scoped> |
199 | .order-page { | 199 | .order-page { |
200 | + position: absolute; | ||
201 | + width: 100%; | ||
202 | + height: 100%; | ||
200 | -webkit-font-smoothing: antialiased; | 203 | -webkit-font-smoothing: antialiased; |
201 | 204 | ||
202 | .title { | 205 | .title { |
1 | <template> | 1 | <template> |
2 | <LayoutApp :title="title"> | 2 | <LayoutApp :title="title"> |
3 | <div class="order-page"> | 3 | <div class="order-page"> |
4 | - <div class="title">出售</div> | ||
5 | <div class="product"> | 4 | <div class="product"> |
6 | <ImgSize class="pro-img" :src="noEntryOrderInfo.goodsInfo.goodImg || ''" :width="200" :height="200"></ImgSize> | 5 | <ImgSize class="pro-img" :src="noEntryOrderInfo.goodsInfo.goodImg || ''" :width="200" :height="200"></ImgSize> |
7 | <div class="pro-info"> | 6 | <div class="pro-info"> |
@@ -99,7 +98,7 @@ export default { | @@ -99,7 +98,7 @@ export default { | ||
99 | components: {Modal, InputUfo, ScrollView, LayoutApp, ImgSize, Checkbox}, | 98 | components: {Modal, InputUfo, ScrollView, LayoutApp, ImgSize, Checkbox}, |
100 | data() { | 99 | data() { |
101 | return { | 100 | return { |
102 | - title: '', | 101 | + title: '调价', |
103 | platformFeeModalVisible: false, | 102 | platformFeeModalVisible: false, |
104 | platformFee: { | 103 | platformFee: { |
105 | amount: '-¥0', | 104 | amount: '-¥0', |
@@ -239,12 +238,35 @@ export default { | @@ -239,12 +238,35 @@ export default { | ||
239 | * @returns {Promise<void>} | 238 | * @returns {Promise<void>} |
240 | */ | 239 | */ |
241 | async onPriceChangeConfirm({price, skup}) { | 240 | async onPriceChangeConfirm({price, skup}) { |
241 | + const that = this; | ||
242 | const result = await this.postNoEntryChangePrice({ | 242 | const result = await this.postNoEntryChangePrice({ |
243 | price, | 243 | price, |
244 | skup | 244 | skup |
245 | }); | 245 | }); |
246 | 246 | ||
247 | + if (result.code === 200 && result.data.orderCode) { | ||
247 | console.log(result); | 248 | console.log(result); |
249 | + this.$createOrderPayType({ | ||
250 | + orderCode: result.data.orderCode, | ||
251 | + price: price, | ||
252 | + desc: '保证金', | ||
253 | + onCloseAction() { | ||
254 | + that.$router.replace({ | ||
255 | + name: 'PriceChangeEntry', | ||
256 | + params: { | ||
257 | + orderId: result.data.productId | ||
258 | + } | ||
259 | + }); | ||
260 | + } | ||
261 | + }).show(); | ||
262 | + } else { | ||
263 | + this.$createToast({ | ||
264 | + txt: result.message || '调价失败', | ||
265 | + type: 'txt' | ||
266 | + }).show(); | ||
267 | + } | ||
268 | + | ||
269 | + // console.log(result); | ||
248 | } | 270 | } |
249 | } | 271 | } |
250 | }; | 272 | }; |
@@ -524,17 +546,22 @@ export default { | @@ -524,17 +546,22 @@ export default { | ||
524 | } | 546 | } |
525 | 547 | ||
526 | .submit-button { | 548 | .submit-button { |
549 | + position: relative; | ||
527 | width: 100%; | 550 | width: 100%; |
528 | height: 100px; | 551 | height: 100px; |
529 | - background-color: #ccc; | ||
530 | 552 | ||
531 | button { | 553 | button { |
532 | - width: 100%; | ||
533 | - height: 100%; | 554 | + display: block; |
555 | + width: 670px; | ||
556 | + height: 88px; | ||
557 | + border-radius: 60px; | ||
558 | + margin: 0 auto; | ||
534 | color: #fff; | 559 | color: #fff; |
560 | + background-color: #ccc; | ||
561 | + border: none; | ||
535 | } | 562 | } |
536 | 563 | ||
537 | - &.active { | 564 | + &.active button{ |
538 | background-color: #0c2b48; | 565 | background-color: #0c2b48; |
539 | } | 566 | } |
540 | } | 567 | } |
apps/statics/image/order/ufo-empty.png
0 → 100644
![](/fe/xianyu-ufo-app-web/raw/aa4855041fc9f332016526200e14a9b6f309263e/apps/statics/image/order/ufo-empty.png)
29.8 KB
@@ -37,6 +37,8 @@ export default { | @@ -37,6 +37,8 @@ export default { | ||
37 | }); | 37 | }); |
38 | } | 38 | } |
39 | 39 | ||
40 | + console.log(result); | ||
41 | + | ||
40 | if (result && result.code === 200) { | 42 | if (result && result.code === 200) { |
41 | commit(Types.FETCH_ORDER_PRODUCT_SUCCESS, { | 43 | commit(Types.FETCH_ORDER_PRODUCT_SUCCESS, { |
42 | order: result.data, | 44 | order: result.data, |
-
Please register or login to post a comment