弹窗优化
This commit is contained in:
parent
709a315403
commit
d94fb80ee2
55
pageB/components/sdetails/guige.vue
Normal file
55
pageB/components/sdetails/guige.vue
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
<template>
|
||||||
|
<view class="guige">
|
||||||
|
<view class="title">
|
||||||
|
选择尺码
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<text>均码</text>
|
||||||
|
<text :class="select == 1 ? 'xuanzhong' : ''">S</text>
|
||||||
|
<text>M</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.guige{
|
||||||
|
margin-top: 30rpx;
|
||||||
|
padding-bottom: 30rpx;
|
||||||
|
border-bottom: #ececec solid 2rpx;
|
||||||
|
.title{
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 29rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
>text{
|
||||||
|
min-width: 120rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
background-color: #ececec;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 60rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
margin-right: 26rpx;
|
||||||
|
}
|
||||||
|
.xuanzhong{
|
||||||
|
border: #ff780f 1rpx solid;
|
||||||
|
color: #FF780F;
|
||||||
|
background-color: #FFF1E6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name:"guige",
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
select:true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -16,7 +16,8 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
<u-popup v-model="show" mode="bottom">
|
<u-popup v-model="show" mode="bottom">
|
||||||
<view class="popup">
|
<scroll-view scroll-y="true" class="popup">
|
||||||
|
<view>
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<image class="image"></image>
|
<image class="image"></image>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
@ -25,29 +26,32 @@
|
|||||||
<text>¥99</text>
|
<text>¥99</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="guige">
|
<guige></guige>
|
||||||
<view class="title">
|
<guige></guige>
|
||||||
选择尺码
|
<guige></guige>
|
||||||
</view>
|
<guige></guige>
|
||||||
<view class="item">
|
<guige></guige>
|
||||||
<text>均码</text>
|
<guige></guige>
|
||||||
<text class="xuanzhong">S</text>
|
<guige></guige>
|
||||||
<text>M</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="num">
|
<view class="num">
|
||||||
<text>购买数量</text>
|
<text>购买数量</text>
|
||||||
<u-number-box v-model="value" @change="valChange"></u-number-box>
|
<u-number-box v-model="value" @change="valChange"></u-number-box>
|
||||||
</view>
|
</view>
|
||||||
|
<view style="height:180rpx"></view>
|
||||||
</view>
|
</view>
|
||||||
|
</scroll-view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import guige from "./guige"
|
||||||
export default {
|
export default {
|
||||||
name:"tloos",
|
name:"tloos",
|
||||||
props: ['id'],
|
props: ['id'],
|
||||||
|
components:{
|
||||||
|
guige
|
||||||
|
},
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
show:true,
|
show:true,
|
||||||
@ -115,7 +119,8 @@ export default {
|
|||||||
}
|
}
|
||||||
.popup{
|
.popup{
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
padding-bottom: 180rpx;
|
box-sizing: border-box;
|
||||||
|
max-height: 750rpx;
|
||||||
.head{
|
.head{
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
@ -141,37 +146,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.guige{
|
|
||||||
margin-top: 30rpx;
|
|
||||||
padding-bottom: 30rpx;
|
|
||||||
border-bottom: #ececec solid 2rpx;
|
|
||||||
.title{
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333;
|
|
||||||
margin-bottom: 29rpx;
|
|
||||||
|
|
||||||
}
|
|
||||||
.item{
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
>text{
|
|
||||||
min-width: 120rpx;
|
|
||||||
height: 60rpx;
|
|
||||||
background-color: #ececec;
|
|
||||||
color: #999;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 60rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
border-radius: 6rpx;
|
|
||||||
margin-right: 26rpx;
|
|
||||||
}
|
|
||||||
.xuanzhong{
|
|
||||||
border: #ff780f 1rpx solid;
|
|
||||||
color: #FF780F;
|
|
||||||
background-color: #FFF1E6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.num{
|
.num{
|
||||||
height: 84rpx;
|
height: 84rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
Reference in New Issue
Block a user