Commit 1248b2f9 by zhangmeng

易企秀新店开业

parent 215f0b46
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 {
eqixxdky5head: {
value: "咖啡饮料"
},
eqixxdky5img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/fivefoodleft.jpg"
},
eqixxdky5img2: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/fivefoodmidleft.jpg"
},
eqixxdky5img3: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/fivefoodmidright.jpg"
},
eqixxdky5img4: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/fivefoodright.jpg"
},
eqixxdkyname: {
value: "绝世咖啡"
},
eqixxdkyname2: {
value: "摩卡咖啡"
},
eqixxdkyname3: {
value: "卡布奇诺"
},
eqixxdkyname4: {
value: "焦糖拿铁"
},
eqixxdkyname5: {
value: "玫瑰夫人"
},
eqixxdkynameprice: {
value: "15元"
},
eqixxdkynameprice2: {
value: "15元"
},
eqixxdkynameprice3: {
value: "15元"
},
eqixxdkynameprice4: {
value: "15元"
},
eqixxdkynameprice5: {
value: "15元"
},
eqixxdkyjuicename: {
value: "西瓜汁"
},
eqixxdkyjuicename2: {
value: "草莓汁"
},
eqixxdkyjuicename3: {
value: "蓝莓汁"
},
eqixxdkyjuicename4: {
value: "果汁"
},
eqixxdkyjuicename5: {
value: "橙汁"
},
eqixxdkyjuicenameprice: {
value: "15元"
},
eqixxdkyjuicenameprice2: {
value: "15元"
},
eqixxdkyjuicenameprice3: {
value: "15元"
},
eqixxdkyjuicenameprice4: {
value: "15元"
},
eqixxdkyjuicenameprice5: {
value: "15元"
},
place:{
value:"北京市海淀区东北旺西路58号院尚科社区"
}
}
\ No newline at end of file
export default {
eqixxdky4head: {
value: "店长推荐"
},
eqixxdky4img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/fourfoodtop.jpg"
},
eqixxdky4img2: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/fourfoodbottom.jpg"
},
eqixxdky4text1: {
value: "创意蔬菜蛋糕"
},
eqixxdky4text2: {
value: "重芝士樱桃蛋糕"
},
eqixxdky4text3: {
value: "采用当天蔬菜,美味,甜度适中,适合小朋友"
},
eqixxdky4text4:{
value:"采用上号材料,顶级樱桃,美味,甜度适中"
},
price1:{
value:"特价:¥99"
},
price2:{
value:"特价:¥99"
},
place:{
value:"北京市海淀区东北旺西路58号院尚科社区"
}
}
\ No newline at end of file
export default {
eqixxdky6head: {
value: "甜点类"
},
eqixxdky6img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/sixfoodtop.jpg"
},
eqixxdky6img2: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/sixfoodmidtop.jpg"
},
eqixxdky6img3: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/sixfoodmidbot.jpg"
},
eqixxdky6img4: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/sixfoodbottom.jpg"
},
eqixxdky6head2: {
value: "松饼"
},
eqixxdky6head3: {
value: "蓝莓派"
},
eqixxdky6head4: {
value: "炸牛奶"
},
eqixxdky6head5: {
value: "马卡龙"
},
eqixxdky6head6: {
value: "红豆派"
},
eqixxdky6head7: {
value: "牛奶布丁"
},
eqixxdky6head8: {
value: "脆皮蛋糕"
},
eqixxdky6pricehead2: {
value: "15元"
},
eqixxdky6pricehead3: {
value: "15元"
},
eqixxdky6pricehead4: {
value: "15元"
},
eqixxdky6pricehead5: {
value: "15元"
},
eqixxdky6pricehead6: {
value: "15元"
},
eqixxdky6pricehead7: {
value: "15元"
},
eqixxdky6pricehead8: {
value: "15元"
},
place:{
value:"北京市海淀区东北旺西路58号院尚科社区"
}
}
\ No newline at end of file
export default {
eqixxdky10head: {
value: "店铺介绍"
},
code: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/tencode.jpg"
},
eqixxdky10head2: {
value: "☞点击获取更多相关模板☜"
},
eqixxdky10head3: {
value: "缪斯冥想"
},
eqixxdky10head4: {
value: "场景文字图片以及音乐均可替换"
},
eqixxdky10head5: {
value: "每一页都可复制删除(使用时请提前复制备份)"
},
weixin: {
value: "QQ/微信:820443723"
},
phone: {
value: "电话:17345785203"
},
eqixxdky10head6: {
value: "有任何问题请及时联系(添加时请备注一起秀)"
},
place: {
value: "北京市海淀区东北旺西路58号院尚科社区"
}
}
\ No newline at end of file
export default {
eqixxdky3head: {
value: "店铺环境"
},
eqixxdky3img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/threefoodleft.jpg"
},
eqixxdky3img2: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/threethinkright.jpg"
},
eqixxdky3img3: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/threeroomright.jpg"
},
eqixxdky3img4: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/threeroombottom.jpg"
},
place: {
value: "北京市海淀区东北旺西路58号院尚科社区"
}
}
\ No newline at end of file
export default {
eqixxdky2head: {
value: "店铺介绍"
},
eqixxdky2img: {
value: "https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/eqixxdky/foodtwo.jpg"
},
eqixxdky2head2: {
value: "缪斯冥想是一家法式下午茶,环境高雅大气,招牌菜众多,美味的鹅肝、高级的牛排、出众的巧克力挞,服务员善于搭配任意美食、讲解美食的名字与吃法。无论菜肴品相,或者口味,都有独特之处。在此用餐,象征了一种高档的与时尚的格调"
},
place: {
value: "北京市海淀区东北旺西路58号院尚科社区"
}
}
\ No newline at end of file
import eqixxdky from './eqixxdky'
import eqixxdkytwo from './eqixxdkytwo'
import eqixxdkythree from './eqixxdkythree'
import eqixxdkyfour from './eqixxdkyfour'
import eqixxdkyfive from './eqixxdkyfive'
import eqixxdkysix from './eqixxdkysix'
import eqixxdkyten from './eqixxdkyten'
export default {
eqixxdky,
eqixxdkytwo,
eqixxdkythree,
eqixxdkyfour,
eqixxdkyfive,
eqixxdkysix,
eqixxdkyten,
}
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: 'eqixxdky5head',
valueRule: ''
},
{
type: 'image',
name: '饮品图片一',
description: '饮品图片一',
dataKey: 'eqixxdky5img',
valueRule: ''
},
{
type: 'image',
name: '饮品图片二',
description: '饮品图片二',
dataKey: 'eqixxdky5img2',
valueRule: ''
},
{
type: 'image',
name: '饮品图片三',
description: '饮品图片三',
dataKey: 'eqixxdky5img3',
valueRule: ''
},
{
type: 'image',
name: '饮品图片四',
description: '饮品图片四',
dataKey: 'eqixxdky5img4',
valueRule: ''
},
{
type: 'text',
name: '咖啡一',
description: '咖啡一',
dataKey: 'eqixxdkyname',
valueRule: ''
},
{
type: 'text',
name: '咖啡一价格',
description: '咖啡一价格',
dataKey: 'eqixxdkynameprice',
valueRule: ''
},
{
type: 'text',
name: '咖啡二',
description: '咖啡二',
dataKey: 'eqixxdkyname2',
valueRule: ''
},
{
type: 'text',
name: '咖啡二价格',
description: '咖啡二价格',
dataKey: 'eqixxdkynameprice2',
valueRule: ''
},
{
type: 'text',
name: '咖啡三',
description: '咖啡三',
dataKey: 'eqixxdkyname3',
valueRule: ''
},
{
type: 'text',
name: '咖啡三价格',
description: '咖啡三价格',
dataKey: 'eqixxdkynameprice3',
valueRule: ''
},
{
type: 'text',
name: '咖啡四',
description: '咖啡四',
dataKey: 'eqixxdkyname4',
valueRule: ''
},
{
type: 'text',
name: '咖啡四价格',
description: '咖啡四价格',
dataKey: 'eqixxdkynameprice4',
valueRule: ''
},
{
type: 'text',
name: '咖啡五',
description: '咖啡五',
dataKey: 'eqixxdkyname5',
valueRule: ''
},
{
type: 'text',
name: '咖啡五价格',
description: '咖啡五价格',
dataKey: 'eqixxdkynameprice4',
valueRule: ''
},
{
type: 'text',
name: '果汁一',
description: '果汁一',
dataKey: 'eqixxdkyjuicename',
valueRule: ''
},
{
type: 'text',
name: '果汁一价格',
description: '果汁一价格',
dataKey: 'eqixxdkyjuicenameprice',
valueRule: ''
},
{
type: 'text',
name: '果汁二',
description: '果汁二',
dataKey: 'eqixxdkyjuicename2',
valueRule: ''
},
{
type: 'text',
name: '果汁二价格',
description: '果汁二价格',
dataKey: 'eqixxdkyjuicenameprice2',
valueRule: ''
},
{
type: 'text',
name: '果汁三',
description: '果汁三',
dataKey: 'eqixxdkyjuicename3',
valueRule: ''
},
{
type: 'text',
name: '果汁三价格',
description: '果汁三价格',
dataKey: 'eqixxdkyjuicenameprice3',
valueRule: ''
},
{
type: 'text',
name: '果汁四',
description: '果汁四',
dataKey: 'eqixxdkyjuicename4',
valueRule: ''
},
{
type: 'text',
name: '果汁四价格',
description: '果汁四价格',
dataKey: 'eqixxdkyjuicenameprice4',
valueRule: ''
},
{
type: 'text',
name: '果汁五',
description: '果汁五',
dataKey: 'eqixxdkyjuicename5',
valueRule: ''
},
{
type: 'text',
name: '果汁五价格',
description: '果汁五价格',
dataKey: 'eqixxdkyjuicenameprice4',
valueRule: ''
},
{
type: 'text',
name: '地点',
description: '地点',
dataKey: 'place',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixxdky4head',
valueRule: ''
},
{
type: 'image',
name: '推荐美食图片一',
description: '推荐美食图片一',
dataKey: 'eqixxdky4img',
valueRule: ''
},
{
type: 'text',
name: '美食标题一',
description: '美食标题一',
dataKey: 'eqixxdky4text1',
valueRule: ''
},
{
type: 'text',
name: '美食一简介',
description: '美食一简介',
dataKey: 'eqixxdky4text3',
valueRule: ''
},
{
type: 'text',
name: '美食一价格',
description: '美食一价格',
dataKey: 'price1',
valueRule: ''
},
{
type: 'image',
name: '推荐美食图片二',
description: '推荐美食图片二',
dataKey: 'eqixxdky4img2',
valueRule: ''
},
{
type: 'text',
name: '美食标题二',
description: '美食标题二',
dataKey: 'eqixxdky4text2',
valueRule: ''
},
{
type: 'text',
name: '美食二简介',
description: '美食二简介',
dataKey: 'eqixxdky4text4',
valueRule: ''
},
{
type: 'text',
name: '美食二价格',
description: '美食二价格',
dataKey: 'price2',
valueRule: ''
},
{
type: 'text',
name: '地点',
description: '地点',
dataKey: 'place',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixxdky6head',
valueRule: ''
},
{
type: 'image',
name: '甜点图片一',
description: '甜点图片一',
dataKey: 'eqixxdky6img',
valueRule: ''
},
{
type: 'image',
name: '甜点图片二',
description: '甜点图片二',
dataKey: 'eqixxdky6img2',
valueRule: ''
},
{
type: 'image',
name: '甜点图片三',
description: '甜点图片三',
dataKey: 'eqixxdky6img3',
valueRule: ''
},
{
type: 'image',
name: '甜点图片四',
description: '甜点图片四',
dataKey: 'eqixxdky6img4',
valueRule: ''
},
{
type: 'text',
name: '甜点名称一',
description: '甜点名称一',
dataKey: 'eqixxdky6head2',
valueRule: ''
},
{
type: 'text',
name: '甜点名称二',
description: '甜点名称二',
dataKey: 'eqixxdky6head3',
valueRule: ''
},
{
type: 'text',
name: '甜点名称三',
description: '甜点名称三',
dataKey: 'eqixxdky6head4',
valueRule: ''
},
{
type: 'text',
name: '甜点名称四',
description: '甜点名称四',
dataKey: 'eqixxdky6head5',
valueRule: ''
},
{
type: 'text',
name: '甜点名称五',
description: '甜点名称五',
dataKey: 'eqixxdky6head6',
valueRule: ''
},
{
type: 'text',
name: '甜点名称六',
description: '甜点名称六',
dataKey: 'eqixxdky6head7',
valueRule: ''
},
{
type: 'text',
name: '甜点名称七',
description: '甜点名称七',
dataKey: 'eqixxdky6head8',
valueRule: ''
},
{
type: 'text',
name: '甜点价格一',
description: '甜点价格一',
dataKey: 'eqixxdky6pricehead2',
valueRule: ''
},
{
type: 'text',
name: '甜点价格二',
description: '甜点价格二',
dataKey: 'eqixxdky6pricehead3',
valueRule: ''
},
{
type: 'text',
name: '甜点价格三',
description: '甜点价格三',
dataKey: 'eqixxdky6pricehead4',
valueRule: ''
},
{
type: 'text',
name: '甜点价格四',
description: '甜点价格四',
dataKey: 'eqixxdky6pricehead5',
valueRule: ''
},
{
type: 'text',
name: '甜点价格五',
description: '甜点价格五',
dataKey: 'eqixxdky6pricehead6',
valueRule: ''
},
{
type: 'text',
name: '甜点价格六',
description: '甜点价格六',
dataKey: 'eqixxdky6pricehead7',
valueRule: ''
},
{
type: 'text',
name: '甜点价格七',
description: '甜点价格七',
dataKey: 'eqixxdky6pricehead8',
valueRule: ''
},
{
type: 'text',
name: '地点',
description: '地点',
dataKey: 'place',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixxdky10head',
valueRule: ''
},
{
type: 'image',
name: '二维码',
description: '二维码',
dataKey: 'code',
valueRule: ''
},
{
type: 'text',
name: '标题一',
description: '标题一',
dataKey: 'eqixxdky10head2',
valueRule: ''
},
{
type: 'text',
name: '标题二',
description: '标题二',
dataKey: 'eqixxdky10head3',
valueRule: ''
},
{
type: 'text',
name: '标题三',
description: '标题三',
dataKey: 'eqixxdky10head4',
valueRule: ''
},
{
type: 'text',
name: '标题四',
description: '标题四',
dataKey: 'eqixone10head5',
valueRule: ''
},
{
type: 'text',
name: '微信',
description: '微信',
dataKey: 'weixin',
valueRule: ''
},
{
type: 'text',
name: '电话',
description: '电话',
dataKey: 'phone',
valueRule: ''
},
{
type: 'text',
name: '标题五',
description: '标题五',
dataKey: 'eqixone10head6',
valueRule: ''
},
{
type: 'text',
name: '地点',
description: '地点',
dataKey: 'place',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixxdky3head',
valueRule: ''
},
{
type: 'image',
name: '店铺环境展示一',
description: '店铺环境展示一',
dataKey: 'eqixxdky3img',
valueRule: ''
},
{
type: 'image',
name: '店铺环境展示二',
description: '店铺环境展示二',
dataKey: 'eqixxdky3img2',
valueRule: ''
},
{
type: 'image',
name: '店铺环境展示三',
description: '店铺环境展示三',
dataKey: 'eqixxdky3img3',
valueRule: ''
},
{
type: 'image',
name: '店铺环境展示四',
description: '店铺环境展示四',
dataKey: 'eqixxdky3img4',
valueRule: ''
},
{
type: 'text',
name: '地点',
description: '地点',
dataKey: 'place',
valueRule: ''
}
]
export default [
{
type: 'text',
name: '头部',
description: '大标题',
dataKey: 'eqixxdky2head',
valueRule: ''
},
{
type: 'image',
name: '美食图片',
description: '美食图片',
dataKey: 'eqixxdky2img',
valueRule: ''
},
{
type: 'text',
name: '美食描述',
valueRule: '',
description: '美食描述',
dataKey: 'eqixxdky2head2'
},
{
type: 'text',
name: '地点',
valueRule: '',
description: '地点',
dataKey: 'place'
}
]
import eqixxdky from './eqixxdky'
import eqixxdkytwo from './eqixxdkytwo'
import eqixxdkythree from './eqixxdkythree'
import eqixxdkyfour from './eqixxdkyfour'
import eqixxdkyfive from './eqixxdkyfive'
import eqixxdkysix from './eqixxdkysix'
import eqixxdkyten from './eqixxdkyten'
import schedule from './schedule'
export default {
eqixxdky,
eqixxdkytwo,
eqixxdkythree,
eqixxdkyfour,
eqixxdkyfive,
eqixxdkysix,
eqixxdkyten,
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/eqixxdky/bg.PNG',
component: 'eqixxdky',
defaultData: defaultData.retail,
schemaData: defaultData.eqixxdky,
itemList: itemList.eqixxdky
},
{
name: '易企秀2',
thumb: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixxdkytwo',
defaultData: defaultData.retail,
schemaData: defaultData.eqixxdkytwo,
itemList: itemList.eqixxdkytwo
},
{
name: '易企秀3',
thumb: 'http://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixxdkythree',
defaultData: defaultData.retail,
schemaData: defaultData.eqixxdkythree,
itemList: itemList.eqixxdkythree
},
{
name: '易企秀4',
thumb: 'http://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixxdkyfour',
defaultData: defaultData.retail,
schemaData: defaultData.eqixxdkyfour,
itemList: itemList.eqixxdkyfour
},
{
name: '易企秀5',
thumb: 'http://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixxdkyfive',
defaultData: defaultData.retail,
schemaData: defaultData.eqixxdkyfive,
itemList: itemList.eqixxdkyfive
},
{
name: '易企秀6',
thumb: 'http://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixxdkysix',
defaultData: defaultData.retail,
schemaData: defaultData.eqixxdkysix,
itemList: itemList.eqixxdkysix
},
{
name: '易企秀10',
thumb: 'http://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retailtwo.jpg',
component: 'eqixxdkyten',
defaultData: defaultData.retail,
schemaData: defaultData.eqixxdkyten,
itemList: itemList.eqixxdkyten
}
]
}
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