|
|
@@ -2,18 +2,18 @@
|
|
|
import Vue from 'vue'
|
|
|
import { getMyExpoInfo } from '@/api/expo'
|
|
|
export default Vue.extend({
|
|
|
- name: "expoPopover",
|
|
|
+ name: 'ExpoPopover',
|
|
|
+ props: {
|
|
|
+ expoId: String,
|
|
|
+ placement: String,
|
|
|
+ trigger: String
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
popover_data: {},
|
|
|
ossUrl: process.env.VUE_APP_OSS_DOMAIN
|
|
|
}
|
|
|
},
|
|
|
- props: {
|
|
|
- expoId: String,
|
|
|
- placement: String,
|
|
|
- trigger: String,
|
|
|
- },
|
|
|
methods: {
|
|
|
goto(url) {
|
|
|
window.open(url, '_blank')
|
|
|
@@ -23,11 +23,14 @@ export default Vue.extend({
|
|
|
this.popover_data = res.data
|
|
|
this.popover_data.images = JSON.parse(res.data.images)
|
|
|
this.popover_data.social_links = JSON.parse(res.data.social_links)
|
|
|
+ if (this.popover_data.social_links.facebook === '' || this.popover_data.social_links.twitter === '' || this.popover_data.social_links.linkedin === '') {
|
|
|
+ this.popover_data.social_links = false
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
copyUrl() {
|
|
|
- let rootPath = window.location.origin
|
|
|
- navigator.clipboard.writeText(rootPath+'/register/'+this.popover_data.urla)
|
|
|
+ const rootPath = window.location.origin
|
|
|
+ navigator.clipboard.writeText(rootPath + '/register/' + this.popover_data.urla)
|
|
|
this.$message.success('复制成功')
|
|
|
}
|
|
|
}
|
|
|
@@ -39,7 +42,7 @@ export default Vue.extend({
|
|
|
<div class="expo-info">
|
|
|
<div class="cover loading">
|
|
|
<img v-if="popover_data.images" :src="ossUrl+popover_data.images[0]">
|
|
|
- <div v-permission="'exhibitor.copyLink'" v-if="popover_data.form_template_id && popover_data.urla" @click="copyUrl()" class="button">复制表单地址</div>
|
|
|
+ <div v-if="popover_data.form_template_id && popover_data.urla" v-permission="'exhibitor.copyLink'" class="button" @click="copyUrl()">复制表单地址</div>
|
|
|
</div>
|
|
|
<div class="info-body">
|
|
|
<div class="avatar-name">
|
|
|
@@ -83,7 +86,7 @@ export default Vue.extend({
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="reference" class="button">
|
|
|
- <slot></slot>
|
|
|
+ <slot />
|
|
|
</span>
|
|
|
</el-popover>
|
|
|
</template>
|