diff --git a/src/pages/integral_list/integral_list.tsx b/src/pages/integral_list/integral_list.tsx index 31cdcf4..0c0980d 100644 --- a/src/pages/integral_list/integral_list.tsx +++ b/src/pages/integral_list/integral_list.tsx @@ -19,8 +19,9 @@ import PopupAlert from "../../components/popup/popup-alert"; import { GetIntegralRule, GetObtainUserIntegral, - GetOfficialAccount, GetIsAttentionOfficialAccount, + GetOfficialAccount, + GetCloseOfficialAccount, } from "../../utils/Interface"; class IntegralList extends Component { @@ -54,9 +55,9 @@ class IntegralList extends Component { async initData() { this.GetObtainUserIntegral(); - this.checkOfficialAccount(); - // this.GetOfficialAccount(); - // this.GetIsAttentionOfficialAccount(); + // this.checkOfficialAccount(); + this.GetOfficialAccount(); + this.GetIsAttentionOfficialAccount(); } // 检查是否关注公众号:只在每年的09-30号前提醒,如果没有关注则弹窗提醒 diff --git a/src/store/features/global.js b/src/store/features/global.js index 6c45171..6388421 100644 --- a/src/store/features/global.js +++ b/src/store/features/global.js @@ -5,7 +5,8 @@ import { createSlice } from "@reduxjs/toolkit"; const globalReducer = createSlice({ name: "global", // store的名字 initialState: { - domain: "http://110.41.134.131:8080", // 请求地址 + // domain: "http://110.41.134.131:8080", // 请求地址 + domain: "http://192.168.10.147:8080", // 请求地址 token: "", }, reducers: { diff --git a/src/utils/Interface.js b/src/utils/Interface.js index 395b76a..5d9d22a 100644 --- a/src/utils/Interface.js +++ b/src/utils/Interface.js @@ -181,8 +181,15 @@ export const GetOfficialAccount = (data) => { method: "get", }); }; -// - +export const GetCloseOfficialAccount = (data) => { + // 查询用户是否关闭提醒关注公众号 + return Ajax({ + url: "/hzwx/noRemind/closeOfficialAccount", + data, + method: "get", + }); +}; +/////////// /////////// export const UserInfoUp = (data) => {