本地商家规格添加Y轴滚动
This commit is contained in:
parent
9f153d3704
commit
ad6cb31737
@ -35,7 +35,7 @@
|
||||
<!-- </router-link> -->
|
||||
</view>
|
||||
|
||||
<u-popup v-model="showPopup" mode="bottom">
|
||||
<u-popup v-model="showPopup" mode="bottom" height="60%">
|
||||
<view class="p-20">
|
||||
<view class="head flex">
|
||||
<u-image :src="active == -1 ? data.pic[0].url : shop_image" width="120rpx" height="120rpx" border-radius="10rpx" :fade="false"></u-image>
|
||||
@ -49,12 +49,14 @@
|
||||
|
||||
<view class="m-t-20 m-b-20">
|
||||
<view class="bold m-b-20">规格</view>
|
||||
<view class="flex flex-wrap">
|
||||
<view :class="'item ' + (active == -1 ? 'active' : '')" @click="selectSpec(-1)">默认</view>
|
||||
<view :class="'item ' + (index == active ? 'active' : '')" v-for="(item, index) in data.item" :key="index" @click="selectSpec(index, item.stock)">
|
||||
{{item.spec_value_str}} <text v-if="item.stock <= 0" class="bold">(缺货)</text>
|
||||
<scroll-view style="max-height: 500rpx;" scroll-y="true">
|
||||
<view class="flex flex-wrap">
|
||||
<view :class="'item ' + (active == -1 ? 'active' : '')" @click="selectSpec(-1)">默认</view>
|
||||
<view :class="'item ' + (index == active ? 'active' : '')" v-for="(item, index) in data.item" :key="index" @click="selectSpec(index, item.stock)">
|
||||
{{item.spec_value_str}} <text v-if="item.stock <= 0" class="bold">(缺货)</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<view class="m-t-20 m-b-20" v-if="active > -1">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user