Commit c15031ab by hank

文件更换

parent 7ab960e3
...@@ -59,7 +59,7 @@ module.exports = { ...@@ -59,7 +59,7 @@ module.exports = {
productionSourceMap: false, productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production // https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map', devtool: '#source-map',
inlineSource: false, inlineSource: true,
// Gzip off by default as many popular static hosts such as // Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you. // Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to: // Before setting to `true`, make sure to:
......
<template> <template>
<div id="app"> <div id="app">
<page /> <page />
</div> </div>
</template> </template>
<script> <script>
/* import page from './templates/helloworld/index' */ import page from "./templates/companyCulture/index";
import page from './templates/retail/index' // import page from "./templates/retail/index";
// import page from './templates/listingInformation/index' // import page from './templates/listingInformation/index'
window.getQuery = function (key) { window.getQuery = function(key) {
var url = location.search // 获取url中"?"符后的字串 var url = location.search; // 获取url中"?"符后的字串
var theRequest = new Object() var theRequest = new Object();
if (url.indexOf('?') != -1) { if (url.indexOf("?") != -1) {
var str = url.substr(1) var str = url.substr(1);
var strs = str.split('&') var strs = str.split("&");
for (var i = 0; i < strs.length; i++) { for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1]) theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
} }
} }
if (key) { if (key) {
return theRequest[key] === 'undefined' || theRequest[key] == '0' return theRequest[key] === "undefined" || theRequest[key] == "0"
? '' ? ""
: theRequest[key] : theRequest[key];
} else { } else {
return theRequest return theRequest;
} }
} };
export default { export default {
name: 'App', name: "App",
data () { data() {
return {} return {};
}, },
components: { components: {
page: page page: page
} }
} };
</script> </script>
<style> <style>
...@@ -45,9 +45,10 @@ export default { ...@@ -45,9 +45,10 @@ export default {
html { html {
font-size: 14px !important; font-size: 14px !important;
} }
html,body{ html,
width: 100%; body {
height: 100%; width: 100%;
height: 100%;
} }
#app { #app {
/* min-height: 100vh; */ /* min-height: 100vh; */
......
...@@ -3,14 +3,14 @@ export default [ ...@@ -3,14 +3,14 @@ export default [
type: 'image', type: 'image',
name: '背景图片', name: '背景图片',
description: '请上传背景图片', description: '请上传背景图片',
dataKey: 'bacground', dataKey: 'background',
valueRule: '' valueRule: ''
}, },
{ {
type: 'text', type: 'text',
name: '商品名称', name: '商品名称',
description: '请上传背景图片', description: '请输入商品名称',
dataKey: 'bacground', dataKey: 'bean',
valueRule: '' valueRule: ''
} }
] ]
export default [ export default [
{ {
type: 'image', type: 'image',
name: '企业logo', name: '二维码',
description: '请上传png格式企业logo', description: '上传二维码',
dataKey: 'companyLogo', dataKey: 'code',
valueRule: '' valueRule: ''
}, },
{ {
type: 'text', type: 'text',
name: '企业名称', name: '标题一',
description: '', description: '不超过4个字',
valueRule: '', valueRule: '',
dataKey: 'companyName' dataKey: 'saoma'
}, },
{ {
type: 'list', type: 'text',
name: '日程列表', name: '标题二',
modelSchema: [ // 创建子项的Schema列表 description: '不超过6个字',
{ valueRule: 'saoma',
content: { dataKey: 'saoyisao'
type: 'text', },
name: '内容', // 字段名称 {
description: '请输入内容' // 用户填写时字段提示语 type: 'text',
}, name: '标题三',
address: { description: '不超过8个字',
type: 'text', valueRule: '',
name: '地点', // 字段名称 dataKey: 'tips'
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'
} }
] ]
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