Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
00f1cbbd
Commit
00f1cbbd
authored
Mar 30, 2022
by
linlinjava
Browse files
feat[litemall-wx]: 优化订单详情页面
parent
79a09d7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/ucenter/orderDetail/orderDetail.wxml
View file @
00f1cbbd
<view class="container">
<view class="container">
<view class="order-info">
<view class="order-info">
<view class="item">下单时间:{{orderInfo.addTime}}</view>
<view class="item">
<view class="item">订单编号:{{orderInfo.orderSn}}</view>
<view class="label">下单时间:</view>
<view class="item">订单留言:{{orderInfo.message}}</view>
<view class="txt">{{orderInfo.addTime}}</view>
</view>
<view class="item">
<view class="label">订单编号:</view>
<view class="txt">{{orderInfo.orderSn}}</view>
</view>
<view class="item">
<view class="label">订单留言:</view>
<view class="txt">{{orderInfo.message}}</view>
</view>
<view class="item-c">
<view class="item-c">
<view class="l">实付:
<text class="cost">¥{{orderInfo.actualPrice}}</text>
</view>
<view class="r">
<view class="r">
<view class="btn active" bindtap="cancelOrder" wx:if="{{handleOption.cancel}}">取消订单</view>
<view class="btn active" bindtap="cancelOrder" wx:if="{{handleOption.cancel}}">取消订单</view>
<view class="btn active" bindtap="payOrder" wx:if="{{handleOption.pay}}">去付款</view>
<view class="btn active" bindtap="payOrder" wx:if="{{handleOption.pay}}">去付款</view>
...
@@ -56,20 +62,20 @@
...
@@ -56,20 +62,20 @@
<view class="total">
<view class="total">
<view class="t">
<view class="t">
<text class="label">商品合计:</text>
<text class="label">商品合计:</text>
<text class="txt">¥{{orderInfo.goodsPrice}}</text>
<text class="txt">¥{{orderInfo.goodsPrice}}
元
</text>
</view>
</view>
<view class="t">
<view class="t">
<text class="label">运费:</text>
<text class="label">
订单
运费:</text>
<text class="txt">¥{{orderInfo.freightPrice}}</text>
<text class="txt">¥{{orderInfo.freightPrice}}
元
</text>
</view>
</view>
<view class="t">
<view class="t">
<text class="label">优惠:</text>
<text class="label">
订单
优惠:</text>
<text class="txt">
¥
-{{orderInfo.couponPrice}}</text>
<text class="txt">-
¥
{{orderInfo.couponPrice}}
元
</text>
</view>
</view>
<
/
view>
<view
class="t"
>
<view class="pay-fee"
>
<text class="label">订单实付:</text
>
<text class="
label">实付:
</text>
<text class="
txt">¥{{orderInfo.actualPrice}}元
</text>
<
text class="txt">¥{{orderInfo.actualPrice}}</text>
<
/view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
litemall-wx/pages/ucenter/orderDetail/orderDetail.wxss
View file @
00f1cbbd
...
@@ -11,13 +11,13 @@ page {
...
@@ -11,13 +11,13 @@ page {
overflow: hidden;
overflow: hidden;
}
}
.item {
.order-info
.item {
padding-left: 31.25
rpx;
height: 80
rpx;
height:
42.5
rpx;
line-
height:
80
rpx;
padding-bottom: 12.5rp
x;
display: fle
x;
line-height: 30rpx
;
justify-content: space-between
;
font-size: 30rpx
;
border-top: 1px solid #f4f4f4
;
color: #666
;
padding: 0 31.25rpx
;
}
}
.item-c {
.item-c {
...
@@ -177,73 +177,34 @@ page {
...
@@ -177,73 +177,34 @@ page {
.order-bottom {
.order-bottom {
margin-top: 20rpx;
margin-top: 20rpx;
padding
-left:
31.25rpx;
padding
: 0
31.25rpx;
height: auto;
height: auto;
overflow: hidden;
overflow: hidden;
background: #fff;
background: #fff;
}
}
.order-bottom .address {
height: 128rpx;
padding-top: 25rpx;
border-top: 1px solid #f4f4f4;
border-bottom: 1px solid #f4f4f4;
}
.order-bottom .address .t {
.order-bottom .address .t {
height: 35rpx;
height: 80rpx;
line-height: 35rpx;
line-height: 80rpx;
margin-bottom: 7.5rpx;
display: flex;
}
justify-content: space-between;
border-top: 1px solid #f4f4f4;
.order-bottom .address .name {
display: inline-block;
height: 35rpx;
width: 140rpx;
line-height: 35rpx;
font-size: 30rpx;
}
.order-bottom .address .mobile {
display: inline-block;
height: 35rpx;
line-height: 35rpx;
font-size: 30rpx;
}
}
.order-bottom .address .b {
.order-bottom .address .b {
height:
35
rpx;
height:
60
rpx;
line-height:
35
rpx;
line-height:
60
rpx;
font-size: 30rpx;
font-size: 30rpx;
}
.order-bottom .total {
height: 130rpx;
padding-top: 20rpx;
border-bottom: 1px solid #f4f4f4;
border-bottom: 1px solid #f4f4f4;
text-align: right;
}
}
.order-bottom .total .t {
.order-bottom .total .t {
height: 30rpx;
height: 80rpx;
line-height: 30rpx;
line-height: 80rpx;
margin-bottom: 7.5rpx;
display: flex;
display: flex;
}
justify-content: space-between;
border-top: 1px solid #f4f4f4;
.order-bottom .total .label {
width: 150rpx;
display: inline-block;
height: 35rpx;
line-height: 35rpx;
font-size: 30rpx;
}
.order-bottom .total .txt {
flex: 1;
display: inline-block;
height: 35rpx;
line-height: 35rpx;
font-size: 30rpx;
}
}
.order-bottom .pay-fee {
.order-bottom .pay-fee {
...
@@ -317,4 +278,4 @@ page {
...
@@ -317,4 +278,4 @@ page {
.order-express .acceptStation {
.order-express .acceptStation {
font-size: 26rpx;
font-size: 26rpx;
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment