更新
This commit is contained in:
@@ -54,6 +54,13 @@ export const taskRankList = params => {
|
|||||||
{ params }
|
{ params }
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
export const taskRewardPriceData = params => {
|
||||||
|
return http.request<Result>(
|
||||||
|
"get",
|
||||||
|
"/adminapi/Statistical/get_claimed_reward_price_show",
|
||||||
|
{ params }
|
||||||
|
);
|
||||||
|
};
|
||||||
// 中奖记录统计
|
// 中奖记录统计
|
||||||
export const getLuckyRank = params => {
|
export const getLuckyRank = params => {
|
||||||
return http.request<Result>(
|
return http.request<Result>(
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export const URL = "https://yushengapi.qxyushen.top";
|
// export const URL = "https://yushengapi.qxyushen.top";
|
||||||
// export const URL = "https://test.vespa.qxyushen.top";
|
export const URL = "https://test.vespa.qxyushen.top";
|
||||||
// 声网appId 在这里换
|
// 声网appId 在这里换
|
||||||
export const appIdBySw = '02f7339ec98947deaeab173599891932';
|
export const appIdBySw = '02f7339ec98947deaeab173599891932';
|
||||||
@@ -4,7 +4,8 @@ import ExportForm from '@/components/exportDialog/index.vue';
|
|||||||
import { addDialog } from "@/components/ReDialog";
|
import { addDialog } from "@/components/ReDialog";
|
||||||
import { message } from "@/utils/message";
|
import { message } from "@/utils/message";
|
||||||
import {
|
import {
|
||||||
taskRankList
|
taskRankList,
|
||||||
|
taskRewardPriceData
|
||||||
} from "@/api/modules/statistics";
|
} from "@/api/modules/statistics";
|
||||||
export function useData() {
|
export function useData() {
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
@@ -82,10 +83,13 @@ export function useData() {
|
|||||||
...ele
|
...ele
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
total_price.value = data.total_reward_price
|
// total_price.value = data.total_reward_price
|
||||||
pagination.value.total = data.count;
|
pagination.value.total = data.count;
|
||||||
pagination.value.currentPage = data.page;
|
pagination.value.currentPage = data.page;
|
||||||
}
|
}
|
||||||
|
const res = await taskRewardPriceData({ ...formData })
|
||||||
|
// console.log(res)
|
||||||
|
total_price.value = res.code ? res.data.total_reward_price : 0
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
const handleSizeChange = (val: number) => {
|
const handleSizeChange = (val: number) => {
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
|||||||
proxyReq.method = 'OPTIONS';
|
proxyReq.method = 'OPTIONS';
|
||||||
// https://test.vespa.qxyushen.top
|
// https://test.vespa.qxyushen.top
|
||||||
// 'http://yushenggliht.qxyushen.top'
|
// 'http://yushenggliht.qxyushen.top'
|
||||||
res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
|
// res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
|
||||||
// res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
|
res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
|
||||||
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
|
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
|
||||||
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
||||||
res.end();
|
res.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user