|
|
|
|
@ -143,6 +143,10 @@ class IntegralList extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
// 用户是否已关闭提醒
|
|
|
|
|
GetOfficialAccount = async () => {
|
|
|
|
|
Taro.showLoading({
|
|
|
|
|
title: "请求中...",
|
|
|
|
|
mask: true,
|
|
|
|
|
});
|
|
|
|
|
let res = await GetOfficialAccount();
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
if (!res.data.data) {
|
|
|
|
|
@ -153,8 +157,11 @@ class IntegralList extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
// 用户是否关注公众号
|
|
|
|
|
GetIsAttentionOfficialAccount = async () => {
|
|
|
|
|
Taro.showLoading({
|
|
|
|
|
title: "请求中...",
|
|
|
|
|
mask: true,
|
|
|
|
|
});
|
|
|
|
|
let res = await GetIsAttentionOfficialAccount();
|
|
|
|
|
console.log("GetIsAttentionOfficialAccount", res);
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
if (!res.data.data) {
|
|
|
|
|
// 如果false则是没关注
|
|
|
|
|
@ -174,6 +181,10 @@ class IntegralList extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
GetObtainUserIntegral = async () => {
|
|
|
|
|
Taro.showLoading({
|
|
|
|
|
title: "请求中...",
|
|
|
|
|
mask: true,
|
|
|
|
|
});
|
|
|
|
|
let { list, pageNum, pageSize } = this.state;
|
|
|
|
|
let res = await GetObtainUserIntegral({
|
|
|
|
|
pageNum,
|
|
|
|
|
@ -195,6 +206,10 @@ class IntegralList extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
GetIntegralRule = async () => {
|
|
|
|
|
Taro.showLoading({
|
|
|
|
|
title: "请求中...",
|
|
|
|
|
mask: true,
|
|
|
|
|
});
|
|
|
|
|
let res = await GetIntegralRule();
|
|
|
|
|
console.log("GetIntegralRule", res);
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
|