index.js 500 B

1234567891011121314151617181920212223242526272829
  1. // lionfish_comshop/components/cartBtn/index.js
  2. Component({
  3. externalClasses: ["i-class", "i-icon"],
  4. properties: {
  5. showHome: {
  6. type: Boolean,
  7. value: false
  8. },
  9. showShare: {
  10. type: Boolean,
  11. value: false
  12. },
  13. showContact: {
  14. type: Boolean,
  15. value: false
  16. },
  17. cartNum: {
  18. type: Number,
  19. value: 0
  20. }
  21. },
  22. methods: {
  23. goLink: function (e) {
  24. let url = e.currentTarget.dataset.link;
  25. wx.switchTab({ url })
  26. }
  27. }
  28. })