From d9af7bc58bbfc29c34158bbc0a2c5ba74d49c51e Mon Sep 17 00:00:00 2001 From: blak-kong <546598185@qq.com> Date: Thu, 11 Jan 2024 10:45:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=AC=E5=9C=B0=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/integral_list/integral_list.tsx | 9 +++++---- src/store/features/global.js | 3 ++- src/utils/Interface.js | 11 +++++++++-- 3 files changed, 16 insertions(+), 7 deletions(-) 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) => {