diff --git a/api/user.js b/api/user.js index 05c3e98..d7b33f8 100644 --- a/api/user.js +++ b/api/user.js @@ -408,4 +408,9 @@ export function getBrokerageRank(q) { */ export function setDetection() { return request.get("user/level/detection"); -} +} + + +export function getRechargeApi() { + return request.get("recharge/index"); +} diff --git a/config/index.js b/config/index.js index 633b56c..4fcc479 100644 --- a/config/index.js +++ b/config/index.js @@ -1,4 +1,4 @@ -// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; -export const VUE_APP_API_URL = 'https://h5api.dayouqiantu.cn/api'; +export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; +// export const VUE_APP_API_URL = 'https://h5api.dayouqiantu.cn/api'; export const VUE_APP_RESOURCES_URL = 'https://h5.dayouqiantu.cn/static'; diff --git a/pages/shop/StoreList/index.vue b/pages/shop/StoreList/index.vue index b2c396f..a0b9de7 100644 --- a/pages/shop/StoreList/index.vue +++ b/pages/shop/StoreList/index.vue @@ -61,7 +61,7 @@ " > --> - + + diff --git a/pages/user/UserAccount/index.vue b/pages/user/UserAccount/index.vue index d0ee1f5..9ef28da 100644 --- a/pages/user/UserAccount/index.vue +++ b/pages/user/UserAccount/index.vue @@ -8,6 +8,7 @@ 总资产(元) {{ now_money }} + 充值 @@ -57,13 +58,16 @@ export default { } }; }, - mounted: function() { + onShow: function() { this.getIndex(); this.getActivity(); }, methods: { goUserBill(types) { - this.$yrouter.push({ path: "/pages/user/UserBill/index", query: { types } }); + this.$yrouter.push({ + path: "/pages/user/UserBill/index", + query: { types } + }); }, getIndex: function() { let that = this; @@ -75,10 +79,11 @@ export default { }, err => { uni.showToast({ - title: err.msg || err.response.data.msg|| err.response.data.message, - icon: 'none', - duration: 2000 - }); + title: + err.msg || err.response.data.msg || err.response.data.message, + icon: "none", + duration: 2000 + }); } ); }, @@ -92,10 +97,11 @@ export default { }, err => { uni.showToast({ - title: err.msg || err.response.data.msg|| err.response.data.message, - icon: 'none', - duration: 2000 - }); + title: + err.msg || err.response.data.msg || err.response.data.message, + icon: "none", + duration: 2000 + }); } ); }