EP-WachatApp/eaterplanet_ecommerce/components/cartBtn/index.js

22 lines
361 B
JavaScript

// eaterplanet_ecommerce/components/fixed-cart/index.js
Component({
externalClasses: ["i-class"],
properties: {
cartNum: {
type: Number,
default: 0
}
},
/**
* 组件的方法列表
*/
methods: {
goCart: function () {
wx.switchTab({
url: '/eaterplanet_ecommerce/pages/order/shopCart',
})
}
}
})