编程语言
首页 > 编程语言> > 微信小程序订单页面

微信小程序订单页面

作者:互联网

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;
}

预览:

 

标签:flex,订单,color,微信,height,width,text,card,页面
来源: https://www.cnblogs.com/tomingto/p/16195842.html