shop-applet/api/article.js

101 lines
4.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// import request from "@/utils/request.js";
import request from "@/utils/request.js";
import http from "@/utils/http.js";
// export const postShopInfo = (params, config = {}) => request.post('/edcapi/Shop_shopDeatil', params, config)
// // get请求获取菜单注意get请求的配置等都在第二个参数中详见前面解释
/**
*
*/
/**
* 文创文章
*/
export const getCulturalArticleAPI = (data) => http.get('/cultural/article', data, { noAuth: true })
/**
* 全民打卡
*/
export const getTravelPunchcardAPI = (data) => request.get('/cultural/punchcard', data, { noAuth: true })
/**
* 官网攻略
*/
export const getTravelWebStrategyAPI = (data) => request.get('/cultural/WebStrategy', data, { noAuth: true })
/**
* 热门活动
*/
export const getTravelHotPartyAPI = (data) => request.get('/cultural/hotparty', data, { noAuth: true })
/**
* 获取banner
*/
export const getSlideAPI = (data) => request.get('/Slide/get_slide', data, { noAuth: true })
/**
* 获取文章
*/
export const getIndexArticleList = (data) => http.get('/article/indexs', data, { noAuth: true })
export const getIndexArticleDetails = (data) => request.get('/article/details', data, { noAuth: true })
export const postIndexArticleDetails = (data) => request.post('/article/post', data)
export const getIndexArticleEdit = (data) => request.get('/article/edit', data)
export const postIndexArticleEdit = (data, params) => request.post('/article/put', data, {
params: params
})
// 投诉
export const postComplaintAPI = (data) => request.post('/index/complaint', data)
//评论
export const getArticleComment = (data) => request.get('/article_comment/index', data)
export const getArticleCommentOneAPI = (data) => request.get('/article_comment/one_list', data)
export const postArticleComment = (data) => request.post('/article_comment/post', data, { noVerify: true })
// 评论审核
export const getCommentListAPI = (data) => request.get('/Personal/getCommentList', data)
export const oneCAlickAuditAPI = (data) => request.get('/Personal/oneCAlickAudit', data)
export const delCommentAPI = (data) => request.get('/Personal/delComment', data)
/**
* 获取分类
*/
export const getCategory = (data) => request.get('/common/category', data, { noAuth: true })
//我的文章
export const getMyIndexArticleList = (data) => request.get('/my_article/index', data)
export const getMyIndexArticleDetails = (data) => request.get('/my_article/details', data)
// 工作区
export const getWorkArticleCount = (data) => request.get('/getWorkArticleCount', data)
// export function getWorkArticleCount(data) {
// return request.get('/getWorkArticleCount', data);
// }
//首页
export const getArticleListAPI = (data) => http.get('/getArticleList', data)
// 首页文章
export const getHomeListAPI = (data) => http.get('/article/hot_list', data)
//获取朋友圈分类信息
export const getFriendcirclelist = (data) => request.get('/Personal/getlist', data, {
noVerify: true
})
/** 发布图文*/
export const createPlantApi = (data) => request.post('/Personal/addOrEditNews', data)
//图文详情
export const PlantApi = (data) => request.get('/Personal/getdetails', data)
//获取说说评论
export const replyLstApi = (data) => request.get('/Personal/getpinglun', data, { noAuth: true })
/**发布评论*/
export const replyCreateApi = (data) => request.post('/Personal/newsComment', data)
// 删除说说
// export const deletePlantApi = (data) => request.post('/Personal/newsComment', data)
//朋友圈s
export const getfriendsList = (data) => request.get('/Personal/getalllist')
export const getCategoryListAPI = (data) => request.get('/common/category', data, { noAuth: true })
export const getNoticeListAPI = (data) => request.get('/Notice/list')
export const getNoticeInfoAPI = (data) => request.get('/Notice/info', data)
export const getArea = (data) => request.get('city/get_area', data, { noAuth: true })
export const getStreet = (data) => request.get('city/get_street', data, { noAuth: true })
export const getVillage = (data) => request.get('city/get_village', data, { noAuth: true })
export const getbrigadeAPI = (data) => request.get('common/get_brigade', data, { noAuth: true })
export const postBindingAPI = (data) => request.post('Userinfo/Binding', data, { noAuth: true, noVerify: true })