You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhishifufei_uniapp/api/auth.js

107 lines
2.3 KiB

9 months ago
import http from "@/utils/request";
export function getLecturer(mer_id) {
return http.get("/auth_api/getLecturer", {
mer_id
});
}
export function getRebateAmount(id, type = '') {
return http.get("/auth_api/rebateAmount", {
id,
type
});
}
export function getOrderCountByStatus() {
return http.get("/auth_api/userOrderDate", {}, {
requireAuth: true
});
}
export function getUserOrderList(params) {
return http.get("/auth_api/get_user_order_list", params, {
requireAuth: true
});
}
export function userTakeOrder(uni) {
return http.get("/auth_api/user_take_order", { uni }, {
requireAuth: true
});
}
export function getUserInfo() {
return http.get("/auth_api/userInfo", null, {
requireAuth: true
});
}
export function setUserSign() {
return http.get("/auth_api/user_sign", null, {
requireAuth: true
});
}
export function getUserSignList() {
return http.get("/auth_api/getUserList", null, {
requireAuth: true
});
}
export function getUserSignPoster() {
return http.get("/auth_api/get_user_sign_poster", null, {
requireAuth: true
});
}
export function getUserSignListPaginiting(page, limit) {
return http.get("/auth_api/getUserSignList", { page, limit }, {
requireAuth: true
});
}
export function userRemoveOrder(uni) {
return http.get("/auth_api/user_remove_order", { uni }, {
requireAuth: true
});
}
export function getAuthInfo() {
return http.get("/auth/AuthInfo", {}, {
requireAuth: false
});
}
export function getUserAddressList() {
return http.get("/auth_api/user_address_list", {}, {
requireAuth: true
});
}
export function getRefundReason() {
return http.get("/auth_api/refund_reason", {}, {
requireAuth: true
});
}
export function submitRefundApply(uni, data) {
return http.post("/auth_api/apply_order_refund?uni=" + uni, data, {
requireAuth: true
});
}
export function getMiniprogramQrcodeByPage(page, scene = "") {
return http.post("/auth_api/create_miniprogram_qrcode", { page, scene }, {
requireAuth: true
});
}
export function getTouTiaoMiniprogramQrcodeByPage(page, scene = "") {
return http.post("/auth_api/create_toutiao_miniprogram_qrcode", { page, scene }, {
requireAuth: true
});
}