Authored by hongyong.zhao

求购bug修复

<!--买家求购确认页-->
<template>
<LayoutApp :show-back="true">
<LayoutApp :show-back="true" title="出价求购">
<div class="body" ref="body">
<div class="topContainer">
<div class="topView">
... ... @@ -58,15 +58,13 @@
<div class="space"></div>
<div class="line"></div>
<div class="bottomContainer">
<OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper"></OrderAgree>
<div>
<Button :disabled="!isAgreeTerms" type="submit" @click="submitClick">提交</Button>
</div>
</div>
</div>
</div>
<div class="bottomContainer">
<OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper" :desc="agreeDesc" :url="url"></OrderAgree>
<div>
<Button :disabled="!isAgreeTerms" type="submit" @click="submitClick">提交</Button>
</div>
</div>
</LayoutApp>
</template>
... ... @@ -99,6 +97,8 @@ export default {
return {
inputPrice: '',
isAgreeTerms: false,
url: `http://m.yohobuy.com/activity/student/detail/renzhen?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"url\":\"https://activity.yoho.cn/feature/3189.html?title=买家协议&promiseV="}}`,
agreeDesc: '有货买家协议'
};
},
... ... @@ -129,6 +129,7 @@ export default {
},
mounted() {
this.BUYER_ASK_RESET_DATA();
this.BUYER_ASK_SET_STORAGEID(this.storageId);
this.fetchBuyerOrderCount({ tabType: 'buy'});
this.fetchConfig();
... ... @@ -158,6 +159,7 @@ export default {
'BUYER_ASK_SET_CHOOSEDAY',
'BUYER_ASK_SET_SHOWDIALOG',
'BUYER_ASK_SET_STORAGEID',
'BUYER_ASK_RESET_DATA',
]),
...mapActions([
'fetchConfig',
... ... @@ -297,15 +299,16 @@ export default {
<style lang="scss" scoped>
.body {
height: 100%;
position: relative;
/*position: relative;*/
padding-bottom: 200px;
overflow-y: auto;
}
.topContainer {
height: calc(100% - 100*2px);
/*height: calc(100% - 100*2px);*/
padding-left: 20*2px;
padding-right: 20*2px;
margin-bottom: 200px;
/*margin-bottom: 200px;*/
}
.topView {
... ... @@ -517,6 +520,7 @@ export default {
/*height: 100px;*/
width: 100%;
left: 0px;
z-index: 1;
}
.agree-wrapper {
... ...
... ... @@ -38,9 +38,11 @@
<template #content="{detail: {miniFaultConfirm} }">
<div class="judge-content-wrapper" v-if="miniFaultConfirm">
<p class="tip">
{{ miniFaultConfirm.text }},
<span>
请在<count-down
<span :class="
miniFaultConfirm.showBtn ? '' : 'tipTextGray'
">{{ miniFaultConfirm.text }}</span>
<span v-if="miniFaultConfirm.showBtn">
,请在<count-down
:leftTime="miniFaultConfirm.leftTime"
:isShowIcon="false"
class="judge-count-down"
... ... @@ -279,6 +281,10 @@ export default {
margin-bottom: 10px;
}
.tipTextGray {
color: #999
}
.judge-count-down {
color: #d0021b;
font-size: 12px;
... ...
... ... @@ -15,7 +15,7 @@
<AddressInfo :data="addressInfo" class="order-item"></AddressInfo>
</div>
<div class="footer">
<OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper"></OrderAgree>
<OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper" :desc="agreeDesc" :url="url"></OrderAgree>
<div>
<Button :disabled="!isAgreeTerms" type="submit" @click="submitClick">提交</Button>
</div>
... ... @@ -59,6 +59,8 @@ export default {
data() {
return {
isAgreeTerms: false,
agreeDesc: '有货卖家协议',
url: `http://m.yohobuy.com/activity/student/detail/renzhen?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"url\":\"https://activity.yoho.cn/feature/3187.html?title=卖家协议\"}}`,
};
},
... ...
... ... @@ -72,6 +72,7 @@ export default {
storage_id: info.storage_id,
available: info.storage_num > 0 && price !== '-',
skup: info.skup,
least_price: info.least_price,
};
});
},
... ... @@ -109,7 +110,7 @@ export default {
* storageId: number
*/
this.$store.commit('order/buyerAskOrder/BUYER_ASK_SET_PRODUCTINFO', {
least_price: this.productDetail.least_price,
least_price: get(product, 'least_price', '-'),
sizeName: product.name,
sizeId: get(data, 'sizeId', ''),
colorName: get(this.productDetail, 'goods_list[0].color_name', ''),
... ...
... ... @@ -33,6 +33,7 @@ const {
BUYER_ASK_SET_SHOWDIALOG,
BUYER_ASK_SET_STORAGEID,
BUYER_ASK_SET_PRODUCTINFO,
BUYER_ASK_RESET_DATA,
} = Types;
const TIP = '请求失败';
... ... @@ -42,15 +43,15 @@ const DEFAULT_COMPUTE_INFO = {
promotionFormulaList: [
{
promotion: '商品金额',
promotionAmount: -'
promotionAmount: 0'
},
{
promotion: '运费',
promotionAmount: -'
promotionAmount: 0'
},
{
promotion: '实付金额',
promotionAmount: -'
promotionAmount: 0'
}
]
};
... ... @@ -152,6 +153,11 @@ export default function() {
mutations: {
[BUYER_ASK_RESET_DATA](state, payload) {
state.computeInfo = DEFAULT_COMPUTE_INFO;
state.configTip = DEFUALT_CONFIG_TIP;
},
[BUYER_ASK_SET_PRODUCTINFO](state, payload) {
state.originProductData = payload
},
... ...
... ... @@ -28,6 +28,7 @@ export const Types = {
BUYER_ASK_SET_SHOWDIALOG: 'BUYER_ASK_SET_SHOWDIALOG',
BUYER_ASK_SET_STORAGEID: 'BUYER_ASK_SET_STORAGEID',
BUYER_ASK_SET_PRODUCTINFO: 'BUYER_ASK_SET_PRODUCTINFO',
BUYER_ASK_RESET_DATA: 'BUYER_ASK_RESET_DATA',
SELLER_ORDERCOUNT_REQUEST: 'SELLER_ORDERCOUNT_REQUEST',
SELLER_ORDERCOUNT_SUCCESS: 'SELLER_ORDERCOUNT_SUCCESS',
... ...