-
Retweet
+
+
{{ item.actionTitle }}
+
Check
Claim
+{{ item.score }}

@@ -488,19 +479,15 @@ import Calen from "./calenView.vue";
import BoxBtm from './boxBtm.vue'
// import ImgView from './../../components/imgView.vue'
import gameView from "./gameView.vue";
-import WalletDialog from "./../../components/walletDialog/index.vue";
-import { getToken } from './../../utils/cookies.js'
-import { getWalletAddress, isWalletConnected, linkWallet } from "./../../wallet/index.js";
+import WalletDialog from "@/components/walletDialog/index.vue";
+import { getToken } from '@/utils/cookies.js'
+import { getWalletAddress, isWalletConnected, linkWallet } from "@/wallet/index.js";
import {
- apiGameStat,
apiBeginActivity,
apiCheckActivity,
apiTaskClaim,
- apiUsercheckin,
- apiProgress,
apiCheckinClaim,
apiCheckinClaimSeq,
- apiGameStep,
checkReCaptcha,
retweetTwitter,
} from "./../../utils/webapi.js";
@@ -634,7 +621,16 @@ export default {
.then(res => {
// if (res.data.errcode == 0) {
this.activityName = res.data.data.name;
- this.activeList = res.data.data.tasks;
+ const actionTitles = {
+ TwitterConnect: "Connect",
+ TwitterFollow: "Follow",
+ TwitterRetweet: "Retweet",
+ };
+ this.activeList.length = 0
+ for (let data of res.data.data.tasks) {
+ data.actionTitle = actionTitles[data.task] || 'Proceed'
+ this.activeList.push(data)
+ }
this.activityData = res.data.data
// }
})
@@ -664,7 +660,7 @@ export default {
async toPost(data) {
let res = await apiBeginActivity(data.id);
if(res.errcode == 0) {
- this.getActivitrStatue(data.id)
+ this.getProgress()
// console.log("开始任务", res, data);
}
if (data.task == "TwitterConnect") {
@@ -675,10 +671,14 @@ export default {
retweetTwitter(data.desc)
}
},
+ // 手动检查任务
+ async toCheck(data) {
+ this.getActivitrStatue(data.id)
+ },
// 检查任务状态
async getActivitrStatue(id) {
- let res = await apiCheckActivity(id);
- this.getProgress()
+ await apiCheckActivity(id);
+ await this.getProgress()
// console.log(res, "检查任务状态------------------");
},
loginTwitter() {