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
820482d5
authored
Aug 29, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
ee08ac4d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
10 deletions
+46
-10
src/templates/listingInformation/defaultData/index.js
+3
-0
src/templates/listingInformation/defaultData/readme.md
+2
-0
src/templates/listingInformation/index.vue
+7
-8
src/templates/listingInformation/itemList/readme.md
+27
-0
src/templates/listingInformation/mixin.js
+4
-2
src/templates/listingInformation/pages/readme.md
+3
-0
No files found.
src/templates/listingInformation/defaultData/index.js
View file @
820482d5
...
...
@@ -4,3 +4,6 @@ export default {
buyingHouse
,
rentHouse
}
/**
* 默认数据入口
*/
src/templates/listingInformation/defaultData/readme.md
0 → 100644
View file @
820482d5
## 默认数据入口
\ No newline at end of file
src/templates/listingInformation/index.vue
View file @
820482d5
...
...
@@ -98,6 +98,7 @@ export default {
}
},
message
(
data
)
{
// 发送消息
Message
.
send
(
data
,
"*"
);
},
edit
(
index
)
{
...
...
@@ -126,9 +127,6 @@ export default {
},
beforeDestroy
()
{},
mounted
()
{
$
(
".glob-container"
).
click
(
function
()
{
$
(
this
).
toggleClass
(
"visible"
);
});
},
created
()
{
if
(
getQuery
(
"isEdit"
))
{
...
...
@@ -189,19 +187,19 @@ export default {
on
:
{
init
()
{
if
(
!
vm
.
isEditMode
)
{
swiperAnimateCache
(
this
);
// 隐藏动画元素
swiperAnimate
(
this
);
// 初始化完成开始动画
// swiperAnimateCache(this); // 隐藏动画元素 todo
// swiperAnimate(this); // 初始化完成开始动画 todo
}
},
slideChange
()
{
vm
.
sliderActiveIndex
=
this
.
realIndex
;
if
(
vm
.
isEditMode
)
{
$
(
".ani"
).
css
(
"visibility"
,
""
);
//
$(".ani").css("visibility", "");
}
},
slideChangeTransitionEnd
()
{
if
(
!
vm
.
isEditMode
)
{
swiperAnimate
(
this
);
// swiperAnimate(this); // todo
}
}
}
...
...
@@ -209,7 +207,7 @@ export default {
if
(
getQuery
(
"filmId"
)
&&
!
this
.
isEditMode
)
{
getFilmDetail
(
getQuery
(
"filmId"
)).
then
(
result
=>
{
console
.
log
(
result
);
const
filmData
=
JSON
.
parse
(
result
.
data
.
filmData
)
const
filmData
=
JSON
.
parse
(
result
.
data
.
filmData
)
;
vm
.
pages
=
filmData
&&
filmData
.
pageList
?
filmData
.
pageList
:
[];
vm
.
filmId
=
result
.
filmId
;
});
...
...
@@ -244,6 +242,7 @@ export default {
position
:
relative
;
opacity
:
1
;
.ant
{
//
路劲裁剪
//
clip-path
:
url(#cd-image-1)
;
}
.decoration
{
...
...
src/templates/listingInformation/itemList/readme.md
0 → 100644
View file @
820482d5
## 编辑项列表
### 编写格式如下
```
{
type: 'list',
name: '房屋图片列表',
modelSchema: [ // 创建子项的Schema列表
{
img: {
type: 'image',
name: '房屋图片', // 字段名称
description: '请输入内容' // 用户填写时字段提示语
}
}
],
dataKey: 'houseList'
},
{
type: 'text',
name: '标题',
description: '填写标题',
dataKey: 'title',
valueRule: ''
},
```
\ No newline at end of file
src/templates/listingInformation/mixin.js
View file @
820482d5
...
...
@@ -6,7 +6,7 @@ import requireIcons from '@/icons/requireIcons'
export
default
{
data
:
function
()
{
return
{
pages
:
data
.
pageList
pages
:
data
.
pageList
// 引入页面数据
}
},
methods
:
{
...
...
@@ -14,6 +14,7 @@ export default {
console
.
log
(
'callback'
)
},
getDefaulted
()
{
// todo 获取默认值
this
.
pages
=
this
.
pages
.
map
(
function
(
item
)
{
item
.
list
.
map
(
ele
=>
{
return
(
ele
=
Object
.
assign
(
ele
,
ele
.
default
))
...
...
@@ -36,6 +37,7 @@ export default {
...
editMethod
},
mounted
()
{
// setZoom 设置网页缩放
function
setZoom
()
{
var
unit
=
1920
var
unit2
=
1080
...
...
@@ -61,6 +63,6 @@ export default {
addEventListener
(
'resize'
,
setZoom
,
false
)
},
created
:
function
()
{
console
.
log
(
'我是mixin 的crteated'
)
//
console.log('我是mixin 的crteated')
}
}
src/templates/listingInformation/pages/readme.md
0 → 100644
View file @
820482d5
## 页面入口
> 引入index.js 会默认引入当前目录下.vue 结尾的文文件作为当前场景下的组件。schemaData.js 中componment 名字与之对应
\ No newline at end of file
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