index.js 351 B

123456789101112131415161718192021
  1. // lionfish_comshop/components/fixed-cart/index.js
  2. Component({
  3. externalClasses: ["i-class"],
  4. properties: {
  5. cartNum: {
  6. type: Number,
  7. default: 0
  8. }
  9. },
  10. /**
  11. * 组件的方法列表
  12. */
  13. methods: {
  14. goCart: function () {
  15. wx.switchTab({
  16. url: '/lionfish_comshop/pages/order/shopCart',
  17. })
  18. }
  19. }
  20. })