<view class="bgColor">
<view class='bgColor-t'></view>
<view class="bgColor-b"></view>
</view>
<!-- 头像 -->
<view class="header">
<view class="userHeader">
<image src="../../images/1565249078(1).png" mode="aspectFit"></image>
</view>
<view class="userName">404</view>
</view>
<!-- 所有订单 -->
<view class="allOrder">
<view class="orderTitle">
<view>所有订单</view>
<view>
<text class="iconfont icon-arrowright"></text>
</view>
</view>
<view class="orderItem">
<view class="orderstate">
<view class="orderNumber">5</view>
<view class="orderIcon">
<text class="iconfont icon-goods_submit"></text>
</view>
<view class="orderName">进行中</view>
</view>
<view class="orderstate">
<view class="orderIcon">
<text class="iconfont icon-goods_submit"></text>
</view>
<view class="orderName">已完成</view>
</view>
<view class="orderstate">
<view class="orderIcon">
<text class="iconfont icon-goods_submit"></text>
</view>
<view class="orderName">已取消</view>
</view>
</view>
</view>
<view class="allOrder">
<view class="list">
<view>
<text class="iconfont icon-shenpitongguo"></text>天津市津南区福松源庄5号楼1206</view>
<view><text class="iconfont icon-arrowright"></text></view>
</view>
<view class="list">
<view>
<text class="iconfont icon-icon"></text>13000000000</view>
<view><text class="iconfont icon-arrowright"></text></view>
</view>
<view class="list">
<view>
<text class="iconfont icon-shizhong"></text>周一至周五 09:00 - 18:00</view>
</view>
<view class="list">
<view>
<text class="iconfont icon-toolbar_tieba_active2"></text>这是我写的demo</view>
</view>
</view>
/**index.wxss**/
@import "../../wxss/iconfont.wxss";
@import "../../wxss/base.wxss";
page {
background: #f3f3f3;
}
.bgColor {
width: 100%;
position: fixed;
z-index: -1;
top: 0;
left: 0;
}
.bgColor-t {
width: 100%;
height: 250rpx;
background: #e04b44;
}
.bgColor-b {
width: 100%;
height: 60rpx;
background: #e04b44;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
}
/* 用户头像 */
.header {
margin-top: 40rpx;
}
.userHeader {
width: 125rpx;
height: 125rpx;
margin: auto;
}
.userHeader image {
width: 100%;
height: 100%;
border-radius: 50%;
}
.userName {
margin-top: 10rpx;
text-align: center;
color: white;
}
/* 所有订单 */
.allOrder {
margin: 32rpx 54rpx 0;
background: white;
border-radius: 8rpx;
padding: 30rpx;
}
.orderTitle {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 24rpx;
border-bottom: 2rpx solid #e7e9e8;
}
.orderItem {
display: flex;
justify-content: space-between;
padding-top: 20rpx;
}
.orderstate {
position: relative;
text-align: center;
line-height: 1.1;
}
.orderNumber {
position: absolute;
right: -10rpx;
top: -12rpx;
width: 44rpx;
height: 44rpx;
border-radius: 50%;
text-align: center;
line-height: 44rpx;
border: 1px solid #e04b44;
color: #e04b44;
background: white;
z-index: 100;
}
.icon-goods_submit {
font-size: 64rpx;
color: #e04b44;
}
.orderName {
font-size: 24rpx;
color: #5c5c5c;
}
.icon-arrowright {
color: #c5c8c7;
font-size: 28rpx;
}
.list {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 30rpx;
}
.list:last-child{
padding-bottom: 0rpx;
}
.icon-shenpitongguo {
color: #e1e1e1;
margin-right: 20rpx;
}
.icon-icon {
color: #e1e1e1;
margin-right: 20rpx;
}
.icon-shizhong {
color: #e1e1e1;
margin-right: 20rpx;
}
.icon-toolbar_tieba_active2 {
color: #e1e1e1;
margin-right: 20rpx;
}