组件
This commit is contained in:
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}
|
||||
Reference in New Issue
Block a user