This commit is contained in:
pplokijuhyg 2019-12-14 10:25:59 +08:00
parent f625f398c7
commit 10d81f738d
20 changed files with 214 additions and 227 deletions

View File

@ -33,4 +33,8 @@
- orderconfirm/chooseway 选择方式
- orderconfirm/ordershopinfo 顶部的商品信息
- orderconfirm/orderyf 运费
- pages/order/order 订单列表
- pages/order/order 订单列表<br>
组件
- order/tab 切换列表
- order/commodity 商品信息操作
- order/message 商品信息

View File

@ -0,0 +1,8 @@
Component({
properties: {
},
data: {
},
methods: {
}
})

View File

@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"message":"../message/index"
}
}

View File

@ -0,0 +1,81 @@
.commodity {
margin-top: 20rpx;
background-color: #fff;
.message {
padding: 35rpx;
display: flex;
align-items: center;
border-bottom: 1rpx solid #F2F2F2;
.image {
width: 141rpx;
height: 150rpx;
background-color: #000;
margin-left: 34rpx;
}
.introduce {
margin-left: 32rpx;
height: 120rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 362rpx;
.title {
font-size: 28rpx;
color: #333;
}
.count {
font-size: 24rpx;
color: #999;
display: flex;
> view {
margin-right: 27rpx;
}
}
}
.parameter {
width: 150rpx;
height: 120rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
}
}
.aggregate{
display: flex;
box-sizing: border-box;
padding: 30rpx;
justify-content: flex-end;
font-size: 22rpx;
color: #999;
height: 78rpx;
border-bottom: 1rpx solid #F2F2F2;
>text{
color: #333;
margin: 0 5rpx;
}
}
.operation{
height: 84rpx;
display: flex;
justify-content: flex-end;
padding:0 30rpx;
align-items: center;
.button{
width: 133rpx;
height: 51rpx;
border:2rpx solid #999999;
border-radius: 26rpx;
text-align: center;
font-size: 22rpx;
color:#999999;
line-height: 51rpx;
margin-right: 8rpx;
}
.hlight{
border:2rpx solid rgba(71,200,119,1);
color: #47C877;
}
}
}

View File

@ -0,0 +1,14 @@
<view class="commodity">
<message></message>
<view class="aggregate">
共计1件商品 合计:
<text>¥29.80</text>
(含运费¥0.00)
</view>
<view class="operation">
<view class="button">评价</view>
<view class="button hlight">评价</view>
</view>
</view>

View File

