...
|
...
|
@@ -4,7 +4,9 @@ |
|
|
<div class="select-size">
|
|
|
<div class="title" @click="hide">{{config.title}}<i class="cubeic-close"></i></div>
|
|
|
<div class="selected-info">
|
|
|
<img-size class="title-thumbnail" :src="imageList[0] && imageList[0].image_url" :width="70" :height="70"/>
|
|
|
<div class="title-thumbnail">
|
|
|
<square-img :src="imageList[0] && imageList[0].image_url" :width="70" :height="70"/>
|
|
|
</div>
|
|
|
<div class="product">
|
|
|
<div>¥{{product.least_price||''}}</div>
|
|
|
<div>
|
...
|
...
|
@@ -18,8 +20,8 @@ |
|
|
@select="onSelectSize"
|
|
|
@add="onAdd" />
|
|
|
<transition name="slide-up">
|
|
|
<div class="footer">
|
|
|
<cube-button @click="select" :class="{active: isTradable}">{{config.title}}</cube-button>
|
|
|
<div class="footer" v-if="isTradable">
|
|
|
<cube-button @click="select" class="active">{{config.title}}</cube-button>
|
|
|
</div>
|
|
|
</transition>
|
|
|
</div>
|
...
|
...
|
@@ -33,8 +35,8 @@ import { get } from 'lodash'; |
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
|
|
|
|
import ActionSheet from './action-sheet';
|
|
|
import ImgSize from '../../../components/img-size';
|
|
|
import SizeList from './size-list';
|
|
|
import SquareImg from './square-img';
|
|
|
|
|
|
const { mapActions, mapState } = createNamespacedHelpers('product');
|
|
|
|
...
|
...
|
@@ -64,8 +66,8 @@ export default { |
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
SquareImg,
|
|
|
SizeList,
|
|
|
ImgSize,
|
|
|
'cube-button': Button,
|
|
|
'cube-scroll': Scroll,
|
|
|
'action-sheet': ActionSheet,
|
...
|
...
|
|