确认收货发短信接口改名
This commit is contained in:
@@ -3,7 +3,7 @@ import request from '@/utils/request'
|
||||
// api地址
|
||||
const api = {
|
||||
image: 'captcha/image',
|
||||
sendSmsCode: '/sendSmsCaptcha'
|
||||
sendSmsCaptcha: '/sendSmsCaptcha'
|
||||
}
|
||||
|
||||
// 图形验证码
|
||||
@@ -12,6 +12,6 @@ export function image() {
|
||||
}
|
||||
|
||||
// 发送短信验证码
|
||||
export const sendSmsCode = (data) => {
|
||||
return request.post(api.sendSmsCode, data)
|
||||
export const sendSmsCaptcha = (data) => {
|
||||
return request.post(api.sendSmsCaptcha, data)
|
||||
}
|
||||
@@ -73,7 +73,7 @@
|
||||
receipt,
|
||||
getOrder
|
||||
} from '@/websoft/api/order.js'
|
||||
import { sendSmsCode } from '@/api/captcha.js'
|
||||
import { sendSmsCaptcha } from '@/api/captcha.js'
|
||||
import { fileUrl } from '@/config.js'
|
||||
import { isMobile } from '@/utils/verify'
|
||||
|
||||
@@ -181,7 +181,6 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
console.log('that====: ');
|
||||
sendSmsCaptcha({
|
||||
phone: that.receiptPhone,
|
||||
type: 'RECEIPT'
|
||||
|
||||
Reference in New Issue
Block a user