You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
692 B
JavaScript
35 lines
692 B
JavaScript
const plugin = requirePlugin('job-plugin')
|
|
Page({
|
|
data: {
|
|
items: [],
|
|
currentItem: 0,
|
|
tabSelectID:{ num1: 0, num2: 0, num0: 0 }
|
|
},
|
|
onLoad() {
|
|
plugin.sayHello()
|
|
const world = plugin.answer
|
|
},
|
|
sub_fun: function (e) {
|
|
console.log(e.detail)
|
|
wx.navigateTo({
|
|
url: '../detail/index?id='+e.detail,
|
|
})
|
|
},
|
|
special_btn: function (e) {
|
|
console.log(e.detail)
|
|
wx.navigateTo({
|
|
url: '../special/index?id='+e.detail,
|
|
})
|
|
},
|
|
sendMsg(e){
|
|
console.log(e.detail);
|
|
},
|
|
addItem() {
|
|
this.data.items.push(this.data.currentItem++)
|
|
this.setData({
|
|
items: this.data.items,
|
|
currentItem: this.data.currentItem
|
|
})
|
|
},
|
|
})
|