支付宝小程序用于查询物流的步骤条

官网有可以直接引用的,但跟项目有出入,改人家的也是麻烦,于是自己半小时写了一个。

index.axml

<view class="wrap">
  <view class="list flex_as">
    <view class="left_line">
    </view>
    <view class="items">
      <view class="item flex_as" a:for="{{4}}">
        <view class="circle">
        </view>
        <view class="info">
          <view class="time">2020:12:02  11:45</view>
          <view class="text">快递已到某某某地方快递已到某某某地方快递已到某某某地方快递已到某某某地方</view>
        </view>
      </view>
    </view>
  </view>
</view>

index.acss

page {
  background: #f3f4f9;
}
.wrap{
  padding: 30rpx 20rpx;
}

.list {
  background-color: #ffffff;
  border-radius: 15rpx;
  padding: 0 20rpx 20rpx 20rpx;
  position: relative;
  height: 100%;
}
 
.left_line {
  position: absolute;
  top: 50rpx;
  bottom: 20rpx;
  left: 30rpx;
  width: 1rpx;
  background-color: #e5e5e5;
}

.items {
  font-family: PingFang-SC-Medium;
  font-size: 26rpx;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0rpx;
  color: #666666;
  flex: 1;
}

.item {
  position: relative;
  padding-left: 48rpx;
}
.item:last-child .info{
  border: none
}

.circle {
  position: absolute;
  top: 50rpx;
  left: 5rpx;
  width: 10rpx;
  height: 10rpx;
  background-color: #7d84ab;
  border-radius: 50%;
}

.time {
  margin: 40rpx 0 20rpx 0;
}

.text {
  margin-bottom: 20rpx;
  line-height: 46rpx;
}

.info {
  border-bottom: 1rpx solid #e5e5e5;  
  width: 100%
}

结果展示

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值