Authored by hongyong.zhao

修复闲鱼选择地址问题

... ... @@ -15,11 +15,11 @@
<span class="size">{{sizeInfo}}</span>
<div class="pricedetail">
<div>
<span class="priceTitle">最低售价: </span>
<span class="priceTitle">现货最低售价: </span>
<span class="price">¥{{originProductData.least_price || '-'}}</span>
</div>
<div>
<span class="priceTitle">最高求购价: </span>
<span class="priceTitle">现货最高求购价: </span>
<span class="price">¥{{originProductData.bid_moster_price || '-'}}</span>
</div>
</div>
... ... @@ -98,7 +98,7 @@ const {mapState, mapActions, mapMutations, mapGetters} = createNamespacedHelpers
export default {
name: 'BuyerAskOrder',
components: {Button, Input, DayChoose, OrderAddress, OrderAgree},
props:['lazy', 'storageId'],
props: ['lazy', 'storageId'],
component: {
Input,
OrderAddress,
... ... @@ -141,10 +141,14 @@ export default {
beforeRouteEnter(to, from, next) {
console.log(from.name);
next(vm => {
// 通过 `vm` 访问组件实例
vm.inputPrice = '';
vm.BUYER_ASK_RESET_DATA();
if (from.name !== 'address') {
vm.inputPrice = '';
vm.BUYER_ASK_RESET_DATA();
}
});
},
... ... @@ -344,7 +348,7 @@ export default {
title: '选择求购时限',
data: [this.dayOptions],
onSelect: (value) => {
this.BUYER_ASK_SET_CHOOSEDAY(value[0])
this.BUYER_ASK_SET_CHOOSEDAY(value[0]);
},
selectedIndex: [2],
onCancel: () => {
... ... @@ -430,7 +434,7 @@ export default {
.productPrice {
width: calc(100% - 120*2px - 40*2px - 10*2px);
width: calc(100% - 120*2px - 10*2px);
height: 120*2px;
margin-left: 10*2px;
}
... ...