Browse Source

update topics

master
fanp 6 years ago
parent
commit
1d186cd8ae
  1. 3
      app.json
  2. 102
      pages/topics/common/goodIdea/index.js
  3. 1
      pages/topics/common/goodIdea/index.wxss
  4. 98
      pages/topics/common/interactive/index.js
  5. 7
      pages/topics/common/interactive/index.json
  6. 1
      pages/topics/common/interactive/index.wxss
  7. 0
      pages/topics/goodIdea/cell/images/goodIdea.png
  8. 0
      pages/topics/goodIdea/cell/images/praise.png
  9. 0
      pages/topics/goodIdea/cell/index.js
  10. 0
      pages/topics/goodIdea/cell/index.json
  11. 0
      pages/topics/goodIdea/cell/index.wxml
  12. 0
      pages/topics/goodIdea/cell/index.wxss
  13. 56
      pages/topics/goodIdea/index.js
  14. 1
      pages/topics/goodIdea/index.json
  15. 2
      pages/topics/goodIdea/index.wxml
  16. 1
      pages/topics/goodIdea/index.wxss
  17. 6
      pages/topics/index.json
  18. 0
      pages/topics/interactive/cell/images/articleImg.png
  19. 0
      pages/topics/interactive/cell/index.js
  20. 0
      pages/topics/interactive/cell/index.json
  21. 0
      pages/topics/interactive/cell/index.wxml
  22. 0
      pages/topics/interactive/cell/index.wxss
  23. 51
      pages/topics/interactive/index.js
  24. 6
      pages/topics/interactive/index.json
  25. 2
      pages/topics/interactive/index.wxml
  26. 1
      pages/topics/interactive/index.wxss
  27. 0
      pages/topics/message/index.js
  28. 0
      pages/topics/message/index.json
  29. 0
      pages/topics/message/index.wxml
  30. 0
      pages/topics/message/index.wxss

3
app.json

@ -8,9 +8,6 @@
"pages/billboards/park/index",
"pages/billboards/policy/index",
"pages/billboards/policy/policy-list/index",
"pages/topics/common/interactive/index",
"pages/topics/common/message/index",
"pages/topics/common/goodIdea/index",
"pages/article/index",
"pages/register/index",
"pages/user/myActivity/index",

102
pages/topics/common/goodIdea/index.js

@ -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
pages/topics/common/goodIdea/index.wxss

@ -1 +0,0 @@
/* pages/topics/common/goodIdea/index.wxss */

98
pages/topics/common/interactive/index.js

@ -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)
}
})

7
pages/topics/common/interactive/index.json

@ -1,7 +0,0 @@
{
"enablePullDownRefresh": true,
"backgroundTextStyle": "dark",
"usingComponents": {
"cell":"./cell/index"
}
}

1
pages/topics/common/interactive/index.wxss

@ -1 +0,0 @@
/* pages/topics/common/interactive/index.wxss */

0
pages/topics/common/goodIdea/cell/images/goodIdea.png → pages/topics/goodIdea/cell/images/goodIdea.png

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

0
pages/topics/common/goodIdea/cell/images/praise.png → pages/topics/goodIdea/cell/images/praise.png

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
pages/topics/common/goodIdea/cell/index.js → pages/topics/goodIdea/cell/index.js

0
pages/topics/common/goodIdea/cell/index.json → pages/topics/goodIdea/cell/index.json

0
pages/topics/common/goodIdea/cell/index.wxml → pages/topics/goodIdea/cell/index.wxml

0
pages/topics/common/goodIdea/cell/index.wxss → pages/topics/goodIdea/cell/index.wxss

56
pages/topics/goodIdea/index.js

@ -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
pages/topics/common/goodIdea/index.json → pages/topics/goodIdea/index.json

@ -1,4 +1,5 @@
{
"component": true,
"usingComponents": {
"cell": "./cell/index"
}

2
pages/topics/common/goodIdea/index.wxml → pages/topics/goodIdea/index.wxml

@ -1,4 +1,4 @@
<!--pages/topics/common/goodIdea/index.wxml-->
<!--pages/topics/goodIdea/index.wxml-->
<view class="container">
<block wx:for="{{list}}" wx:key="*this">
<cell

1
pages/topics/goodIdea/index.wxss

@ -0,0 +1 @@
/* pages/topics/goodIdea/index.wxss */

6
pages/topics/index.json

@ -1,8 +1,8 @@
{
"usingComponents": {
"e-segment":"/components/segment/index",
"message": "./common/message/index",
"interactive": "./common/interactive/index",
"goodIdea": "./common/goodIdea/index"
"message": "./message/index",
"interactive": "./interactive/index",
"goodIdea": "./goodIdea/index"
}
}

0
pages/topics/common/interactive/cell/images/articleImg.png → pages/topics/interactive/cell/images/articleImg.png

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

0
pages/topics/common/interactive/cell/index.js → pages/topics/interactive/cell/index.js

0
pages/topics/common/interactive/cell/index.json → pages/topics/interactive/cell/index.json

0
pages/topics/common/interactive/cell/index.wxml → pages/topics/interactive/cell/index.wxml

0
pages/topics/common/interactive/cell/index.wxss → pages/topics/interactive/cell/index.wxss

51
pages/topics/interactive/index.js

@ -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: {
}
})

6
pages/topics/interactive/index.json

@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"cell": "./cell/index"
}
}

2
pages/topics/common/interactive/index.wxml → pages/topics/interactive/index.wxml

@ -1,4 +1,4 @@
<!--pages/topics/common/interactive/index.wxml-->
<!--pages/topics/interactive/index.wxml-->
<view class="container">
<block wx:for="{{list}}" wx:key="*this">
<cell

1
pages/topics/interactive/index.wxss

@ -0,0 +1 @@
/* pages/topics/interactive/index.wxss */

0
pages/topics/common/message/index.js → pages/topics/message/index.js

0
pages/topics/common/message/index.json → pages/topics/message/index.json

0
pages/topics/common/message/index.wxml → pages/topics/message/index.wxml

0
pages/topics/common/message/index.wxss → pages/topics/message/index.wxss

Loading…
Cancel
Save