eason 1 жил өмнө
parent
commit
7e159a9040

+ 0 - 1
WeChatTrading

@@ -1 +0,0 @@
-Subproject commit 65bde4324c6c7a3009ad75ad003f52273abc8ce3

+ 0 - 1
fore-end/pages/user/user.js

@@ -1,5 +1,4 @@
 // pages/user/user.js
-const {http} = require("../../utils/util")
 const {getOrder} = require("../../API/appraise")
 var getOrderOption = {
 	data: {

+ 16 - 0
fore-end/utils/request.js

@@ -0,0 +1,16 @@
+const { http } = require('./util')
+const request = {
+	get(url, option){
+		return http(url, { method: 'GET', ...option })
+	},
+	delete(url, option){
+		return http(url, option)
+	},
+	post(url, option){
+		return http(url, { method: 'POST', ...option })
+	}
+}
+
+module.exports = {
+	request
+}