|
|
// pages/index/subpage/brand/brand.js
|
|
|
import {http} from '../../../../utils/util'
|
|
|
|
|
|
Page({
|
|
|
|
|
|
/**
|
|
|
* 页面的初始数据
|
|
|
*/
|
|
|
data: {
|
|
|
// records:[],
|
|
|
records: [{
|
|
|
url: '',
|
|
|
type: 1,
|
|
|
num: '258w',
|
|
|
time: '02:32',
|
|
|
title: '6.05版本更新笔记公开 挑战零式万魔殿边境之狱!'
|
|
|
}, {
|
|
|
url: '',
|
|
|
type: 1,
|
|
|
num: '258w',
|
|
|
time: '02:32',
|
|
|
title: '6.05版本更新笔记公开 挑战零式万魔殿边境之狱!'
|
|
|
}, {
|
|
|
url: '',
|
|
|
type: 2,
|
|
|
num: '258w',
|
|
|
time: '02:32',
|
|
|
title: '6.05版本更新笔记公开 挑战零式万魔殿边境之狱!'
|
|
|
}, {
|
|
|
url: '',
|
|
|
type: 2,
|
|
|
num: '258w',
|
|
|
time: '02:32',
|
|
|
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'
|
|
|
// }
|
|
|
// ]
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: '品牌动态',
|
|
|
})
|
|
|
wx.lin.renderWaterFlow(this.data.demo, false, () => {
|
|
|
console.log('渲染成功')
|
|
|
})
|
|
|
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)
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
*/
|
|
|
onReady() {
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
onShow() {
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面隐藏
|
|
|
*/
|
|
|
onHide() {
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面卸载
|
|
|
*/
|
|
|
onUnload() {
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
|
*/
|
|
|
onPullDownRefresh() {
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
*/
|
|
|
onReachBottom() {
|
|
|
// console.log('页面上拉触底事件的处理函数')
|
|
|
this.getbrandlist()
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 用户点击右上角分享
|
|
|
*/
|
|
|
onShareAppMessage() {
|
|
|
|
|
|
}
|
|
|
}) |