Authored by 邱骏

修改调价弹框高度

... ... @@ -72,7 +72,7 @@ export default {
return `当前${this.skc.sizeName}码最低售价: ¥-`;
},
postLoading() {
console.log(this.fetchingChangePrice, this.calced);
// console.log(this.fetchingChangePrice, this.calced);
return this.fetchingChangePrice || !this.calced;
}
},
... ...
... ... @@ -49,7 +49,7 @@ export default {
},
methods: {
show({skc}) {
console.log(skc);
// console.log(skc);
this.skc = skc;
this.unStockNum = 1;
this.storageNum = skc.storageNum;
... ...
... ... @@ -97,7 +97,6 @@ export default {
&-content {
position: relative;
background-color: #fff;
/*top: 314px;*/
border: 0;
width: 600px;
background-clip: padding-box;
... ...
... ... @@ -37,7 +37,7 @@ export default {
}
},
mounted() {
console.log(this.value);
// console.log(this.value);
},
methods: {
onNoSale() {
... ...
... ... @@ -95,7 +95,7 @@ export default {
pageSize: this.pageSize
});
console.log(result);
// console.log(result);
const afterCount = this.skcs.length;
if (afterCount > beginCount) {
... ... @@ -130,7 +130,7 @@ export default {
pageSize: this.pageSize,
refresh: true
});
// 全部下架后回到出售中列表
let data = get(result, 'data.data')
if(data.length === 0) {
... ... @@ -155,7 +155,7 @@ export default {
this.$refs.modalUnstock.show({skc});
},
async onNoSaleSure({skc, num}) { // 商品下架确认
console.log(skc, num);
// console.log(skc, num);
const result = await this.postNoSale({
product_id: this.productInfo.productId,
storage_id: skc.storageId,
... ... @@ -179,7 +179,7 @@ export default {
}
},
async onChangePriceSure({skc, price}) {
console.log(skc, price);
// console.log(skc, price);
const result = await this.postChangePrice({
product_id: this.productInfo.productId,
storage_id: skc.storageId,
... ...
... ... @@ -119,20 +119,20 @@
</template>
<script>
import LayoutApp from "../../../components/layout/layout-app";
import ScrollView from "../../../components/layout/scroll-view";
import ImgSize from "../../../components/img-size";
import { createNamespacedHelpers } from "vuex";
import InputUfo from "./components/input-ufo";
import { Checkbox } from "cube-ui";
import { get } from "lodash";
import Modal from "./components/modal";
import OrderCheck from "../components/confirm/agree";
const { mapState, mapActions } = createNamespacedHelpers("order/priceChange");
import LayoutApp from '../../../components/layout/layout-app';
import ScrollView from '../../../components/layout/scroll-view';
import ImgSize from '../../../components/img-size';
import { createNamespacedHelpers } from 'vuex';
import InputUfo from './components/input-ufo';
import { Checkbox } from 'cube-ui';
import { get } from 'lodash';
import Modal from './components/modal';
import OrderCheck from '../components/confirm/agree';
const { mapState, mapActions } = createNamespacedHelpers('order/priceChange');
// orderCode = 1233499619151
export default {
name: "noEntryDetail",
name: 'noEntryDetail',
components: {
OrderCheck,
Modal,
... ... @@ -144,35 +144,35 @@ export default {
},
data() {
return {
title: "调价",
title: '调价',
agreementURL:
"https://activity.yoho.cn/feature/3187.html?share_id=5851&title=ufo-%E5%8D%96%E5%AE%B6%E5%8D%8F%E8%AE%AE",
'https://activity.yoho.cn/feature/3187.html?share_id=5851&title=ufo-%E5%8D%96%E5%AE%B6%E5%8D%8F%E8%AE%AE',
platformFeeModalVisible: false,
platformFee: {
amount: "-¥0",
appraiseFee: "¥0.00",
packageFee: "¥0.00",
serviceFee: "¥0.00",
goodsPaymentRatePercent: "0.00%",
payChannelPercentage: "0.00%"
amount: '-¥0',
appraiseFee: '¥0.00',
packageFee: '¥0.00',
serviceFee: '¥0.00',
goodsPaymentRatePercent: '0.00%',
payChannelPercentage: '0.00%'
},
bankTransferFee: "-¥0",
income: "¥0",
errorTip: "",
chgPrice: "",
bankTransferFee: '-¥0',
income: '¥0',
errorTip: '',
chgPrice: '',
calced: false,
earnestMoney: "¥0",
earnestMoney: '¥0',
// 保证金
earnestPrice: 0,
isAgree: false,
labelOption: {
label: "我已阅读并同意"
label: '我已阅读并同意'
},
time: 15000
};
},
asyncData({ store, router }) {
return store.dispatch("order/priceChange/fetchOrder", {
return store.dispatch('order/priceChange/fetchOrder', {
orderCode: router.params.orderCode
});
},
... ... @@ -181,7 +181,7 @@ export default {
// this.inputChange = debounce(this.onChange.bind(this), 500);
},
computed: {
...mapState(["noEntryOrderInfo"]),
...mapState(['noEntryOrderInfo']),
goodsInfo() {
return this.noEntryOrderInfo.goodsInfo || {};
},
... ... @@ -193,37 +193,37 @@ export default {
chgPrice() {
this.calced = false;
this.platformFee = {
amount: "-¥0",
appraiseFee: "¥0.00",
packageFee: "¥0.00",
serviceFee: "¥0.00",
goodsPaymentRatePercent: "0.00%",
payChannelPercentage: "0.00%"
amount: '-¥0',
appraiseFee: '¥0.00',
packageFee: '¥0.00',
serviceFee: '¥0.00',
goodsPaymentRatePercent: '0.00%',
payChannelPercentage: '0.00%'
};
this.bankTransferFee = "-¥0";
this.income = "¥0";
this.earnestMoney = "¥0";
this.bankTransferFee = '-¥0';
this.income = '¥0';
this.earnestMoney = '¥0';
this.earnestPrice = 0;
}
},
methods: {
...mapActions([
"fetchOrder",
"postNoEntryCalcPrice",
"postNoEntryChangePrice"
'fetchOrder',
'postNoEntryCalcPrice',
'postNoEntryChangePrice'
]),
checkPrice(price) {
let valid = false;
if (!price) {
this.errorTip = "没有价格";
this.errorTip = '没有价格';
return false;
} else if (!/^\d+$/.test(price)) {
this.errorTip = "价格只能为正整数";
this.errorTip = '价格只能为正整数';
} else if (!/9$/.test(price)) {
this.errorTip = "出售价格必须以9结尾";
this.errorTip = '出售价格必须以9结尾';
} else {
this.errorTip = "";
this.errorTip = '';
valid = true;
}
console.log(this.errorTip, valid);
... ... @@ -233,15 +233,15 @@ export default {
// 点击提交按钮
if (this.isAgree && this.calced) {
this.$createDialog({
type: "confirm",
content: "重新出售后本次出售保证金原路返回",
type: 'confirm',
content: '重新出售后本次出售保证金原路返回',
confirmBtn: {
text: "我再想想",
text: '我再想想',
active: true,
disabled: false
},
cancelBtn: {
text: "重新出售",
text: '重新出售',
active: false,
disabled: false
},
... ... @@ -264,11 +264,11 @@ export default {
console.log(result);
if (result && result.code === 200) {
this.platformFee = get(result, "data.platformFee", "");
this.bankTransferFee = get(result, "data.bankTransferFee", "");
this.income = "¥" + get(result, "data.income", "");
this.earnestMoney = "¥" + get(result, "data.earnestMoney", "");
this.earnestPrice = get(result, "data.earnestMoney", 0);
this.platformFee = get(result, 'data.platformFee', '');
this.bankTransferFee = get(result, 'data.bankTransferFee', '');
this.income = '¥' + get(result, 'data.income', '');
this.earnestMoney = '¥' + get(result, 'data.earnestMoney', '');
this.earnestPrice = get(result, 'data.earnestMoney', 0);
this.calced = true;
} else {
if (result.message) {
... ... @@ -278,7 +278,7 @@ export default {
this.$createToast({
txt: this.errorTip,
type: "txt"
type: 'txt'
}).show();
}
},
... ... @@ -289,7 +289,7 @@ export default {
} else {
this.$createToast({
txt: this.errorTip,
type: "txt"
type: 'txt'
}).show();
}
},
... ... @@ -300,7 +300,7 @@ export default {
showEarnestQuestion() {
// 跳转保证金说明页
console.log("showEarnest");
console.log('showEarnest');
this.$xianyu.goXianyuNewPage({ url: this.agreementURL });
},
... ... @@ -322,14 +322,14 @@ export default {
this.$createOrderPayType({
orderCode: result.data.orderCode,
price: parseFloat(`${earnestPrice}`).toFixed(2),
desc: "保证金",
desc: '保证金',
extra: JSON.stringify({
type: "sell",
type: 'sell',
back: {
name: "InSaleOrderList"
name: 'InSaleOrderList'
},
forward: {
name: "SellPayOk",
name: 'SellPayOk',
query: {
orderCode: result.data.orderCode
}
... ... @@ -338,9 +338,9 @@ export default {
onCloseAction() {
that.clearData();
that.$router.replace({
name: "sellOrderDetail",
name: 'sellOrderDetail',
params: {
owner: "sell",
owner: 'sell',
code: result.data.orderCode
}
});
... ... @@ -348,8 +348,8 @@ export default {
}).show();
} else {
this.$createToast({
txt: result.message || "调价失败",
type: "txt"
txt: result.message || '调价失败',
type: 'txt'
}).show();
}
... ... @@ -357,29 +357,29 @@ export default {
},
clearData() {
// 清空数据状态
console.log(this.$router);
// console.log(this.$router);
this.platformFeeModalVisible = false;
this.platformFee = {
amount: "-¥0",
appraiseFee: "¥0.00",
packageFee: "¥0.00",
serviceFee: "¥0.00",
goodsPaymentRatePercent: "0.00%",
payChannelPercentage: "0.00%"
amount: '-¥0',
appraiseFee: '¥0.00',
packageFee: '¥0.00',
serviceFee: '¥0.00',
goodsPaymentRatePercent: '0.00%',
payChannelPercentage: '0.00%'
};
this.bankTransferFee = "-¥0";
this.income = "¥0";
this.errorTip = "";
this.chgPrice = "";
this.bankTransferFee = '-¥0';
this.income = '¥0';
this.errorTip = '';
this.chgPrice = '';
this.calced = false;
this.earnestMoney = "¥0";
this.earnestMoney = '¥0';
this.isAgree = false;
}
}
};
</script>
<style lang="scss" scoped>
<style lang='scss' scoped>
.order-page {
position: absolute;
left: 0;
... ...