You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
4.5 KiB

3 years ago
// pages/index/subpage/brand/brand.js
3 years ago
import {http} from '../../../../utils/util'
3 years ago
Page({
/**
* 页面的初始数据
*/
data: {
3 years ago
// records:[],
records: [{
url: '',
3 years ago
type: 1,
3 years ago
num: '258w',
3 years ago
time: '02:32',
3 years ago
title: '6.05版本更新笔记公开 挑战零式万魔殿边境之狱!'
3 years ago
}, {
3 years ago
url: '',
3 years ago
type: 1,
3 years ago
num: '258w',
3 years ago
time: '02:32',
3 years ago
title: '6.05版本更新笔记公开 挑战零式万魔殿边境之狱!'
3 years ago
}, {
3 years ago
url: '',
3 years ago
type: 2,
3 years ago
num: '258w',
3 years ago
time: '02:32',
3 years ago
title: '6.05版本更新笔记公开 挑战零式万魔殿边境之狱!'
3 years ago
}, {
3 years ago
url: '',
3 years ago
type: 2,
3 years ago
num: '258w',
3 years ago
time: '02:32',
3 years ago
title: '6.05版本更新笔记公开 挑战零式万魔殿边境之狱!'
}],
demo:[],
// demo: [{
// image: '',
// title: '探享心境界星途揽月5座探享版开启预售…柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 1,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 1,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 2,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 2,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场赛道级性能SUV登场赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 1,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 1,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 1,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 1,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }, {
// image: '',
// title: '赛道级性能SUV登场',
// describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
// count: '285w',
// type: 1,
// time: '02:32',
// date: '2022-03-16 12:00:00'
// }
// ]
3 years ago
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.setNavigationBarTitle({
title: '品牌动态',
})
wx.lin.renderWaterFlow(this.data.demo, false, () => {
console.log('渲染成功')
})
3 years ago
this.getbrandlist()
},
getbrandlist:function(){
http("/topicActivity/list", "post", {
}).then(res =>{
console.log(res)
this.setData({
demo: res.data.records,
})
wx.lin.renderWaterFlow(this.data.demo)
})
3 years ago
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
3 years ago
// console.log('页面上拉触底事件的处理函数')
this.getbrandlist()
3 years ago
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})