yujialong 3 months ago
parent e6eb09556c
commit fedf73ec61
  1. 2
      src/components/modules/content.vue
  2. 2
      src/components/ueditorPlus/index.vue
  3. 26
      src/pages/column/page/governance.vue
  4. 2
      src/setting.js

@ -24,7 +24,7 @@
</div> </div>
</el-upload> </el-upload>
<el-upload v-if="item.type === 'upload' && !item.width" class="uploader" accept=".jpg,.png,.jpeg" <el-upload v-if="item.type === 'upload' && !item.width" class="uploader" accept=".jpg,.png,.jpeg"
:on-success="res => uploadSuccess(res, data.form)" :show-file-list="false" :headers="headers" :on-success="res => uploadSuccess(res, data.form, item)" :show-file-list="false" :headers="headers"
:action="api.upload"> :action="api.upload">
<img v-if="data.form[item.prop]" :src="data.form[item.prop]" class="avatar"> <img v-if="data.form[item.prop]" :src="data.form[item.prop]" class="avatar">
<div class="uploader-default" v-else> <div class="uploader-default" v-else>

@ -52,7 +52,7 @@ export default {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
this.instance = UE.getEditor(this.randomId, { this.instance = UE.getEditor(this.randomId, {
UEDITOR_HOME_URL: Setting.isDev ? '/static/components/ueditorPlus/' : '/front/static/components/ueditorPlus/', UEDITOR_HOME_URL: Setting.isDev ? '/static/components/ueditorPlus/' : '/front/static/components/ueditorPlus/',
serverUrl: "http://121.37.12.51/exam/exam/upload/configAndUpload", serverUrl: "https://huorantech.cn/exam/exam/upload/configAndUpload",
plugins: 'gapfilling', plugins: 'gapfilling',
...this.config ...this.config
}) })

@ -34,21 +34,23 @@
</div> </div>
</div> </div>
<div class="cards"> <div class="c-wrap">
<ul> <div class="cards">
<li v-for="(item, i) in modules[2].list" :key="i">{{ item.title }}</li> <ul>
<div class="cover" @click="toSet(2)">点击配置文本</div> <li v-for="(item, i) in modules[2].list" :key="i">{{ item.title }}</li>
</ul> </ul>
</div> </div>
<div class="block committee gray"> <div class="block committee gray">
<div class="inner c-wrap"> <div class="inner c-wrap">
<div class="left"> <div class="left">
<h2>{{ modules[2].list[curYear].list[0].title }}</h2> <h2>{{ modules[2].list[curYear].list[0].title }}</h2>
<div class="text" v-html="modules[2].list[curYear].list[0].des"></div> <div class="text" v-html="modules[2].list[curYear].list[0].des"></div>
</div>
<img class="pic" :src="modules[2].list[curYear].list[0].pic" alt="">
</div> </div>
<img class="pic" :src="modules[2].list[curYear].list[0].pic" alt="">
</div> </div>
<div class="cover" @click="toSet(2)">点击配置文本</div>
</div> </div>
</div> </div>

@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = location.origin let host = location.origin
if (isDev) { if (isDev) {
host = 'https://huorantech.com' host = 'https://huorantech.com'
// host = 'http://192.168.31.217:10000' host = 'http://192.168.31.217:10000'
} }
const Setting = { const Setting = {

Loading…
Cancel
Save