修改任务设置页面

This commit is contained in:
2024-12-11 16:16:07 +08:00
parent fe40f07d89
commit d1e25e9545
3 changed files with 69 additions and 48 deletions

View File

@@ -99,6 +99,7 @@
import $api from "@/api/renwu.js";
import addRenwu from "./components/pop-add-renwu.vue";
import giftList from "./components/pop-gift-list.vue";
import {$renwuType,$jumpType} from './data.js'
export default {
components: { addRenwu,giftList },
@@ -108,6 +109,8 @@ export default {
tableData: [],
page: 1,
limit: 10,
renType: $renwuType,
jumpType: $jumpType,
};
},
methods: {
@@ -133,20 +136,12 @@ export default {
this.init();
},
returnJumpTypeName(type) {
const $types = {
1: "内部路径",
2: "外部路径",
3: "内部tabbar页面",
};
return $types[type] ? $types[type] : "";
console.log(type)
console.log($jumpType[type])
return $jumpType[type] ? $jumpType[type] : "";
},
returnTypeName(type) {
const $types = {
1: "普通任务",
2: "打卡任务",
9: "其他",
};
return $types[type] ? $types[type] : "";
return $renwuType[type] ? $renwuType[type] : "";
},
//数据初始化
async init() {