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

30 lines
505 B
JavaScript
Raw Normal View History

2023-03-24 11:24:28 +08:00
// eaterplanet_ecommerce/components/cartBtn/index.js
Component({
externalClasses: ["i-class", "i-icon"],
properties: {
showHome: {
type: Boolean,
value: false
},
showShare: {
type: Boolean,
value: false
},
showContact: {
type: Boolean,
value: false
},
cartNum: {
type: Number,
value: 0
}
},
methods: {
goLink: function (e) {
let url = e.currentTarget.dataset.link;
wx.switchTab({ url })
}
}
})