Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
ccbikai
2016-08-02 12:05:53 +0800
Commit
b4c62bdef88957f9b919cd99129501f0508ff2fb
2 parents
bb91ae8f
37de280f
Merge branch 'release/1.0' into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
public/js/product/detail.page.js
public/vue/product/detail/index.vue
public/js/product/detail.page.js
View file @
b4c62bd
...
...
@@ -29,6 +29,12 @@ Vue.use(lazyload);
});
})();
Vue
.
directive
(
'lazy-html'
,
function
(
html
)
{
html
=
html
.
replace
(
/src
\s
*=
[
'|"
]\s
*
(
.*
)[
'|"
]
/gi
,
'v-lazy="\'$1\'"'
);
this
.
el
.
innerHTML
=
html
;
this
.
vm
.
$compile
(
this
.
el
);
});
new
Vue
({
el
:
'#app'
,
components
:
{
...
...
public/vue/product/detail/index.vue
View file @
b4c62bd
...
...
@@ -158,12 +158,10 @@
<h2>商品详情</h2>
<i>DETAILS</i>
<p v-if="entity.brand && entity.brand.brandIntro">
{{{entity.brand.brandIntro}}}
<p v-if="entity.brand && entity.brand.brandIntro" v-lazy-html="entity.brand.brandIntro">
</p>
<p v-if="entity.brand && intro.productIntroBo">
{{{intro.productIntroBo.productIntro}}}
<p v-if="entity.brand && intro.productIntroBo" v-lazy-html="intro.productIntroBo.productIntro">
</p>
</show-box>
...
...
Please
register
or
login
to post a comment