From 97af3f4796f7e498b27aaf114352b1fab0751abf Mon Sep 17 00:00:00 2001 From: Devil Date: Sat, 5 Oct 2019 21:03:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/BuyService.php | 6 ++++++ public/appmini/old/weixin/app.js | 2 +- public/appmini/old/weixin/app.json | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/application/service/BuyService.php b/application/service/BuyService.php index 8a70f29e9..3b7cc9014 100755 --- a/application/service/BuyService.php +++ b/application/service/BuyService.php @@ -662,6 +662,12 @@ class BuyService return $ret; } + // 返回数据再次处理,防止插件处理不够完善 + $result['base']['total_price'] = PriceNumberFormat($result['base']['total_price']); + $result['base']['actual_price'] = PriceNumberFormat($result['base']['actual_price']); + $result['base']['preferential_price'] = PriceNumberFormat($result['base']['preferential_price']); + $result['base']['increase_price'] = PriceNumberFormat($result['base']['increase_price']); + return DataReturn('操作成功', 0, $result); } diff --git a/public/appmini/old/weixin/app.js b/public/appmini/old/weixin/app.js index d450326aa..789fdf9e0 100755 --- a/public/appmini/old/weixin/app.js +++ b/public/appmini/old/weixin/app.js @@ -64,7 +64,7 @@ App({ // 请求地址 request_url: "{{request_url}}", request_url: 'http://tp5-dev.com/', - // request_url: 'https://test.shopxo.net/', + request_url: 'https://test.shopxo.net/', // 基础信息 application_title: "{{application_title}}", diff --git a/public/appmini/old/weixin/app.json b/public/appmini/old/weixin/app.json index b5f4ad94b..7aaa8aee5 100755 --- a/public/appmini/old/weixin/app.json +++ b/public/appmini/old/weixin/app.json @@ -1,7 +1,7 @@ { - "pages": ["pages/user-orderaftersale-detail/user-orderaftersale-detail", - "pages/user-order/user-order", - "pages/user/user", + "pages": ["pages/user/user", + "pages/user-order/user-order","pages/user-orderaftersale-detail/user-orderaftersale-detail", + "pages/index/index", "pages/goods-category/goods-category", "pages/cart/cart", -- GitLab