Authored by ccbikai

Merge branch 'release/1.0' into develop

... ... @@ -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: {
... ...
... ... @@ -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>
... ...