Authored by zhangwenxue

fix(商品详情): 修复求购不可用

... ... @@ -9,7 +9,7 @@
@mask-click="maskClick">
<transition :name="transition" appear>
<div class="cube-action-sheet-panel"
:class="{'with-radius': hasBorderRadius}"
:class="{'with-radius': hasBorderRadius, [`panel-${position}`]: true}"
:style="panelStyle"
v-show="isVisible"
ref="panel"
... ... @@ -119,6 +119,14 @@ export default {
z-index: -1;
background: #fff;
}
&.panel-right:after {
width: 100px;
height: 100%;
left: auto;
bottom: auto;
top: 0;
right: -100px;
}
}
.cube-action-sheet-bottom-enter, .cube-action-sheet-bottom-leave-active {
... ...
... ... @@ -35,10 +35,13 @@ import ActionSheet from './action-sheet';
import stateShortCutsMixins from '../mixins';
import SquareImg from './square-img';
const { mapActions: mapProductAction, mapGetters } = createNamespacedHelpers('product');
const { mapActions: mapProductAction } = createNamespacedHelpers('product');
export default {
name: 'BuySheet',
props: {
productId: Number,
},
mixins: [stateShortCutsMixins],
components: {
SquareImg,
... ... @@ -46,7 +49,6 @@ export default {
'cube-scroll': Scroll,
},
computed: {
...mapGetters(['productDetail']),
sizeList() {
return get(this.productDetail, 'goods_list[0].size_list', []);
},
... ... @@ -85,7 +87,7 @@ export default {
},
methods: {
...mapActions('order/buyerAskOrder', [
'BUYER_ASK_SET_PRODUCTINFO'
'BUYER_ASK_SET_PRODUCTINFO'
]),
...mapProductAction(['updateTradeInfo']),
onHidden() {
... ...
... ... @@ -88,7 +88,7 @@
@select="onSelectTradeProduct"
@add="onRequestSize"/>
<size-request-sheet v-if="showSizeRequestSheet" @hidden="onSizeRequestHidden"/>
<buy-sheet v-if="showBuySheet" @hidden="onBuyHidden" />
<buy-sheet v-if="showBuySheet" @hidden="onBuyHidden" :productId="productId"/>
</div>
</template>
... ...