Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c15031ab
authored
Sep 06, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件更换
parent
7ab960e3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
63 deletions
+39
-63
config/index.js
+1
-1
src/App.vue
+20
-19
src/templates/retail/itemList/retail2.js
+3
-3
src/templates/retail/itemList/retail3.js
+15
-40
No files found.
config/index.js
View file @
c15031ab
...
@@ -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
:
fals
e
,
inlineSource
:
tru
e
,
// 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:
...
...
src/App.vue
View file @
c15031ab
...
@@ -5,36 +5,36 @@
...
@@ -5,36 +5,36 @@
</
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,7 +45,8 @@ export default {
...
@@ -45,7 +45,8 @@ export default {
html
{
html
{
font-size
:
14px
!important
;
font-size
:
14px
!important
;
}
}
html
,
body
{
html
,
body
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
...
...
src/templates/retail/itemList/retail2.js
View file @
c15031ab
...
@@ -3,14 +3,14 @@ export default [
...
@@ -3,14 +3,14 @@ export default [
type
:
'image'
,
type
:
'image'
,
name
:
'背景图片'
,
name
:
'背景图片'
,
description
:
'请上传背景图片'
,
description
:
'请上传背景图片'
,
dataKey
:
'bacground'
,
dataKey
:
'bac
k
ground'
,
valueRule
:
''
valueRule
:
''
},
},
{
{
type
:
'text'
,
type
:
'text'
,
name
:
'商品名称'
,
name
:
'商品名称'
,
description
:
'请
上传背景图片
'
,
description
:
'请
输入商品名称
'
,
dataKey
:
'b
acground
'
,
dataKey
:
'b
ean
'
,
valueRule
:
''
valueRule
:
''
}
}
]
]
src/templates/retail/itemList/retail3.js
View file @
c15031ab
export
default
[
export
default
[
{
{
type
:
'image'
,
type
:
'image'
,
name
:
'
企业logo
'
,
name
:
'
二维码
'
,
description
:
'
请上传png格式企业logo
'
,
description
:
'
上传二维码
'
,
dataKey
:
'co
mpanyLogo
'
,
dataKey
:
'co
de
'
,
valueRule
:
''
valueRule
:
''
},
},
{
{
type
:
'text'
,
type
:
'text'
,
name
:
'
企业名称
'
,
name
:
'
标题一
'
,
description
:
''
,
description
:
'
不超过4个字
'
,
valueRule
:
''
,
valueRule
:
''
,
dataKey
:
'
companyName
'
dataKey
:
'
saoma
'
},
},
{
{
type
:
'list'
,
name
:
'日程列表'
,
modelSchema
:
[
// 创建子项的Schema列表
{
content
:
{
type
:
'text'
,
name
:
'内容'
,
// 字段名称
description
:
'请输入内容'
// 用户填写时字段提示语
},
address
:
{
type
:
'text'
,
name
:
'地点'
,
// 字段名称
description
:
'请输入地点'
,
// 用户填写时字段提示语
default
:
{
// 默认
value
:
'会议室'
}
},
department
:
{
type
:
'text'
,
type
:
'text'
,
name
:
'部门'
,
// 字段名称
name
:
'标题二'
,
description
:
'请输入部门'
,
// 用户填写时字段提示语
description
:
'不超过6个字'
,
default
:
{
// 默认
valueRule
:
'saoma'
,
value
:
'总裁办'
dataKey
:
'saoyisao'
}
},
},
time
:
{
{
type
:
'text'
,
type
:
'text'
,
name
:
'时间'
,
// 字段名称
name
:
'标题三'
,
description
:
'请输入时间'
,
// 用户填写时字段提示语
description
:
'不超过8个字'
,
default
:
{
// 默认
valueRule
:
''
,
value
:
'09:30 AM - 10:00 AM'
dataKey
:
'tips'
}
}
}
],
dataKey
:
'scheduleList'
}
}
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment