|
|
|
<template>
|
|
|
|
<view class="sku">
|
|
|
|
<view class="sku-hd">
|
|
|
|
<view class="a" v-for="i in 2" :key="i">
|
|
|
|
<view class="hd">
|
|
|
|
<view class="t">商品规格
|
|
|
|
<view class="do"><image :src="$picUrl+'/static/news/icon-sku-03.png'"></image>删除</view>
|
|
|
|
</view>
|
|
|
|
<view class="input">
|
|
|
|
<input type="text" placeholder="份量"/>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="bd">
|
|
|
|
<view class="t">份量</view>
|
|
|
|
<view class="item">
|
|
|
|
<input type="text" value="大份" placeholder="请输入规格"/>
|
|
|
|
<view class="do"><image :src="$picUrl+'/static/news/icon-sku-01.png'"></image></view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<input type="text" value="中份" placeholder="请输入规格"/>
|
|
|
|
<view class="do"><image :src="$picUrl+'/static/news/icon-sku-01.png'"></image></view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<input type="text" value="小份" placeholder="请输入规格"/>
|
|
|
|
<view class="do"><image :src="$picUrl+'/static/news/icon-sku-01.png'"></image></view>
|
|
|
|
</view>
|
|
|
|
<view class="add">
|
|
|
|
<u-icon name="plus" style="margin-right: 10rpx;"></u-icon>新增规格值
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="b">
|
|
|
|
<image :src="$picUrl+'/static/news/icon-sku-02.png'"></image>添加规格组
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="sku-bd">
|
|
|
|
<view class="a">设置价格与库存<text>批量设置</text></view>
|
|
|
|
<view class="b">
|
|
|
|
<view class="item">
|
|
|
|
<view class="t">
|
|
|
|
<view class="n">大份,微辣</view>
|
|
|
|
<view class="d d-on">
|
|
|
|
已设置<u-icon name="arrow-right"></u-icon>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="i">
|
|
|
|
<view class="l">售价<input value="¥20" type="text"/></view>
|
|
|
|
<view class="l">库存<input value="5" type="text"/></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="t">
|
|
|
|
<view class="n">大份,微辣</view>
|
|
|
|
<view class="d">
|
|
|
|
待设置<u-icon name="arrow-right"></u-icon>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="sku-fd">
|
|
|
|
<view class="btn">确认</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.sku{
|
|
|
|
padding: 0 0 150rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
&-hd{
|
|
|
|
overflow: hidden;
|
|
|
|
.a{
|
|
|
|
padding: 0 30rpx;
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-top: 20rpx;
|
|
|
|
.hd{
|
|
|
|
padding: 30rpx 0;
|
|
|
|
overflow: hidden;
|
|
|
|
.t{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #2B2B2B;
|
|
|
|
.do{
|
|
|
|
font-weight: 400;
|
|
|
|
color: #EC3323;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
image{
|
|
|
|
width: 40rpx;
|
|
|
|
height: 40rpx;
|
|
|
|
margin-right: 10rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.input{
|
|
|
|
width: 682rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-top: 30rpx;
|
|
|
|
input{
|
|
|
|
width: 100%;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #303030;
|
|
|
|
border-radius: 8rpx;
|
|
|
|
height: 98rpx;
|
|
|
|
line-height: 98rpx;
|
|
|
|
border: 1px solid #EEEEEE;
|
|
|
|
padding: 0 20rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.bd{
|
|
|
|
overflow: hidden;
|
|
|
|
.t{
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #2B2B2B;
|
|
|
|
padding-bottom: 10rpx;
|
|
|
|
}
|
|
|
|
.item{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-top: 15rpx;
|
|
|
|
input{
|
|
|
|
flex: 1;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #303030;
|
|
|
|
border-radius: 8rpx;
|
|
|
|
height: 98rpx;
|
|
|
|
line-height: 98rpx;
|
|
|
|
border: 1px solid #EEEEEE;
|
|
|
|
padding: 0 20rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
.do{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: 25rpx;
|
|
|
|
image{
|
|
|
|
width: 40rpx;
|
|
|
|
height: 40rpx;
|
|
|
|
margin-right: 10rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.add{
|
|
|
|
padding: 30rpx 0;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FF624F;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.b{
|
|
|
|
width: 100%;
|
|
|
|
height: 112rpx;
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
margin-top: 20rpx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #303030;
|
|
|
|
image{
|
|
|
|
width: 40rpx;
|
|
|
|
height: 40rpx;
|
|
|
|
margin-right: 10rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-bd{
|
|
|
|
.a{
|
|
|
|
padding: 20rpx 45rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #2B2B2B;
|
|
|
|
text{
|
|
|
|
color: #307BF6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.b{
|
|
|
|
background-color: #fff;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0 40rpx;
|
|
|
|
.item{
|
|
|
|
overflow: hidden;
|
|
|
|
.t{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 20rpx 0;
|
|
|
|
overflow: hidden;
|
|
|
|
.d{
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #A9A9A9;
|
|
|
|
&-on{
|
|
|
|
color: #2B2B2B;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.i{
|
|
|
|
width: 642rpx;
|
|
|
|
height: 90rpx;
|
|
|
|
background: #F4F4F4;
|
|
|
|
border-radius: 6rpx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 40rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
.l{
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #8C8C8C;
|
|
|
|
input{
|
|
|
|
width: 120rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #212121;
|
|
|
|
margin-left: 5rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
&-fd{
|
|
|
|
width: 100%;
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 30rpx;
|
|
|
|
z-index: 99;
|
|
|
|
background-color: #fafafa;
|
|
|
|
box-sizing: border-box;
|
|
|
|
.btn{
|
|
|
|
width: 630rpx;
|
|
|
|
line-height: 88rpx;
|
|
|
|
background: #F34A40;
|
|
|
|
border-radius: 88rpx;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|