|
@@ -6,6 +6,7 @@
|
|
* @Description: api
|
|
* @Description: api
|
|
*/
|
|
*/
|
|
import fly from "./fly";
|
|
import fly from "./fly";
|
|
|
|
+import webview from '@system.webview';
|
|
|
|
|
|
// 获取首页数据
|
|
// 获取首页数据
|
|
export const getHomeList = (sex) => {
|
|
export const getHomeList = (sex) => {
|
|
@@ -16,7 +17,7 @@ export const getHomeList = (sex) => {
|
|
|
|
|
|
//充值记录
|
|
//充值记录
|
|
export const rechargeApi = (params) => {
|
|
export const rechargeApi = (params) => {
|
|
- return fly.get("/order/chargeRecordLists",params);
|
|
|
|
|
|
+ return fly.get("/order/chargeRecordLists", params);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -45,11 +46,11 @@ export const getSimilarBooks = (category_id, bid) => {
|
|
|
|
|
|
//获取章节消费记录
|
|
//获取章节消费记录
|
|
export const chapterApi = (params) => {
|
|
export const chapterApi = (params) => {
|
|
- return fly.get("/order/chapterOrderList",params);
|
|
|
|
|
|
+ return fly.get("/order/chapterOrderList", params);
|
|
};
|
|
};
|
|
//获取全本消费记录
|
|
//获取全本消费记录
|
|
export const bookApi = (params) => {
|
|
export const bookApi = (params) => {
|
|
- return fly.get("/order/bookOrderList",params);
|
|
|
|
|
|
+ return fly.get("/order/bookOrderList", params);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -72,10 +73,15 @@ export const getUserShelfBooks = () => {
|
|
};
|
|
};
|
|
|
|
|
|
// 充值
|
|
// 充值
|
|
-export const getPayQuery = (params) => {
|
|
|
|
|
|
+export const getConfigOfWxPay = (params) => {
|
|
return fly.get("/goToPay", params);
|
|
return fly.get("/goToPay", params);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// 支付宝充值
|
|
|
|
+export const getConfigOfAliPay = (params) => {
|
|
|
|
+ return fly.get("/goToAliPay", params)
|
|
|
|
+}
|
|
|
|
+
|
|
//获取用户信息
|
|
//获取用户信息
|
|
export const getUserInfo = () => {
|
|
export const getUserInfo = () => {
|
|
return fly.get(`/userinfo`);
|
|
return fly.get(`/userinfo`);
|