@ -0,0 +1 @@
.commodity{margin-top:20rpx;background-color:#fff}.commodity .message{padding:35rpx;display:flex;align-items:center;border-bottom:1rpx solid #F2F2F2}.commodity .message .image{width:141rpx;height:150rpx;background-color:#000;margin-left:34rpx}.commodity .message .introduce{margin-left:32rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;width:362rpx}.commodity .message .introduce .title{font-size:28rpx;color:#333}.commodity .message .introduce .count{font-size:24rpx;color:#999;display:flex}.commodity .message .introduce .count>view{margin-right:27rpx}.commodity .message .parameter{width:150rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.commodity .aggregate{display:flex;box-sizing:border-box;padding:30rpx;justify-content:flex-end;font-size:22rpx;color:#999;height:78rpx;border-bottom:1rpx solid #F2F2F2}.commodity .aggregate>text{color:#333;margin:0 5rpx}.commodity .operation{height:84rpx;display:flex;justify-content:flex-end;padding:0 30rpx;align-items:center}.commodity .operation .button{width:133rpx;height:51rpx;border:2rpx solid #999999;border-radius:26rpx;text-align:center;font-size:22rpx;color:#999999;line-height:51rpx;margin-right:8rpx}.commodity .operation .hlight{border:2rpx solid #47c877;color:#47C877}

View File

@ -0,0 +1,8 @@
Component({
properties: {
},
data: {
},
methods: {
}
})

View File

@ -0,0 +1,3 @@
{
"component": true
}

View File

@ -0,0 +1,40 @@
.message {
padding: 35rpx;
display: flex;
align-items: center;
border-bottom: 1rpx solid #F2F2F2;
.image {
width: 141rpx;
height: 150rpx;
background-color: #000;
margin-left: 34rpx;
}
.introduce {
margin-left: 32rpx;
height: 120rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 362rpx;
.title {
font-size: 28rpx;
color: #333;
}
.count {
font-size: 24rpx;
color: #999;
display: flex;
> view {
margin-right: 27rpx;
}
}
}
.parameter {
width: 150rpx;
height: 120rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
}
}

View File

@ -0,0 +1,14 @@
<view class="message">
<image class="image"></image>
<view class="introduce">
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
<view class="count">
<view>30只</view>
<view>1.0356kg</view>
</view>
</view>
<view class="parameter">
<view class="price">¥29.80</view>
<view class="num">x2</view>
</view>
</view>

View File

@ -0,0 +1 @@
.message{padding:35rpx;display:flex;align-items:center;border-bottom:1rpx solid #F2F2F2}.message .image{width:141rpx;height:150rpx;background-color:#000;margin-left:34rpx}.message .introduce{margin-left:32rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;width:362rpx}.message .introduce .title{font-size:28rpx;color:#333}.message .introduce .count{font-size:24rpx;color:#999;display:flex}.message .introduce .count>view{margin-right:27rpx}.message .parameter{width:150rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}

View File

@ -0,0 +1,8 @@
Component({
properties: {
},
data: {
},
methods: {
}
})

View File

@ -0,0 +1,8 @@
{
"component": true,
"usingComponents": {
"commodity":"../commodity/index",
"van-tab": "../utils/dist/tab/index",
"van-tabs": "../utils/dist/tabs/index"
}
}

View File

@ -0,0 +1,3 @@
.tab {
width: 750rpx;
}

View File

@ -0,0 +1,9 @@
<van-tabs class="tab" swipe-threshold="5">
<van-tab title="待付款">
<commodity></commodity>
</van-tab>
<van-tab title="代发货"></van-tab>
<van-tab title="待收货"> </van-tab>
<van-tab title="已完成"> </van-tab>
<van-tab title="售后"> </van-tab>
</van-tabs>

View File

@ -0,0 +1 @@
.tab{width:750rpx}

View File

@ -1,6 +1,5 @@
{
"usingComponents": {
"van-tab": "../utils/dist/tab/index",
"van-tabs": "../utils/dist/tabs/index"
"tab":"../components/order/tab/index"
}
}

View File

@ -2,90 +2,7 @@
display: flex;
flex-direction: column;
align-items: center;
.tab {
width: 100%;
.commodity {
margin-top: 20rpx;
background-color: #fff;
.message {
padding: 35rpx;
display: flex;
align-items: center;
border-bottom: 1rpx solid #F2F2F2;
.image {
width: 141rpx;
height: 150rpx;
background-color: #000;
margin-left: 34rpx;
}
.introduce {
margin-left: 32rpx;
height: 120rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 362rpx;
.title {
font-size: 28rpx;
color: #333;
}
.count {
font-size: 24rpx;
color: #999;
display: flex;
> view {
margin-right: 27rpx;
}
}
}
.parameter {
width: 150rpx;
height: 120rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
}
}
.aggregate{
display: flex;
box-sizing: border-box;
padding: 30rpx;
justify-content: flex-end;
font-size: 22rpx;
color: #999;
height: 78rpx;
border-bottom: 1rpx solid #F2F2F2;
>text{
color: #333;
margin: 0 5rpx;
}
}
.operation{
height: 84rpx;
display: flex;
justify-content: flex-end;
padding:0 30rpx;
align-items: center;
.button{
width: 133rpx;
height: 51rpx;
border:2rpx solid #999999;
border-radius: 26rpx;
text-align: center;
font-size: 22rpx;
color:#999999;
line-height: 51rpx;
margin-right: 8rpx;
}
.hlight{
border:2rpx solid rgba(71,200,119,1);
color: #47C877;
}
}
}
}
width: 100%;
}
page {
background-color: #efefef;

View File

@ -1,141 +1,3 @@
<view class="box">
<van-tabs class="tab" swipe-threshold="5">
<van-tab title="待付款">
<view class="commodity">
<view class="message">
<image class="image"></image>
<view class="introduce">
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
<view class="count">
<view>30只</view>
<view>1.0356kg</view>
</view>
</view>
<view class="parameter">
<view class="price">¥29.80</view>
<view class="num">x2</view>
</view>
</view>
<view class="aggregate">
共计1件商品 合计:
<text>¥29.80</text>
(含运费¥0.00)
</view>
<view class="operation">
<view class="button">评价</view>
<view class="button hlight">评价</view>
</view>
</view>
</van-tab>
<van-tab title="代发货"> <view class="commodity">
<view class="message">
<image class="image"></image>
<view class="introduce">
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
<view class="count">
<view>30只</view>
<view>1.0356kg</view>
</view>
</view>
<view class="parameter">
<view class="price">¥29.80</view>
<view class="num">x2</view>
</view>
</view>
<view class="aggregate">
共计1件商品 合计:
<text>¥29.80</text>
(含运费¥0.00)
</view>
<view class="operation">
<view class="button">评价</view>
<view class="button hlight">评价</view>
</view>
</view></van-tab>
<van-tab title="待收货"> <view class="commodity">
<view class="message">
<image class="image"></image>
<view class="introduce">
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
<view class="count">
<view>30只</view>
<view>1.0356kg</view>
</view>
</view>
<view class="parameter">
<view class="price">¥29.80</view>
<view class="num">x2</view>
</view>
</view>
<view class="aggregate">
共计1件商品 合计:
<text>¥29.80</text>
(含运费¥0.00)
</view>
<view class="operation">
<view class="button">评价</view>
<view class="button hlight">评价</view>
</view>
</view></van-tab>
<van-tab title="已完成"> <view class="commodity">
<view class="message">
<image class="image"></image>
<view class="introduce">
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
<view class="count">
<view>30只</view>
<view>1.0356kg</view>
</view>
</view>
<view class="parameter">
<view class="price">¥29.80</view>
<view class="num">x2</view>
</view>
</view>
<view class="aggregate">
共计1件商品 合计:
<text>¥29.80</text>
(含运费¥0.00)
</view>
<view class="operation">
<view class="button">评价</view>
<view class="button hlight">评价</view>
</view>
</view></van-tab>
<van-tab title="售后"> <view class="commodity">
<view class="message">
<image class="image"></image>
<view class="introduce">
<view class="title">001|德国双心药房版 胶原蛋白美容口服液养颜</view>
<view class="count">
<view>30只</view>
<view>1.0356kg</view>
</view>
</view>
<view class="parameter">
<view class="price">¥29.80</view>
<view class="num">x2</view>
</view>
</view>
<view class="aggregate">
共计1件商品 合计:
<text>¥29.80</text>
(含运费¥0.00)
</view>
<view class="operation">
<view class="button">评价</view>
<view class="button hlight">评价</view>
</view>
</view></van-tab>
</van-tabs>
<tab style="width:100%"></tab>
</view>

View File

@ -1 +1 @@
.box{display:flex;flex-direction:column;align-items:center}.box .tab{width:100%}.box .tab .commodity{margin-top:20rpx;background-color:#fff}.box .tab .commodity .message{padding:35rpx;display:flex;align-items:center;border-bottom:1rpx solid #F2F2F2}.box .tab .commodity .message .image{width:141rpx;height:150rpx;background-color:#000;margin-left:34rpx}.box .tab .commodity .message .introduce{margin-left:32rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;width:362rpx}.box .tab .commodity .message .introduce .title{font-size:28rpx;color:#333}.box .tab .commodity .message .introduce .count{font-size:24rpx;color:#999;display:flex}.box .tab .commodity .message .introduce .count>view{margin-right:27rpx}.box .tab .commodity .message .parameter{width:150rpx;height:120rpx;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.box .tab .commodity .aggregate{display:flex;box-sizing:border-box;padding:30rpx;justify-content:flex-end;font-size:22rpx;color:#999;height:78rpx;border-bottom:1rpx solid #F2F2F2}.box .tab .commodity .aggregate>text{color:#333;margin:0 5rpx}.box .tab .commodity .operation{height:84rpx;display:flex;justify-content:flex-end;padding:0 30rpx;align-items:center}.box .tab .commodity .operation .button{width:133rpx;height:51rpx;border:2rpx solid #999999;border-radius:26rpx;text-align:center;font-size:22rpx;color:#999999;line-height:51rpx;margin-right:8rpx}.box .tab .commodity .operation .hlight{border:2rpx solid #47c877;color:#47C877}page{background-color:#efefef}
.box{display:flex;flex-direction:column;align-items:center;width:100%}page{background-color:#efefef}