60 lines
1.4 KiB
JavaScript
60 lines
1.4 KiB
JavaScript
// index.js
|
|
Page({
|
|
|
|
data: {
|
|
codes: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
|
|
faq: [{
|
|
title: '超出焊接时间',
|
|
date: '08.04 00:48'
|
|
},
|
|
{
|
|
title: '时间超长',
|
|
date: '08.04 00:48'
|
|
},
|
|
{
|
|
title: '常见问题常见问题',
|
|
date: '08.04 00:48'
|
|
}
|
|
],
|
|
knowledge: [{
|
|
title: '超出焊接时间',
|
|
date: '08.04 00:48'
|
|
},
|
|
{
|
|
title: '时间超长',
|
|
date: '08.04 00:48'
|
|
},
|
|
{
|
|
title: '常见问题常见问题',
|
|
date: '08.04 00:48'
|
|
}
|
|
]
|
|
},
|
|
|
|
// 页面跳转
|
|
jumpPage(e) {
|
|
let jumpType = e.currentTarget.dataset.jumptype;
|
|
console.log(jumpType == 1);
|
|
if(jumpType == 1){
|
|
wx.navigateTo({
|
|
url: "/pages/list/list?id=1"
|
|
})
|
|
}
|
|
if(jumpType == 2){
|
|
wx.navigateTo({
|
|
url: "/pages/list/list?id=1"
|
|
})
|
|
}
|
|
if(jumpType == 3){
|
|
wx.navigateTo({
|
|
url: "/pages/search/index"
|
|
})
|
|
}
|
|
// wx.navigateTo({
|
|
// url: this.data.category[index].url
|
|
// })
|
|
},
|
|
bindFocus(e){
|
|
console.log(e);
|
|
}
|
|
}) |