粒子研究院中文站点标题改成富文本

master
yujialong 2 years ago
parent 7f80bfc473
commit 9aa6981d56
  1. 2
      src/components/modules/module.vue
  2. 44
      src/const/modules.js
  3. 2
      src/mixins/page/index.js
  4. 85
      src/pages/column/page/devHistory.vue
  5. 2
      src/pages/column/page/governance.vue
  6. 18
      src/pages/column/page/industrial.vue
  7. 7
      src/pages/column/page/mission.vue
  8. 10
      src/pages/column/page/overview.vue
  9. 7
      src/pages/column/page/scientific.vue
  10. 1195
      src/pages/column/page/sfel.vue
  11. 24
      src/pages/column/page/speech.vue

@ -490,7 +490,7 @@ export default {
// //
handleColumn (data) { handleColumn (data) {
data.map(e => { data.map(e => {
if (e.typeId === 2 || e.typeId === 3) e.disabled = true // if (e.typeId === 2 || e.typeId === 3) e.disabled = true
e.children.length ? this.handleColumn(e.children) : (delete e.children) e.children.length ? this.handleColumn(e.children) : (delete e.children)
}) })
}, },

@ -6519,7 +6519,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -6835,7 +6835,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -6936,7 +6936,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -6947,7 +6947,7 @@ export default {
label: '链接' label: '链接'
}, },
{ {
type: 'textarea', type: 'editor',
prop: 'des', prop: 'des',
label: '描述' label: '描述'
} }
@ -6979,7 +6979,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7060,7 +7060,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7077,7 +7077,7 @@ export default {
label: '链接' label: '链接'
}, },
{ {
type: 'textarea', type: 'editor',
prop: 'des', prop: 'des',
label: '描述' label: '描述'
} }
@ -7232,7 +7232,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7402,7 +7402,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7450,7 +7450,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7493,7 +7493,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7639,7 +7639,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7682,7 +7682,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7719,7 +7719,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7801,7 +7801,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7844,7 +7844,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7867,7 +7867,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7894,7 +7894,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7937,7 +7937,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -7975,7 +7975,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -8252,7 +8252,7 @@ export default {
type: 'form', type: 'form',
forms: [ forms: [
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true
@ -8376,7 +8376,7 @@ export default {
required: true required: true
}, },
{ {
type: 'input', type: 'editor',
prop: 'title', prop: 'title',
label: '标题', label: '标题',
required: true required: true

@ -74,6 +74,8 @@ export default {
this.originModules = str // 原始json,用以页面离开的时候判断是否需要提示保存 this.originModules = str // 原始json,用以页面离开的时候判断是否需要提示保存
list.map((e, i) => { list.map((e, i) => {
console.log("🚀 ~ file: index.js:77 ~ list.map ~ e:", e, this.modules[i])
if (this.modules[i].forms) e.forms = this.modules[i].forms
if (this.withOriginForm.includes(e.type) && !e.originForm) { if (this.withOriginForm.includes(e.type) && !e.originForm) {
e.originForm = modules[i].originForm e.originForm = modules[i].originForm
} }

@ -3,44 +3,57 @@
<div class="actions"> <div class="actions">
<p class="page-name">页面设置/关于IASF-发展历程</p> <p class="page-name">页面设置/关于IASF-发展历程</p>
<div> <div>
<el-button type="primary" @click="preview">预览</el-button> <el-button type="primary"
@click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button> <el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button> <el-button type="primary"
@click="save(1)">发布</el-button>
<el-button @click="back">放弃编辑</el-button> <el-button @click="back">放弃编辑</el-button>
</div> </div>
</div> </div>
<div class="modules"> <div class="modules">
<div class="relative"> <div class="relative">
<div class="single-banner"> <div class="single-banner">
<img class="banner-img" :src="modules[0].form.pic" alt="" /> <img class="banner-img"
:src="modules[0].form.pic"
alt="" />
<div class="texts"> <div class="texts">
<h6 class="banner-title">{{ modules[0].form.title }}</h6> <h6 class="banner-title">{{ modules[0].form.title }}</h6>
</div> </div>
</div> </div>
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> <div class="cover"
@click="toSet(0)">点击更换banner与链接</div>
</div> </div>
<div class="block history"> <div class="block history">
<div class="inner"> <div class="inner">
<div class="c-wrap"> <div class="c-wrap">
<h6>{{ modules[1].form.title }}</h6> <h6 v-html="modules[1].form.title"></h6>
<p class="en">{{ modules[1].form.subTitle }}</p> <p class="en">{{ modules[1].form.subTitle }}</p>
<div class="text" v-html="modules[1].form.des"></div> <div class="text"
<div class="cover" @click="toSet(1)">点击更换标题小标题与概述</div> v-html="modules[1].form.des"></div>
<div class="cover"
@click="toSet(1)">点击更换标题小标题与概述</div>
</div> </div>
<div class="c-wrap"> <div class="c-wrap">
<h6 style="font-size: 1.6rem">{{ modules[2].form.title }}</h6> <h6 style="font-size: 1.6rem">{{ modules[2].form.title }}</h6>
<p class="en" style="margin-top: -15px;font-size: 1.6rem">{{ modules[2].form.subTitle }}</p> <p class="en"
<div class="text" v-html="modules[2].form.des"></div> style="margin-top: -15px;font-size: 1.6rem">{{ modules[2].form.subTitle }}</p>
<div class="cover" @click="toSet(2)">点击更换标题小标题与概述</div> <div class="text"
v-html="modules[2].form.des"></div>
<div class="cover"
@click="toSet(2)">点击更换标题小标题与概述</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module"
:data.sync="curData"
:visible.sync="diaVisible"
@moduleSubmit="moduleSubmit" />
</div> </div>
</template> </template>
@ -49,12 +62,12 @@ import mixins from '@/mixins/page'
import Modules from '@/const/modules' import Modules from '@/const/modules'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
modules: Modules.devHistory modules: Modules.devHistory
} }
}, },
mounted() { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '站点管理', name: '站点管理',
@ -74,32 +87,32 @@ export default {
]) ])
}, },
methods: { methods: {
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../styles/page/page.scss"; @import '../../../styles/page/page.scss';
.history { .history {
h6 { h6 {
position: relative; position: relative;
font-size: 2.4rem; font-size: 2.4rem;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
} }
.en { .en {
margin-top: -25px; margin-top: -25px;
font-size: 2.4rem; font-size: 2.4rem;
font-family: PingFangSC-Light, PingFang SC; font-family: PingFangSC-Light, PingFang SC;
font-weight: 300; font-weight: 300;
color: #E3E3E3; color: #e3e3e3;
} }
.text { .text {
max-width: 1200px; max-width: 1200px;
margin: 30px 0; margin: 30px 0;
overflow: auto; overflow: auto;
} }
} }
</style> </style>

@ -30,7 +30,7 @@
<div class="inner"> <div class="inner">
<div class="texts c-wrap"> <div class="texts c-wrap">
<div class="left"> <div class="left">
<h2>{{ modules[1].form.title }}</h2> <h2 v-html="modules[1].form.title"></h2>
<div class="des" <div class="des"
v-html="modules[1].form.des"></div> v-html="modules[1].form.des"></div>
</div> </div>

@ -29,7 +29,8 @@
<div class="block history gray"> <div class="block history gray">
<div class="inner c-wrap"> <div class="inner c-wrap">
<h2 class="wow fadeInLeft" <h2 class="wow fadeInLeft"
style="margin-left: 57px">{{ modules[1].form.title }}</h2> style="margin-left: 57px"
v-html="modules[1].form.title"></h2>
<div class="texts wow fadeInDown" <div class="texts wow fadeInDown"
data-wow-delay="0.5s"> data-wow-delay="0.5s">
<div class="left"> <div class="left">
@ -54,7 +55,7 @@
:src="modules[2].form.pic" :src="modules[2].form.pic"
alt=""> alt="">
<div class="right"> <div class="right">
<h6>{{ modules[2].form.title }}</h6> <h6 v-html="modules[2].form.title"></h6>
<div class="text" <div class="text"
v-html="modules[2].form.des"></div> v-html="modules[2].form.des"></div>
</div> </div>
@ -66,7 +67,8 @@
<div class="block gray"> <div class="block gray">
<div class="inner"> <div class="inner">
<div class="c-wrap"> <div class="c-wrap">
<h2 class="b-title">{{ modules[3].form.title }}</h2> <h2 class="b-title"
v-html="modules[3].form.title"></h2>
<p class="intro" <p class="intro"
v-html="modules[3].form.des"></p> v-html="modules[3].form.des"></p>
<div class="cover" <div class="cover"
@ -75,7 +77,7 @@
<ul class="plan"> <ul class="plan">
<li> <li>
<div class="left"> <div class="left">
<h6>{{ modules[4].form.title }}</h6> <h6 v-html="modules[4].form.title"></h6>
<div class="text" <div class="text"
v-html="modules[4].form.des"></div> v-html="modules[4].form.des"></div>
<img src="@/assets/images/arrow.png" <img src="@/assets/images/arrow.png"
@ -89,7 +91,7 @@
</li> </li>
<li> <li>
<div class="left"> <div class="left">
<h6>{{ modules[5].form.title }}</h6> <h6 v-html="modules[5].form.title"></h6>
<div class="text" <div class="text"
v-html="modules[5].form.des"></div> v-html="modules[5].form.des"></div>
<img src="@/assets/images/arrow.png" <img src="@/assets/images/arrow.png"
@ -108,7 +110,8 @@
<div class="block"> <div class="block">
<div class="inner app-inner"> <div class="inner app-inner">
<div class="c-wrap"> <div class="c-wrap">
<h2 class="b-title wow fadeInUp">{{ modules[6].form.title }}</h2> <h2 class="b-title wow fadeInUp"
v-html="modules[6].form.title"></h2>
<p class="intro wow fadeInUp" <p class="intro wow fadeInUp"
data-wow-delay="0.5s">{{ modules[6].form.des }}</p> data-wow-delay="0.5s">{{ modules[6].form.des }}</p>
<div class="cover" <div class="cover"
@ -136,7 +139,8 @@
<div class="block news-block"> <div class="block news-block">
<div class="inner"> <div class="inner">
<div class="c-wrap"> <div class="c-wrap">
<h2 class="b-title">{{ modules[8].form.title }}</h2> <h2 class="b-title"
v-html="modules[8].form.title"></h2>
<p class="intro">{{ modules[8].form.des }}</p> <p class="intro">{{ modules[8].form.des }}</p>
<div class="cover" <div class="cover"
@click="toSet(8)">点击更换标题与描述</div> @click="toSet(8)">点击更换标题与描述</div>

@ -32,7 +32,7 @@
<img :src="modules[1].form.pic" <img :src="modules[1].form.pic"
alt="" /> alt="" />
<div class="texts"> <div class="texts">
<h6>{{ modules[1].form.title }}</h6> <h6 v-html="modules[1].form.title"></h6>
<div class="text" <div class="text"
v-html="modules[1].form.des"></div> v-html="modules[1].form.des"></div>
</div> </div>
@ -44,7 +44,7 @@
<img :src="modules[2].form.pic" <img :src="modules[2].form.pic"
alt="" /> alt="" />
<div class="texts rightText"> <div class="texts rightText">
<h6>{{ modules[2].form.title }}</h6> <h6 v-html="modules[2].form.title"></h6>
<div class="text" <div class="text"
v-html="modules[2].form.des"></div> v-html="modules[2].form.des"></div>
</div> </div>
@ -58,7 +58,8 @@
<div class="block mind gray"> <div class="block mind gray">
<div class="inner"> <div class="inner">
<div class="c-wrap"> <div class="c-wrap">
<h6 class="m-title">{{ modules[3].form.title }}</h6> <h6 class="m-title"
v-html="modules[3].form.title"></h6>
<div class="cover" <div class="cover"
@click="toSet(3)">点击更换标题</div> @click="toSet(3)">点击更换标题</div>
</div> </div>

@ -31,9 +31,10 @@
<div class="texts wow fadeInDown" <div class="texts wow fadeInDown"
data-wow-delay="0.5s"> data-wow-delay="0.5s">
<div class="left"> <div class="left">
<h2>{{ modules[1].form.title }}</h2> <h2 v-html="modules[1].form.title"></h2>
<div class="line"></div> <div class="line"></div>
<div class="des">{{ modules[1].form.des }}</div> <div class="des"
v-html="modules[1].form.des"></div>
</div> </div>
<img class="bg" <img class="bg"
width="562" width="562"
@ -80,7 +81,7 @@
<div class="block fac"> <div class="block fac">
<div class="inner"> <div class="inner">
<div class="event"> <div class="event">
<h6>{{ modules[4].form.title }}</h6> <h6 v-html="modules[4].form.title"></h6>
<p class="en">{{ modules[4].form.subTitle }}</p> <p class="en">{{ modules[4].form.subTitle }}</p>
<div class="text" <div class="text"
v-html="modules[4].form.des"></div> v-html="modules[4].form.des"></div>
@ -132,7 +133,8 @@
<div class="block scan gray"> <div class="block scan gray">
<div class="c-wrap"> <div class="c-wrap">
<h2 class="b-title">{{ modules[8].form.title }}</h2> <h2 class="b-title"
v-html="modules[8].form.title"></h2>
<p class="intro">{{ modules[8].form.des }}</p> <p class="intro">{{ modules[8].form.des }}</p>
<div class="cover" <div class="cover"
@click="toSet(8)">点击更换标题与描述</div> @click="toSet(8)">点击更换标题与描述</div>

@ -35,7 +35,7 @@
:src="modules[1].form.pic" :src="modules[1].form.pic"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>{{ modules[1].form.title }}</h6> <h6 v-html="modules[1].form.title"></h6>
<div class="text" <div class="text"
v-html="modules[1].form.des"></div> v-html="modules[1].form.des"></div>
<img class="icon" <img class="icon"
@ -50,7 +50,7 @@
:src="modules[2].form.pic" :src="modules[2].form.pic"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>{{ modules[2].form.title }}</h6> <h6 v-html="modules[2].form.title"></h6>
<div class="text" <div class="text"
v-html="modules[2].form.des"></div> v-html="modules[2].form.des"></div>
<img class="icon" <img class="icon"
@ -68,7 +68,8 @@
<div class="inner"> <div class="inner">
<div class="texts"> <div class="texts">
<div class="title wow fadeInUp" <div class="title wow fadeInUp"
data-wow-delay="0.7s">{{ modules[3].form.title }}</div> data-wow-delay="0.7s"
v-html="modules[3].form.title"></div>
<div class="des wow fadeInDown" <div class="des wow fadeInDown"
data-wow-delay="1s" data-wow-delay="1s"
v-html="modules[3].form.des"></div> v-html="modules[3].form.des"></div>

File diff suppressed because it is too large Load Diff

@ -28,20 +28,18 @@
</div> </div>
<div class="block"> <div class="block">
<div class="inner"> <div class="inner c-wrap">
<div class="c-wrap"> <img :src="modules[1].form.pic"
<img :src="modules[1].form.pic" alt=""
alt="" class="pic">
class="pic"> <div class="texts">
<div class="texts"> <h6 v-html="modules[1].form.title"></h6>
<h6>{{ modules[1].form.title }}</h6> <p class="en">{{ modules[1].form.subTitle }}</p>
<p class="en">{{ modules[1].form.subTitle }}</p> <div class="text"
<div class="text" v-html="modules[1].form.des"></div>
v-html="modules[1].form.des"></div>
</div>
<div class="cover"
@click="toSet(1)">点击更换图片标题小标题与概述</div>
</div> </div>
<div class="cover"
@click="toSet(1)">点击更换图片标题小标题与概述</div>
</div> </div>
<div class="sign c-wrap"> <div class="sign c-wrap">
签名 签名

Loading…
Cancel
Save