|
@@ -52,10 +52,54 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="box box3">
|
|
|
|
- <div class="box-header">返利套餐</div>
|
|
|
|
- <div class="box-main"></div>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+
|
|
|
|
+ <div v-if="type === 2" class="box box3">
|
|
|
|
+ <div class="box-header">收益明细</div>
|
|
|
|
+ <div class="box-main">
|
|
|
|
+ <table class="w-full code-table">
|
|
|
|
+ <thead class="text-left text-sm whitespace-nowrap break-normal">
|
|
|
|
+ <tr>
|
|
|
|
+ <th class="w-120px">获得的时间</th>
|
|
|
|
+ <th>激活码编号</th>
|
|
|
|
+ <th class="w-60px">使用状态</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody class="text-xs">
|
|
|
|
+ <tr v-for="(item, index) in myActivationCode" :key="index">
|
|
|
|
+ <td class="whitespace-nowrap break-normal">
|
|
|
|
+ {{ item.createTime }}
|
|
|
|
+ </td>
|
|
|
|
+ <td class="whitespace-nowrap break-normal">
|
|
|
|
+ <div class="flex">
|
|
|
|
+ <span>{{ item.activationCode }} </span
|
|
|
|
+ ><span class="ml-auto">|</span><v-btn
|
|
|
|
+ text
|
|
|
|
+ small
|
|
|
|
+ color="#991AD2"
|
|
|
|
+ class="copy-btn"
|
|
|
|
+ @click="copyCode(item)"
|
|
|
|
+ >复制</v-btn
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="whitespace-nowrap break-normal text-right">
|
|
|
|
+ <span v-if="item.activationUse" style="color: #dd1b0d"
|
|
|
|
+ >已使用</span
|
|
|
|
+ >
|
|
|
|
+ <span v-else>未使用</span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <!-- <div class="code-list">
|
|
|
|
+ <div
|
|
|
|
+ v-for="(item, index) in 10"
|
|
|
|
+ :key="index"
|
|
|
|
+ class="code-item"
|
|
|
|
+ ></div>
|
|
|
|
+ </div> -->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="box box4">
|
|
<div class="box box4">
|
|
<div class="box-header">活动规则</div>
|
|
<div class="box-header">活动规则</div>
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
@@ -180,8 +224,11 @@ export default {
|
|
}
|
|
}
|
|
case 2: {
|
|
case 2: {
|
|
return [
|
|
return [
|
|
- { label: '今日获取的激活码', value: this.data.todayIncomeStarCoin },
|
|
|
|
- { label: '总激活码', value: this.data.totalIncomeStarCoin },
|
|
|
|
|
|
+ {
|
|
|
|
+ label: '今日获取的激活码',
|
|
|
|
+ value: this.data.todayIncomeActivationCode,
|
|
|
|
+ },
|
|
|
|
+ { label: '总激活码', value: this.data.totalIncomeActivationCode },
|
|
{
|
|
{
|
|
label: '今日购买订单数',
|
|
label: '今日购买订单数',
|
|
value: this.data.todayBuyOrderSuccessCount,
|
|
value: this.data.todayBuyOrderSuccessCount,
|
|
@@ -260,7 +307,7 @@ export default {
|
|
const res = await this.$axios.$get(
|
|
const res = await this.$axios.$get(
|
|
'/activity/v1/inviteUser/orderRelation/myActivationCode',
|
|
'/activity/v1/inviteUser/orderRelation/myActivationCode',
|
|
);
|
|
);
|
|
- this.myActivationCode = res.data;
|
|
|
|
|
|
+ this.myActivationCode = res.data.list;
|
|
},
|
|
},
|
|
async share() {
|
|
async share() {
|
|
// console.log(this);
|
|
// console.log(this);
|
|
@@ -314,6 +361,10 @@ export default {
|
|
.replace(/<div class="phone-container">([\d\D]+)<\/div>/g, '$1');
|
|
.replace(/<div class="phone-container">([\d\D]+)<\/div>/g, '$1');
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ async copyCode(item) {
|
|
|
|
+ await clipboard.writeText(item.activationCode);
|
|
|
|
+ this.$toast.success('复制成功');
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -436,10 +487,28 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-.box4 {
|
|
|
|
|
|
+.box3 {
|
|
.box-main {
|
|
.box-main {
|
|
// padding-left: 20px;
|
|
// padding-left: 20px;
|
|
// padding-top: 0;
|
|
// padding-top: 0;
|
|
|
|
+ padding-left: 10px;
|
|
|
|
+ padding-right: 10px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.code-table {
|
|
|
|
+ // width: 100%;
|
|
|
|
+ tr {
|
|
|
|
+ height: 30px;
|
|
|
|
+ color: #666;
|
|
|
|
+ }
|
|
|
|
+ td {
|
|
|
|
+ height: 30px;
|
|
|
|
+ color: #333;
|
|
|
|
+ }
|
|
|
|
+ .copy-btn {
|
|
|
|
+ min-width: 0 !important;
|
|
|
|
+ height: auto !important;
|
|
|
|
+ padding: 0 !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|