30 changed files with 121 additions and 217 deletions
@ -1,102 +0,0 @@ |
|||||
// pages/topics/common/goodIdea/index.js
|
|
||||
Page({ |
|
||||
|
|
||||
/** |
|
||||
* 页面的初始数据 |
|
||||
*/ |
|
||||
data: { |
|
||||
list: [ |
|
||||
{ |
|
||||
ideaId: '1', |
|
||||
userIcon: "", |
|
||||
userName: "用户名", |
|
||||
time: "刚刚", |
|
||||
isGoodIdea:1, |
|
||||
praiseNum:"30", |
|
||||
detail:{ |
|
||||
title:"习近平主持政治局第十七次集体... 拷贝", |
|
||||
userIcon:"", |
|
||||
userName:"用户名", |
|
||||
time:"刚刚", |
|
||||
commentNum:"33", |
|
||||
text:"【内容以实际活动为准】市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
ideaId: "2", |
|
||||
userIcon: "", |
|
||||
userName: "用户名", |
|
||||
time: "1分钟前", |
|
||||
isGoodIdea: 0, |
|
||||
praiseNum: "30", |
|
||||
detail: { |
|
||||
title: "习近平主持政治局第十七次集体... 拷贝", |
|
||||
userIcon: "", |
|
||||
userName: "用户名", |
|
||||
time: "刚刚", |
|
||||
commentNum: "33", |
|
||||
text: "市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗连,东西最大距离11. 拷贝 2" |
|
||||
} |
|
||||
} |
|
||||
] |
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面加载 |
|
||||
*/ |
|
||||
onLoad: function (options) { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面初次渲染完成 |
|
||||
*/ |
|
||||
onReady: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面显示 |
|
||||
*/ |
|
||||
onShow: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面隐藏 |
|
||||
*/ |
|
||||
onHide: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面卸载 |
|
||||
*/ |
|
||||
onUnload: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 页面相关事件处理函数--监听用户下拉动作 |
|
||||
*/ |
|
||||
onPullDownRefresh: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 页面上拉触底事件的处理函数 |
|
||||
*/ |
|
||||
onReachBottom: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 用户点击右上角分享 |
|
||||
*/ |
|
||||
onShareAppMessage: function () { |
|
||||
|
|
||||
}, |
|
||||
clickListItem(e) { |
|
||||
console.log(e.detail) |
|
||||
} |
|
||||
}) |
|
@ -1 +0,0 @@ |
|||||
/* pages/topics/common/goodIdea/index.wxss */ |
|
@ -1,98 +0,0 @@ |
|||||
// pages/topics/common/interactive/index.js
|
|
||||
Page({ |
|
||||
|
|
||||
/** |
|
||||
* 页面的初始数据 |
|
||||
*/ |
|
||||
data: { |
|
||||
list:[ |
|
||||
{ |
|
||||
articleId: '1', |
|
||||
title:"市北区举行国际航运贸易金融创新中心核心区产业建设", |
|
||||
articleImg:"asdsad", |
|
||||
userIcon:"", |
|
||||
userName:"用户名", |
|
||||
time:"刚刚", |
|
||||
commentNum:"33", |
|
||||
}, |
|
||||
{ |
|
||||
articleId: "2", |
|
||||
title: "《大众日报》市北区举行国际航运贸易金融创新中心核心区产业建设", |
|
||||
articleImg: "", |
|
||||
userIcon: "", |
|
||||
userName: "用户名", |
|
||||
time: "1分钟前", |
|
||||
commentNum: "33", |
|
||||
}, |
|
||||
{ |
|
||||
articleId: "3", |
|
||||
title: "青岛医疗人工智能科技创新中心落户市北", |
|
||||
articleImg: "asdsadad", |
|
||||
userIcon: "", |
|
||||
userName: "用户名", |
|
||||
time: "1分钟前", |
|
||||
commentNum: "33", |
|
||||
} |
|
||||
] |
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面加载 |
|
||||
*/ |
|
||||
onLoad: function (options) { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面初次渲染完成 |
|
||||
*/ |
|
||||
onReady: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面显示 |
|
||||
*/ |
|
||||
onShow: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面隐藏 |
|
||||
*/ |
|
||||
onHide: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 生命周期函数--监听页面卸载 |
|
||||
*/ |
|
||||
onUnload: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 页面相关事件处理函数--监听用户下拉动作 |
|
||||
*/ |
|
||||
onPullDownRefresh: function () { |
|
||||
wx.showNavigationBarLoading(); |
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 页面上拉触底事件的处理函数 |
|
||||
*/ |
|
||||
onReachBottom: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
/** |
|
||||
* 用户点击右上角分享 |
|
||||
*/ |
|
||||
onShareAppMessage: function () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
clickListItem(e){ |
|
||||
console.log(e.detail) |
|
||||
} |
|
||||
}) |
|
@ -1,7 +0,0 @@ |
|||||
{ |
|
||||
"enablePullDownRefresh": true, |
|
||||
"backgroundTextStyle": "dark", |
|
||||
"usingComponents": { |
|
||||
"cell":"./cell/index" |
|
||||
} |
|
||||
} |
|
@ -1 +0,0 @@ |
|||||
/* pages/topics/common/interactive/index.wxss */ |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,56 @@ |
|||||
|
// pages/topics/goodIdea/index.js
|
||||
|
Component({ |
||||
|
/** |
||||
|
* 组件的属性列表 |
||||
|
*/ |
||||
|
properties: { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 组件的初始数据 |
||||
|
*/ |
||||
|
data: { |
||||
|
list: [ |
||||
|
{ |
||||
|
ideaId: '1', |
||||
|
userIcon: "", |
||||
|
userName: "用户名", |
||||
|
time: "刚刚", |
||||
|
isGoodIdea: 1, |
||||
|
praiseNum: "30", |
||||
|
detail: { |
||||
|
title: "习近平主持政治局第十七次集体... 拷贝", |
||||
|
userIcon: "", |
||||
|
userName: "用户名", |
||||
|
time: "刚刚", |
||||
|
commentNum: "33", |
||||
|
text: "【内容以实际活动为准】市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
ideaId: "2", |
||||
|
userIcon: "", |
||||
|
userName: "用户名", |
||||
|
time: "1分钟前", |
||||
|
isGoodIdea: 0, |
||||
|
praiseNum: "30", |
||||
|
detail: { |
||||
|
title: "习近平主持政治局第十七次集体... 拷贝", |
||||
|
userIcon: "", |
||||
|
userName: "用户名", |
||||
|
time: "刚刚", |
||||
|
commentNum: "33", |
||||
|
text: "市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗连,东西最大距离11. 拷贝 2" |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 组件的方法列表 |
||||
|
*/ |
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -1,4 +1,5 @@ |
|||||
{ |
{ |
||||
|
"component": true, |
||||
"usingComponents": { |
"usingComponents": { |
||||
"cell": "./cell/index" |
"cell": "./cell/index" |
||||
} |
} |
@ -1,4 +1,4 @@ |
|||||
<!--pages/topics/common/goodIdea/index.wxml--> |
<!--pages/topics/goodIdea/index.wxml--> |
||||
<view class="container"> |
<view class="container"> |
||||
<block wx:for="{{list}}" wx:key="*this"> |
<block wx:for="{{list}}" wx:key="*this"> |
||||
<cell |
<cell |
@ -0,0 +1 @@ |
|||||
|
/* pages/topics/goodIdea/index.wxss */ |
@ -1,8 +1,8 @@ |
|||||
{ |
{ |
||||
"usingComponents": { |
"usingComponents": { |
||||
"e-segment":"/components/segment/index", |
"e-segment":"/components/segment/index", |
||||
"message": "./common/message/index", |
"message": "./message/index", |
||||
"interactive": "./common/interactive/index", |
"interactive": "./interactive/index", |
||||
"goodIdea": "./common/goodIdea/index" |
"goodIdea": "./goodIdea/index" |
||||
} |
} |
||||
} |
} |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
@ -0,0 +1,51 @@ |
|||||
|
// pages/topics/interactive/index.js
|
||||
|
Component({ |
||||
|
/** |
||||
|
* 组件的属性列表 |
||||
|
*/ |
||||
|
properties: { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 组件的初始数据 |
||||
|
*/ |
||||
|
data: { |
||||
|
list: [ |
||||
|
{ |
||||
|
articleId: '1', |
||||
|
title: "市北区举行国际航运贸易金融创新中心核心区产业建设", |
||||
|
articleImg: "asdsad", |
||||
|
userIcon: "", |
||||
|
userName: "用户名", |
||||
|
time: "刚刚", |
||||
|
commentNum: "33", |
||||
|
}, |
||||
|
{ |
||||
|
articleId: "2", |
||||
|
title: "《大众日报》市北区举行国际航运贸易金融创新中心核心区产业建设", |
||||
|
articleImg: "", |
||||
|
userIcon: "", |
||||
|
userName: "用户名", |
||||
|
time: "1分钟前", |
||||
|
commentNum: "33", |
||||
|
}, |
||||
|
{ |
||||
|
articleId: "3", |
||||
|
title: "青岛医疗人工智能科技创新中心落户市北", |
||||
|
articleImg: "asdsadad", |
||||
|
userIcon: "", |
||||
|
userName: "用户名", |
||||
|
time: "1分钟前", |
||||
|
commentNum: "33", |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 组件的方法列表 |
||||
|
*/ |
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,6 @@ |
|||||
|
{ |
||||
|
"component": true, |
||||
|
"usingComponents": { |
||||
|
"cell": "./cell/index" |
||||
|
} |
||||
|
} |
@ -1,4 +1,4 @@ |
|||||
<!--pages/topics/common/interactive/index.wxml--> |
<!--pages/topics/interactive/index.wxml--> |
||||
<view class="container"> |
<view class="container"> |
||||
<block wx:for="{{list}}" wx:key="*this"> |
<block wx:for="{{list}}" wx:key="*this"> |
||||
<cell |
<cell |
@ -0,0 +1 @@ |
|||||
|
/* pages/topics/interactive/index.wxss */ |
Loading…
Reference in new issue