1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import {
- getToken
- } from "@/api/token";
- import {
- myRequest
- } from '@/api/my-api.js'
- import {
- addPointDetailByTaskDict,
- completeGrowthValue
- } from '@/api/cooperation/coopCustomService.js'
- // 加积分
- export async function addIntegral(taskDict, point) {
- const tokendata = await myRequest({
- url: '/sys/token',
- method: 'get'
- });
- addPointDetailByTaskDict({
- taskDict: taskDict,
- point: point,
- },
- tokendata.data
- )
- .then((res) => {})
- .catch((error) => {});
- }
- // 加成长值
- export async function addGrowth(taskDict, isUserID) {
- const tokendata = await myRequest({
- url: '/sys/token',
- method: 'get'
- });
- completeGrowthValue({
- taskDict: taskDict,
- },
- tokendata.data
- )
- .then((res) => {})
- .catch((error) => {});
- }
|