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