41 changed files with 650 additions and 41 deletions
			
			
		@ -1,4 +1,6 @@ | 
				
			|||||
{ | 
					{ | 
				
			||||
  "navigationBarTitleText": "我的活动", | 
					  "navigationBarTitleText": "我的活动", | 
				
			||||
  "usingComponents": {} | 
					  "usingComponents": { | 
				
			||||
 | 
					    "cell": "../myTopics/myParticipant/cell/index" | 
				
			||||
 | 
					  } | 
				
			||||
} | 
					} | 
				
			||||
@ -1,2 +1,14 @@ | 
				
			|||||
<!--pages/user/common/myActivity/index.wxml--> | 
					<!--pages/user/common/myActivity/index.wxml--> | 
				
			||||
<text>pages/user/common/myActivity/index.wxml</text> | 
					<view class="container"> | 
				
			||||
 | 
					  <block wx:for="{{list}}" wx:key="*this"> | 
				
			||||
 | 
					    <cell  | 
				
			||||
 | 
					      articleId="{{item.articleId}}" | 
				
			||||
 | 
					      title="{{item.title}}"  | 
				
			||||
 | 
					      articleImg="{{item.articleImg}}" | 
				
			||||
 | 
					      userName="{{item.userName}}" | 
				
			||||
 | 
					      time="{{item.time}}"  | 
				
			||||
 | 
					      commentNum="{{item.commentNum}}" | 
				
			||||
 | 
					      showTop="{{item.showTop}}"  | 
				
			||||
 | 
					      bind:clickListItem="clickListItem"/> | 
				
			||||
 | 
					  </block> | 
				
			||||
 | 
					</view> | 
				
			||||
 | 
				
			|||||
@ -1,4 +1,6 @@ | 
				
			|||||
{ | 
					{ | 
				
			||||
  "navigationBarTitleText": "我的收藏", | 
					  "navigationBarTitleText": "我的收藏", | 
				
			||||
  "usingComponents": {} | 
					  "usingComponents": { | 
				
			||||
 | 
					    "cell": "../myTopics/myParticipant/cell/index" | 
				
			||||
 | 
					  } | 
				
			||||
} | 
					} | 
				
			||||
@ -1,2 +1,14 @@ | 
				
			|||||
<!--pages/user/common/myFavorite/index.wxml--> | 
					<!--pages/user/common/myFavorite/index.wxml--> | 
				
			||||
<text>pages/user/common/myFavorite/index.wxml</text> | 
					<view class="container"> | 
				
			||||
 | 
					  <block wx:for="{{list}}" wx:key="*this"> | 
				
			||||
 | 
					    <cell  | 
				
			||||
 | 
					      articleId="{{item.articleId}}" | 
				
			||||
 | 
					      title="{{item.title}}"  | 
				
			||||
 | 
					      articleImg="{{item.articleImg}}" | 
				
			||||
 | 
					      userName="{{item.userName}}" | 
				
			||||
 | 
					      time="{{item.time}}"  | 
				
			||||
 | 
					      commentNum="{{item.commentNum}}" | 
				
			||||
 | 
					      showTop="{{item.showTop}}"  | 
				
			||||
 | 
					      bind:clickListItem="clickListItem"/> | 
				
			||||
 | 
					  </block> | 
				
			||||
 | 
					</view> | 
				
			||||
 | 
				
			|||||
@ -1,4 +1,6 @@ | 
				
			|||||
{ | 
					{ | 
				
			||||
  "navigationBarTitleText": "我的金点子", | 
					  "navigationBarTitleText": "我的金点子", | 
				
			||||
  "usingComponents": {} | 
					  "usingComponents": { | 
				
			||||
 | 
					    "cell": "../../topics/goodIdea/cell/index" | 
				
			||||
 | 
					  } | 
				
			||||
} | 
					} | 
				
			||||
@ -1,2 +1,8 @@ | 
				
			|||||
