|
|
@@ -27,6 +27,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mapState } from 'vuex';
|
|
|
import ProductInfo from '../../components/product/productInfo.vue';
|
|
|
export default {
|
|
|
components: { ProductInfo },
|
|
|
@@ -53,6 +54,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
+ ...mapState(['companyId']),
|
|
|
showList() {
|
|
|
return [...this.list]
|
|
|
.map((item, index) => {
|
|
|
@@ -76,7 +78,11 @@ export default {
|
|
|
forbidClick: true
|
|
|
});
|
|
|
this.empty = false;
|
|
|
- this.$http.get('/collection/myLikes').then(res => {
|
|
|
+ let form = {};
|
|
|
+ if (this.companyId) {
|
|
|
+ form.companyId = this.companyId;
|
|
|
+ }
|
|
|
+ this.$http.get('/collection/myLikes', form).then(res => {
|
|
|
this.list = res;
|
|
|
this.empty = res.length === 0;
|
|
|
this.$toast.clear();
|
|
|
@@ -93,6 +99,8 @@ export default {
|
|
|
.follow {
|
|
|
background-color: @bg3;
|
|
|
padding-bottom: 100px;
|
|
|
+ --van-tab-active-text-color: var(--primlight);
|
|
|
+ --van-tabs-bottom-bar-color: var(--primlight);
|
|
|
}
|
|
|
.list {
|
|
|
padding: 8px;
|