|
@@ -104,16 +104,16 @@ export default {
|
|
// auth: false,
|
|
// auth: false,
|
|
name: 'InviteUser',
|
|
name: 'InviteUser',
|
|
filters: {},
|
|
filters: {},
|
|
- async asyncData({ $axios }) {
|
|
|
|
- // 页面初始化前触发
|
|
|
|
- const res = await $axios.$get(
|
|
|
|
- '/activity/v1/inviteUser/orderRelation/starCoinOverview',
|
|
|
|
- );
|
|
|
|
- res.data.type = 2;
|
|
|
|
- return {
|
|
|
|
- data: res.data,
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
|
|
+ // async asyncData({ $axios }) {
|
|
|
|
+ // // 页面初始化前触发
|
|
|
|
+ // const res = await $axios.$get(
|
|
|
|
+ // '/activity/v1/inviteUser/orderRelation/starCoinOverview',
|
|
|
|
+ // );
|
|
|
|
+ // res.data.type = 2;
|
|
|
|
+ // return {
|
|
|
|
+ // data: res.data,
|
|
|
|
+ // };
|
|
|
|
+ // },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
data: {
|
|
data: {
|
|
@@ -127,6 +127,7 @@ export default {
|
|
inviteUserName: null,
|
|
inviteUserName: null,
|
|
activityId: null,
|
|
activityId: null,
|
|
status: 0,
|
|
status: 0,
|
|
|
|
+ type: 1,
|
|
},
|
|
},
|
|
activityRules: '',
|
|
activityRules: '',
|
|
myActivationCode: [],
|
|
myActivationCode: [],
|
|
@@ -135,7 +136,7 @@ export default {
|
|
async fetch() {
|
|
async fetch() {
|
|
// 页面初始化后触发
|
|
// 页面初始化后触发
|
|
try {
|
|
try {
|
|
- // await this.getActiveInfo();
|
|
|
|
|
|
+ await this.getActiveInfo();
|
|
this.$native.setShareInfo(this.shareInfo);
|
|
this.$native.setShareInfo(this.shareInfo);
|
|
await Promise.all([
|
|
await Promise.all([
|
|
this.getActivityRules(),
|
|
this.getActivityRules(),
|
|
@@ -248,13 +249,13 @@ export default {
|
|
// });
|
|
// });
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // async getActiveInfo() {
|
|
|
|
- // const res = await this.$axios.$get(
|
|
|
|
- // '/activity/v1/inviteUser/orderRelation/starCoinOverview',
|
|
|
|
- // );
|
|
|
|
- // res.data.type = 2;
|
|
|
|
- // this.data = res.data;
|
|
|
|
- // },
|
|
|
|
|
|
+ async getActiveInfo() {
|
|
|
|
+ const res = await this.$axios.$get(
|
|
|
|
+ '/activity/v1/inviteUser/orderRelation/starCoinOverview',
|
|
|
|
+ );
|
|
|
|
+ // res.data.type = 2;
|
|
|
|
+ this.data = res.data;
|
|
|
|
+ },
|
|
async getMyActivationCode() {
|
|
async getMyActivationCode() {
|
|
const res = await this.$axios.$get(
|
|
const res = await this.$axios.$get(
|
|
'/activity/v1/inviteUser/orderRelation/myActivationCode',
|
|
'/activity/v1/inviteUser/orderRelation/myActivationCode',
|