|
@@ -18,28 +18,28 @@ export const hotInit = (that) => {
|
|
hotSearch: '鹅鹅鹅',
|
|
hotSearch: '鹅鹅鹅',
|
|
wareCards:[
|
|
wareCards:[
|
|
{
|
|
{
|
|
- title:"铺满色巴掌的水泥道",
|
|
|
|
|
|
+ title:"铺满色巴掌的水泥道1",
|
|
grade:"一年级 上学期",
|
|
grade:"一年级 上学期",
|
|
img: "../../static/image/timg.jpg",
|
|
img: "../../static/image/timg.jpg",
|
|
plays: "1",
|
|
plays: "1",
|
|
likes: "2",
|
|
likes: "2",
|
|
- classId: "1"
|
|
|
|
|
|
+ classId: "1001"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title:"铺满金色巴掌的水泥道",
|
|
|
|
|
|
+ title:"铺满金色巴掌的水泥道2",
|
|
grade:"一年级 上学期",
|
|
grade:"一年级 上学期",
|
|
img: "../../static/image/timg.jpg",
|
|
img: "../../static/image/timg.jpg",
|
|
plays: "12345",
|
|
plays: "12345",
|
|
likes: "54321",
|
|
likes: "54321",
|
|
- classId: "2"
|
|
|
|
|
|
+ classId: "1002"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title:"铺满金色巴掌的水泥道",
|
|
|
|
|
|
+ title:"铺满金色巴掌的水泥道3",
|
|
grade:"一年级 上学期",
|
|
grade:"一年级 上学期",
|
|
img: "../../static/image/timg.jpg",
|
|
img: "../../static/image/timg.jpg",
|
|
plays: "12345",
|
|
plays: "12345",
|
|
likes: "54321",
|
|
likes: "54321",
|
|
- classId: "2"
|
|
|
|
|
|
+ classId: "1003"
|
|
},
|
|
},
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -48,6 +48,12 @@ export const hotInit = (that) => {
|
|
that.searchHandler = () => {
|
|
that.searchHandler = () => {
|
|
console.log('搜索按钮')
|
|
console.log('搜索按钮')
|
|
console.log(that.data.hotInput);
|
|
console.log(that.data.hotInput);
|
|
|
|
+ if(that.data.hotInput.lenght !== 0){
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: `../main/searchResult/searchResult?keyWords=${that.data.hotInput}`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
// 输入框输入
|
|
// 输入框输入
|
|
that.inputHandler = (e) => {
|
|
that.inputHandler = (e) => {
|
|
@@ -65,10 +71,10 @@ export const hotInit = (that) => {
|
|
|
|
|
|
// 打开课程页面
|
|
// 打开课程页面
|
|
that.openClass = (e) =>{
|
|
that.openClass = (e) =>{
|
|
- let classId = e.currentTarget.dataset.classid;
|
|
|
|
|
|
+ let id = e.currentTarget.dataset.classid;
|
|
let title = e.currentTarget.dataset.title;
|
|
let title = e.currentTarget.dataset.title;
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
- url: `../main/class/class?id=${classId}&title=${title}`
|
|
|
|
|
|
+ url: `../main/class/class?id=${id}&title=${title}`
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 打开用户作品页面
|
|
// 打开用户作品页面
|
|
@@ -87,7 +93,6 @@ export const hotInit = (that) => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
that.getHotRecommend = (uid,pageNo,pageSize)=>{
|
|
that.getHotRecommend = (uid,pageNo,pageSize)=>{
|
|
- console.log(pageNo)
|
|
|
|
httpRequestApi.getHotRecommend(
|
|
httpRequestApi.getHotRecommend(
|
|
uid,
|
|
uid,
|
|
pageNo,
|
|
pageNo,
|