From 95d13763767e7d16d08792a95f04c885014914d2 Mon Sep 17 00:00:00 2001 From: xk_guohonglei <2057494155@qq.com> Date: Sat, 22 Aug 2020 16:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=B9=E7=AB=99=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/cloud-site.js | 4 +- components/OrderOil.vue | 111 ++++++++++++++++++++++++++++++---- components/order-item.vue | 17 +++--- pages.json | 6 +- pages/orderList/orderList.vue | 54 +++++++++++++---- pages/qrcode/QrCode_xy.vue | 89 ++++++++++++++++++++++++--- utils/request.js | 9 ++- 7 files changed, 240 insertions(+), 50 deletions(-) diff --git a/api/cloud-site.js b/api/cloud-site.js index 12e6e73..e1f1818 100644 --- a/api/cloud-site.js +++ b/api/cloud-site.js @@ -53,8 +53,8 @@ export default { // 获取带参数的油站二维码 getDesignatedSiteQrCode(data) { return request({ - url: `/${service_name}/${group_name}/getSiteQrCode`, - method: 'get', + url: `/${service_name}/${group_name}/updateSiteQrCode`, + method: 'post', data: data }) }, diff --git a/components/OrderOil.vue b/components/OrderOil.vue index c781a89..229938a 100644 --- a/components/OrderOil.vue +++ b/components/OrderOil.vue @@ -2,10 +2,10 @@ - {{'oilSiteName'}} + {{oilSite.oilSiteName}} - 1.32km | 紫云路与金寨南路交口向西200... + {{oilSite.address}} @@ -13,8 +13,8 @@ 油号选择: - - + + @@ -22,8 +22,8 @@ 0#柴油 - 星油价格:¥6.41/L - 市场价:¥6.5/L + 星油价格:¥{{selected.xkPrice?selected.xkPrice:selected.lvPrice|numberFilter}}/L + 市场价:¥{{selected.standardPrice|numberFilter}}/L @@ -32,7 +32,7 @@ - + @@ -40,27 +40,112 @@ 加油升数 - - 约¥0.00 + + 约¥{{money.total}} - 星卡优惠金额-¥0.00 + 星卡优惠金额-¥{{money.discount}} - 实际支付金额¥0.00 + 实际支付金额¥{{money.realPay}} - +