user_collection.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="user-collection">
  3. <tabs :is-scroll="false" :current="active" @change="onChange">
  4. <tab name="商品">
  5. <collection-list :type="1" :i="0" :index="active"></collection-list>
  6. </tab>
  7. <tab name="店铺">
  8. <collection-list :type="2" :i="1" :index="active"></collection-list>
  9. </tab>
  10. </tabs>
  11. </view>
  12. </template>
  13. <script>
  14. // +----------------------------------------------------------------------
  15. // | likeshop开源商城系统
  16. // +----------------------------------------------------------------------
  17. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  18. // | gitee下载:https://gitee.com/likeshop_gitee
  19. // | github下载:https://github.com/likeshop-github
  20. // | 访问官网:https://www.likeshop.cn
  21. // | 访问社区:https://home.likeshop.cn
  22. // | 访问手册:http://doc.likeshop.cn
  23. // | 微信公众号:likeshop技术社区
  24. // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
  25. // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
  26. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  27. // | likeshop团队版权所有并拥有最终解释权
  28. // +----------------------------------------------------------------------
  29. // | author: likeshop.cn.team
  30. // +----------------------------------------------------------------------
  31. export default {
  32. data() {
  33. return {
  34. active: 0
  35. };
  36. },
  37. methods: {
  38. onChange(index) {
  39. this.active = index
  40. }
  41. }
  42. };
  43. </script>
  44. <style lang="scss">
  45. </style>