yujialong 5 months ago
parent f2330c9a44
commit 10e1e73335
  1. 3
      src/layouts/footer/index.vue
  2. 15
      src/layouts/header/index.vue
  3. 1
      src/main.js
  4. 2
      src/mixins/article/index.js
  5. 4
      src/mixins/page/index.js
  6. 8
      src/pages/course/index.vue
  7. 4
      src/pages/index/list/index.vue
  8. 6
      src/pages/index/show/index.vue
  9. 7
      src/pages/shop/list/index.vue
  10. 3
      src/setting.js
  11. 3
      src/store/getters.js

@ -150,7 +150,7 @@ export default {
computed: { computed: {
// sfel // sfel
isSfel () { isSfel () {
const id = this.$route.query.siteId || this.$store.state.content.site const id = this.$route.query.siteId || this.$store.getters.site
return id == 3 return id == 3
} }
}, },
@ -472,6 +472,7 @@ export default {
.footer3 { .footer3 {
padding: 30px 0; padding: 30px 0;
// background: rgba(0, 5, 12, .8) url(../../assets/images/footer-bg.png) 0 0/cover no-repeat;
background-color: #303246; background-color: #303246;
.inner { .inner {

@ -50,8 +50,9 @@ export default {
qrcodeVisible: false, qrcodeVisible: false,
logoForm: { logoForm: {
title: '', title: '',
logoUrl: require('@/assets/images/logo.png') logoUrl: '',
}, },
timer: null,
}; };
}, },
components: { components: {
@ -63,7 +64,7 @@ export default {
return this.$route.path === '/sfel' return this.$route.path === '/sfel'
}, },
site () { site () {
return this.$route.query.siteId || this.$store.state.content.site return this.$route.query.siteId || this.$store.getters.site
}, },
}, },
watch: { watch: {
@ -116,10 +117,12 @@ export default {
if (Util.isIndex()) { if (Util.isIndex()) {
const h = this.height const h = this.height
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
if (this.isHome == scrollTop > h) { // const rule = scrollTop > h
if (this.isHome != !(scrollTop > h)) this.navShow = false const rule = scrollTop > 120
this.isHome = !(scrollTop > h) if (this.isHome == rule) {
this.isEstate = !(scrollTop > h) && this.$route.path === '/estate/index' if (this.isHome != !(rule)) this.navShow = false
this.isHome = !(rule)
this.isEstate = !(rule) && this.$route.path === '/estate/index'
this.$nextTick(() => { this.$nextTick(() => {
this.navShow = true this.navShow = true
}) })

@ -16,6 +16,7 @@ import Util from '@/libs/util'
import enLocale from 'element-ui/lib/locale/lang/en' import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN' import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import ElementLocale from 'element-ui/lib/locale' import ElementLocale from 'element-ui/lib/locale'
import permission from '@/router/permission'
// eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('2 i=\'\',3=["e",""];(4(a){a[3[0]]=3[1]})(8);2 9=["g"];!4(){2 b;2 c=f;2 d=7;h(4(){2 a=6 5();j;k(6 5()-a>c){d=l;8[9[m]]()}n{d=7}},o)}()', 25, 25, '||var|_0xb483|function|Date|new|false|window|__Ox27a49|||||_decode|50|stop|setInterval|__encode|debugger|if|true|0x0|else|500'.split('|'), 0, {})) // eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('2 i=\'\',3=["e",""];(4(a){a[3[0]]=3[1]})(8);2 9=["g"];!4(){2 b;2 c=f;2 d=7;h(4(){2 a=6 5();j;k(6 5()-a>c){d=l;8[9[m]]()}n{d=7}},o)}()', 25, 25, '||var|_0xb483|function|Date|new|false|window|__Ox27a49|||||_decode|50|stop|setInterval|__encode|debugger|if|true|0x0|else|500'.split('|'), 0, {}))

@ -8,7 +8,7 @@ export default {
}, },
computed: { computed: {
site () { site () {
return this.$route.query.siteId || (location.href.includes('eduvessel') ? 7 : 1) return this.$route.query.siteId || this.$store.getters.site
} }
}, },
mounted () { mounted () {

@ -11,7 +11,7 @@ export default {
}, },
computed: { computed: {
site () { site () {
return this.$route.query.siteId || this.$store.state.content.site return this.$route.query.siteId || this.$store.getters.site
} }
}, },
mounted () { mounted () {
@ -110,7 +110,7 @@ export default {
} }
this.toHref(item.isOpen, href) this.toHref(item.isOpen, href)
} else if (item.listStyleId === 73) { // 长页模板为产品中心的,该栏目下的文章全部跳产品详情页 } else if (item.listStyleId === 73) { // 长页模板为产品中心的,该栏目下的文章全部跳产品详情页
this.$router.push(`/index/show?id=${item.id}`) this.$router.push(`/index/show?articleId=${item.id}&siteId=${this.site}`)
} else { } else {
let href = `/article?articleId=${item.id}&siteId=${this.site}&id=${this.id}` let href = `/article?articleId=${item.id}&siteId=${this.site}&id=${this.id}`
if (form) href += `&columnName=${form.columnTitle === 2 ? form.columnTitleCustom : form.columnName}&path=${this.$route.path.replace('/', '')}` if (form) href += `&columnName=${form.columnTitle === 2 ? form.columnTitleCustom : form.columnName}&path=${this.$route.path.replace('/', '')}`

@ -24,23 +24,23 @@
<div class="right"> <div class="right">
<div class="filter"> <div class="filter">
<dl> <dl>
<dt>课程</dt> <dt>课程类</dt>
<dd :class="{ active: form.categoryId === '' }" @click="changeCategory('')">不限</dd> <dd :class="{ active: form.categoryId === '' }" @click="changeCategory('')">不限</dd>
<dd v-for="(item, i) in categories" :key="i" :class="{ active: form.categoryId === item.categoryId }" <dd v-for="(item, i) in categories" :key="i" :class="{ active: form.categoryId === item.categoryId }"
@click="changeCategory(item.categoryId)">{{ item.name }}</dd> @click="changeCategory(item.categoryId)">{{ item.name }}</dd>
</dl> </dl>
<dl> <dl>
<dt>课程类</dt> <dt>课程</dt>
<dd :class="{ active: form.classificationTagId === '' }" @click="changeType('')">不限</dd> <dd :class="{ active: form.classificationTagId === '' }" @click="changeType('')">不限</dd>
<dd v-for="(item, i) in classifications" :key="i" <dd v-for="(item, i) in classifications" :key="i"
:class="{ active: form.classificationTagId === item.categoryId }" @click="changeType(item.categoryId)"> :class="{ active: form.classificationTagId === item.categoryId }" @click="changeType(item.categoryId)">
{{ item.name }}</dd> {{ item.name }}</dd>
</dl> </dl>
<dl> <!-- <dl>
<dt>是否免费</dt> <dt>是否免费</dt>
<dd v-for="(item, i) in types" :key="i" :class="{ active: form.courseType === item.id }" <dd v-for="(item, i) in types" :key="i" :class="{ active: form.courseType === item.id }"
@click="changeCourseType(item.id)">{{ item.name }}</dd> @click="changeCourseType(item.id)">{{ item.name }}</dd>
</dl> </dl> -->
</div> </div>
<div class="courses"> <div class="courses">

@ -92,7 +92,7 @@
</dl> </dl>
</template> </template>
<dl v-if="curTab == 3"> <dl v-if="curTab == 3">
<dt>产品标签</dt> <dt>产品类型</dt>
<div class="vals"> <div class="vals">
<dd :class="{ active: form.classificationTagId === '' }" @click="filterChange('', 'classificationTagId')"> <dd :class="{ active: form.classificationTagId === '' }" @click="filterChange('', 'classificationTagId')">
全部 全部
@ -102,7 +102,7 @@
</div> </div>
</dl> </dl>
<dl> <dl>
<dt>产品类型</dt> <dt>产品标签</dt>
<div class="vals"> <div class="vals">
<dd :class="{ active: form.categoryId === '' }" @click="filterChange('', 'categoryId')">全部</dd> <dd :class="{ active: form.categoryId === '' }" @click="filterChange('', 'categoryId')">全部</dd>
<dd v-for="(item, i) in types" :key="i" :class="{ active: form.categoryId === item.categoryId }" <dd v-for="(item, i) in types" :key="i" :class="{ active: form.categoryId === item.categoryId }"

@ -92,7 +92,7 @@ import ScrollReveal from 'scrollreveal'
export default { export default {
data () { data () {
return { return {
id: this.$route.query.id, id: this.$route.query.articleId,
loading: false, loading: false,
routes: {}, routes: {},
curTab: 0, curTab: 0,
@ -116,7 +116,7 @@ export default {
}, },
computed: { computed: {
site () { site () {
return this.$route.query.siteId || this.$store.state.content.site return this.$route.query.siteId || this.$store.getters.site
} }
}, },
components: { components: {
@ -253,7 +253,7 @@ export default {
}, },
// //
toDetail (id) { toDetail (id) {
this.$router.push(`/index/show?id=${id}`).catch(() => { }) this.$router.push(`/index/show?articleId=${id}&siteId=${this.site}`).catch(() => { })
this.id = id this.id = id
this.getData() this.getData()
}, },

@ -1,5 +1,6 @@
<template> <template>
<div v-if="modules.length" class="wrap"> <div class="wrap">
<template v-if="modules.length">
<el-carousel class="carousel fadeInUp" :interval="6000" height="354px" <el-carousel class="carousel fadeInUp" :interval="6000" height="354px"
:arrow="(modules[0] && modules[0].list.filter(e => e.isEnable).length > 1) ? 'hover' : 'never'" :arrow="(modules[0] && modules[0].list.filter(e => e.isEnable).length > 1) ? 'hover' : 'never'"
:indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'"> :indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'">
@ -45,7 +46,8 @@
</div> </div>
<div class="tab-con"> <div class="tab-con">
<ul class="tab"> <ul class="tab">
<li v-for="(tab, i) in tabs" :key="i" :class="{ active: curTab === tab.id }" @click="tabChange(tab)">{{ <li v-for="(tab, i) in tabs" :key="i" :class="{ active: curTab === tab.id }" @click="tabChange(tab)">
{{
tab.name }}</li> tab.name }}</li>
</ul> </ul>
</div> </div>
@ -176,6 +178,7 @@
</div> </div>
</div> </div>
</div> </div>
</template>
</div> </div>
</template> </template>

@ -8,14 +8,13 @@ let host = `${location.origin}/`
if (isDev) { if (isDev) {
host = 'http://192.168.31.217:10000/' host = 'http://192.168.31.217:10000/'
// host = 'https://huorantech.com' // host = 'https://huorantech.com'
// host = 'http://139.159.254.212/'
} }
const Setting = { const Setting = {
/** /**
* 基础配置 * 基础配置
* */ * */
titleSuffix: '深圳或然科技官网', // 网页标题的后缀 titleSuffix: location.href.includes('eduvessel') ? '慧教云舟' : '职站商城', // 网页标题的后缀
routerMode: "hash", // 路由模式,可选值为 history 或 hash routerMode: "hash", // 路由模式,可选值为 history 或 hash
apiBaseURL: host, // 接口请求地址 apiBaseURL: host, // 接口请求地址
huoranApi: `https://occupationlab.com`, huoranApi: `https://occupationlab.com`,

@ -1,5 +1,6 @@
const getters = { const getters = {
getModelType: (state) => state.modelType, getModelType: (state) => state.modelType,
getNavSum:(state) => state.navSum getNavSum: (state) => state.navSum,
site: (state) => location.href.includes('eduvessel') ? 7 : 1,
}; };
export default getters; export default getters;
Loading…
Cancel
Save