diff --git a/common/api.js b/common/api.js index f58630a..e53b5d2 100644 --- a/common/api.js +++ b/common/api.js @@ -82,5 +82,6 @@ export const submitPingzheng = (params, config = {custom: { auth: true }}) => ht export const confirmPay = (params, config = {custom: { auth: true }}) => http.post('/api/user/confirmPay', params, config); //确认签约 export const confirmSign = (params, config = {custom: { auth: true }}) => http.post('/api/user/updateUserInfo', params, config); - +//充值 +export const recharge = (params, config = {custom: { auth: true }}) => http.post('/api/user/recharge', params, config); diff --git a/pages.json b/pages.json index df0cfdf..989b0f1 100644 --- a/pages.json +++ b/pages.json @@ -47,6 +47,13 @@ "navigationBarBackgroundColor": "#FFFFFF" } }, + { + "path" : "pages/my/recharge", + "style" : { + "navigationBarTitleText": "", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { "path" : "pages/my/incomeExpenditureDetail", "style" : { diff --git a/pages/my/my.vue b/pages/my/my.vue index f75ef30..4b69c65 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -191,6 +191,7 @@ + @@ -273,6 +274,11 @@ url: '/pages/login/login' }) }, + onRecharge(){ + uni.navigateTo({ + url: '/pages/my/recharge', + }) + }, // 收支详情 onIncome(){ uni.navigateTo({ diff --git a/pages/my/recharge.vue b/pages/my/recharge.vue new file mode 100644 index 0000000..30c695d --- /dev/null +++ b/pages/my/recharge.vue @@ -0,0 +1,495 @@ + + + + +