Commit c52f0bc 1 parent e0b4153 commit c52f0bc Copy full SHA for c52f0bc
File tree 5 files changed +66
-18
lines changed
5 files changed +66
-18
lines changed Original file line number Diff line number Diff line change @@ -63,4 +63,4 @@ func main() {
63
63
})
64
64
65
65
app .Listen (":" + strconv .Itoa (config .ServerConfig .Port ))
66
- }
66
+ }
Original file line number Diff line number Diff line change 1
1
page {
2
- height:100%;
2
+ height: 100%;
3
3
}
4
4
5
5
.home-box {
Original file line number Diff line number Diff line change 1
1
Page ( {
2
2
data : {
3
- name : 'test'
3
+ name : 'test' ,
4
+ url : "../../images/1.jpg"
4
5
} ,
5
6
onLoad : function ( ) {
6
7
this . setData ( {
Original file line number Diff line number Diff line change 1
1
<!--商品详情页-->
2
2
<view class="product-container">
3
- <view></view>
4
- <ul class="tabbar">
5
- <li class="tabbar-item tabbar-home">x</li>
6
- <li class="tabbar-item tabbar-cart">y</li>
7
- <li class="tabbar-item tabbar-add-cart">加入购物车</li>
8
- <li class="tabbar-item tabbar-buy-now">立即购买</li>
9
- </ul>
3
+ <view class="tabbar">
4
+ <view class="tabbar-item tabbar-home">
5
+ <view>
6
+ <image class="home-icon" mode="aspectFit" src="../../icons/home.png"></image>
7
+ </view>
8
+ <text class="home-text">首页</text>
9
+ </view>
10
+ <view class="tabbar-item tabbar-cart">
11
+ <view>
12
+ <image class="cart-icon" mode="aspectFit" src="../../icons/cart.png"></image>
13
+ </view>
14
+ <text class="cart-text">购物车</text>
15
+ </view>
16
+ <view class="tabbar-item tabbar-add-cart"><text>加入购物车</text></view>
17
+ <view class="tabbar-item tabbar-buy-now"><text>立即购买</text></view>
18
+ </view>
10
19
</view>
Original file line number Diff line number Diff line change
1
+ page {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
5
+
1
6
.product-container {
2
7
position: relative;
8
+ font-size: 0;
9
+ width: 100%;
10
+ height: 100%;
3
11
}
4
12
5
13
.tabbar {
6
14
width: 100%;
7
15
display: flex;
8
16
position: fixed;
9
- bottom: 0;
17
+ bottom: -1rpx;
18
+ font-size: 0;
10
19
}
11
20
12
21
.tabbar-item {
13
- height: 100rpx ;
22
+ height: 120rpx ;
14
23
}
15
24
16
25
.tabbar-home {
17
- width: 200rpx;
26
+ width: 200px;
27
+ text-align: center;
28
+ border-right: 1rpx #e6e6e6 solid;
29
+ }
30
+
31
+ .home-icon {
32
+ margin-top: 15rpx;
33
+ width: 50rpx;
34
+ height: 50rpx;
35
+ }
36
+
37
+ .home-text {
38
+ vertical-align: top;
39
+ font-size: 24rpx;
40
+ line-height: 40rpx;
41
+ color: #444;
18
42
}
19
43
20
44
.tabbar-cart {
21
- width: 200rpx;
45
+ width: 200px;
46
+ text-align: center;
47
+ }
48
+
49
+ .cart-icon {
50
+ margin-top: 15rpx;
51
+ width: 50rpx;
52
+ height: 50rpx;
53
+ }
54
+
55
+ .cart-text {
56
+ vertical-align: top;
57
+ font-size: 24rpx;
58
+ line-height: 40rpx;
59
+ color: #444;
22
60
}
23
61
24
62
.tabbar-add-cart {
25
63
color: #fff;
26
64
background-color: #fd885b;
27
- line-height: 100rpx ;
65
+ line-height: 120rpx ;
28
66
width: 100%;
29
67
text-align: center;
30
- font-size: 36rpx ;
68
+ font-size: 38rpx ;
31
69
}
32
70
33
71
.tabbar-buy-now {
34
72
color: #fff;
35
73
background-color: #fc464a;
36
- line-height: 100rpx ;
74
+ line-height: 120rpx ;
37
75
width: 100%;
38
76
text-align: center;
39
- font-size: 36rpx ;
77
+ font-size: 38rpx ;
40
78
}
You can’t perform that action at this time.
0 commit comments