Authored by 郭成尧

sharelink

<template>
<div>
<brand-top-component v-bind:share-data="123456"></brand-top-component>
</div>
<brand-top-component v-bind:share-Link="shareLink"></brand-top-component>
</template>
<style>
</style>
<script>
const brandTopComponent = require('channel/brand-top.vue');
let shareLink = 'http://www.yohobuy.com';
module.exports = {
data() {
return {
shareLink: shareLink
};
},
components: {
brandTopComponent
}
... ...
... ... @@ -10,6 +10,8 @@
const resources = require('channel/resources.vue');
const letterList = require('channel/letter-list.vue');
require('common/vue-filter');
module.exports = {
components: {
resources,
... ...
... ... @@ -3,7 +3,7 @@
<i class="back"></i>
<div class="right">
<i class="favorite"></i>
<a class="share" href="{{shareData}}"></a>
<a class="share" href="{{ shareLink }}"></a>
<i class="filter"></i>
</div>
</div>
... ... @@ -57,6 +57,15 @@
<script>
module.exports = {
props: ['shareData']
props: {
shareLink: {
type: String
}
},
methods: {
getShareLink() {
return '1234';
}
}
};
</script>
... ...