StockCard.vue
1.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
<view class="stock_item">
<view class="left">
<image style="width:100%;" src="https://cbu01.alicdn.com/img/ibank/2016/759/755/3743557957_600065101.jpg" mode="widthFix"></image>
</view>
<view class="right">
<view class="col-3d l-h-42 f-32 u-line-1">今麦郎熟水凉白开饮用水</view>
<view class="edit">
<u-icon name="edit-pen" size="16" color="#333"></u-icon>
<text class="m-l-10 col-3 f-28 l-h-38">编辑</text>
</view>
</view>
</view>
</template>
<script>
</script>
<style lang="scss" scoped>
.stock_item{
display: flex;
align-items: center;
height: 160rpx;
box-sizing: border-box;
padding: 0 30rpx;
border-bottom: 2rpx solid #eee;
.left{
width: 80rpx;
height: 80rpx;
overflow: hidden;
border-radius: 8rpx;
margin-right: 20rpx;
}
.right{
position: relative;
display: flex;
align-items: center;
flex: 1;
.edit{
position: absolute;
display: flex;
align-items: center;
top: 50%;
right: 0;
transform: translateY(-50%);
}
}
}
</style>