yujialong 4 months ago
parent 9487b181b2
commit 3d2ee869be
  1. 8
      src/layouts/header/index.vue
  2. 2
      src/libs/util.js
  3. 60
      src/pages/shop/list/index.vue
  4. 2
      src/setting.js

@ -2,7 +2,7 @@
<div :class="['header', { channel: isHome, estate: isEstate, iasf: isIasf }]">
<a class="logo" @click="toIndex">
<template>
<img :src="logoForm.logoUrl" alt="">
<img :src="isHome && logoForm.whiteUrl ? logoForm.whiteUrl : logoForm.logoUrl" alt="">
{{ logoForm.title }}
</template>
</a>
@ -225,6 +225,10 @@ $height: 90px;
&:not(.channel) {
background-color: #fff;
border-bottom: 1px solid #f3f3f3;
.logo {
color: #333;
}
}
&.estate {
@ -236,7 +240,7 @@ $height: 90px;
align-items: center;
font-size: 18px;
font-weight: 700;
color: #333;
color: #fff;
cursor: pointer;
img {

@ -11,7 +11,7 @@ const exts = {
doc: 'doc,docx,txt,xls,xlsx,csv,xml,ppt,pptx'
}
// 各个站点首页的路径
const indexPath = ['/home', '/sfel', '/estate/index']
const indexPath = ['/home', '/sfel', '/estate/index', '/iasf']
const util = {
local: _local,
//返回格式化时间,传参例如:"yyyy-MM-dd hh:mm:ss"

@ -6,16 +6,23 @@
:indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'">
<template v-for="(item, i) in modules[0].list">
<el-carousel-item v-if="item.pic && item.isEnable" :key="i">
<div class="pic" :style="{ backgroundImage: 'url(' + item.pic + ')' }"></div>
<div v-if="isImg(item.mediaType)" class="pic" :style="{ backgroundImage: 'url(' + item.pic + ')' }"></div>
<video v-else class="pic" width="100%" height="100%" autoplay muted loop>
<source :src="item.pic" type="video/mp4">
您的浏览器不支持 video 标签
</video>
<div class="text-wrap">
<div v-if="!GTA && !i" class="qrcode-wrap">
<img class="qrcode" src="https://occupationlab.com/images/mini-program.jpg" alt="">
<p class="text">扫小程序下单</p>
</div>
<div class="texts">
<h6>{{ item.title }}</h6>
<p class="sub">{{ item.des }}</p>
<div class="qrcodes fadeInUp">
<div v-if="item.weixinPic1" class="qrcode">
<img width="103" :src="item.weixinPic1" alt="">
<p v-if="item.weixinText1" class="text">{{ item.weixinText1 }}</p>
</div>
<div v-if="item.weixinPic2" class="qrcode m-l-30">
<img width="103" :src="item.weixinPic2" alt="">
<p v-if="item.weixinText2" class="text">{{ item.weixinText2 }}</p>
</div>
</div>
<div class="text" v-html="item.des"></div>
</div>
</el-carousel-item>
</template>
@ -186,10 +193,12 @@
import mixins from '@/mixins/page'
import { Loading } from "element-ui";
import ScrollReveal from 'scrollreveal'
import Util from '@/libs/util'
export default {
mixins: [mixins],
data () {
return {
isImg: Util.isImg,
timer: null,
curTab: '',
tabs: [
@ -520,12 +529,9 @@ export default {
.carousel {
.pic {
height: 100%;
background-position: center center;
background-size: 100% 100%;
background-repeat: no-repeat;
background-size: cover;
}
img {
height: 100%;
}
/deep/.el-carousel__container {
@ -542,36 +548,24 @@ export default {
transform: translateY(-50%);
}
h6 {
margin-bottom: 25px;
font-size: 2.2rem;
}
.sub {
font-size: 1.5rem;
.qrcodes {
display: flex;
margin-right: 50px;
}
.qrcode-wrap {
display: inline-block;
padding: 5px;
margin-right: 50px;
.qrcode {
text-align: center;
background-color: #fff;
border-radius: 12px;
.text {
margin-top: 5px;
margin-top: 10px;
font-size: 12px;
color: #979797;
color: #fff;
white-space: nowrap;
}
}
.qrcode {
width: 120px;
height: 120px;
}
}
.intro {
display: flex;
justify-content: space-between;

@ -17,7 +17,7 @@ const Setting = {
titleSuffix: location.href.includes('eduvessel') ? '慧教云舟' : '职站商城', // 网页标题的后缀
routerMode: "hash", // 路由模式,可选值为 history 或 hash
apiBaseURL: host, // 接口请求地址
huoranApi: `https://occupationlab.com`,
huoranApi: `https://www.occupationlab.com`,
autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间
modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒
errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice

Loading…
Cancel
Save