import request from "../../../../../../utils/request.js"; import handle from "../../../../../../config/handle.js"; import apiRootUrl from "../../../../../../config/api.js"; import icon from "../../../../../../utils/icon.js"; const app = getApp() const api = { /** * 退费列表 */ QueryRefundRecord: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundSelect/callApiJSON.do`, /** * 查可退余额(详情) */ QueryCanOriginalReturnedMoney: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/QueryCanOriginalReturnedMoney/callApiJSON.do`, /** * 查询用户卡列表和可退余额 */ QueryMemberCardListAdnCardBalance: apiRootUrl.ApiRootUrl + "wsgw/accountMember/api/QueryMemberCardListAdnCardBalance/callApiJSON.do", /** * 申请退费 */ RefundRegisterNew: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundRegisterNew/callApiJSON.do`, /** * 更新已经提交的申请 */ RefundUpdate: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/RefundUpdate/callApiJSON.do`, /** * 获取验证码 */ SendVerificationCode_V3: apiRootUrl.ApiRootUrl + `wsgw/accountMember/api/SendVerificationCode_V3/callApiJSON.do`, /** * 验证验证码 */ CheckVerificationCode_V3: apiRootUrl.ApiRootUrl + `wsgw/accountMember/api/CheckVerificationCode_V3/callApiJSON.do`, /** * 根据卡号查询医院名称 */ GetBankName: apiRootUrl.ApiRootUrl + `wsgw/refund/refundRegister/GetBankName/callApiJSON.do`, /** * 获取微信零钱退款授权信息及配置 */ UserConfirmAuth: apiRootUrl.ApiRootUrl + `wsgw/transfer/auth/UserConfirmAuth/callApiJSON.do`, } const methods = { // face_auth_bg:icon.iconUrl+"icon/face_auth_bg.png", // face_auth_icon:icon.iconUrl+"icon/face_auth_icon.png", // code_auth_icon:icon.iconUrl+"icon/code_auth_icon.png", /** * 退费列表 */ async queryRefundRecord(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.QueryRefundRecord, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 查可退余额(详情) */ async QueryCanOriginalReturnedMoney(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.QueryCanOriginalReturnedMoney, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 查询用户卡列表和可退余额 */ async queryMemberCardListAdnCardBalance(queryData, options){ let resp = handle.promistHandleNew(await request.doPost(api.QueryMemberCardListAdnCardBalance, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 申请退费 */ async RefundRegisterNew(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.RefundRegisterNew, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 更新已经提交的申请 */ async refundUpdate(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.RefundUpdate, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 获取验证码 */ async sendVerificationCode_V3(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.SendVerificationCode_V3, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 验证验证码 */ async checkVerificationCode_V3(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.CheckVerificationCode_V3, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 根据卡号查询医院名称 接口url */ getBankNameApiUrl() { return api.GetBankName; }, /** * 根据卡号查询医院名称 */ async getBankName(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.GetBankName, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, /** * 获取微信零钱退款授权信息及配置 */ async userConfirmAuth(queryData, options) { let resp = handle.promistHandleNew(await request.doPost(api.UserConfirmAuth, queryData, options)) return handle.catchPromiseNew(resp, () => resp, options) }, } export default methods