From 2260705fe189aadbda6c41ecf51238ff5fd52d63 Mon Sep 17 00:00:00 2001 From: yangrz Date: Tue, 2 Apr 2024 11:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA=E5=88=86=E6=88=90=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E3=80=81=E6=89=8B=E7=BB=AD=E8=B4=B9=E3=80=81=E5=AE=9E=E9=99=85?= =?UTF-8?q?=E6=94=B6=E7=9B=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agentApp/pages/merchant-index/index.vue | 47 ++++++++++++++++++++----- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/agentApp/pages/merchant-index/index.vue b/agentApp/pages/merchant-index/index.vue index c3f40c7..b208ff4 100644 --- a/agentApp/pages/merchant-index/index.vue +++ b/agentApp/pages/merchant-index/index.vue @@ -2,9 +2,10 @@ - - + + + + {{accountInfo.name}} 地址:{{accountInfo.address || '未填写地址'}} @@ -68,7 +69,14 @@ {{accountInfo.name}} - 金额:¥{{order.amount}} + + 订单金额:¥{{order.amount}} + 分成金额:¥{{share_amount(order)}} + + + 扣手续费:¥{{order.merchant_fee}} + 实际收益:¥{{order.merchant_income}} + 订单时间:{{order.paid_at}} @@ -153,6 +161,9 @@ // uni.navigateTo({ // url: '/pages/user-orders/user-orders' // }); + }, + share_amount: function(order) { + return (parseFloat(order.merchant_income) + parseFloat(order.merchant_fee)).toFixed(2) } } } @@ -170,12 +181,25 @@ box-sizing: border-box; .avatar-information { - display: flex; - justify-content: left; - align-items: center; + //display: flex; + //justify-content: left; + //align-items: center; padding: 30rpx 0; + + .avatar-container { + display: inline-block; + width: 120rpx; + + .avatar-img { + width: 110rpx; + height: 110rpx; + border-radius: 50%; + } + } .information-content { + display: inline-block; + width: calc(100% - 120rpx - 30rpx); margin-left: 30rpx; .information-name { @@ -347,18 +371,25 @@ .ordering-text { margin-left: 30rpx; + width: 100%; + line-height: 110%; .ordering-text-title { font-family: PingFangSC-Regular, sans-serif; font-size: 30rpx; color: #454545; } + + .amount-list { + display: flex; + justify-content: flex-start; + } .amount-of-money { font-family: PingFangSC-Regular, sans-serif; font-size: 24rpx; color: #999; - padding: 10rpx 0; + width: 50%; span.price-style { font-family: PingFangSC-Regular, sans-serif;