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
be83661b
authored
Aug 26, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
b2acb410
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
45 deletions
+55
-45
config/dev.env.js
+2
-1
src/templates/listingInformation/index.vue
+27
-26
src/templates/listingInformation/itemList/buyingHouse.js
+4
-4
src/templates/listingInformation/pages/buyingHouse.vue
+13
-9
src/templates/listingInformation/pages/rentHouse.vue
+3
-2
src/templates/listingInformation/pages/rentHouse2.vue
+3
-2
src/templates/listingInformation/pages/rentHouse3.vue
+3
-1
No files found.
config/dev.env.js
View file @
be83661b
...
...
@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
module
.
exports
=
merge
(
prodEnv
,
{
NODE_ENV
:
'"development"'
,
BASE_API
:
'"http://equipment.bdideal.com"'
BASE_API
:
'"http
s
://equipment.bdideal.com"'
})
\ No newline at end of file
src/templates/listingInformation/index.vue
View file @
be83661b
...
...
@@ -89,12 +89,13 @@ export default {
},
methods
:
{
loaded
(
index
)
{
console
.
log
(
"child mouted"
,
index
);
setTimeout
(()
=>
{
this
.
$refs
[
"child"
+
this
.
sliderActiveIndex
][
0
].
enter
().
then
(()
=>
{
console
.
log
(
index
,
"enter 完毕"
);
});
},
1000
);
if
(
!
this
.
isEditMode
)
{
setTimeout
(()
=>
{
this
.
$refs
[
"child"
+
this
.
sliderActiveIndex
][
0
].
enter
().
then
(()
=>
{
console
.
log
(
index
,
"enter 完毕"
);
});
},
1000
);
}
},
message
(
data
)
{
Message
.
send
(
data
,
"*"
);
...
...
@@ -130,20 +131,25 @@ export default {
});
},
created
()
{
Scene
.
EventBus
.
on
(
"leaveBefore"
,
e
=>
{
console
.
log
(
"leaveBefore"
);
if
(
this
.
pages
.
length
>
1
)
{
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
,
0
,
false
);
});
}
});
if
(
getQuery
(
"isEdit"
))
{
this
.
isEditMode
=
true
;
}
else
{
Scene
.
EventBus
.
on
(
"leaveBefore"
,
e
=>
{
console
.
log
(
"leaveBefore"
);
if
(
this
.
pages
.
length
>
1
)
{
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
,
0
,
false
);
});
}
});
this
.
isEditMode
=
false
;
}
var
vm
=
this
;
Message
.
init
(
e
=>
{
var
isObj
=
typeof
e
.
data
===
"object"
;
...
...
@@ -200,11 +206,6 @@ export default {
}
}
};
if
(
getQuery
(
"isEdit"
))
{
this
.
isEditMode
=
true
;
}
else
{
this
.
isEditMode
=
false
;
}
if
(
getQuery
(
"filmId"
)
&&
!
this
.
isEditMode
)
{
getFilmDetail
(
getQuery
(
"filmId"
)).
then
(
result
=>
{
console
.
log
(
result
);
...
...
@@ -242,7 +243,7 @@ export default {
position
:
relative
;
opacity
:
1
;
.ant
{
clip-path
:
url(#cd-image-1)
clip-path
:
url(#cd-image-1)
;
}
.decoration
{
position
:
absolute
;
...
...
src/templates/listingInformation/itemList/buyingHouse.js
View file @
be83661b
...
...
@@ -45,28 +45,28 @@ export default [
type
:
'text'
,
name
:
'亮点二名称'
,
description
:
'填写亮点二名称不超过三个字'
,
dataKey
:
'brighTwoName'
,
dataKey
:
'brigh
t
TwoName'
,
valueRule
:
''
},
{
type
:
'text'
,
name
:
'亮点二内容'
,
description
:
'填写亮点二内容不超过五个字'
,
dataKey
:
'brighTwoContent'
,
dataKey
:
'brigh
t
TwoContent'
,
valueRule
:
''
},
{
type
:
'text'
,
name
:
'亮点三名称'
,
description
:
'填写亮点三名称不超过三个字'
,
dataKey
:
'brighThreeName'
,
dataKey
:
'brigh
t
ThreeName'
,
valueRule
:
''
},
{
type
:
'text'
,
name
:
'亮点三内容'
,
description
:
'填写亮点三内容不超过五个字'
,
dataKey
:
'brighThreeContent'
,
dataKey
:
'brigh
t
ThreeContent'
,
valueRule
:
''
},
{
...
...
src/templates/listingInformation/pages/buyingHouse.vue
View file @
be83661b
...
...
@@ -42,7 +42,7 @@
</div>
<div
class=
"surrounding"
zh=
"房源特色"
ref=
"surrounding"
>
PROPERTY FEATURES
</div>
<div
class=
"feature-list"
ref=
"feature-list"
>
<div
class=
"feature-item"
v-for=
"(item, index) in feutrueList"
:key=
"index"
>
{{
item
}}
</div>
<div
class=
"feature-item"
v-for=
"(item, index) in feutrueList"
:key=
"index"
>
{{
item
}}
</div>
</div>
</div>
</div>
...
...
@@ -54,7 +54,7 @@ import { swiper, swiperSlide } from "vue-awesome-swiper";
import
StarSky
from
"@/framework/components/BoxShadowSky"
;
import
methods
from
"../methods"
;
import
anime
from
"animejs/lib/anime.es.js"
;
import
Scene
from
'@/framework/utils/sence'
import
Scene
from
"@/framework/utils/sence"
;
export
default
{
name
:
"welcome"
,
props
:
[
"schemaData"
,
"page"
,
"isEditMode"
,
"cancelEdit"
],
...
...
@@ -93,16 +93,16 @@ export default {
easing
:
"easeOutQuad"
}).
finished
];
var
enPromise
=
Promise
.
all
(
PromiseAll
)
var
enPromise
=
Promise
.
all
(
PromiseAll
)
;
return
enPromise
;
},
enter
()
{
console
.
log
(
'enter anime'
)
console
.
log
(
"enter anime"
);
var
PromiseAll
=
[
anime
({
targets
:
this
.
$refs
[
"house-list"
],
translateX
:
0
,
opacity
:
1
,
opacity
:
1
,
duration
:
1000
}).
finished
,
anime
({
...
...
@@ -149,8 +149,8 @@ export default {
}).
finished
];
Promise
.
all
(
PromiseAll
).
then
(()
=>
{
this
.
enterAfter
()
})
this
.
enterAfter
()
;
})
;
return
Promise
.
all
(
PromiseAll
);
},
enterBefore
()
{
...
...
@@ -215,8 +215,12 @@ export default {
}
},
mounted
()
{
console
.
log
(
'mounted'
)
this
.
enterBefore
()
console
.
log
(
this
.
isEditMode
);
if
(
!
this
.
isEditMode
)
{
console
.
log
(
this
.
isEditMode
);
this
.
enterBefore
();
}
},
data
()
{
return
{
...
...
src/templates/listingInformation/pages/rentHouse.vue
View file @
be83661b
...
...
@@ -246,8 +246,9 @@ export default {
}
},
mounted
()
{
console
.
log
(
"mounted"
);
this
.
enterBefore
();
if
(
!
this
.
isEditMode
)
{
this
.
enterBefore
();
}
},
data
()
{
return
{
...
...
src/templates/listingInformation/pages/rentHouse2.vue
View file @
be83661b
...
...
@@ -243,8 +243,9 @@ export default {
}
},
mounted
()
{
console
.
log
(
"mounted"
);
this
.
enterBefore
();
if
(
!
this
.
isEditMode
)
{
this
.
enterBefore
();
}
},
data
()
{
return
{
...
...
src/templates/listingInformation/pages/rentHouse3.vue
View file @
be83661b
...
...
@@ -266,7 +266,9 @@ export default {
}
},
mounted
()
{
this
.
enterBefore
();
if
(
!
this
.
isEditMode
)
{
this
.
enterBefore
();
}
},
data
()
{
return
{
...
...
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