提交 9a9cb09f authored 作者: inroi's avatar inroi

修改支付和提现的BUG

上级 96c95524
......@@ -110,14 +110,11 @@ export function postAvatar(filePath){
* @param {String} amount 保证金数量
* @description 缴纳保证金
*/
export function payDeposit(amount){
export function payDeposit(data){
return http({
url:'/api/payment',
method:'POST',
data:{
amount:amount,
paytype:"保证金"
}
data:data
})
}
......@@ -336,7 +333,7 @@ export function sendAppointment(params){
*/
export function postInformationCost(params){
return http({
url:'/api/Order/PayInfoFee',
url:'/api/Order/OfflinePay',
method:'POST',
data:params
})
......
......@@ -4,7 +4,6 @@
"requires": true,
"packages": {
"": {
"name": "JT-WXXCX-SF",
"dependencies": {
"axios": "^0.24.0",
"node-sass": "^7.0.1",
......
......@@ -27,7 +27,7 @@
</template>
<script>
import {toast} from '../../../tips/myTips'
import {toast} from '../../../tips/myTips.js'
import {cashOut} from '../../../api/api.js'
export default {
onLoad() {
......@@ -61,7 +61,7 @@
uni.navigateBack()
}else{
console.log("提现失败:",res)
toast(res)
toast(res.data.message)
}
})
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论