|
@@ -4,8 +4,8 @@
|
|
|
the
|
|
|
tasks.</div>
|
|
|
<div class="area-url">
|
|
|
- <div class="url">{{ state.share_url }}</div>
|
|
|
- <div class="btn copy-btn" @click="clickCopy" :data-clipboard-text="state.share_url">
|
|
|
+ <div class="url">{{ state.inviteUrl }}</div>
|
|
|
+ <div class="btn copy-btn" @click="clickCopy" :data-clipboard-text="state.inviteCopyUrl">
|
|
|
Copy
|
|
|
</div>
|
|
|
</div>
|
|
@@ -22,16 +22,28 @@
|
|
|
import VBtn from '@/view/iframe/treasure-hunt/components/btn.vue'
|
|
|
import VToast from '@/view/iframe/treasure-hunt/components/toast.vue'
|
|
|
import OpenBox from '@/view/iframe/treasure-hunt/components/dialog.vue'
|
|
|
-import { inject } from 'vue'
|
|
|
+import { inviteChannel } from '@/http/treasure'
|
|
|
+import { inject, onMounted } from 'vue'
|
|
|
let ClipboardJS = require('clipboard');
|
|
|
let state = inject('state')
|
|
|
state.toast = {}
|
|
|
|
|
|
-state.share_list = [{
|
|
|
- iconPath: require('@/assets/svg/icon-btn-box.svg'),
|
|
|
- redirectPath: 'https://www.baidu.com'
|
|
|
-}]
|
|
|
-state.share_url = '123123123123'
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ // inviteChannel({
|
|
|
+ // postId: state.post_Id
|
|
|
+ // }).then((res)=>{
|
|
|
+ // if(res.code == 0){
|
|
|
+ // state.share_list = res.data
|
|
|
+ // }
|
|
|
+ state.share_list = [{
|
|
|
+ iconPath: require('@/assets/svg/icon-btn-box.svg'),
|
|
|
+ redirectPath: 'https://www.baidu.com'
|
|
|
+ }]
|
|
|
+ // })
|
|
|
+
|
|
|
+
|
|
|
+})
|
|
|
|
|
|
const clickShare = (item) => {
|
|
|
window.open(item.redirectPath)
|