微信小程序订单页面

微信小程序订单页面

先预览一下效果
页面效果
html代码:

<view class="order" wx:if="{{TabCur == 0}}">
	<view class="content_">
		<view class="title">
			<view>订单编号:2018041729873019</view>
			<text>交易成功</text>
		</view>
		<view class="card">
			<view class="card-img">
				<image src="/images/goods.png"></image>
			</view>
			<view class="card-text">
				<view class="card-text_">
					<text>比利时(Balance)甜叶菊纯黑巧克力</text>
					<view>
						<view>¥98</view>
						<text>x1</text>
					</view>
				</view>
				<view class="card-button">
          <view>删除</view>
          <view>查看物流</view>
          <view>再次购买</view>
				</view>
			</view>
		</view>
    <view class="card">
			<view class="card-img">
				<image src="/images/goods.png"></image>
			</view>
			<view class="card-text">
				<view class="card-text_">
					<text>比利时(Balance)甜叶菊纯黑巧克力</text>
					<view>
						<view>¥98</view>
						<text>x1</text>
					</view>
				</view>
				<view class="card-button">
          <view>删除</view>
          <view>再次购买</view>
				</view>
			</view>
		</view>
    <view class="card">
			<view class="card-img">
				<image src="/images/goods.png"></image>
			</view>
			<view class="card-text">
				<view class="card-text_">
					<text>比利时(Balance)甜叶菊纯黑巧克力</text>
					<view>
						<view>¥98</view>
						<text>x1</text>
					</view>
				</view>
				<view class="card-button">

				</view>
			</view>
		</view>
	</view>
	<view class="bottom-title">
		共2件商品 实付:¥198.00
	</view>
</view>

css代码:

.order {
  width: 100%;
  background-color: #f4f4f4;
}

.content_ {
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.title {
  width: 100%;
  line-height: 30px;
  justify-content: space-between;
  border-bottom: 1px solid #f5f8f4;
  padding: 0 20rpx;
}

.title>view {
  color: #666;
}

.title>text {
  color: #fa9b4e;
}

.bottom-title {
  width: 100%;
  text-align: right;
  line-height: 40px;
  background-color: #fff;
  padding: 0 20rpx;
}

.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: 100%;
  line-height: 40px;
  display: flex;
  flex-direction: row;
  padding-left: 30rpx;
}

.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;
}
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值