|
@@ -7,6 +7,9 @@ import countryCode from '@/lib/countryCode.json'
|
|
|
import login from '@/views/login/index.vue'
|
|
import login from '@/views/login/index.vue'
|
|
|
export default Vue.extend({
|
|
export default Vue.extend({
|
|
|
name: 'Index',
|
|
name: 'Index',
|
|
|
|
|
+ components: {
|
|
|
|
|
+ expoHead
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
from_data: [],
|
|
from_data: [],
|
|
@@ -27,9 +30,6 @@ export default Vue.extend({
|
|
|
isOk: false
|
|
isOk: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- components: {
|
|
|
|
|
- expoHead
|
|
|
|
|
- },
|
|
|
|
|
computed: {
|
|
computed: {
|
|
|
user() { return this.$store.state.user.user },
|
|
user() { return this.$store.state.user.user },
|
|
|
token() { return this.$store.state.user.token }
|
|
token() { return this.$store.state.user.token }
|
|
@@ -49,6 +49,9 @@ export default Vue.extend({
|
|
|
this.from_data = res.data
|
|
this.from_data = res.data
|
|
|
this.from_data.images = JSON.parse(res.data.images)
|
|
this.from_data.images = JSON.parse(res.data.images)
|
|
|
this.from_data.social_links = JSON.parse(res.data.social_links)
|
|
this.from_data.social_links = JSON.parse(res.data.social_links)
|
|
|
|
|
+ if (this.from_data.social_links.facebook === '' || this.from_data.social_links.twitter === '' || this.from_data.social_links.linkedin === '') {
|
|
|
|
|
+ this.from_data.social_links = false
|
|
|
|
|
+ }
|
|
|
this.from_data.form_fields.forEach(item => {
|
|
this.from_data.form_fields.forEach(item => {
|
|
|
if (item.field_type === 'checkbox') {
|
|
if (item.field_type === 'checkbox') {
|
|
|
this.$set(item, 'value', [])
|
|
this.$set(item, 'value', [])
|
|
@@ -200,7 +203,7 @@ export default Vue.extend({
|
|
|
<div class="info">此链接无效,请向管理员咨询。</div>
|
|
<div class="info">此链接无效,请向管理员咨询。</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else class="body">
|
|
<div v-else class="body">
|
|
|
- <expo-head :popover_data="from_data"></expo-head>
|
|
|
|
|
|
|
+ <expo-head :popover_data="from_data" />
|
|
|
<div class="form">
|
|
<div class="form">
|
|
|
<div v-if="isOk" class="form-body ok">
|
|
<div v-if="isOk" class="form-body ok">
|
|
|
<div class="icon el-icon-success" />
|
|
<div class="icon el-icon-success" />
|