样式改进

wechat_user_type
Ge Hao 8 years ago
parent 9b61bc02c5
commit d37401faf7
  1. 8
      pages/cart/cart.wxss
  2. 8
      pages/category/category.js
  3. 2
      pages/mine/mine.wxml
  4. 20
      pages/mine/mine.wxss

@ -19,6 +19,7 @@
.items-container { .items-container {
margin-bottom: 180rpx; margin-bottom: 180rpx;
min-height: 900rpx;
} }
.item { .item {
@ -28,7 +29,7 @@
border-bottom: 1px solid #e4e4e4; border-bottom: 1px solid #e4e4e4;
color: #333; color: #333;
display:flex; display:flex;
align-items:center; justify-content: space-between;
} }
.item text { .item text {
@ -42,12 +43,11 @@
} }
.item-right { .item-right {
margin-left: 20rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
width: 100%;
height: 100%; height: 100%;
max-width: 410rpx;
} }
.title { .title {
@ -57,7 +57,7 @@
.title text { .title text {
font-size: 28rpx; font-size: 28rpx;
color: #333; color: #333;
white-space: pre-wrap; white-space: no-wrap;
line-height: 34rpx; line-height: 34rpx;
} }

@ -55,10 +55,10 @@ Page({
key: 'cartItems', key: 'cartItems',
data: cartItems data: cartItems
}) })
wx.showToast({
wx.navigateTo({ title: '成功加入购物车',
url: '../cart/cart' icon: 'success',
duration: 1000
}) })
} }
}) })

@ -40,7 +40,9 @@
<view class="long-view"> <view class="long-view">
<block wx:for="{{zichan_slides}}" wx:for-item="slide" wx:key="id"> <block wx:for="{{zichan_slides}}" wx:for-item="slide" wx:key="id">
<view class="item"> <view class="item">
<view class="image">
<image class="slide-img" src="{{slide.image}}"/> <image class="slide-img" src="{{slide.image}}"/>
</view>
<view class="desc"> <view class="desc">
<view class="desc-line"><text>{{slide.name}}</text></view> <view class="desc-line"><text>{{slide.name}}</text></view>
<view class="desc-line asset-count"><text>{{slide['asset-count']}}</text></view> <view class="desc-line asset-count"><text>{{slide['asset-count']}}</text></view>

@ -20,8 +20,8 @@
.xunzhang .rank { .xunzhang .rank {
position: relative; position: relative;
top: -88rpx; top: -47px;
left: 29rpx; left: 30rpx;
font-size: 25rpx; font-size: 25rpx;
width: 50rpx; width: 50rpx;
text-align: center; text-align: center;
@ -81,25 +81,27 @@
.zichan .second-line .item { .zichan .second-line .item {
width: 560rpx; width: 560rpx;
height: 250rpx; height: 137px;
margin-left: 20rpx; margin-left: 20rpx;
} }
.zichan .second-line .item .image{
height: 137px;
}
.zichan .second-line .desc { .zichan .second-line .desc {
position: relative; position: relative;
top: -255rpx; top: -137px;
left: 0; left: 0;
width: 100%; width: 560rpx;
height: 100%; height: 137px;
background-color: rgba(0,0,0,0.3); background-color: rgba(0,0,0,0.3);
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
color: #fff; color: #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
font-size: 25rpx; font-size: 25rpx;
} }
@ -116,7 +118,7 @@
.slide-img { .slide-img {
border-radius: 5px; border-radius: 5px;
width: 560rpx; width: 560rpx;
height: 250rpx; height: 137px;
} }
/*.zichan .third-line { /*.zichan .third-line {

Loading…
Cancel
Save