组件
This commit is contained in:
parent
f625f398c7
commit
10d81f738d
@ -33,4 +33,8 @@
|
|||||||
- orderconfirm/chooseway 选择方式
|
- orderconfirm/chooseway 选择方式
|
||||||
- orderconfirm/ordershopinfo 顶部的商品信息
|
- orderconfirm/ordershopinfo 顶部的商品信息
|
||||||
- orderconfirm/orderyf 运费
|
- orderconfirm/orderyf 运费
|
||||||
- pages/order/order 订单列表
|
- pages/order/order 订单列表<br>
|
||||||
|
组件
|
||||||
|
- order/tab 切换列表
|
||||||
|
- order/commodity 商品信息操作
|
||||||
|
- order/message 商品信息
|
||||||
|
8
components/order/commodity/index.js
Normal file
8
components/order/commodity/index.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Component({
|
||||||
|
properties: {
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
}
|
||||||
|
})
|
6
components/order/commodity/index.json
Normal file
6
components/order/commodity/index.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"message":"../message/index"
|
||||||
|
}
|
||||||
|
}
|
81
components/order/commodity/index.scss
Normal file
81
components/order/commodity/index.scss
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
components/order/commodity/index.wxml
Normal file
14
components/order/commodity/index.wxml
Normal 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>
|
1
components/order/commodity/index.wxss
Normal file
1
components/order/commodity/index.wxss
Normal 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}
|
8
components/order/message/index.js
Normal file
8
components/order/message/index.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Component({
|
||||||
|
properties: {
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
}
|
||||||
|
})
|
3
components/order/message/index.json
Normal file
3
components/order/message/index.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"component": true
|
||||||
|
}
|
40
components/order/message/index.scss
Normal file
40
components/order/message/index.scss
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
14
components/order/message/index.wxml
Normal file
14
components/order/message/index.wxml
Normal 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>
|
1
components/order/message/index.wxss
Normal file
1
components/order/message/index.wxss
Normal 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}
|
8
components/order/tab/index.js
Normal file
8
components/order/tab/index.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Component({
|
||||||
|
properties: {
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
}
|
||||||
|
})
|
8
components/order/tab/index.json
Normal file
8
components/order/tab/index.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"commodity":"../commodity/index",
|
||||||
|
"van-tab": "../utils/dist/tab/index",
|
||||||
|
"van-tabs": "../utils/dist/tabs/index"
|
||||||
|
}
|
||||||
|
}
|
3
components/order/tab/index.scss
Normal file
3
components/order/tab/index.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.tab {
|
||||||
|
width: 750rpx;
|
||||||
|
}
|
9
components/order/tab/index.wxml
Normal file
9
components/order/tab/index.wxml
Normal 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>
|
1
components/order/tab/index.wxss
Normal file
1
components/order/tab/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
.tab{width:750rpx}
|
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-tab": "../utils/dist/tab/index",
|
"tab":"../components/order/tab/index"
|
||||||
"van-tabs": "../utils/dist/tabs/index"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -2,90 +2,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.tab {
|
|
||||||
width: 100%;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
page {
|
page {
|
||||||
background-color: #efefef;
|
background-color: #efefef;
|
||||||
|
@ -1,141 +1,3 @@
|
|||||||
<view class="box">
|
<view class="box">
|
||||||
<van-tabs class="tab" swipe-threshold="5">
|
<tab style="width:100%"></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-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>
|
|
||||||
</view>
|
</view>
|
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user