<!--pages/user/common/myIdea/index.wxml--> | 
					<!--pages/user/common/myIdea/index.wxml--> | 
				
			||||
<text>pages/user/common/myIdea/index.wxml</text> | 
					<view class="container"> | 
				
			||||
 | 
					  <block wx:for="{{list}}" wx:key="*this"> | 
				
			||||
 | 
					    <cell  | 
				
			||||
 | 
					      itemData="{{item}}" | 
				
			||||
 | 
					      bind:clickListItem="clickListItem"/> | 
				
			||||
 | 
					  </block> | 
				
			||||
 | 
					</view> | 
				
			||||
 | 
				
			|||||
@ -0,0 +1,36 @@ | 
				
			|||||
 | 
					// pages/user/myMessage/cell/index.js
 | 
				
			||||
 | 
					Component({ | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的属性列表 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  properties: { | 
				
			||||
 | 
					    itemData: Object | 
				
			||||
 | 
					  }, | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的初始数据 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  data: { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  }, | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的方法列表 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  methods: { | 
				
			||||
 | 
					    onTap() { | 
				
			||||
 | 
					      this.triggerEvent('clickListItem', { itemData: this.properties.itemData }) | 
				
			||||
 | 
					    }, | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    msgType_level(level){ | 
				
			||||
 | 
					      switch (level){ | 
				
			||||
 | 
					        case 0: | 
				
			||||
 | 
					          return "活动消息"; | 
				
			||||
 | 
					        case 1: | 
				
			||||
 | 
					          return "消息提醒"; | 
				
			||||
 | 
					        case 2: | 
				
			||||
 | 
					          return "系统消息"; | 
				
			||||
 | 
					      } | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					}) | 
				
			||||
@ -0,0 +1,5 @@ | 
				
			|||||
 | 
					{ | 
				
			||||
 | 
					  "component": true, | 
				
			||||
 | 
					  "usingComponents": { | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,15 @@ | 
				
			|||||
 | 
					<!--pages/user/myMessage/cell/index.wxml--> | 
				
			||||
 | 
					<view class="cell" id="cell" bindtap="onTap"> | 
				
			||||
 | 
					  <view class="item-left"> | 
				
			||||
 | 
					    <image wx:if="{{itemData.msgType === 0}}" src="/images/user/activity_icon.png"></image> | 
				
			||||
 | 
					    <image wx:if="{{itemData.msgType === 1}}" src="/images/user/msg_icon.png"></image> | 
				
			||||
 | 
					    <image wx:if="{{itemData.msgType === 2}}" src="/images/user/system_icon.png"></image> | 
				
			||||
 | 
					  </view> | 
				
			||||
 | 
					  <view class="item-right"> | 
				
			||||
 | 
					    <view class="item-text"> | 
				
			||||
 | 
					      <view>{{itemData.msgName}}</view> | 
				
			||||
 | 
					      <view>{{itemData.title}}</view> | 
				
			||||
 | 
					    </view> | 
				
			||||
 | 
					    <view class="item-time">{{itemData.time}}</view> | 
				
			||||
 | 
					  </view> | 
				
			||||
 | 
					</view> | 
				
			||||
@ -0,0 +1,35 @@ | 
				
			|||||
 | 
					/* pages/user/myMessage/cell/index.wxss */ | 
				
			||||
 | 
					.cell{ | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex-direction: row; | 
				
			||||
 | 
					  align-items: center; | 
				
			||||
 | 
					  padding: 5px 10px 5px 10px; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.item-left{ | 
				
			||||
 | 
					  width: 40px; | 
				
			||||
 | 
					  height: 40px; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					image{ | 
				
			||||
 | 
					  width: 40px; | 
				
			||||
 | 
					  height: 40px; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.item-right{ | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  width: 100%; | 
				
			||||
 | 
					  flex-direction: row; | 
				
			||||
 | 
					  justify-content: space-between; | 
				
			||||
 | 
					  padding: 10px; | 
				
			||||
 | 
					  border-bottom: 1px solid #E7E7E7; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.item-text :first-child{ | 
				
			||||
 | 
					  font-size: 15px; | 
				
			||||
 | 
					  color: #171717; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.item-text :last-child{ | 
				
			||||
 | 
					  font-size: 13px; | 
				
			||||
 | 
					  color: #999999; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.item-time{ | 
				
			||||
 | 
					  font-size: 13px; | 
				
			||||
 | 
					  color: #ABABAB; | 
				
			||||
 | 
					} | 
				
			||||
@ -1,4 +1,6 @@ | 
				
			|||||
{ | 
					{ | 
				
			||||
  "navigationBarTitleText": "我的消息", | 
					  "navigationBarTitleText": "我的消息", | 
				
			||||
  "usingComponents": {} | 
					  "usingComponents": { | 
				
			||||
 | 
					    "cell": "./cell/index" | 
				
			||||
 | 
					  } | 
				
			||||
} | 
					} | 
				
			||||
@ -1,2 +1,8 @@ | 
				
			|||||
<!--pages/user/common/myMessage/index.wxml--> | 
					<!--pages/user/common/myMessage/index.wxml--> | 
				
			||||
<text>pages/user/common/myMessage/index.wxml</text> | 
					<view class="container"> | 
				
			||||
 | 
					  <block wx:for="{{list}}" wx:key="*this"> | 
				
			||||
 | 
					    <cell  | 
				
			||||
 | 
					      itemData="{{item}}" | 
				
			||||
 | 
					      bind:clickListItem="clickListItem"/> | 
				
			||||
 | 
					  </block> | 
				
			||||
 | 
					</view> | 
				
			||||
 | 
				
			|||||
@ -1,4 +1,8 @@ | 
				
			|||||
{ | 
					{ | 
				
			||||
  "navigationBarTitleText": "我的议题", | 
					  "navigationBarTitleText": "我的议题", | 
				
			||||
  "usingComponents": {} | 
					  "usingComponents": { | 
				
			||||
 | 
					    "e-segment": "/components/segment/index", | 
				
			||||
 | 
					    "myParticipant": "./myParticipant/index", | 
				
			||||
 | 
					    "myRelease": "./myRelease/index" | 
				
			||||
 | 
					  } | 
				
			||||
} | 
					} | 
				
			||||
@ -1,2 +1,6 @@ | 
				
			|||||
<!--pages/user/common/myTopics/index.wxml--> | 
					<!--pages/user/common/myTopics/index.wxml--> | 
				
			||||
<text>pages/user/common/myTopics/index.wxml</text> | 
					<view class="content-wrapper"> | 
				
			||||
 | 
					  <e-segment bind:tapSegment="tapSegment" headerTitles="{{headerTitles}}" defaultSelectIndex="{{selectedTitle}}"/> | 
				
			||||
 | 
					  <myParticipant wx:if="{{selectedTitle==0}}" /> | 
				
			||||
 | 
					  <myRelease wx:if="{{selectedTitle==1}}" /> | 
				
			||||
 | 
					</view> | 
				
			||||
 | 
				
			|||||
| 
		 After Width: | Height: | Size: 76 KiB  | 
@ -0,0 +1,35 @@ | 
				
			|||||
 | 
					// pages/topics/common/interactive/common/imageCell/index.js
 | 
				
			||||
 | 
					Component({ | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的属性列表 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  properties: { | 
				
			||||
 | 
					    articleId: String, | 
				
			||||
 | 
					    title: String, | 
				
			||||
 | 
					    articleImg:String, | 
				
			||||
 | 
					    userIcon:String, | 
				
			||||
 | 
					    userName:String, | 
				
			||||
 | 
					    time: String, | 
				
			||||
 | 
					    commentNum: String, | 
				
			||||
 | 
					    showTop: { | 
				
			||||
 | 
					      type: Boolean, | 
				
			||||
 | 
					      value: false, | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					  }, | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的初始数据 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  data: { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  }, | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的方法列表 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  methods: { | 
				
			||||
 | 
					    onTap() { | 
				
			||||
 | 
					      this.triggerEvent('clickListItem', { articleId: this.properties.articleId }) | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					}) | 
				
			||||
@ -0,0 +1,4 @@ | 
				
			|||||
 | 
					{ | 
				
			||||
 | 
					  "component": true, | 
				
			||||
 | 
					  "usingComponents": {} | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,29 @@ | 
				
			|||||
 | 
					<!--pages/topics/common/interactive/common/imageCell/index.wxml--> | 
				
			||||
 | 
					<view class="cell" id="cell" bindtap="onTap"> | 
				
			||||
 | 
					  <view class="left {{articleImg === '' ? 'leftActive' : ''}}"> | 
				
			||||
 | 
					    <view class="left-top"> | 
				
			||||
 | 
					      <view class="cell_title">{{title}}</view> | 
				
			||||
 | 
					    </view> | 
				
			||||
 | 
					    <view class="left-bottom"> | 
				
			||||
 | 
					     | 
				
			||||
 | 
					      <view class="left-bottom-userInfo"> | 
				
			||||
 | 
					        <view class="user-icon"> | 
				
			||||
 | 
					          <image src="{{userIcon}}"></image> | 
				
			||||
 | 
					        </view> | 
				
			||||
 | 
					        <view class="userName">{{userName}}</view> | 
				
			||||
 | 
					        <view class="cell_info_meta">{{time}}</view> | 
				
			||||
 | 
					      </view> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					      <view class="left-bottom-comments"> | 
				
			||||
 | 
					        <view class="comments-icon"> | 
				
			||||
 | 
					          <image class="image_icon" src="/images/common/com_count.png"></image> | 
				
			||||
 | 
					        </view> | 
				
			||||
 | 
					        <view class="commentNum">{{commentNum}}</view> | 
				
			||||
 | 
					      </view> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    </view> | 
				
			||||
 | 
					  </view> | 
				
			||||
 | 
					  <view class="right" wx:if="{{articleImg.length > 0}}"> | 
				
			||||
 | 
					    <image class="articleImg" src="./images/articleImg.png"></image> | 
				
			||||
 | 
					  </view> | 
				
			||||
 | 
					</view> | 
				
			||||
@ -0,0 +1,105 @@ | 
				
			|||||
 | 
					/* pages/topics/common/interactive/common/imageCell/index.wxss */ | 
				
			||||
 | 
					.cell { | 
				
			||||
 | 
					   | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex-direction: row; | 
				
			||||
 | 
					  padding: 10px 20px; | 
				
			||||
 | 
					  box-sizing: border-box; | 
				
			||||
 | 
					  align-items: center; | 
				
			||||
 | 
					  position: relative; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.cell:after { | 
				
			||||
 | 
					  content: ""; | 
				
			||||
 | 
					  position: absolute; | 
				
			||||
 | 
					  bottom: 1px; | 
				
			||||
 | 
					  left: 20px; | 
				
			||||
 | 
					  right: 20px; | 
				
			||||
 | 
					  border-bottom: 1px solid #E7E7E7; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.left{ | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex-direction: column; | 
				
			||||
 | 
					  width: 70%; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.leftActive{ | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex-direction: column; | 
				
			||||
 | 
					  width: 100%; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.left-bottom{ | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex: row; | 
				
			||||
 | 
					  justify-content: space-between; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.left-bottom-userInfo{ | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex: row; | 
				
			||||
 | 
					  align-items: center; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.user-icon{ | 
				
			||||
 | 
					  width: 20px; | 
				
			||||
 | 
					  height: 20px; | 
				
			||||
 | 
					  border-radius: 50%; | 
				
			||||
 | 
					  background-color: #EEEEEE; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.userName{ | 
				
			||||
 | 
					  margin: 0 5px 0 5px; | 
				
			||||
 | 
					  font-size: 12px; | 
				
			||||
 | 
					  color: #3B3B3B; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.left-bottom-comments{ | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex: row; | 
				
			||||
 | 
					  align-items: center; | 
				
			||||
 | 
					  margin-right: 10px; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.comments-icon{ | 
				
			||||
 | 
					  width: 15px; | 
				
			||||
 | 
					  height: 12px; | 
				
			||||
 | 
					  line-height: 10px; | 
				
			||||
 | 
					  margin-right: 5px; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.image_icon { | 
				
			||||
 | 
					  width: 100%; | 
				
			||||
 | 
					  height: 100%; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.commentNum{ | 
				
			||||
 | 
					  font-size: 12px; | 
				
			||||
 | 
					  color: #3B3B3B; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.right{ | 
				
			||||
 | 
					  width: 30%; | 
				
			||||
 | 
					  height: 70px; | 
				
			||||
 | 
					  border-radius: 5px; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					image{ | 
				
			||||
 | 
					  width: 100%;  | 
				
			||||
 | 
					  height: 100%; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.articleImg{ | 
				
			||||
 | 
					  width: 100%; | 
				
			||||
 | 
					  height: 100%; | 
				
			||||
 | 
					  border-radius: 5px; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.cell_title { | 
				
			||||
 | 
					  font-weight: 300; | 
				
			||||
 | 
					  font-size: 17px; | 
				
			||||
 | 
					  color: #000; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.cell_title_selected { | 
				
			||||
 | 
					  color: #9C9C9C; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.cell_info_meta { | 
				
			||||
 | 
					  padding-top: 10rpx; | 
				
			||||
 | 
					  display: flex; | 
				
			||||
 | 
					  flex-direction: row; | 
				
			||||
 | 
					  align-items: center; | 
				
			||||
 | 
					  font-size: 12px; | 
				
			||||
 | 
					  line-height: 12px; | 
				
			||||
 | 
					  color: #D4D4D4; | 
				
			||||
 | 
					} | 
				
			||||
 | 
					.cell_info_top { | 
				
			||||
 | 
					  padding: 0 10px; | 
				
			||||
 | 
					  width: 20px; | 
				
			||||
 | 
					  height: 12px; | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,54 @@ | 
				
			|||||
 | 
					// pages/user/myTopics/myParticipant/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: { | 
				
			||||
 | 
					    clickListItem(e) { | 
				
			||||
 | 
					      const articleId = e.detail.articleId; | 
				
			||||
 | 
					      console.log(articleId); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					}) | 
				
			||||
@ -0,0 +1,6 @@ | 
				
			|||||
 | 
					{ | 
				
			||||
 | 
					  "component": true, | 
				
			||||
 | 
					  "usingComponents": { | 
				
			||||
 | 
					    "cell": "./cell/index" | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,14 @@ | 
				
			|||||
 | 
					<!--pages/user/myTopics/myParticipant/index.wxml--> | 
				
			||||
 | 
					<view class="container"> | 
				
			||||
 | 
					  <block wx:for="{{list}}" wx:key="*this"> | 
				
			||||
 | 
					    <cell  | 
				
			||||
 | 
					      articleId="{{item.articleId}}" | 
				
			||||
 | 
					      title="{{item.title}}"  | 
				
			||||
 | 
					      articleImg="{{item.articleImg}}" | 
				
			||||
 | 
					      userName="{{item.userName}}" | 
				
			||||
 | 
					      time="{{item.time}}"  | 
				
			||||
 | 
					      commentNum="{{item.commentNum}}" | 
				
			||||
 | 
					      showTop="{{item.showTop}}"  | 
				
			||||
 | 
					      bind:clickListItem="clickListItem"/> | 
				
			||||
 | 
					  </block> | 
				
			||||
 | 
					</view> | 
				
			||||
@ -0,0 +1 @@ | 
				
			|||||
 | 
					/* pages/user/myTopics/myParticipant/index.wxss */ | 
				
			||||
@ -0,0 +1,54 @@ | 
				
			|||||
 | 
					// pages/user/myTopics/myRelease/index.js
 | 
				
			||||
 | 
					Component({ | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的属性列表 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  properties: { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  }, | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的初始数据 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  data: { | 
				
			||||
 | 
					    list: [ | 
				
			||||
 | 
					      { | 
				
			||||
 | 
					        articleId: '1', | 
				
			||||
 | 
					        title: "市北区举行国际航运贸易金融创新中心核心区产业建设", | 
				
			||||
 | 
					        articleImg: "", | 
				
			||||
 | 
					        userIcon: "", | 
				
			||||
 | 
					        userName: "用户名", | 
				
			||||
 | 
					        time: "刚刚", | 
				
			||||
 | 
					        commentNum: "33", | 
				
			||||
 | 
					      }, | 
				
			||||
 | 
					      { | 
				
			||||
 | 
					        articleId: "2", | 
				
			||||
 | 
					        title: "《大众日报》市北区举行国际航运贸易金融创新中心核心区产业建设", | 
				
			||||
 | 
					        articleImg: "", | 
				
			||||
 | 
					        userIcon: "", | 
				
			||||
 | 
					        userName: "用户名", | 
				
			||||
 | 
					        time: "1分钟前", | 
				
			||||
 | 
					        commentNum: "33", | 
				
			||||
 | 
					      }, | 
				
			||||
 | 
					      { | 
				
			||||
 | 
					        articleId: "3", | 
				
			||||
 | 
					        title: "青岛医疗人工智能科技创新中心落户市北", | 
				
			||||
 | 
					        articleImg: "", | 
				
			||||
 | 
					        userIcon: "", | 
				
			||||
 | 
					        userName: "用户名", | 
				
			||||
 | 
					        time: "1分钟前", | 
				
			||||
 | 
					        commentNum: "33", | 
				
			||||
 | 
					      } | 
				
			||||
 | 
					    ] | 
				
			||||
 | 
					  }, | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  /** | 
				
			||||
 | 
					   * 组件的方法列表 | 
				
			||||
 | 
					   */ | 
				
			||||
 | 
					  methods: { | 
				
			||||
 | 
					    clickListItem(e) { | 
				
			||||
 | 
					      const articleId = e.detail.articleId; | 
				
			||||
 | 
					      console.log(articleId); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					}) | 
				
			||||
@ -0,0 +1,6 @@ | 
				
			|||||
 | 
					{ | 
				
			||||
 | 
					  "component": true, | 
				
			||||
 | 
					  "usingComponents": { | 
				
			||||
 | 
					    "cell": "../myParticipant/cell/index" | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,14 @@ | 
				
			|||||
 | 
					<!--pages/user/myTopics/myRelease/index.wxml--> | 
				
			||||
 | 
					<view class="container"> | 
				
			||||
 | 
					  <block wx:for="{{list}}" wx:key="*this"> | 
				
			||||
 | 
					    <cell  | 
				
			||||
 | 
					      articleId="{{item.articleId}}" | 
				
			||||
 | 
					      title="{{item.title}}"  | 
				
			||||
 | 
					      articleImg="{{item.articleImg}}" | 
				
			||||
 | 
					      userName="{{item.userName}}" | 
				
			||||
 | 
					      time="{{item.time}}"  | 
				
			||||
 | 
					      commentNum="{{item.commentNum}}" | 
				
			||||
 | 
					      showTop="{{item.showTop}}"  | 
				
			||||
 | 
					      bind:clickListItem="clickListItem"/> | 
				
			||||
 | 
					  </block> | 
				
			||||
 | 
					</view> | 
				
			||||
@ -0,0 +1 @@ | 
				
			|||||
 | 
					/* pages/user/myTopics/myRelease/index.wxss */ | 
				
			||||
					Loading…
					
					
				
		Reference in new issue