|
@@ -2,22 +2,14 @@
|
|
|
<v-container class="invite-user" fluid :class="`bg-${type}`">
|
|
|
<activity-invite-user-box class="box1">
|
|
|
<template #title>参与步骤</template>
|
|
|
- <v-img
|
|
|
- v-if="type === 1"
|
|
|
- class="cybz-content"
|
|
|
- src="~/assets/image/activity/invite-user/cybz-content@2x.png"
|
|
|
- />
|
|
|
- <v-img
|
|
|
- v-else-if="type === 2"
|
|
|
- class="cybz-content"
|
|
|
- src="~/assets/image/activity/invite-user/cybz-content-2@2x.png"
|
|
|
- />
|
|
|
+ <v-img class="cybz-content" :src="contentImg" />
|
|
|
<div class="cybz-content-text">
|
|
|
<div class="cybz-content-text-item">分享好友</div>
|
|
|
<div class="cybz-content-text-item">邀请购买云机</div>
|
|
|
<div class="cybz-content-text-item">
|
|
|
<template v-if="type === 1">返星币换现金</template>
|
|
|
<template v-else-if="type === 2">返云手机时长</template>
|
|
|
+ <template v-else-if="type === 3">返积分</template>
|
|
|
</div>
|
|
|
</div>
|
|
|
<v-btn class="share-button" rounded @click="share()">
|
|
@@ -229,6 +221,13 @@ export default {
|
|
|
// },
|
|
|
},
|
|
|
computed: {
|
|
|
+ contentImg() {
|
|
|
+ return {
|
|
|
+ 1: require('@/assets/image/activity/invite-user/cybz-content@2x.png'),
|
|
|
+ 2: require('@/assets/image/activity/invite-user/cybz-content-2@2x.png'),
|
|
|
+ 3: require('@/assets/image/activity/invite-user/cybz-content-3@2x.png'),
|
|
|
+ }[this.type];
|
|
|
+ },
|
|
|
codeHasMore() {
|
|
|
return (
|
|
|
this.codeTotal < 0 ||
|
|
@@ -280,6 +279,29 @@ export default {
|
|
|
// { label: '可提现星币数量', value: this.data.withdrawStarCoinNum },
|
|
|
];
|
|
|
}
|
|
|
+ case 3: {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ label: '今日获取的积分',
|
|
|
+ value: this.data.todayIncomeActivationCode,
|
|
|
+ },
|
|
|
+ { label: '总积分', value: this.data.totalIncomeActivationCode },
|
|
|
+ {
|
|
|
+ label: '今日购买订单数',
|
|
|
+ value: this.data.todayBuyOrderSuccessCount,
|
|
|
+ },
|
|
|
+ { label: '累计推广订单', value: this.data.totalBuyOrderCount },
|
|
|
+ {
|
|
|
+ label: '今日购买成功客户',
|
|
|
+ value: this.data.todayBuyOrderSuccessCount,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '累计购买成功客户',
|
|
|
+ value: this.data.totalBuyOrderSuccessCount,
|
|
|
+ },
|
|
|
+ // { label: '可提现星币数量', value: this.data.withdrawStarCoinNum },
|
|
|
+ ];
|
|
|
+ }
|
|
|
default: {
|
|
|
return [];
|
|
|
}
|
|
@@ -402,9 +424,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getActivityRules() {
|
|
|
- const agreementCoding = { 1: 'iuserrules01', 2: 'iuserrules02' }[
|
|
|
- this.type
|
|
|
- ];
|
|
|
+ const agreementCoding = {
|
|
|
+ 1: 'iuserrules01',
|
|
|
+ 2: 'iuserrules02',
|
|
|
+ 3: 'iuserrules03',
|
|
|
+ }[this.type];
|
|
|
if (agreementCoding) {
|
|
|
const res = await this.$axios.$get(
|
|
|
'/public/v5/agreementApi/content/getContentByType',
|
|
@@ -455,6 +479,9 @@ export default {
|
|
|
&.bg-2 {
|
|
|
background-image: url('~/assets/image/activity/invite-user/bg-2@2x.png');
|
|
|
}
|
|
|
+ &.bg-3 {
|
|
|
+ background-image: url('~/assets/image/activity/invite-user/bg-3@2x.png');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// .box {
|