123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- export const hotInit = (that) => {
- that.setData({
- hotData: {
- title: '热门',
- imgUrls: [
- 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
- 'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
- 'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
- ],
- indicatorDots: true,
- autoplay: true,
- interval: 5000,
- duration: 700,
- circular: true,
- hotSearch: '鹅鹅鹅',
- wareCards:[
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "1",
- likes: "2"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- },
- {
- title:"铺满金色巴掌的水泥道",
- grade:"一年级 上学期",
- img: "../../static/image/timg.jpg",
- plays: "12345",
- likes: "54321"
- }
- ]
- }
- }),
- that.searchHandler = () => {
- console.log('搜索按钮')
- console.log(that.data.hotInput);
- },
- that.inputHandler = (e) => {
- that.setData({
- hotInput: e.detail.value
- });
- console.log(that.data.hotInput)
- }
- }
|