个人中心活动参与跳转
This commit is contained in:
29
pages/user/companyMine/companyOrder.js
Normal file
29
pages/user/companyMine/companyOrder.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// pages/companyOrder/companyOrder.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
type: 0, //全部0 待付款1 待发货2 待收货3 退款/售后4
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 点击按钮触发事件
|
||||
*/
|
||||
menuSelect: function (e) {
|
||||
console.log(e.currentTarget.dataset.id);
|
||||
if (this.data.type != e.currentTarget.dataset.id) {
|
||||
this.setData({
|
||||
type: e.currentTarget.dataset.id
|
||||
})
|
||||
if (e.currentTarget.dataset.id == 3) {
|
||||
this.selectComponent('#categoryTypeList').crowdfundcategory(this.data.company_id);
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user