修改复制的内容
This commit is contained in:
parent
32a9261454
commit
69b42c93af
@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="invititaion-code tag-read"
|
class="invititaion-code tag-read"
|
||||||
v-clipboard:copy="userinfo.invite_code"
|
v-clipboard:copy="cp_url"
|
||||||
v-clipboard:success="onCopy"
|
v-clipboard:success="onCopy"
|
||||||
v-clipboard:error="onCopyError"
|
v-clipboard:error="onCopyError"
|
||||||
>
|
>
|
||||||
@ -172,6 +172,7 @@
|
|||||||
import Footer from "../layout/Footer.vue";
|
import Footer from "../layout/Footer.vue";
|
||||||
import Clipboard from "clipboard";
|
import Clipboard from "clipboard";
|
||||||
import { AppModule } from "@/store/modules/app";
|
import { AppModule } from "@/store/modules/app";
|
||||||
|
const CP_URL_BASE = 'https://activity.cebg.games/?code='
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Footer,
|
Footer,
|
||||||
@ -184,6 +185,7 @@ export default {
|
|||||||
account: '',
|
account: '',
|
||||||
discord: '',
|
discord: '',
|
||||||
twitter: '',
|
twitter: '',
|
||||||
|
cp_url: CP_URL_BASE,
|
||||||
address: '',
|
address: '',
|
||||||
time: {},
|
time: {},
|
||||||
endTime: "2022-11-20 18:00:00",
|
endTime: "2022-11-20 18:00:00",
|
||||||
@ -212,6 +214,7 @@ export default {
|
|||||||
this.userinfo = res.data;
|
this.userinfo = res.data;
|
||||||
this.discord = res.data.discord;
|
this.discord = res.data.discord;
|
||||||
this.twitter = res.data.twitter
|
this.twitter = res.data.twitter
|
||||||
|
this.cp_url = `${CP_URL_BASE}${this.userinfo.invite_code}`
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="integral"
|
class="integral"
|
||||||
v-clipboard:copy="data.invite_code"
|
v-clipboard:copy="cp_url"
|
||||||
v-clipboard:success="onCopy"
|
v-clipboard:success="onCopy"
|
||||||
v-clipboard:error="onCopyError"
|
v-clipboard:error="onCopyError"
|
||||||
>
|
>
|
||||||
@ -56,12 +56,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
var CP_URL_BASE = 'https://activity.cebg.games/?code=';
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
data: null,
|
data: null,
|
||||||
time: "",
|
time: "",
|
||||||
account: ''
|
account: '',
|
||||||
|
cp_url: CP_URL_BASE
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -69,6 +72,7 @@ export default {
|
|||||||
|
|
||||||
this.data = this.$route.params;
|
this.data = this.$route.params;
|
||||||
this.time = this.filterTime(this.data.time);
|
this.time = this.filterTime(this.data.time);
|
||||||
|
this.cp_url = `${CP_URL_BASE}${data.invite_code}`
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
navigator() {
|
navigator() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user