|
@@ -1,26 +1,22 @@
|
|
/*
|
|
/*
|
|
- * @Author: ZhengXiaowei
|
|
|
|
- * @Date: 2019-10-15 14:05:33
|
|
|
|
- * @LastEditors: ZhengXiaowei
|
|
|
|
- * @LastEditTime: 2019-10-15 14:05:59
|
|
|
|
|
|
+ * 接口对接文件
|
|
* @Description: api
|
|
* @Description: api
|
|
*/
|
|
*/
|
|
import fly from './fly'
|
|
import fly from './fly'
|
|
|
|
|
|
// 获取首页数据
|
|
// 获取首页数据
|
|
-export const getHomeList = sex => {
|
|
|
|
- console.log(sex)
|
|
|
|
|
|
+export const getHomeData = sex => {
|
|
return fly.get(`/books/${sex}/index`)
|
|
return fly.get(`/books/${sex}/index`)
|
|
}
|
|
}
|
|
|
|
|
|
//充值记录
|
|
//充值记录
|
|
-export const rechargeApi = params => {
|
|
|
|
|
|
+export const rechargeRecord = params => {
|
|
return fly.get('/order/chargeRecordLists', params)
|
|
return fly.get('/order/chargeRecordLists', params)
|
|
}
|
|
}
|
|
|
|
|
|
// 获取分类
|
|
// 获取分类
|
|
-export const getCategory = () => {
|
|
|
|
- return fly.get('/books/getCategory')
|
|
|
|
|
|
+export const bookCategory = () => {
|
|
|
|
+ return fly.get('/books/bookCategory')
|
|
}
|
|
}
|
|
|
|
|
|
// 获取书库
|
|
// 获取书库
|
|
@@ -29,7 +25,7 @@ export const booksList = params => {
|
|
}
|
|
}
|
|
|
|
|
|
// 获取图书详情
|
|
// 获取图书详情
|
|
-export const getBooksInfo = bid => {
|
|
|
|
|
|
+export const booksInfo = bid => {
|
|
return fly.get(`/book/${bid}`)
|
|
return fly.get(`/book/${bid}`)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -42,11 +38,11 @@ export const getSimilarBooks = (category_id, bid) => {
|
|
}
|
|
}
|
|
|
|
|
|
//获取章节消费记录
|
|
//获取章节消费记录
|
|
-export const chapterApi = params => {
|
|
|
|
|
|
+export const chapterPayRecord = params => {
|
|
return fly.get('/order/chapterOrderList', params)
|
|
return fly.get('/order/chapterOrderList', params)
|
|
}
|
|
}
|
|
//获取全本消费记录
|
|
//获取全本消费记录
|
|
-export const bookApi = params => {
|
|
|
|
|
|
+export const bookPayRecord = params => {
|
|
return fly.get('/order/bookOrderList', params)
|
|
return fly.get('/order/bookOrderList', params)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -66,12 +62,12 @@ export const getChargeList = () => {
|
|
}
|
|
}
|
|
|
|
|
|
// 添加书籍进书架
|
|
// 添加书籍进书架
|
|
-export const postUserShelfBooks = params => {
|
|
|
|
|
|
+export const addToShelfBooks = params => {
|
|
return fly.post(`/userShelfBooks`, params)
|
|
return fly.post(`/userShelfBooks`, params)
|
|
}
|
|
}
|
|
|
|
|
|
// 获取书架数据
|
|
// 获取书架数据
|
|
-export const getUserShelfBooks = () => {
|
|
|
|
|
|
+export const userShelfBooks = () => {
|
|
return fly.get(`/userShelfBooks`)
|
|
return fly.get(`/userShelfBooks`)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -100,7 +96,7 @@ export const deleteShelfBook = params => {
|
|
}
|
|
}
|
|
|
|
|
|
// 充值h5
|
|
// 充值h5
|
|
-export const getConfigOfWxH5Pay = params => {
|
|
|
|
|
|
+export const wxH5Pay = params => {
|
|
return fly.get('/goToH5Pay', params)
|
|
return fly.get('/goToH5Pay', params)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -110,7 +106,7 @@ export const getConfigOfWxAppPay = params => {
|
|
}
|
|
}
|
|
|
|
|
|
// 支付宝充值
|
|
// 支付宝充值
|
|
-export const getConfigOfAliPay = params => {
|
|
|
|
|
|
+export const qappAliPay = params => {
|
|
return fly.get('/goToAliPay', params)
|
|
return fly.get('/goToAliPay', params)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -205,13 +201,13 @@ export const getRank = sex => {
|
|
}
|
|
}
|
|
|
|
|
|
//获取活动详情
|
|
//获取活动详情
|
|
-export const getAcitivity = token => {
|
|
|
|
|
|
+export const acitivityDetail = token => {
|
|
return fly.get('/activity/detail', { token: token })
|
|
return fly.get('/activity/detail', { token: token })
|
|
}
|
|
}
|
|
|
|
|
|
//获取热词
|
|
//获取热词
|
|
|
|
|
|
-export const getHotMain = pages => {
|
|
|
|
|
|
+export const hotWords = pages => {
|
|
return fly.get('/books/hotwords', { page: pages })
|
|
return fly.get('/books/hotwords', { page: pages })
|
|
}
|
|
}
|
|
|
|
|
|
@@ -230,11 +226,6 @@ export const logOff = () => {
|
|
return fly.get(`user/logOff`)
|
|
return fly.get(`user/logOff`)
|
|
}
|
|
}
|
|
|
|
|
|
-//腾讯广告书籍替换
|
|
|
|
-export const noAdvBookInfo = (send_order_id) => {
|
|
|
|
- return fly.get(`/txAdqNew/noAdvBookInfo`, { send_order_id: send_order_id })
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
//阅读返回书籍推荐
|
|
//阅读返回书籍推荐
|
|
export const recommendBooks = (bid) => {
|
|
export const recommendBooks = (bid) => {
|
|
return fly.get(`/books/recommend_books`, { bid: bid })
|
|
return fly.get(`/books/recommend_books`, { bid: bid })
|
|
@@ -261,7 +252,7 @@ export const advertOrders = (order) => {
|
|
}
|
|
}
|
|
|
|
|
|
// 获取轮播图弹窗参数 1为男频,2为女频,3为书架,4为弹窗,5为充值页返回广告
|
|
// 获取轮播图弹窗参数 1为男频,2为女频,3为书架,4为弹窗,5为充值页返回广告
|
|
-export const getBannerData = (release_type) => {
|
|
|
|
|
|
+export const bannerData = (release_type) => {
|
|
return fly.get(`/books/recommendBanners`, { release_type: release_type })
|
|
return fly.get(`/books/recommendBanners`, { release_type: release_type })
|
|
}
|
|
}
|
|
|
|
|
|
@@ -270,10 +261,6 @@ export const checkAdvertisement = (type, id) => {
|
|
return fly.get(`/books/checkAdvertisement`, { type: type, ids: id })
|
|
return fly.get(`/books/checkAdvertisement`, { type: type, ids: id })
|
|
}
|
|
}
|
|
|
|
|
|
-// 广告替换书籍
|
|
|
|
-export const advReplaceBookInfo = (send_order_id) => {
|
|
|
|
- return fly.get("advReplaceBookInfo", { send_order_id: send_order_id });
|
|
|
|
-}
|
|
|
|
|
|
|
|
// 是否有可领取任务(包括未签到)
|
|
// 是否有可领取任务(包括未签到)
|
|
/**
|
|
/**
|
|
@@ -286,7 +273,6 @@ export const hasPendingTask = (params) => {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
// ip 屏蔽或书籍屏蔽后的替换书籍获取
|
|
// ip 屏蔽或书籍屏蔽后的替换书籍获取
|
|
export const advShield= (send_order_id, platform,checkout_tx) => {
|
|
export const advShield= (send_order_id, platform,checkout_tx) => {
|
|
return fly.get("sendOrder/advShield", { send_order_id: send_order_id,platform:platform,checkout_tx,checkout_tx});
|
|
return fly.get("sendOrder/advShield", { send_order_id: send_order_id,platform:platform,checkout_tx,checkout_tx});
|