|
@@ -6,81 +6,89 @@ Page({
|
|
*/
|
|
*/
|
|
data: {
|
|
data: {
|
|
wareCards: [
|
|
wareCards: [
|
|
- // {
|
|
|
|
- // title: "古诗词诵读(一)江南",
|
|
|
|
- // grade: "一年级(上学期)",
|
|
|
|
- // avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
- // previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
- // plays: "17230",
|
|
|
|
- // likes: "71230",
|
|
|
|
- // classId: "1",
|
|
|
|
- // avatar: '../../static/image/timg.jpg',
|
|
|
|
- // nickName: '喔喔',
|
|
|
|
- // time: '10-18 09:56'
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "古诗词诵读(一)江南",
|
|
|
|
- // grade: "一年级(上学期)",
|
|
|
|
- // avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
- // previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
- // plays: "17230",
|
|
|
|
- // likes: "71230",
|
|
|
|
- // classId: "1",
|
|
|
|
- // avatar: '../../static/image/timg.jpg',
|
|
|
|
- // nickName: '喔喔',
|
|
|
|
- // time: '10-18 09:56'
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "古诗词诵读(一)江南",
|
|
|
|
- // grade: "一年级(上学期)",
|
|
|
|
- // avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
- // previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
- // plays: "17230",
|
|
|
|
- // likes: "71230",
|
|
|
|
- // classId: "1",
|
|
|
|
- // avatar: '../../static/image/timg.jpg',
|
|
|
|
- // nickName: '喔喔',
|
|
|
|
- // time: '10-18 09:56'
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "古诗词诵读(一)江南",
|
|
|
|
- // grade: "一年级(上学期)",
|
|
|
|
- // avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
- // previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
- // plays: "17230",
|
|
|
|
- // likes: "71230",
|
|
|
|
- // classId: "1",
|
|
|
|
- // avatar: '../../static/image/timg.jpg',
|
|
|
|
- // nickName: '喔喔',
|
|
|
|
- // time: '10-18 09:56'
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "古诗词诵读(一)江南",
|
|
|
|
- // grade: "一年级(上学期)",
|
|
|
|
- // avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
- // previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
- // plays: "17230",
|
|
|
|
- // likes: "71230",
|
|
|
|
- // classId: "1",
|
|
|
|
- // avatar: '../../static/image/timg.jpg',
|
|
|
|
- // nickName: '喔喔',
|
|
|
|
- // time: '10-18 09:56'
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "古诗词诵读(一)江南",
|
|
|
|
- // grade: "一年级(上学期)",
|
|
|
|
- // avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
- // previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
- // plays: "17230",
|
|
|
|
- // likes: "71230",
|
|
|
|
- // classId: "1",
|
|
|
|
- // avatar: '../../static/image/timg.jpg',
|
|
|
|
- // nickName: '喔喔',
|
|
|
|
- // time: '10-18 09:56'
|
|
|
|
- // }
|
|
|
|
|
|
+ {
|
|
|
|
+ title: "古诗词诵读(一)江南",
|
|
|
|
+ grade: "一年级(上学期)",
|
|
|
|
+ avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
+ previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
+ plays: "17230",
|
|
|
|
+ likes: "71230",
|
|
|
|
+ classId: "1",
|
|
|
|
+ avatar: '../../static/image/timg.jpg',
|
|
|
|
+ nickName: '喔喔',
|
|
|
|
+ time: '10-18 09:56'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "古诗词诵读(一)江南",
|
|
|
|
+ grade: "一年级(上学期)",
|
|
|
|
+ avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
+ previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
+ plays: "17230",
|
|
|
|
+ likes: "71230",
|
|
|
|
+ classId: "1",
|
|
|
|
+ avatar: '../../static/image/timg.jpg',
|
|
|
|
+ nickName: '喔喔',
|
|
|
|
+ time: '10-18 09:56'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "古诗词诵读(一)江南",
|
|
|
|
+ grade: "一年级(上学期)",
|
|
|
|
+ avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
+ previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
+ plays: "17230",
|
|
|
|
+ likes: "71230",
|
|
|
|
+ classId: "1",
|
|
|
|
+ avatar: '../../static/image/timg.jpg',
|
|
|
|
+ nickName: '喔喔',
|
|
|
|
+ time: '10-18 09:56'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "古诗词诵读(一)江南",
|
|
|
|
+ grade: "一年级(上学期)",
|
|
|
|
+ avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
+ previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
+ plays: "17230",
|
|
|
|
+ likes: "71230",
|
|
|
|
+ classId: "1",
|
|
|
|
+ avatar: '../../static/image/timg.jpg',
|
|
|
|
+ nickName: '喔喔',
|
|
|
|
+ time: '10-18 09:56'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "古诗词诵读(一)江南",
|
|
|
|
+ grade: "一年级(上学期)",
|
|
|
|
+ avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
+ previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
+ plays: "17230",
|
|
|
|
+ likes: "71230",
|
|
|
|
+ classId: "1",
|
|
|
|
+ avatar: '../../static/image/timg.jpg',
|
|
|
|
+ nickName: '喔喔',
|
|
|
|
+ time: '10-18 09:56'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "古诗词诵读(一)江南",
|
|
|
|
+ grade: "一年级(上学期)",
|
|
|
|
+ avatarUrl: '../../../static/image/timg.jpg',
|
|
|
|
+ previewUrl: "../../../static/image/timg.jpg",
|
|
|
|
+ plays: "17230",
|
|
|
|
+ likes: "71230",
|
|
|
|
+ classId: "1",
|
|
|
|
+ avatar: '../../static/image/timg.jpg',
|
|
|
|
+ nickName: '喔喔',
|
|
|
|
+ time: '10-18 09:56'
|
|
|
|
+ }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ toWork: function (e) {
|
|
|
|
+ let lessonId = e.currentTarget.dataset.lessonid;
|
|
|
|
+ let title = e.currentTarget.dataset.title;
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: `../../social/works/works?id=${lessonId}&title=${title}`
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
@@ -95,9 +103,10 @@ Page({
|
|
});
|
|
});
|
|
}
|
|
}
|
|
APIClient.myRead().success(res => {
|
|
APIClient.myRead().success(res => {
|
|
- console.log(res);
|
|
|
|
|
|
+ console.log(res.data.data.list);
|
|
|
|
+ debugger;
|
|
this.setData({
|
|
this.setData({
|
|
- // wareCards: res.data.data.data.list
|
|
|
|
|
|
+ wareCards: res.data.data.list
|
|
});
|
|
});
|
|
}).fail(err => {
|
|
}).fail(err => {
|
|
console.log(err);
|
|
console.log(err);
|