From 70028925ccf0d2c51d22ab1e32ca10ca82cce289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Thu, 16 Feb 2023 13:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BF=9C=E7=AB=AF=E6=9A=82?= =?UTF-8?q?=E5=AD=98=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/index.js | 4 +- apis/interfaces/order.js | 18 +++++++ pages/pay/pay.vue | 1 - pages/work/perfectInstitutions.vue | 78 ++++++++++++++++-------------- 4 files changed, 62 insertions(+), 39 deletions(-) diff --git a/apis/index.js b/apis/index.js index 0a6a8ca..0bf4ee8 100644 --- a/apis/index.js +++ b/apis/index.js @@ -10,8 +10,8 @@ import router from '../router' // 基础配置 const config = { - apiUrl : 'https://douhuo.douhuofalv.com/api/', - // apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 + // apiUrl : 'https://douhuo.douhuofalv.com/api/', + apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 timeout : 60000 } diff --git a/apis/interfaces/order.js b/apis/interfaces/order.js index 6a34cf8..8ccf0e0 100644 --- a/apis/interfaces/order.js +++ b/apis/interfaces/order.js @@ -98,6 +98,22 @@ const updBaseBase = (baseId, data) => { }) } +// 获取缓存机构资料 +const cacheBank = id => { + return request({ + url: 'business/' + id + '/cache/bank', + }) +} + +// 存储缓存机构资料 +const setCacheBank = (id, data) => { + return request({ + url: 'business/' + id + '/cache/bank', + method: 'POST', + data + }) +} + // 待补差价订单 const ordersDiffs = data => { return request({ @@ -213,6 +229,8 @@ export { updPerfectBase, baseBase, updBaseBase, + cacheBank, + setCacheBank, ordersDiffs, ordersEditorders, orderSign, diff --git a/pages/pay/pay.vue b/pages/pay/pay.vue index fd1d29b..46902ae 100644 --- a/pages/pay/pay.vue +++ b/pages/pay/pay.vue @@ -120,7 +120,6 @@ this.payType = this.$Route.query.paytype uni.hideLoading() }).catch(err => { - console.log(err) uni.showToast({ title: err.message, icon : 'none' diff --git a/pages/work/perfectInstitutions.vue b/pages/work/perfectInstitutions.vue index bc43f41..40f54ee 100644 --- a/pages/work/perfectInstitutions.vue +++ b/pages/work/perfectInstitutions.vue @@ -60,6 +60,7 @@ + @@ -114,7 +115,7 @@