diff --git a/api/amount/index.js b/api/amount/index.js index fa3acb7..a52a692 100644 --- a/api/amount/index.js +++ b/api/amount/index.js @@ -3,36 +3,48 @@ import request from '@/utils/request' // 小程序-金额流水信息列表数据查询 export const amountLogList = (params) => { - return request({ - url: '/applet/amount/amountLogList', - headers: { - isToken: true - }, - method: "get", - params - }) + return request({ + url: '/applet/amount/amountLogList', + headers: { + isToken: true + }, + method: "get", + params + }) } // 小程序-充值 export const cashIn = (data) => { - return request({ - url: '/applet/amount/cashIn', - headers: { - isToken: true - }, - method: "post", - data - }) + return request({ + url: '/applet/amount/cashIn', + headers: { + isToken: true + }, + method: "post", + data + }) } // 小程序-提现 export const cashOut = (data) => { - return request({ - url: '/applet/amount/cashOut', - headers: { - isToken: true - }, - method: "post", - data - }) + return request({ + url: '/applet/amount/cashOut', + headers: { + isToken: true + }, + method: "post", + data + }) +} + +// 小程序-缴纳保证金 +export const teacherPayPrice = (data) => { + return request({ + url: '/applet/UserTeacher/payPrice', + headers: { + isToken: true + }, + method: "post", + data + }) } \ No newline at end of file diff --git a/otherPages/myOrdersManage/bond/index.vue b/otherPages/myOrdersManage/bond/index.vue index f2d46dd..e6145c5 100644 --- a/otherPages/myOrdersManage/bond/index.vue +++ b/otherPages/myOrdersManage/bond/index.vue @@ -18,7 +18,7 @@ ¥ - + 去充值 @@ -43,7 +43,8 @@ computed } from 'vue' import { - cashIn + cashIn, + teacherPayPrice, } from '@/api/amount/index.js' import { useStore @@ -78,10 +79,9 @@ icon: "none" }) } - let response = await cashIn({ + let response = await teacherPayPrice({ money: money.value, - type: 1, - userId: userInfo.value.userId + memberId: userInfo.value.userId }) if (response.code == 200) { uni.showToast({ @@ -92,7 +92,7 @@ } onShow(() => { - money.value = Number(configList.value.pet_money.pet_money_text) + // money.value = Number(configList.value.pet_money.pet_money) })