Showing
25 changed files
with
183 additions
and
76 deletions
@@ -154,9 +154,9 @@ export default { | @@ -154,9 +154,9 @@ export default { | ||
154 | bottom: 0; | 154 | bottom: 0; |
155 | 155 | ||
156 | .yoho-popup-container { | 156 | .yoho-popup-container { |
157 | - background-color: #fff; | ||
158 | position: relative; | 157 | position: relative; |
159 | opacity: 1; | 158 | opacity: 1; |
159 | + overflow: hidden; | ||
160 | } | 160 | } |
161 | 161 | ||
162 | &:after { | 162 | &:after { |
@@ -170,11 +170,4 @@ export default { | @@ -170,11 +170,4 @@ export default { | ||
170 | background: #fff; | 170 | background: #fff; |
171 | } | 171 | } |
172 | } | 172 | } |
173 | - | ||
174 | -.yoho-action-sheet { | ||
175 | - .yoho-popup-container { | ||
176 | - border-radius: 8px 8px 0 0; | ||
177 | - overflow: hidden; | ||
178 | - } | ||
179 | -} | ||
180 | </style> | 173 | </style> |
@@ -22,8 +22,8 @@ | @@ -22,8 +22,8 @@ | ||
22 | </div> | 22 | </div> |
23 | </div> | 23 | </div> |
24 | </slot> | 24 | </slot> |
25 | - <div name="footer"> | ||
26 | - <YohoButton txt="确定" class="footer" @click="pay"></YohoButton> | 25 | + <div class="footer"> |
26 | + <YohoButton txt="确定" class="btn-wrapper" @click="pay"></YohoButton> | ||
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | </YohoActionSheet> | 29 | </YohoActionSheet> |
@@ -80,6 +80,8 @@ export default { | @@ -80,6 +80,8 @@ export default { | ||
80 | position: relative; | 80 | position: relative; |
81 | display: flex; | 81 | display: flex; |
82 | flex-direction: column; | 82 | flex-direction: column; |
83 | + border-top-left-radius: 32px 32px; | ||
84 | + border-top-right-radius: 32px 32px; | ||
83 | } | 85 | } |
84 | 86 | ||
85 | .header { | 87 | .header { |
@@ -127,6 +129,20 @@ export default { | @@ -127,6 +129,20 @@ export default { | ||
127 | 129 | ||
128 | .footer { | 130 | .footer { |
129 | font-size: 32px; | 131 | font-size: 32px; |
132 | + height: 112px; | ||
133 | + background-color: white; | ||
134 | + border-top: 1px solid #eee; | ||
135 | + display: flex; | ||
136 | + align-items: center; | ||
137 | + justify-content: center; | ||
138 | +} | ||
139 | + | ||
140 | +.btn-wrapper { | ||
141 | + width: 640px; | ||
142 | + height: 80px; | ||
143 | + line-height: 80px; | ||
144 | + font-size: 32px; | ||
145 | + font-weight: bold; | ||
130 | } | 146 | } |
131 | 147 | ||
132 | .price-info { | 148 | .price-info { |
1 | import createAPI from 'utils/create-api'; | 1 | import createAPI from 'utils/create-api'; |
2 | 2 | ||
3 | export default function addPayType(Vue, PayType) { | 3 | export default function addPayType(Vue, PayType) { |
4 | - createAPI(Vue, PayType, ['closeAction', 'confirmAction'], true); | 4 | + createAPI(Vue, PayType, ['closeAction', 'confirmAction', 'payError', 'paySuccess'], true); |
5 | } | 5 | } |
@@ -22,8 +22,8 @@ | @@ -22,8 +22,8 @@ | ||
22 | </div> | 22 | </div> |
23 | </div> | 23 | </div> |
24 | </slot> | 24 | </slot> |
25 | - <div name="footer" class="footer"> | ||
26 | - <YohoButton txt="确定支付" @click="pay"></YohoButton> | 25 | + <div class="footer"> |
26 | + <YohoButton txt="确定支付" class="btn-wrapper" @click="pay"></YohoButton> | ||
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | </YohoActionSheet> | 29 | </YohoActionSheet> |
@@ -111,7 +111,7 @@ export default { | @@ -111,7 +111,7 @@ export default { | ||
111 | }); | 111 | }); |
112 | }, | 112 | }, |
113 | onError(result) { | 113 | onError(result) { |
114 | - this.$emit('on-pay-error'); | 114 | + this.$emit('payError'); |
115 | this.$createToast({ | 115 | this.$createToast({ |
116 | txt: result.message, | 116 | txt: result.message, |
117 | time: 1500, | 117 | time: 1500, |
@@ -120,7 +120,7 @@ export default { | @@ -120,7 +120,7 @@ export default { | ||
120 | }, | 120 | }, |
121 | onSuccess(result) { | 121 | onSuccess(result) { |
122 | this.hide(); | 122 | this.hide(); |
123 | - this.$emit('on-pay-success'); | 123 | + this.$emit('paySuccess'); |
124 | 124 | ||
125 | this.$router.push({ | 125 | this.$router.push({ |
126 | name: 'OrderPay', | 126 | name: 'OrderPay', |
@@ -139,6 +139,8 @@ export default { | @@ -139,6 +139,8 @@ export default { | ||
139 | height: 714px; | 139 | height: 714px; |
140 | background: white; | 140 | background: white; |
141 | position: relative; | 141 | position: relative; |
142 | + border-top-left-radius: 32px 32px; | ||
143 | + border-top-right-radius: 32px 32px; | ||
142 | } | 144 | } |
143 | 145 | ||
144 | .header { | 146 | .header { |
@@ -198,6 +200,13 @@ export default { | @@ -198,6 +200,13 @@ export default { | ||
198 | box-sizing: border-box; | 200 | box-sizing: border-box; |
199 | } | 201 | } |
200 | 202 | ||
203 | +.btn-wrapper { | ||
204 | + height: 80px; | ||
205 | + line-height: 80px; | ||
206 | + font-size: 32px; | ||
207 | + font-weight: bold; | ||
208 | +} | ||
209 | + | ||
201 | .price-info { | 210 | .price-info { |
202 | margin-top: 40px; | 211 | margin-top: 40px; |
203 | margin-bottom: 60px; | 212 | margin-bottom: 60px; |
@@ -17,8 +17,8 @@ | @@ -17,8 +17,8 @@ | ||
17 | </div> | 17 | </div> |
18 | </div> | 18 | </div> |
19 | </slot> | 19 | </slot> |
20 | - <div name="footer"> | ||
21 | - <YohoButton txt="确定" class="footer" @click="pay"></YohoButton> | 20 | + <div class="footer"> |
21 | + <YohoButton txt="确定" class="btn-wrapper" @click="pay"></YohoButton> | ||
22 | </div> | 22 | </div> |
23 | </div> | 23 | </div> |
24 | </YohoActionSheet> | 24 | </YohoActionSheet> |
@@ -75,6 +75,8 @@ export default { | @@ -75,6 +75,8 @@ export default { | ||
75 | position: relative; | 75 | position: relative; |
76 | display: flex; | 76 | display: flex; |
77 | flex-direction: column; | 77 | flex-direction: column; |
78 | + border-top-left-radius: 32px 32px; | ||
79 | + border-top-right-radius: 32px 32px; | ||
78 | } | 80 | } |
79 | 81 | ||
80 | .header { | 82 | .header { |
@@ -121,6 +123,20 @@ export default { | @@ -121,6 +123,20 @@ export default { | ||
121 | 123 | ||
122 | .footer { | 124 | .footer { |
123 | font-size: 32px; | 125 | font-size: 32px; |
126 | + height: 112px; | ||
127 | + background-color: white; | ||
128 | + border-top: 1px solid #eee; | ||
129 | + display: flex; | ||
130 | + align-items: center; | ||
131 | + justify-content: center; | ||
132 | +} | ||
133 | + | ||
134 | +.btn-wrapper { | ||
135 | + width: 640px; | ||
136 | + height: 80px; | ||
137 | + line-height: 80px; | ||
138 | + font-size: 32px; | ||
139 | + font-weight: bold; | ||
124 | } | 140 | } |
125 | 141 | ||
126 | .price-info { | 142 | .price-info { |
@@ -64,7 +64,7 @@ export default { | @@ -64,7 +64,7 @@ export default { | ||
64 | height: 80px; | 64 | height: 80px; |
65 | top: 10px; | 65 | top: 10px; |
66 | right: 0; | 66 | right: 0; |
67 | - background: linear-gradient(#fff, #f0f0f0, #fff); | 67 | + background: linear-gradient(#fff, #E0E0E0, #fff); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | } | 70 | } |
@@ -76,7 +76,6 @@ export default { | @@ -76,7 +76,6 @@ export default { | ||
76 | } | 76 | } |
77 | 77 | ||
78 | .order-text { | 78 | .order-text { |
79 | - padding-top: 10px; | ||
80 | font-size: 24; | 79 | font-size: 24; |
81 | color: #444; | 80 | color: #444; |
82 | text-align: center; | 81 | text-align: center; |
@@ -73,7 +73,7 @@ export default { | @@ -73,7 +73,7 @@ export default { | ||
73 | width: 100%; | 73 | width: 100%; |
74 | line-height: 90px; | 74 | line-height: 90px; |
75 | font-size: 24px; | 75 | font-size: 24px; |
76 | - color: #D0021B; | 76 | + color: #000; |
77 | padding-left: 20px; | 77 | padding-left: 20px; |
78 | overflow: hidden; | 78 | overflow: hidden; |
79 | text-overflow: ellipsis; | 79 | text-overflow: ellipsis; |
1 | <template> | 1 | <template> |
2 | <div class="tab-item" :class="itemClass" @click="goPage(data)"> | 2 | <div class="tab-item" :class="itemClass" @click="goPage(data)"> |
3 | - <div class="title" :class="titleClass">{{ data.title }}</div> | 3 | + <i v-if="icon" class="tab-icon" :class=icon></i> |
4 | + <div v-if="data.title" class="title" :class="titleClass">{{ data.title }}</div> | ||
4 | <slot | 5 | <slot |
5 | ><div class="text">{{ data.num }}</div></slot | 6 | ><div class="text">{{ data.num }}</div></slot |
6 | > | 7 | > |
@@ -39,6 +40,10 @@ export default { | @@ -39,6 +40,10 @@ export default { | ||
39 | titleSmall: { | 40 | titleSmall: { |
40 | type: Boolean, | 41 | type: Boolean, |
41 | default: false | 42 | default: false |
43 | + }, | ||
44 | + icon: { | ||
45 | + type: String, | ||
46 | + default: '' | ||
42 | } | 47 | } |
43 | }, | 48 | }, |
44 | data() { | 49 | data() { |
@@ -55,7 +60,7 @@ export default { | @@ -55,7 +60,7 @@ export default { | ||
55 | titleClass() { | 60 | titleClass() { |
56 | return { | 61 | return { |
57 | "title-bold": this.titleBold, | 62 | "title-bold": this.titleBold, |
58 | - "title-size": this.titleSmall | 63 | + "title-small": this.titleSmall |
59 | }; | 64 | }; |
60 | } | 65 | } |
61 | }, | 66 | }, |
@@ -89,14 +94,19 @@ export default { | @@ -89,14 +94,19 @@ export default { | ||
89 | height: 120px; | 94 | height: 120px; |
90 | line-height: 120px; | 95 | line-height: 120px; |
91 | } | 96 | } |
92 | - | 97 | +.tab-icon { |
98 | + font-size: 36px; | ||
99 | + color: #444; | ||
100 | +} | ||
93 | .small { | 101 | .small { |
94 | height: 90px; | 102 | height: 90px; |
95 | line-height: 90px; | 103 | line-height: 90px; |
96 | } | 104 | } |
97 | - | 105 | +.title-small { |
106 | + font-size: 30px; | ||
107 | +} | ||
98 | .grey { | 108 | .grey { |
99 | - background-color: #f5f7f9; | 109 | + background-color: #F2F2F2; |
100 | margin: 0 -40px; | 110 | margin: 0 -40px; |
101 | padding: 0 40px; | 111 | padding: 0 40px; |
102 | } | 112 | } |
@@ -116,10 +126,6 @@ export default { | @@ -116,10 +126,6 @@ export default { | ||
116 | font-weight: bold; | 126 | font-weight: bold; |
117 | } | 127 | } |
118 | 128 | ||
119 | -.title-size { | ||
120 | - font-size: 28px; | ||
121 | -} | ||
122 | - | ||
123 | .text { | 129 | .text { |
124 | font-family: "Alte DIN 1451 Mittelschrift"; | 130 | font-family: "Alte DIN 1451 Mittelschrift"; |
125 | color: black; | 131 | color: black; |
@@ -128,7 +134,7 @@ export default { | @@ -128,7 +134,7 @@ export default { | ||
128 | } | 134 | } |
129 | 135 | ||
130 | .cubeic-arrow { | 136 | .cubeic-arrow { |
131 | - color: #d8d8d8; | 137 | + color: #999; |
132 | margin-left: 10px; | 138 | margin-left: 10px; |
133 | font-size: 32px; | 139 | font-size: 32px; |
134 | } | 140 | } |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <LayoutApp :show-back="true"> | 2 | <LayoutApp :show-back="true"> |
3 | <div class="body" ref="body"> | 3 | <div class="body" ref="body"> |
4 | <div v-for="(value, key) in getMineList" :key="key"> | 4 | <div v-for="(value, key) in getMineList" :key="key"> |
5 | - <tab-item v-if="key === 'board'" :data="value" noLine titleBold titleSmall small grey> | 5 | + <tab-item v-if="key === 'board'" :data="value" noLine icon="cubeic-notification" small grey> |
6 | <scroll></scroll> | 6 | <scroll></scroll> |
7 | </tab-item> | 7 | </tab-item> |
8 | <template v-else-if="key === 'resource1' || key === 'resource2'"> | 8 | <template v-else-if="key === 'resource1' || key === 'resource2'"> |
@@ -10,9 +10,12 @@ | @@ -10,9 +10,12 @@ | ||
10 | <singleImage :data="value.data.data[0]"></singleImage> | 10 | <singleImage :data="value.data.data[0]"></singleImage> |
11 | </div> | 11 | </div> |
12 | </template> | 12 | </template> |
13 | - | ||
14 | - <order v-else-if="key === 'order'"></order> | ||
15 | - <tab-item v-else-if="key === 'sale'" :data="value" noLine titleBold></tab-item> | 13 | + <div v-else-if="key === 'order'" class="bg-bottom"> |
14 | + <order></order> | ||
15 | + </div> | ||
16 | + <div v-else-if="key === 'sale'" class="bg-top"> | ||
17 | + <tab-item :data="value" noLine titleBold titleSmall></tab-item> | ||
18 | + </div> | ||
16 | <tab-item v-else :data="value"></tab-item> | 19 | <tab-item v-else :data="value"></tab-item> |
17 | </div> | 20 | </div> |
18 | </div> | 21 | </div> |
@@ -64,4 +67,19 @@ export default { | @@ -64,4 +67,19 @@ export default { | ||
64 | background-color: white; | 67 | background-color: white; |
65 | padding: 0 40px; | 68 | padding: 0 40px; |
66 | } | 69 | } |
70 | +.bg-top, | ||
71 | +.bg-bottom { | ||
72 | + background-color: #F2F2F2; | ||
73 | +} | ||
74 | +.bg-top { | ||
75 | + border-top-left-radius: 32px; | ||
76 | + border-top-right-radius: 32px; | ||
77 | + margin-top: 30px; | ||
78 | + padding: 0 30px; | ||
79 | +} | ||
80 | +.bg-bottom { | ||
81 | + border-bottom-left-radius: 32px; | ||
82 | + border-bottom-right-radius: 32px; | ||
83 | + margin-bottom: 20px; | ||
84 | +} | ||
67 | </style> | 85 | </style> |
@@ -25,10 +25,10 @@ import ProductInfo from './components/confirm/buyer-product'; | @@ -25,10 +25,10 @@ import ProductInfo from './components/confirm/buyer-product'; | ||
25 | import AddressInfo from './components/confirm/address'; | 25 | import AddressInfo from './components/confirm/address'; |
26 | import TitleComp from './components/confirm/title'; | 26 | import TitleComp from './components/confirm/title'; |
27 | import BuyerFeeInfo from './components/confirm/buyer-fee'; | 27 | import BuyerFeeInfo from './components/confirm/buyer-fee'; |
28 | -import OrderInfo from './components/confirm/order-info'; | 28 | +import OrderInfo from './components/confirm/buyer-order-info'; |
29 | import OrderFooter from './components/confirm/buyer-order-footer'; | 29 | import OrderFooter from './components/confirm/buyer-order-footer'; |
30 | -import Coupon from './components/confirm/coupon'; | ||
31 | -import Promotion from './components/confirm/promotion'; | 30 | +import Coupon from './components/confirm/buyer-coupon'; |
31 | +import Promotion from './components/confirm/buyer-promotion'; | ||
32 | import { Types, UserType } from 'store/order/order-confirm'; | 32 | import { Types, UserType } from 'store/order/order-confirm'; |
33 | import { get } from 'lodash'; | 33 | import { get } from 'lodash'; |
34 | 34 |
@@ -51,6 +51,10 @@ export default { | @@ -51,6 +51,10 @@ export default { | ||
51 | .agree { | 51 | .agree { |
52 | font-size: 24px; | 52 | font-size: 24px; |
53 | color: #999; | 53 | color: #999; |
54 | + height: 76px; | ||
55 | + background-color: white; | ||
56 | + padding: 0 40px; | ||
57 | + line-height: 76px; | ||
54 | } | 58 | } |
55 | 59 | ||
56 | .link { | 60 | .link { |
1 | <template> | 1 | <template> |
2 | + <div class="agree-wrapper"> | ||
3 | + <Agree></Agree> | ||
2 | <div class="order-footer-wrapper"> | 4 | <div class="order-footer-wrapper"> |
3 | <div class="btn1"> | 5 | <div class="btn1"> |
4 | - <span>待支付:<span class="red">¥{{amount}}</span></span> | 6 | + <div>实付金额:<span class="red">¥{{amount}}</span></div> |
7 | + <div class="desc">本次交易由闲鱼x有货提供服务</div> | ||
5 | </div> | 8 | </div> |
6 | <YohoButton class="btn2" txt="去支付" @click="onClick"></YohoButton> | 9 | <YohoButton class="btn2" txt="去支付" @click="onClick"></YohoButton> |
7 | </div> | 10 | </div> |
11 | + </div> | ||
8 | </template> | 12 | </template> |
9 | 13 | ||
10 | <script> | 14 | <script> |
11 | 15 | ||
16 | +import Agree from './agree'; | ||
17 | + | ||
12 | export default { | 18 | export default { |
13 | name: 'BuyerOrderFooter', | 19 | name: 'BuyerOrderFooter', |
14 | props: ['amount'], | 20 | props: ['amount'], |
21 | + components: { | ||
22 | + Agree | ||
23 | + }, | ||
15 | methods: { | 24 | methods: { |
16 | onClick() { | 25 | onClick() { |
17 | this.$emit('click'); | 26 | this.$emit('click'); |
@@ -24,25 +33,39 @@ export default { | @@ -24,25 +33,39 @@ export default { | ||
24 | .order-footer-wrapper { | 33 | .order-footer-wrapper { |
25 | width: 100%; | 34 | width: 100%; |
26 | border-top: 1px solid #eee; | 35 | border-top: 1px solid #eee; |
36 | + padding: 0 40px; | ||
27 | height: 120px; | 37 | height: 120px; |
28 | display: flex; | 38 | display: flex; |
39 | + align-items: center; | ||
40 | +} | ||
41 | + | ||
42 | +.agree-wrapper { | ||
43 | + border-top: 1px solid #eee; | ||
29 | } | 44 | } |
30 | 45 | ||
31 | .btn1 { | 46 | .btn1 { |
32 | flex: 1; | 47 | flex: 1; |
33 | font-size: 24px; | 48 | font-size: 24px; |
34 | - text-align: center; | ||
35 | - line-height: 120px; | 49 | + text-align: left; |
36 | } | 50 | } |
37 | 51 | ||
38 | .btn2 { | 52 | .btn2 { |
39 | - width: 300px; | ||
40 | - font-size: 36px; | 53 | + width: 220px; |
54 | + height: 80px; | ||
55 | + line-height: 80px; | ||
56 | + font-size: 24px; | ||
41 | } | 57 | } |
42 | 58 | ||
43 | .red { | 59 | .red { |
44 | - font-size: 36px; | ||
45 | - color: red; | 60 | + font-size: 28px; |
61 | + color: #d0021b; | ||
46 | font-weight: bolder; | 62 | font-weight: bolder; |
47 | } | 63 | } |
64 | + | ||
65 | +.desc { | ||
66 | + margin-top: 8px; | ||
67 | + font-size: 20px; | ||
68 | + color: #999; | ||
69 | +} | ||
70 | + | ||
48 | </style> | 71 | </style> |
@@ -40,7 +40,8 @@ export default { | @@ -40,7 +40,8 @@ export default { | ||
40 | .input-wrapper { | 40 | .input-wrapper { |
41 | display: flex; | 41 | display: flex; |
42 | position: relative; | 42 | position: relative; |
43 | - height: 100px; | 43 | + overflow: hidden; |
44 | + height: 120px; | ||
44 | background: #f5f5f5; | 45 | background: #f5f5f5; |
45 | } | 46 | } |
46 | 47 | ||
@@ -50,18 +51,20 @@ export default { | @@ -50,18 +51,20 @@ export default { | ||
50 | margin-right: 10px; | 51 | margin-right: 10px; |
51 | font-size: 40px; | 52 | font-size: 40px; |
52 | font-weight: bolder; | 53 | font-weight: bolder; |
53 | - line-height: 100px; | 54 | + line-height: 120px; |
54 | } | 55 | } |
55 | 56 | ||
56 | .tip { | 57 | .tip { |
57 | flex: 1; | 58 | flex: 1; |
58 | - font-size: 28px; | ||
59 | - line-height: 100px; | 59 | + font-size: 56px; |
60 | + font-weight: 500; | ||
61 | + line-height: 120px; | ||
60 | background: #f5f5f5; | 62 | background: #f5f5f5; |
61 | } | 63 | } |
62 | 64 | ||
63 | ::placeholder { | 65 | ::placeholder { |
64 | color: #ccc; | 66 | color: #ccc; |
67 | + font-size: 28px; | ||
65 | opacity: 1; /* Firefox */ | 68 | opacity: 1; /* Firefox */ |
66 | } | 69 | } |
67 | 70 |
@@ -10,7 +10,9 @@ | @@ -10,7 +10,9 @@ | ||
10 | </div> | 10 | </div> |
11 | <div class="footer"> | 11 | <div class="footer"> |
12 | <OrderAgree :value="agree" @input="changeAgree" class="agree-wrapper" :desc="agreeDesc"></OrderAgree> | 12 | <OrderAgree :value="agree" @input="changeAgree" class="agree-wrapper" :desc="agreeDesc"></OrderAgree> |
13 | - <YohoButton :txt="txt" @click="onClick" :disable="!agree"></YohoButton> | 13 | + <div class="btn-wrapper"> |
14 | + <YohoButton :txt="txt" class="submit-btn" @click="onClick" :disable="!agree"></YohoButton> | ||
15 | + </div> | ||
14 | </div> | 16 | </div> |
15 | </LayoutApp> | 17 | </LayoutApp> |
16 | </template> | 18 | </template> |
@@ -162,13 +164,6 @@ export default { | @@ -162,13 +164,6 @@ export default { | ||
162 | </script> | 164 | </script> |
163 | 165 | ||
164 | <style lang="scss" scoped> | 166 | <style lang="scss" scoped> |
165 | -.footer { | ||
166 | - position: absolute; | ||
167 | - bottom: 0; | ||
168 | - width: 100%; | ||
169 | - z-index: 1; | ||
170 | -} | ||
171 | - | ||
172 | .body { | 167 | .body { |
173 | height: 100%; | 168 | height: 100%; |
174 | margin: 0 40px; | 169 | margin: 0 40px; |
@@ -185,11 +180,27 @@ export default { | @@ -185,11 +180,27 @@ export default { | ||
185 | border-top: 1px solid #eee; | 180 | border-top: 1px solid #eee; |
186 | } | 181 | } |
187 | 182 | ||
188 | -.agree-wrapper { | ||
189 | - height: 60px; | ||
190 | - background-color: white; | 183 | +.footer { |
184 | + position: absolute; | ||
185 | + bottom: 0; | ||
186 | + width: 100%; | ||
191 | border-top: 1px solid #eee; | 187 | border-top: 1px solid #eee; |
188 | + z-index: 1; | ||
189 | +} | ||
190 | + | ||
191 | +.btn-wrapper { | ||
192 | + margin-bottom: 40px; | ||
192 | padding: 0 40px; | 193 | padding: 0 40px; |
193 | - line-height: 60px; | ||
194 | } | 194 | } |
195 | + | ||
196 | +.agree-wrapper { | ||
197 | + padding: 0 50px; | ||
198 | +} | ||
199 | + | ||
200 | +.submit-btn { | ||
201 | + height: 80px; | ||
202 | + line-height: 80px; | ||
203 | + font-size: 28px; | ||
204 | +} | ||
205 | + | ||
195 | </style> | 206 | </style> |
@@ -261,6 +261,8 @@ export default { | @@ -261,6 +261,8 @@ export default { | ||
261 | this.showSizeSelectSheet = false; | 261 | this.showSizeSelectSheet = false; |
262 | }, | 262 | }, |
263 | buy() { | 263 | buy() { |
264 | + this.$yoho.auth(); | ||
265 | + | ||
264 | this.selectSizeConfig = { | 266 | this.selectSizeConfig = { |
265 | dest: 'OrderBuyConfirm', | 267 | dest: 'OrderBuyConfirm', |
266 | type: 'buy', | 268 | type: 'buy', |
@@ -272,6 +274,8 @@ export default { | @@ -272,6 +274,8 @@ export default { | ||
272 | this.showBuySheet = false; | 274 | this.showBuySheet = false; |
273 | }, | 275 | }, |
274 | sell() { | 276 | sell() { |
277 | + this.$yoho.auth(); | ||
278 | + | ||
275 | this.selectSizeConfig = { | 279 | this.selectSizeConfig = { |
276 | dest: 'OrderSellConfirm', | 280 | dest: 'OrderSellConfirm', |
277 | type: 'sell', | 281 | type: 'sell', |
@@ -401,7 +405,7 @@ export default { | @@ -401,7 +405,7 @@ export default { | ||
401 | } | 405 | } |
402 | 406 | ||
403 | &-list { | 407 | &-list { |
404 | - line-height: 120px; | 408 | + line-height: 104px; // PM: 60 -> 52 |
405 | white-space: nowrap; | 409 | white-space: nowrap; |
406 | 410 | ||
407 | &-item { | 411 | &-item { |
@@ -92,7 +92,7 @@ export default function() { | @@ -92,7 +92,7 @@ export default function() { | ||
92 | }, | 92 | }, |
93 | getMineList(state) { | 93 | getMineList(state) { |
94 | let tabList = { | 94 | let tabList = { |
95 | - board: { title: '公告栏', page: 'noticeList' }, | 95 | + board: { title: '', page: 'noticeList' }, |
96 | sale: { | 96 | sale: { |
97 | title: '出售中', | 97 | title: '出售中', |
98 | num: state.sellerNum, | 98 | num: state.sellerNum, |
@@ -124,16 +124,16 @@ export default function() { | @@ -124,16 +124,16 @@ export default function() { | ||
124 | page: 'favorite', | 124 | page: 'favorite', |
125 | }, | 125 | }, |
126 | coupon: { | 126 | coupon: { |
127 | - name: 'coupon', | ||
128 | - title: '我的优惠券', | ||
129 | - num: state.couponNum, | ||
130 | - page: '' | ||
131 | - }, | ||
132 | - service: { | ||
133 | - name: 'service', | ||
134 | - title: '我的客服', | ||
135 | - page: 'service' | ||
136 | - }, | 127 | + name: 'coupon', |
128 | + title: '我的优惠券', | ||
129 | + num: state.couponNum, | ||
130 | + page: '' | ||
131 | + }, | ||
132 | + service: { | ||
133 | + name: 'service', | ||
134 | + title: '我的客服', | ||
135 | + page: 'service' | ||
136 | + }, | ||
137 | resource2: { name: 'resource2', data: state.resource2 }, | 137 | resource2: { name: 'resource2', data: state.resource2 }, |
138 | 138 | ||
139 | }; | 139 | }; |
@@ -4,7 +4,12 @@ import { get } from 'lodash'; | @@ -4,7 +4,12 @@ import { get } from 'lodash'; | ||
4 | export default { | 4 | export default { |
5 | async fetchProductInfo({commit}, {productId}) { | 5 | async fetchProductInfo({commit}, {productId}) { |
6 | const queryTasks = ['', '/fav', '/resource', '/activity', '/recommend'].map(path => { | 6 | const queryTasks = ['', '/fav', '/resource', '/activity', '/recommend'].map(path => { |
7 | - return this.$api.get(`/api/ufo/product${path}`, {product_id: productId}).then(result => { | 7 | + let paramKey = 'product_id'; |
8 | + | ||
9 | + if (path === '/fav') { | ||
10 | + paramKey = 'productId'; | ||
11 | + } | ||
12 | + return this.$api.get(`/api/ufo/product${path}`, {[paramKey]: productId}).then(result => { | ||
8 | if (result.code === 200) { | 13 | if (result.code === 200) { |
9 | return result.data; | 14 | return result.data; |
10 | } else { | 15 | } else { |
-
Please register or login to post a comment