|
|
@ -1,13 +1,15 @@ |
|
|
|
import proxy from "../proxy"; |
|
|
|
import proxy from "../proxy"; |
|
|
|
const publicApi = { |
|
|
|
const publicApi = { |
|
|
|
|
|
|
|
setOrientation: (data) => async (dispatch) => |
|
|
|
|
|
|
|
await dispatch({ type: "public/setOrientation", data }), |
|
|
|
setLTR: (data) => async (dispatch) => |
|
|
|
setLTR: (data) => async (dispatch) => |
|
|
|
await dispatch({ type: "public/setLtr", data: data }), |
|
|
|
await dispatch({ type: "public/setLtr", data }), |
|
|
|
setIsDark: (data) => async (dispatch) => |
|
|
|
setIsDark: (data) => async (dispatch) => |
|
|
|
await dispatch({ type: "public/setIsDark", data: data }), |
|
|
|
await dispatch({ type: "public/setIsDark", data }), |
|
|
|
getHomeData: (data) => async (dispatch) => |
|
|
|
getHomeData: (data) => async (dispatch) => |
|
|
|
await proxy.get("public/homePage", data, { dispatch }), |
|
|
|
await proxy.get("public/homePage", data, { dispatch }), |
|
|
|
setFaqActive: (data) => async (dispatch) => |
|
|
|
setFaqActive: (data) => async (dispatch) => |
|
|
|
await dispatch({ type: "public/faq/activate", data: data }), |
|
|
|
await dispatch({ type: "public/faq/activate", data }), |
|
|
|
bookInfo: |
|
|
|
bookInfo: |
|
|
|
(data = {}, data2 = {}) => |
|
|
|
(data = {}, data2 = {}) => |
|
|
|
async (dispatch) => { |
|
|
|
async (dispatch) => { |
|
|
@ -28,7 +30,7 @@ const publicApi = { |
|
|
|
getBlogInfo: (data) => async (dispatch) => |
|
|
|
getBlogInfo: (data) => async (dispatch) => |
|
|
|
await proxy.get("public/blogInfo", data, { dispatch }), |
|
|
|
await proxy.get("public/blogInfo", data, { dispatch }), |
|
|
|
setSubscribe: (data) => async (dispatch) => |
|
|
|
setSubscribe: (data) => async (dispatch) => |
|
|
|
await dispatch({ type: "public/setSubscribe", data: data }), |
|
|
|
await dispatch({ type: "public/setSubscribe", data }), |
|
|
|
getProvince: |
|
|
|
getProvince: |
|
|
|
(data = {}) => |
|
|
|
(data = {}) => |
|
|
|
async (dispatch) => |
|
|
|
async (dispatch) => |
|
|
@ -38,15 +40,15 @@ const publicApi = { |
|
|
|
async (dispatch) => |
|
|
|
async (dispatch) => |
|
|
|
await proxy.get("public/city", data, { dispatch }), |
|
|
|
await proxy.get("public/city", data, { dispatch }), |
|
|
|
selectMenu: (data) => async (dispatch) => |
|
|
|
selectMenu: (data) => async (dispatch) => |
|
|
|
await dispatch({ type: "public/selectMenu", data: data }), |
|
|
|
await dispatch({ type: "public/selectMenu", data }), |
|
|
|
getHeader: |
|
|
|
getHeader: |
|
|
|
(data = {}) => |
|
|
|
(data = {}) => |
|
|
|
async (dispatch) => |
|
|
|
async (dispatch) => |
|
|
|
await proxy.get("public/VOD/homePage", data, { dispatch }), |
|
|
|
await proxy.get("public/VOD/homePage", data, { dispatch }), |
|
|
|
activeCategory: (data) => async (dispatch) => |
|
|
|
activeCategory: (data) => async (dispatch) => |
|
|
|
await dispatch({ type: "active/category", data: data }), |
|
|
|
await dispatch({ type: "active/category", data }), |
|
|
|
setVideoActive: (data) => async (dispatch) => |
|
|
|
setVideoActive: (data) => async (dispatch) => |
|
|
|
await dispatch({ type: "active/video", data: data }), |
|
|
|
await dispatch({ type: "active/video", data }), |
|
|
|
getArList: (data, history) => async (dispatch) => |
|
|
|
getArList: (data, history) => async (dispatch) => |
|
|
|
await proxy.get("public/ar", data, { history, dispatch }), |
|
|
|
await proxy.get("public/ar", data, { history, dispatch }), |
|
|
|
}; |
|
|
|
}; |
|
|
|