Commit 58cf3f26 by zhangmeng

易企秀招聘

parent 1248b2f9
export default {
logo: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/logo.jpg"
},
eqixxdkytxt1: {
value: "色味俱佳"
},
eqixxdkytxt2: {
value: "回味无穷"
},
eqixxdkytxt3: {
value: "芳香扑鼻"
},
businessHours: {
value: "13:00-23:30"
},
place: {
value: "北京市海淀区东北旺西路58号院尚科社区"
}
}
\ No newline at end of file
export default {
eqixrecruit5head: {
value: "工作环境"
},
eqixrecruit5img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixrecruit/fiveleft.jpg"
},
eqixrecruit5img2: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixrecruit/fiverighttop.jpg"
},
eqixrecruit5img3: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixrecruit/fiverightbot.jpg"
},
eqixrecruit5img4: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixrecruit/fivebot.jpg"
},
eqixrecruit5head2: {
value: " Work Environmen"
}
}
\ No newline at end of file
export default {
eqixrecruit4head: {
value: "福利待遇"
},
eqixrecruit4img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixrecruit/logo.jpg"
},
eqixrecruit4head2: {
value: "Welfare Treatment"
},
eqixrecruit4head3: {
value: "如果你足够优秀,有任何要求,尽管提"
},
eqixrecruit4txt: {
value: "五险"
},
eqixrecruit4txt2: {
value: "一金"
},
eqixrecruit4txt3:{
value:"周末"
},
eqixrecruit4txt4:{
value:"双休"
},
eqixrecruit4txt5:{
value:"年底"
},
eqixrecruit4txt6:{
value:"双薪"
},
eqixrecruit4txt7:{
value:"生日"
},
eqixrecruit4txt8:{
value:"福利"
},
eqixrecruit4txt9:{
value:"股权"
},
eqixrecruit4txt10:{
value:"分红"
},
eqixrecruit4txt11:{
value:"点心"
},
eqixrecruit4txt12:{
value:"茶歇"
},
eqixrecruit4txt13:{
value:"交通"
},
eqixrecruit4txt14:{
value:"补助"
},
eqixrecruit4txt15:{
value:"带薪"
},
eqixrecruit4txt16:{
value:"旅游"
},
eqixrecruit4head4:{
value:"拼搏成就梦想,为梦想奔跑"
},
eqixrecruit4head5:{
value:"加入我们,成就你不一样梦想"
}
}
\ No newline at end of file
export default {
eqixrecruit7head: {
value: "职位详情"
},
eqixrecruit7head2: {
value: "Job Details"
},
eqixrecruit7head3: {
value: "岗位职责:"
},
eqixrecruit7txt: {
value: "1. 参与前端产品开发 ,请输入岗位职责 "
},
eqixrecruit7txt2: {
value: "2. 参与前端产品开发"
},
eqixrecruit7txt3: {
value: "3. 请输入岗位职责维护公司网络运营"
},
eqixrecruit7head4: {
value: "招聘人数:5人"
},
eqixrecruit7head5: {
value: "任职要求:"
},
eqixrecruit7txt4: {
value: "1. 2年以上HTML5和CSS3开发经验,有电商平台开发经验"
},
eqixrecruit7txt5: {
value: "2. 熟练前端框架angularjs开发;熟悉jQuery开发2. 参与前端产品开发"
},
eqixrecruit7txt6: {
value: "3. 能使用photoshop工具完成一般的切图"
},
eqixrecruit7txt7: {
value: "4. 了解Web应用工作原理,熟悉常用的Web开发框架;"
}
}
\ No newline at end of file
export default {
eqixrecruit6head: {
value: "招聘职位"
},
eqixrecruit6head2: {
value: "Recruitment"
},
eqixrecruit6head3: {
value: "我/们/求/贤/若/渴/只/等/你/来"
},
eqixrecruit6head4: {
value: "JAVA开发工程师"
},
eqixrecruit6head5: {
value: "广告推广经理"
},
eqixrecruit6head6: {
value: "高级广告优化师"
},
eqixrecruit6head7: {
value: "交互设计师"
},
eqixrecruit6head8: {
value: "大客户经理"
},
eqixrecruit6head9: {
value: "高级销售经理"
}
}
\ No newline at end of file
export default {
eqixrecruit3head: {
value: "公司历程"
},
eqixrecruit3head2: {
value: "Business Process"
},
eqixrecruit3img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixrecruit/scenery.gif"
},
eqixrecruit3head3: {
value: "☆ 2014年7月创意初成"
},
eqixrecruit3head4: {
value: "☆ 2014年11月PC网站上线"
},
eqixrecruit3head5: {
value: "☆ 2015年11月获得A轮融资"
},
eqixrecruit3head6: {
value: "☆ 2016年3月注册用户突破1000万"
},
eqixrecruit3head7: {
value: "☆ 2016年3月成都分公司成立"
},
eqixrecruit3head8: {
value: "☆ 2016年8月宣布完成6000万B轮融资"
},
eqixrecruit3head9: {
value: "☆ 2017年3月推出APP"
},
eqixrecruit3head10: {
value: "☆ 荣获2017年度中国企业营销创新奖"
}
}
\ No newline at end of file
export default {
eqixrecruit2head: {
value: "公司简介"
},
eqixrecruit2img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixrecruit/computer.jpg"
},
eqixrecruit2head2: {
value: "Company Introduction"
},
introduction: {
value: "八图H5隶属于阜阳八图电子科技有限公司 ,是一个在线H5设计平台,致力于为职场人士提供简单高效办公的在线设计工具。八图H5未来将成为在线设计领域的全能创领者。"
}
}
\ No newline at end of file
import eqixrecruit from './eqixrecruit'
import eqixrecruittwo from './eqixrecruittwo'
import eqixrecruitthree from './eqixrecruitthree'
import eqixrecruitfour from './eqixrecruitfour'
import eqixrecruitfive from './eqixrecruitfive'
import eqixrecruitsix from './eqixrecruitsix'
import eqixrecruitseven from './eqixrecruitseven'
export default {
eqixrecruit,
eqixrecruittwo,
eqixrecruitthree,
eqixrecruitfour,
eqixrecruitfive,
eqixrecruitsix,
eqixrecruitseven
}
export default {
setEditData (data) {
this.pages[data['page']]['list'][data.index].value =
data['value']
if (data['editObj']) {
this.list[data.index] = data['editObj']
this.pages[data['page']]['list'][data.index] =
data['editObj']
}
},
cancelEditAction () {
this.currentIndex = ''
this.cancelEdit = true
}
}
<template>
<swiper :options="swiperOption"
:class="'glob-container'"
ref="mySwiper"
@someSwiperEvent="callback"
style="width:1080px;height:1920px;">
<swiper-slide style="transform: translate3d(0,0,0)"
class="ani"
v-for="(page, index) in pages"
:key="index"
@load="loaded(index)">
<component v-if="index == sliderActiveIndex"
:is="page.component"
:ref="'child'+index"
@hook:mounted="loaded(index)"
:schemaData="pages[index].schemaData"
:isEditMode="isEditMode"
:cancelEdit.sync="cancelEdit"
:page="index"
:activeIndex="sliderActiveIndex"></component>
</swiper-slide>
<!-- <swiper-slide>
<div class="container">I'm Slide 2</div>
</swiper-slide>
<swiper-slide>
<div class="container">I'm Slide 3</div>
</swiper-slide>-->
</swiper>
</template>
<script>
import mixin from './mixin'
import 'swiper/dist/css/swiper.css'
import { getQuery } from '@/framework/utils'
import { swiper, swiperSlide } from 'vue-awesome-swiper'
import { getFilmDetail } from '@/framework/templateApi/index'
import requireAllPage from './pages/index.js'
import Message from '@/framework/tempalteMessage'
import Scene from '@/framework/utils/sence'
import { setTimeout, clearTimeout } from 'timers'
import './style/eqixxdky.scss'
export default {
name: 'page',
mixins: [mixin],
components: {
swiper,
swiperSlide,
...requireAllPage
},
computed: {
swiper () {
return this.$refs.mySwiper.swiper
}
},
data () {
return {
swiperOption: {
// some swiper options/callbacks
// 所有的参数同 swiper 官方 api 参数
// ...
}
}
},
methods: {
message (data) {
Message.send(data, '*')
},
loaded (index) {
this.$refs['child' + this.sliderActiveIndex][0].enter()
},
edit (index) {
if (getQuery('isEdit')) {
this.currentIndex = index
var item = this.list[index]
this.message(
{
type: 'edit',
item,
index
},
'*'
)
}
},
getList () {
this.message(
{
type: 'getList',
pages: this.pages
},
'*'
)
}
},
beforeDestroy () {},
mounted () {
/* Scene.EventBus.on("leaveBefore", e => {
console.log("leaveBefore");
this.$refs["child" + this.sliderActiveIndex][0].leave().then(() => {
console.log("leaveBefore then");
var index = this.sliderActiveIndex;
if (index >= this.pages.length - 1) {
index = -1;
console.log(index);
}
this.swiper.slideTo(index + 1, 1000, false);
});
});*/
// this.$refs['child'][0].enter().then(() => {
// })
},
created () {
var vm = this
Message.init(e => {
var isObj = typeof e.data === 'object'
if (isObj && e.data['type'] == 'setData') {
vm.setEditData(e.data)
}
if (isObj && e.data['type'] == 'cancelEdit') {
vm.cancelEditAction()
}
if (isObj && e.data['type'] == 'edit') {
vm.currentIndex = e.data.index
}
if (isObj && e.data['type'] == 'setList') {
// vm.list = JSON.parse(JSON.stringify(e.data.list))
this.setAllData(e.data)
}
if (isObj && e.data['type'] == 'getList') {
vm.getAllData()
}
if (isObj && e.data['type'] == 'goPage') {
vm.swiper.slideTo(parseInt(e.data.index), 500, false)
}
})
this.swiperOption = {
effect: 'fade',
observer: true,
/* 将observe应用于Swiper的父元素。
当Swiper的父元素变化时,例如window.resize,Swiper更新。 */
observerParents: true,
allowTouchMove: !getQuery('isEdit'),
/* slidesPerView: 1,
autoplay: !getQuery("isEdit")
? {
delay: 10000
}
: false, */
loop: false,
on: {
init () {
if (!vm.isEditMode) {
// swiperAnimateCache(this); // 隐藏动画元素
// swiperAnimate(this); // 初始化完成开始动画
}
},
slideChange () {
vm.sliderActiveIndex = this.realIndex
if (vm.isEditMode) {
// $(".ani").css("visibility", "");
}
},
slideChangeTransitionEnd () {
if (!vm.isEditMode) {
// swiperAnimate(this);
}
}
}
}
if (getQuery('isEdit')) {
this.isEditMode = true
} else {
this.isEditMode = false
}
if (getQuery('filmId') && !this.isEditMode) {
getFilmDetail(getQuery('filmId')).then(result => {
console.log(result)
vm.pages = JSON.parse(result.data.filmData).pageList
vm.filmId = result.filmId
})
} else {
if (getQuery('isPreview')) {
} else {
// vm.getDefaulted();
}
}
},
data () {
return {
date: '',
img: '',
currentIndex: '',
isEditMode: true,
cancelEdit: false,
sliderActiveIndex: 0
}
}
}
</script>
<style lang="scss" scoped>
.glob-container {
// background-color: red;
// filter: url("#goo");
}
</style>
<style>
.swiper-slide {
/* width: 100% !important; */
}
</style>
export default [{
type: 'image',
name: '图片一',
description: '公司的LOGO',
dataKey: 'logo',
valueRule: ''
},
{
type: 'text',
name: '类型一',
description: '类型一',
dataKey: 'eqixxdkytxt1',
valueRule: ''
},
{
type: 'text',
name: '类型二',
description: '类型二',
dataKey: 'eqixxdkytxt2',
valueRule: ''
},
{
type: 'text',
name: '类型三',
description: '类型三',
dataKey: 'eqixxdkytxt3',
valueRule: ''
},
{
type: 'text',
name: '营业时间',
description: '营业时间',
dataKey: 'businessHours',
valueRule: ''
},
{
type: 'text',
name: '地点',
description: '地点',
dataKey: 'place',
valueRule: ''
}
]
\ No newline at end of file
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixrecruit5head',
valueRule: ''
},
{
type: 'text',
name: '工作环境英文',
description: '工作环境英文',
dataKey: 'eqixrecruit5head2',
valueRule: ''
},
{
type: 'image',
name: '图片一',
description: '图片一',
dataKey: 'eqixrecruit5img',
valueRule: ''
},
{
type: 'image',
name: '图片二',
description: '图片二',
dataKey: 'eqixrecruit5img2',
valueRule: ''
},
{
type: 'image',
name: '图片三',
description: '图片三',
dataKey: 'eqixrecruit5img3',
valueRule: ''
},
{
type: 'image',
name: '图片四',
description: '图片四',
dataKey: 'eqixrecruit5img4',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixrecruit4head',
valueRule: ''
},
{
type: 'image',
name: '公司logo',
description: '公司logo',
dataKey: 'eqixrecruit4img',
valueRule: ''
},
{
type: 'text',
name: '福利待遇英文',
description: '福利待遇英文',
dataKey: 'eqixrecruit4head2',
valueRule: ''
},
{
type: 'text',
name: '标题一',
description: '标题一',
dataKey: 'eqixrecruit4head3',
valueRule: ''
},
{
type: 'text',
name: '内容一',
description: '内容一',
dataKey: 'eqixrecruit4txt',
valueRule: ''
},
{
type: 'text',
name: '内容二',
description: '内容二',
dataKey: 'eqixrecruit4txt2',
valueRule: ''
},
{
type: 'text',
name: '内容三',
description: '内容三',
dataKey: 'eqixrecruit4txt3',
valueRule: ''
},
{
type: 'text',
name: '内容四',
description: '内容四',
dataKey: 'eqixrecruit4txt4',
valueRule: ''
},
{
type: 'text',
name: '内容五',
description: '内容五',
dataKey: 'eqixrecruit4txt5',
valueRule: ''
},
{
type: 'text',
name: '内容六',
description: '内容六',
dataKey: 'eqixrecruit4txt6',
valueRule: ''
},
{
type: 'text',
name: '内容七',
description: '内容七',
dataKey: 'eqixrecruit4txt7',
valueRule: ''
},
{
type: 'text',
name: '内容八',
description: '内容八',
dataKey: 'eqixrecruit4txt8',
valueRule: ''
},
{
type: 'text',
name: '内容九',
description: '内容九',
dataKey: 'eqixrecruit4txt9',
valueRule: ''
},
{
type: 'text',
name: '内容十',
description: '内容十',
dataKey: 'eqixrecruit4txt10',
valueRule: ''
},
{
type: 'text',
name: '内容十一',
description: '内容十一',
dataKey: 'eqixrecruit4txt11',
valueRule: ''
},
{
type: 'text',
name: '内容十二',
description: '内容十二',
dataKey: 'eqixrecruit4txt12',
valueRule: ''
},
{
type: 'text',
name: '内容十三',
description: '内容十三',
dataKey: 'eqixrecruit4txt13',
valueRule: ''
},
{
type: 'text',
name: '内容十四',
description: '内容十四',
dataKey: 'eqixrecruit4txt14',
valueRule: ''
},
{
type: 'text',
name: '内容十五',
description: '内容十五',
dataKey: 'eqixrecruit4txt15',
valueRule: ''
},
{
type: 'text',
name: '内容十六',
description: '内容十六',
dataKey: 'eqixrecruit4txt16',
valueRule: ''
},
{
type: 'text',
name: '标题二',
description: '标题二',
dataKey: 'eqixrecruit4head4',
valueRule: ''
},
{
type: 'text',
name: '标题三',
description: '标题三',
dataKey: 'eqixrecruit4head5',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixrecruit7head',
valueRule: ''
},
{
type: 'text',
name: '职位详情英文',
description: '职位详情英文',
dataKey: 'eqixrecruit7head2',
valueRule: ''
},
{
type: 'text',
name: '标题一',
description: '标题一',
dataKey: 'eqixrecruit7head3',
valueRule: ''
},
{
type: 'text',
name: '内容一',
description: '内容一',
dataKey: 'eqixrecruit7txt',
valueRule: ''
},
{
type: 'text',
name: '内容二',
description: '内容二',
dataKey: 'eqixrecruit7txt2',
valueRule: ''
},
{
type: 'text',
name: '内容三',
description: '内容三',
dataKey: 'eqixrecruit7txt3',
valueRule: ''
},
{
type: 'text',
name: '标题二',
description: '标题二',
dataKey: 'eqixrecruit7head4',
valueRule: ''
},
{
type: 'text',
name: '标题三',
description: '标题三',
dataKey: 'eqixrecruit7head5',
valueRule: ''
},
{
type: 'text',
name: '内容四',
description: '内容四',
dataKey: 'eqixrecruit7txt4',
valueRule: ''
},
{
type: 'text',
name: '内容五',
description: '内容五',
dataKey: 'eqixrecruit7txt5',
valueRule: ''
},
{
type: 'text',
name: '内容六',
description: '内容六',
dataKey: 'eqixrecruit7txt6',
valueRule: ''
},
{
type: 'text',
name: '内容七',
description: '内容七',
dataKey: 'eqixrecruit7txt7',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixrecruit6head',
valueRule: ''
},
{
type: 'text',
name: '招聘职位英文',
description: '招聘职位英文',
dataKey: 'eqixrecruit6head2',
valueRule: ''
},
{
type: 'text',
name: '标题一',
description: '标题一',
dataKey: 'eqixrecruit6head3',
valueRule: ''
},
{
type: 'text',
name: '内容一',
description: '内容一',
dataKey: 'eqixrecruit6head4',
valueRule: ''
},
{
type: 'text',
name: '内容二',
description: '内容二',
dataKey: 'eqixrecruit6head5',
valueRule: ''
},
{
type: 'text',
name: '内容三',
description: '内容三',
dataKey: 'eqixrecruit6head6',
valueRule: ''
},
{
type: 'text',
name: '内容四',
description: '内容四',
dataKey: 'eqixrecruit6head7',
valueRule: ''
},
{
type: 'text',
name: '内容五',
description: '内容五',
dataKey: 'eqixrecruit6head8',
valueRule: ''
},
{
type: 'text',
name: '内容六',
description: '内容六',
dataKey: 'eqixrecruit6head9',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixrecruit3head',
valueRule: ''
},
{
type: 'text',
name: '英文标题',
description: '英文标题',
dataKey: 'eqixrecruit3head2',
valueRule: ''
},
{
type: 'image',
name: '公司历程动图',
description: '公司历程动图',
dataKey: 'eqixrecruit3img',
valueRule: ''
},
{
type: 'text',
name: '标题一',
description: '标题一',
dataKey: 'eqixrecruit3head3',
valueRule: ''
},
{
type: 'text',
name: '标题二',
description: '标题二',
dataKey: 'eqixrecruit3head4',
valueRule: ''
},
{
type: 'text',
name: '标题三',
description: '标题三',
dataKey: 'eqixrecruit3head5',
valueRule: ''
},
{
type: 'text',
name: '标题四',
description: '标题四',
dataKey: 'eqixrecruit3head6',
valueRule: ''
},
{
type: 'text',
name: '标题五',
description: '标题五',
dataKey: 'eqixrecruit3head7',
valueRule: ''
},
{
type: 'text',
name: '标题六',
description: '标题六',
dataKey: 'eqixrecruit3head8',
valueRule: ''
},
{
type: 'text',
name: '标题七',
description: '标题七',
dataKey: 'eqixrecruit3head9',
valueRule: ''
},
{
type: 'text',
name: '标题八',
description: '标题八',
dataKey: 'eqixrecruit3head10',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixrecruit2head',
valueRule: ''
},
{
type: 'text',
name: '英文标题',
valueRule: '',
description: '英文标题',
dataKey: 'eqixrecruit2head2'
},
{
type: 'image',
name: '公司图片',
description: '公司图片',
dataKey: 'eqixrecruit2img',
valueRule: ''
},
{
type: 'text',
name: '公司简介',
valueRule: '',
description: '公司简介',
dataKey: 'introduction'
}
]
import eqixrecruit from './eqixrecruit'
import eqixrecruittwo from './eqixrecruittwo'
import eqixrecruitthree from './eqixrecruitthree'
import eqixrecruitfour from './eqixrecruitfour'
import eqixrecruitfive from './eqixrecruitfive'
import eqixrecruitsix from './eqixrecruitsix'
import eqixrecruitseven from './eqixrecruitseven'
import schedule from './schedule'
export default {
eqixrecruit,
eqixrecruittwo,
eqixrecruitthree,
eqixrecruitfour,
eqixrecruitfive,
eqixrecruitsix,
eqixrecruitseven,
schedule
}
export default [
{
type: 'image',
name: '企业logo',
description: '请上传png格式企业logo',
dataKey: 'companyLogo',
valueRule: ''
},
{
type: 'text',
name: '企业名称',
description: '',
valueRule: '',
dataKey: 'companyName'
},
{
type: 'list',
name: '日程列表',
modelSchema: [ // 创建子项的Schema列表
{
content: {
type: 'text',
name: '内容', // 字段名称
description: '请输入内容' // 用户填写时字段提示语
},
address: {
type: 'text',
name: '地点', // 字段名称
description: '请输入地点', // 用户填写时字段提示语
default: { // 默认
value: '会议室'
}
},
department: {
type: 'text',
name: '部门', // 字段名称
description: '请输入部门', // 用户填写时字段提示语
default: { // 默认
value: '总裁办'
}
},
time: {
type: 'text',
name: '时间', // 字段名称
description: '请输入时间', // 用户填写时字段提示语
default: { // 默认
value: '09:30 AM - 10:00 AM'
}
}
}
],
dataKey: 'scheduleList'
}
]
export function enter (callback) {
var countEnterTime = 0
var promiseAll = []
this.keyframes.map(item => {
var currentTime = item.enter.options.duration + item.enter.options.delay
countEnterTime =
countEnterTime < currentTime ? currentTime : countEnterTime
item.enterBefore &&
$.Velocity($(item.el), item.enterBefore.style, item.enterBefore.options)
if (!item.enter.options.loop) {
promiseAll.push(
$.Velocity($(item.el), item.enter.style, item.enter.options)
)
} else {
$.Velocity($(item.el), item.enter.style, item.enter.options)
}
})
// callback && callback(countEnterTime)
this.enterAfter()
return Promise.all(promiseAll)
}
export function leave (callback) {
var promiseAll = []
this.keyframes.map(item => {
item.leave && promiseAll.push($.Velocity($(item.el), 'reverse', {
duration: 1500
}))
})
return Promise.all(promiseAll)
}
export default {
created () {
// console.log(this.schemaData)
window.addEventListener(
'message',
(e) => {
if (e.source != window.parent) return
if (typeof e.data === 'object' && e.data['type'] === 'editPage') {
if (this.page === e.data['page']) {
this.currentIndex = e.data['index']
}
}
},
false
)
},
watch: {
cancelEdit (value) {
console.log('cancels')
if (value === true) {
this.currentIndex = ''
this.$emit('update:cancelEdit', false)
}
}
},
methods: {
message (data) {
parent.postMessage(data, '*')
},
edit (index) {
if (getQuery('isEdit')) {
this.currentIndex = index
var item = this.list[index]
console.log(this.currentIndex)
this.message(
{
type: 'edit',
item,
index,
page: this.page
},
'*'
)
}
},
getList () {
this.message(
{
type: 'getList',
list: this.list
},
'*'
)
},
getValue (dataKey) {
return this.schemaData[dataKey] ? this.schemaData[dataKey]['value'] : ''
},
getStyle (index) {
return this.list[index] ? this.list[index]['style'] : ''
},
isEdited (index) {
return this.isEditMode && this.currentIndex === index ? 'isEdited' : ''
},
isEdit (index) {
return this.isEditMode ? 'isEdit' : ''
},
isAnimeted (index) {
return this.isEditMode ? '' : 'animated'
},
timeFormate (timeStamp) {
let dateString = ''
let year = new Date(timeStamp).getFullYear()
let month =
new Date(timeStamp).getMonth() + 1 < 10
? '0' + (new Date(timeStamp).getMonth() + 1)
: new Date(timeStamp).getMonth() + 1
let date =
new Date(timeStamp).getDate() < 10
? '0' + new Date(timeStamp).getDate()
: new Date(timeStamp).getDate()
let hh =
new Date(timeStamp).getHours() < 10
? '0' + new Date(timeStamp).getHours()
: new Date(timeStamp).getHours()
let mm =
new Date(timeStamp).getMinutes() < 10
? '0' + new Date(timeStamp).getMinutes()
: new Date(timeStamp).getMinutes()
// let ss =new Date(timeStamp).getSeconds() < 10? "0" + new Date(timeStamp).getSeconds(): new Date(timeStamp).getSeconds();
// return year + "年" + month + "月" + date +"日"+" "+hh+":"+mm + "" + " " + hh + ":" + mm; ;
dateString = year + '.' + month + '.' + date
return dateString
// console.log(this.nowTime);
}
}
}
import data from './schemaData.js'
import editMethod from './editMethod.js'
import requireIcons from '@/icons/requireIcons'
/*console.log(JSON.stringify(data))*/
export default {
data: function () {
return {
pages: data.pageList,
sceneData: data.sceneData
}
},
methods: {
callback () {
console.log('callback')
},
getDefaulted () {
this.pages = this.pages.map(function (item) {
item.list.map(ele => {
return (ele = Object.assign(ele, ele.default))
})
return item
// (item = Object.assign(item, item.default));
})
},
getAllData () {
this.message(
{
type: 'getList',
pages: this.pages
},
'*'
)
},
setAllData (data) {
this.pages = data.pages
},
...editMethod
},
mounted () {
function setZoom () {
var unit = 1920
var unit2 = 1080
var width = window.innerWidth
var height = window.innerHeight
var zoom = height / 1920
if (width / height <= 9 / 16) {
zoom = width / 1080
}
if (width / height >= 9 / 16) {
zoom = height / 1920
}
var container = document.querySelectorAll('.container')
for (let index = 0; index < container.length; index++) {
// container[index].style.transform = `scale(${zoom})`;
}
// console.log(zoom);
document.querySelector(
'.swiper-container'
).style.transform = `scale(${zoom})`
}
setZoom()
addEventListener('resize', setZoom, false)
},
created: function () {
console.log('我是mixin 的crteated')
}
}
const req = require.context('', false, /\.vue$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
const pages = requireAll(req)
const re = /\.\/(.*)\.vue/
// console.log(req.keys(), 'requireContext')
const pagesObj = {}
pages.map((item, index) => {
// console.log(req.keys()[index].match(re)[1])
pagesObj[req.keys()[index].match(re)[1]] = item.default
return item
})
export default pagesObj
export default {
schemaData: {},
itemList: []
}
import defaultData from './defaultData'
import itemList from './itemList'
import templateInfo from './templateInfo'
export default {
templateInfo,
// defaultData,
pageList: [
{
name: '易企秀1',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailone.jpg',
component: 'eqixrecruit',
defaultData: defaultData.retail,
schemaData: defaultData.eqixrecruit,
itemList: itemList.eqixrecruit
},
{
name: '易企秀2',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixrecruittwo',
defaultData: defaultData.retail,
schemaData: defaultData.eqixrecruittwo,
itemList: itemList.eqixrecruittwo
},
{
name: '易企秀3',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixrecruitthree',
defaultData: defaultData.retail,
schemaData: defaultData.eqixrecruitthree,
itemList: itemList.eqixrecruitthree
},
{
name: '易企秀4',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixrecruitfour',
defaultData: defaultData.retail,
schemaData: defaultData.eqixrecruitfour,
itemList: itemList.eqixrecruitfour
},
{
name: '易企秀5',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixrecruitfive',
defaultData: defaultData.retail,
schemaData: defaultData.eqixrecruitfive,
itemList: itemList.eqixrecruitfive
},
{
name: '易企秀6',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixrecruitsix',
defaultData: defaultData.retail,
schemaData: defaultData.eqixrecruitsix,
itemList: itemList.eqixrecruitsix
},
{
name: '易企秀7',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixrecruitseven',
defaultData: defaultData.retail,
schemaData: defaultData.eqixrecruitseven,
itemList: itemList.eqixrecruitseven
}
]
}
This source diff could not be displayed because it is too large. You can view the blob instead.
export default {
name: '企业文化模板'
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment