diff --git a/apis/index.js b/apis/index.js index 0e2e535..79c1f8c 100644 --- a/apis/index.js +++ b/apis/index.js @@ -10,7 +10,7 @@ import router from '../router' // 基础配置 const config = { - apiUrl : 'http://api.gl.shangkelian.cn/api/', // 正式环境 + apiUrl : 'https://api.gongli.vip/api/', // 正式环境 // apiUrl : 'http://api.zh.shangkelian.cn/api/', // 大健康调试环境,目前没有任何数据无法正常显示,所以需要使用该环境,最后会删除 timeout : 60000 } diff --git a/apis/interfaces/account.js b/apis/interfaces/account.js index 22f530a..939dd0e 100644 --- a/apis/interfaces/account.js +++ b/apis/interfaces/account.js @@ -19,6 +19,7 @@ const dt = (data) =>{ // 充值 const recharge = (data) => { + console.log(data) return request({ url: "user/transaction/recharge", method: "POST", @@ -89,6 +90,13 @@ const integral = () => { }) } +// 快捷支付配置 +const paymentpre = () => { + return request({ + url: 'user/transaction/recharge/paymentpre' + }) +} + export { dt, recharge, @@ -99,5 +107,6 @@ export { setpassword, getSms, submitTransfer, - integral + integral, + paymentpre } diff --git a/pages/account/recharge.vue b/pages/account/recharge.vue index 6dbbb48..881d54d 100644 --- a/pages/account/recharge.vue +++ b/pages/account/recharge.vue @@ -9,35 +9,17 @@ - + 快速充值 - - 100 - 100DT积分 - - - 200 - 200DT积分 - - - 500 - 500DT积分 - - - 1000 - 1000DT积分 - - - 3000 - 3000DT积分 - - - 5000 - 5000DT积分 - + + + {{item.price}} + {{item.dt}}DT积分 + + @@ -48,13 +30,24 @@