|
|
<template>
|
|
|
<action-sheet @hidden="onHidden" ref="popup">
|
|
|
<action-sheet @hidden="onHidden" @shown="onShown" ref="popup">
|
|
|
<div class="size-select-sheet">
|
|
|
<div class="select-size">
|
|
|
<div class="title" @click="hide">{{config.title}}<i class="cubeic-close"></i></div>
|
...
|
...
|
@@ -19,7 +19,8 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<size-list class="select-content size-list" :list="list"
|
|
|
<size-list class="select-content size-list" ref="sizeList"
|
|
|
:list="list"
|
|
|
:addSize="canAddSize"
|
|
|
:selected="selectedSize"
|
|
|
:config="config"
|
...
|
...
|
@@ -146,6 +147,11 @@ export default { |
|
|
onHidden() {
|
|
|
this.$emit('hidden');
|
|
|
},
|
|
|
onShown() {
|
|
|
if (this.$refs.sizeList) {
|
|
|
this.$refs.sizeList.refreshScroll();
|
|
|
}
|
|
|
},
|
|
|
onSelectSize({selected: sizeInfo}) {
|
|
|
this.updateTradeInfo({
|
|
|
productId: this.product.product_id,
|
...
|
...
|
|