Authored by 邱骏

修改调价弹框高度

@@ -72,7 +72,7 @@ export default { @@ -72,7 +72,7 @@ export default {
72 return `当前${this.skc.sizeName}码最低售价: ¥-`; 72 return `当前${this.skc.sizeName}码最低售价: ¥-`;
73 }, 73 },
74 postLoading() { 74 postLoading() {
75 - console.log(this.fetchingChangePrice, this.calced); 75 + // console.log(this.fetchingChangePrice, this.calced);
76 return this.fetchingChangePrice || !this.calced; 76 return this.fetchingChangePrice || !this.calced;
77 } 77 }
78 }, 78 },
@@ -49,7 +49,7 @@ export default { @@ -49,7 +49,7 @@ export default {
49 }, 49 },
50 methods: { 50 methods: {
51 show({skc}) { 51 show({skc}) {
52 - console.log(skc); 52 + // console.log(skc);
53 this.skc = skc; 53 this.skc = skc;
54 this.unStockNum = 1; 54 this.unStockNum = 1;
55 this.storageNum = skc.storageNum; 55 this.storageNum = skc.storageNum;
@@ -97,7 +97,6 @@ export default { @@ -97,7 +97,6 @@ export default {
97 &-content { 97 &-content {
98 position: relative; 98 position: relative;
99 background-color: #fff; 99 background-color: #fff;
100 - /*top: 314px;*/  
101 border: 0; 100 border: 0;
102 width: 600px; 101 width: 600px;
103 background-clip: padding-box; 102 background-clip: padding-box;
@@ -37,7 +37,7 @@ export default { @@ -37,7 +37,7 @@ export default {
37 } 37 }
38 }, 38 },
39 mounted() { 39 mounted() {
40 - console.log(this.value); 40 + // console.log(this.value);
41 }, 41 },
42 methods: { 42 methods: {
43 onNoSale() { 43 onNoSale() {
@@ -95,7 +95,7 @@ export default { @@ -95,7 +95,7 @@ export default {
95 pageSize: this.pageSize 95 pageSize: this.pageSize
96 }); 96 });
97 97
98 - console.log(result); 98 + // console.log(result);
99 const afterCount = this.skcs.length; 99 const afterCount = this.skcs.length;
100 100
101 if (afterCount > beginCount) { 101 if (afterCount > beginCount) {
@@ -130,7 +130,7 @@ export default { @@ -130,7 +130,7 @@ export default {
130 pageSize: this.pageSize, 130 pageSize: this.pageSize,
131 refresh: true 131 refresh: true
132 }); 132 });
133 - 133 +
134 // 全部下架后回到出售中列表 134 // 全部下架后回到出售中列表
135 let data = get(result, 'data.data') 135 let data = get(result, 'data.data')
136 if(data.length === 0) { 136 if(data.length === 0) {
@@ -155,7 +155,7 @@ export default { @@ -155,7 +155,7 @@ export default {
155 this.$refs.modalUnstock.show({skc}); 155 this.$refs.modalUnstock.show({skc});
156 }, 156 },
157 async onNoSaleSure({skc, num}) { // 商品下架确认 157 async onNoSaleSure({skc, num}) { // 商品下架确认
158 - console.log(skc, num); 158 + // console.log(skc, num);
159 const result = await this.postNoSale({ 159 const result = await this.postNoSale({
160 product_id: this.productInfo.productId, 160 product_id: this.productInfo.productId,
161 storage_id: skc.storageId, 161 storage_id: skc.storageId,
@@ -179,7 +179,7 @@ export default { @@ -179,7 +179,7 @@ export default {
179 } 179 }
180 }, 180 },
181 async onChangePriceSure({skc, price}) { 181 async onChangePriceSure({skc, price}) {
182 - console.log(skc, price); 182 + // console.log(skc, price);
183 const result = await this.postChangePrice({ 183 const result = await this.postChangePrice({
184 product_id: this.productInfo.productId, 184 product_id: this.productInfo.productId,
185 storage_id: skc.storageId, 185 storage_id: skc.storageId,
@@ -119,20 +119,20 @@ @@ -119,20 +119,20 @@
119 </template> 119 </template>
120 120
121 <script> 121 <script>
122 -import LayoutApp from "../../../components/layout/layout-app";  
123 -import ScrollView from "../../../components/layout/scroll-view";  
124 -import ImgSize from "../../../components/img-size";  
125 -import { createNamespacedHelpers } from "vuex";  
126 -import InputUfo from "./components/input-ufo";  
127 -import { Checkbox } from "cube-ui";  
128 -import { get } from "lodash";  
129 -import Modal from "./components/modal";  
130 -import OrderCheck from "../components/confirm/agree";  
131 -  
132 -const { mapState, mapActions } = createNamespacedHelpers("order/priceChange"); 122 +import LayoutApp from '../../../components/layout/layout-app';
  123 +import ScrollView from '../../../components/layout/scroll-view';
  124 +import ImgSize from '../../../components/img-size';
  125 +import { createNamespacedHelpers } from 'vuex';
  126 +import InputUfo from './components/input-ufo';
  127 +import { Checkbox } from 'cube-ui';
  128 +import { get } from 'lodash';
  129 +import Modal from './components/modal';
  130 +import OrderCheck from '../components/confirm/agree';
  131 +
  132 +const { mapState, mapActions } = createNamespacedHelpers('order/priceChange');
133 // orderCode = 1233499619151 133 // orderCode = 1233499619151
134 export default { 134 export default {
135 - name: "noEntryDetail", 135 + name: 'noEntryDetail',
136 components: { 136 components: {
137 OrderCheck, 137 OrderCheck,
138 Modal, 138 Modal,
@@ -144,35 +144,35 @@ export default { @@ -144,35 +144,35 @@ export default {
144 }, 144 },
145 data() { 145 data() {
146 return { 146 return {
147 - title: "调价", 147 + title: '调价',
148 agreementURL: 148 agreementURL:
149 - "https://activity.yoho.cn/feature/3187.html?share_id=5851&title=ufo-%E5%8D%96%E5%AE%B6%E5%8D%8F%E8%AE%AE", 149 + 'https://activity.yoho.cn/feature/3187.html?share_id=5851&title=ufo-%E5%8D%96%E5%AE%B6%E5%8D%8F%E8%AE%AE',
150 platformFeeModalVisible: false, 150 platformFeeModalVisible: false,
151 platformFee: { 151 platformFee: {
152 - amount: "-¥0",  
153 - appraiseFee: "¥0.00",  
154 - packageFee: "¥0.00",  
155 - serviceFee: "¥0.00",  
156 - goodsPaymentRatePercent: "0.00%",  
157 - payChannelPercentage: "0.00%" 152 + amount: '-¥0',
  153 + appraiseFee: '¥0.00',
  154 + packageFee: '¥0.00',
  155 + serviceFee: '¥0.00',
  156 + goodsPaymentRatePercent: '0.00%',
  157 + payChannelPercentage: '0.00%'
158 }, 158 },
159 - bankTransferFee: "-¥0",  
160 - income: "¥0",  
161 - errorTip: "",  
162 - chgPrice: "", 159 + bankTransferFee: '-¥0',
  160 + income: '¥0',
  161 + errorTip: '',
  162 + chgPrice: '',
163 calced: false, 163 calced: false,
164 - earnestMoney: "¥0", 164 + earnestMoney: '¥0',
165 // 保证金 165 // 保证金
166 earnestPrice: 0, 166 earnestPrice: 0,
167 isAgree: false, 167 isAgree: false,
168 labelOption: { 168 labelOption: {
169 - label: "我已阅读并同意" 169 + label: '我已阅读并同意'
170 }, 170 },
171 time: 15000 171 time: 15000
172 }; 172 };
173 }, 173 },
174 asyncData({ store, router }) { 174 asyncData({ store, router }) {
175 - return store.dispatch("order/priceChange/fetchOrder", { 175 + return store.dispatch('order/priceChange/fetchOrder', {
176 orderCode: router.params.orderCode 176 orderCode: router.params.orderCode
177 }); 177 });
178 }, 178 },
@@ -181,7 +181,7 @@ export default { @@ -181,7 +181,7 @@ export default {
181 // this.inputChange = debounce(this.onChange.bind(this), 500); 181 // this.inputChange = debounce(this.onChange.bind(this), 500);
182 }, 182 },
183 computed: { 183 computed: {
184 - ...mapState(["noEntryOrderInfo"]), 184 + ...mapState(['noEntryOrderInfo']),
185 goodsInfo() { 185 goodsInfo() {
186 return this.noEntryOrderInfo.goodsInfo || {}; 186 return this.noEntryOrderInfo.goodsInfo || {};
187 }, 187 },
@@ -193,37 +193,37 @@ export default { @@ -193,37 +193,37 @@ export default {
193 chgPrice() { 193 chgPrice() {
194 this.calced = false; 194 this.calced = false;
195 this.platformFee = { 195 this.platformFee = {
196 - amount: "-¥0",  
197 - appraiseFee: "¥0.00",  
198 - packageFee: "¥0.00",  
199 - serviceFee: "¥0.00",  
200 - goodsPaymentRatePercent: "0.00%",  
201 - payChannelPercentage: "0.00%" 196 + amount: '-¥0',
  197 + appraiseFee: '¥0.00',
  198 + packageFee: '¥0.00',
  199 + serviceFee: '¥0.00',
  200 + goodsPaymentRatePercent: '0.00%',
  201 + payChannelPercentage: '0.00%'
202 }; 202 };
203 - this.bankTransferFee = "-¥0";  
204 - this.income = "¥0";  
205 - this.earnestMoney = "¥0"; 203 + this.bankTransferFee = '-¥0';
  204 + this.income = '¥0';
  205 + this.earnestMoney = '¥0';
206 this.earnestPrice = 0; 206 this.earnestPrice = 0;
207 } 207 }
208 }, 208 },
209 methods: { 209 methods: {
210 ...mapActions([ 210 ...mapActions([
211 - "fetchOrder",  
212 - "postNoEntryCalcPrice",  
213 - "postNoEntryChangePrice" 211 + 'fetchOrder',
  212 + 'postNoEntryCalcPrice',
  213 + 'postNoEntryChangePrice'
214 ]), 214 ]),
215 checkPrice(price) { 215 checkPrice(price) {
216 let valid = false; 216 let valid = false;
217 217
218 if (!price) { 218 if (!price) {
219 - this.errorTip = "没有价格"; 219 + this.errorTip = '没有价格';
220 return false; 220 return false;
221 } else if (!/^\d+$/.test(price)) { 221 } else if (!/^\d+$/.test(price)) {
222 - this.errorTip = "价格只能为正整数"; 222 + this.errorTip = '价格只能为正整数';
223 } else if (!/9$/.test(price)) { 223 } else if (!/9$/.test(price)) {
224 - this.errorTip = "出售价格必须以9结尾"; 224 + this.errorTip = '出售价格必须以9结尾';
225 } else { 225 } else {
226 - this.errorTip = ""; 226 + this.errorTip = '';
227 valid = true; 227 valid = true;
228 } 228 }
229 console.log(this.errorTip, valid); 229 console.log(this.errorTip, valid);
@@ -233,15 +233,15 @@ export default { @@ -233,15 +233,15 @@ export default {
233 // 点击提交按钮 233 // 点击提交按钮
234 if (this.isAgree && this.calced) { 234 if (this.isAgree && this.calced) {
235 this.$createDialog({ 235 this.$createDialog({
236 - type: "confirm",  
237 - content: "重新出售后本次出售保证金原路返回", 236 + type: 'confirm',
  237 + content: '重新出售后本次出售保证金原路返回',
238 confirmBtn: { 238 confirmBtn: {
239 - text: "我再想想", 239 + text: '我再想想',
240 active: true, 240 active: true,
241 disabled: false 241 disabled: false
242 }, 242 },
243 cancelBtn: { 243 cancelBtn: {
244 - text: "重新出售", 244 + text: '重新出售',
245 active: false, 245 active: false,
246 disabled: false 246 disabled: false
247 }, 247 },
@@ -264,11 +264,11 @@ export default { @@ -264,11 +264,11 @@ export default {
264 console.log(result); 264 console.log(result);
265 265
266 if (result && result.code === 200) { 266 if (result && result.code === 200) {
267 - this.platformFee = get(result, "data.platformFee", "");  
268 - this.bankTransferFee = get(result, "data.bankTransferFee", "");  
269 - this.income = "¥" + get(result, "data.income", "");  
270 - this.earnestMoney = "¥" + get(result, "data.earnestMoney", "");  
271 - this.earnestPrice = get(result, "data.earnestMoney", 0); 267 + this.platformFee = get(result, 'data.platformFee', '');
  268 + this.bankTransferFee = get(result, 'data.bankTransferFee', '');
  269 + this.income = '¥' + get(result, 'data.income', '');
  270 + this.earnestMoney = '¥' + get(result, 'data.earnestMoney', '');
  271 + this.earnestPrice = get(result, 'data.earnestMoney', 0);
272 this.calced = true; 272 this.calced = true;
273 } else { 273 } else {
274 if (result.message) { 274 if (result.message) {
@@ -278,7 +278,7 @@ export default { @@ -278,7 +278,7 @@ export default {
278 278
279 this.$createToast({ 279 this.$createToast({
280 txt: this.errorTip, 280 txt: this.errorTip,
281 - type: "txt" 281 + type: 'txt'
282 }).show(); 282 }).show();
283 } 283 }
284 }, 284 },
@@ -289,7 +289,7 @@ export default { @@ -289,7 +289,7 @@ export default {
289 } else { 289 } else {
290 this.$createToast({ 290 this.$createToast({
291 txt: this.errorTip, 291 txt: this.errorTip,
292 - type: "txt" 292 + type: 'txt'
293 }).show(); 293 }).show();
294 } 294 }
295 }, 295 },
@@ -300,7 +300,7 @@ export default { @@ -300,7 +300,7 @@ export default {
300 300
301 showEarnestQuestion() { 301 showEarnestQuestion() {
302 // 跳转保证金说明页 302 // 跳转保证金说明页
303 - console.log("showEarnest"); 303 + console.log('showEarnest');
304 this.$xianyu.goXianyuNewPage({ url: this.agreementURL }); 304 this.$xianyu.goXianyuNewPage({ url: this.agreementURL });
305 }, 305 },
306 306
@@ -322,14 +322,14 @@ export default { @@ -322,14 +322,14 @@ export default {
322 this.$createOrderPayType({ 322 this.$createOrderPayType({
323 orderCode: result.data.orderCode, 323 orderCode: result.data.orderCode,
324 price: parseFloat(`${earnestPrice}`).toFixed(2), 324 price: parseFloat(`${earnestPrice}`).toFixed(2),
325 - desc: "保证金", 325 + desc: '保证金',
326 extra: JSON.stringify({ 326 extra: JSON.stringify({
327 - type: "sell", 327 + type: 'sell',
328 back: { 328 back: {
329 - name: "InSaleOrderList" 329 + name: 'InSaleOrderList'
330 }, 330 },
331 forward: { 331 forward: {
332 - name: "SellPayOk", 332 + name: 'SellPayOk',
333 query: { 333 query: {
334 orderCode: result.data.orderCode 334 orderCode: result.data.orderCode
335 } 335 }
@@ -338,9 +338,9 @@ export default { @@ -338,9 +338,9 @@ export default {
338 onCloseAction() { 338 onCloseAction() {
339 that.clearData(); 339 that.clearData();
340 that.$router.replace({ 340 that.$router.replace({
341 - name: "sellOrderDetail", 341 + name: 'sellOrderDetail',
342 params: { 342 params: {
343 - owner: "sell", 343 + owner: 'sell',
344 code: result.data.orderCode 344 code: result.data.orderCode
345 } 345 }
346 }); 346 });
@@ -348,8 +348,8 @@ export default { @@ -348,8 +348,8 @@ export default {
348 }).show(); 348 }).show();
349 } else { 349 } else {
350 this.$createToast({ 350 this.$createToast({
351 - txt: result.message || "调价失败",  
352 - type: "txt" 351 + txt: result.message || '调价失败',
  352 + type: 'txt'
353 }).show(); 353 }).show();
354 } 354 }
355 355
@@ -357,29 +357,29 @@ export default { @@ -357,29 +357,29 @@ export default {
357 }, 357 },
358 clearData() { 358 clearData() {
359 // 清空数据状态 359 // 清空数据状态
360 - console.log(this.$router); 360 + // console.log(this.$router);
361 this.platformFeeModalVisible = false; 361 this.platformFeeModalVisible = false;
362 this.platformFee = { 362 this.platformFee = {
363 - amount: "-¥0",  
364 - appraiseFee: "¥0.00",  
365 - packageFee: "¥0.00",  
366 - serviceFee: "¥0.00",  
367 - goodsPaymentRatePercent: "0.00%",  
368 - payChannelPercentage: "0.00%" 363 + amount: '-¥0',
  364 + appraiseFee: '¥0.00',
  365 + packageFee: '¥0.00',
  366 + serviceFee: '¥0.00',
  367 + goodsPaymentRatePercent: '0.00%',
  368 + payChannelPercentage: '0.00%'
369 }; 369 };
370 - this.bankTransferFee = "-¥0";  
371 - this.income = "¥0";  
372 - this.errorTip = "";  
373 - this.chgPrice = ""; 370 + this.bankTransferFee = '-¥0';
  371 + this.income = '¥0';
  372 + this.errorTip = '';
  373 + this.chgPrice = '';
374 this.calced = false; 374 this.calced = false;
375 - this.earnestMoney = "¥0"; 375 + this.earnestMoney = '¥0';
376 this.isAgree = false; 376 this.isAgree = false;
377 } 377 }
378 } 378 }
379 }; 379 };
380 </script> 380 </script>
381 381
382 -<style lang="scss" scoped> 382 +<style lang='scss' scoped>
383 .order-page { 383 .order-page {
384 position: absolute; 384 position: absolute;
385 left: 0; 385 left: 0;