• 微信小程序订单页面


    view:

    <view class="order">
        <view class="content_">
            <view class="title">
                <view>订单编号:2018041729873019</view>
                <text>已配送</text>
            </view>
            <view class="card" wx:for="{{List}}">
                <view class="card-img">
                    <image src="../../../img/refresh.png"></image>
                </view>
                <view class="card-text">
                    <view class="card-text_">
                        <text>比利时(Balance)甜叶菊纯黑巧克力</text>
                        <view>
                            <view>¥98</view>
                            <text>x1</text>
                        </view>
                    </view>
                </view>
            </view>
        </view>
        <view class="bottom-title">
            共2件商品 实付:¥198.00
        </view>
        <view class="card-button">
            <view>确认送达</view>
            <view>补差价</view>
            <view>退款</view>
        </view>
    </view>

    css:

    .order {
      width: 100%;
      background-color: #f4f4f4;
    }
    
    .content_ {
      width: 100%;
      background-color: #fff;
      display: flex;
      flex-direction: column;
    }
    
    .title {
      width: 94%;
      line-height: 30px;
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid #f5f8f4;
      padding: 0 3%;
    }
    
    .title>view {
      color: #666;
    }
    
    .title>text {
      color: #fa9b4e;
    }
    
    .bottom-title {
      width: 96%;
      text-align: right;
      line-height: 40px;
      background-color: #fff;
      padding: 0 2%;
      border: 2rpx solid #f5f5f5;
    }
    
    .card {
      width: 100%;
      height: 100px;
      display: flex;
      flex-direction: row;
    }
    
    .card-img {
      height: 100px;
      width: 100px;
      padding: 7px 7px;
    }
    
    .card-img>image {
      width: 86px;
      height: 86px;
    }
    
    .card-text {
      height: 100px;
      width: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .card-text_ {
      width: 100%;
      height: 60px;
      display: flex;
      flex-direction: row;
    }
    
    .card-text_>text {
      width: 80%;
      padding-left: 20rpx;
      color: #444;
      font-weight: 600;
      font-size: 10pt;
    }
    
    .card-text_>view {
      padding-right: 20rpx;
      width: 20%;
      text-align: right;
    }
    
    .card-text_>view>view {
      color: #444;
      font-weight: 600;
      margin-bottom: 10rpx;
    }
    
    .card-text_>view>text {
      font-size: 9pt;
      color: #999;
    }
    
    .card-button {
      width: 98%;
      line-height: 40px;
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      padding: 20rpx 2%;
      background: #fff;
    }
    
    .card-button>view {
      background-color: #fff;
      line-height: 25px;
      width: 30%;
      margin-left: 10rpx;
      text-align: center;
      border-radius: 15px;
      border:1px solid#d6d6d6;
      color: #444;
      font-size: 9pt;
    }

    预览:

  • 相关阅读:
    SQL分页语句
    读、写 节点 XML方法总结
    新手入门:XHTML DHTML SHTML的区别
    ROS映射非21端口的FTP服务器设置
    图解:asp.net三种重定向方法
    在ASP.NET中显示进度条
    C#读取文本文件
    Net3.5都快来了,.Net2.0你们都知道多少呢?
    div+css布局漫谈
    自定义的向客户端输出Javascript脚本alert函数
  • 原文地址:https://www.cnblogs.com/tomingto/p/16195842.html
Copyright © 2020-2023  润新知