main
王文龙 2023-12-15 09:48:38 +08:00
parent 8ffa88dac8
commit 890ba7bafb
2 changed files with 45 additions and 0 deletions

26
.vscode/settings.json vendored Executable file
View File

@ -0,0 +1,26 @@
{
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"eslint.format.enable": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.validate": [
// "jsonc",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"yaml"
]
}

19
src/api/order/index.js Normal file
View File

@ -0,0 +1,19 @@
import request from '@/utils/request/index.js'
/**
* @description 下单
*/
export const orderCreate = data =>
request.post('/orderCreate', data)
/**
* @description 支付
*/
export const orderPay = data =>
request.post('/payment', data)
/**
* @description 获取订单信息
*/
export const orderInfo = params =>
request.get('/order/infomation', params)