init
This commit is contained in:
31
wx05cb767e6530b48f/components/shortcut/shortcut.js
Normal file
31
wx05cb767e6530b48f/components/shortcut/shortcut.js
Normal file
@@ -0,0 +1,31 @@
|
||||
var t = getApp();
|
||||
|
||||
Component({
|
||||
options: {
|
||||
multipleSlots: !0
|
||||
},
|
||||
properties: {
|
||||
title: {
|
||||
type: String,
|
||||
value: "弹窗标题"
|
||||
}
|
||||
},
|
||||
data: {
|
||||
isShow: !1,
|
||||
transparent: !0
|
||||
},
|
||||
methods: {
|
||||
_onToggleShow: function(t) {
|
||||
this.setData({
|
||||
isShow: !this.data.isShow,
|
||||
transparent: !1
|
||||
});
|
||||
},
|
||||
_onTargetPage: function(a) {
|
||||
var e = t.getTabBarLinks();
|
||||
wx.switchTab({
|
||||
url: "/" + e[a.detail.target.dataset.index]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user