Commit 9a2ea822 by 梁建民

css

parent d211da47
...@@ -159,10 +159,28 @@ Page({ ...@@ -159,10 +159,28 @@ Page({
/** /**
* 发布 * 发布
*/ */
sendSignin: function (evt) { sendSignin: function (e) {
console.log(evt) console.log(e)
this.data.inputbar.cancelEmoji(); this.data.inputbar.cancelEmoji();
http.getData(apis.checkAdd, 'GET', {
topic_id: this.data.topic_id,
content: e.detail.msg,
}, (res) => {
if (res.errcode === 0) {
this.getData();
} else {
wx.showToast({
title: res.errmsg,
icon: 'none',
duration: 2000
});
}
}, true, false, true);
}, },
/** /**
*tab切换 *tab切换
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
</view> </view>
</view> </view>
<view class="topic-list"> <view class="topic-list">
<!-- 最新 -->
<block wx:if="{{tabIndex == 1}}"> <block wx:if="{{tabIndex == 1}}">
<block wx:for="{{checkList}}" wx:for-item="item"> <block wx:for="{{checkList}}" wx:for-item="item">
<view class="topic-item"> <view class="topic-item">
...@@ -50,6 +51,7 @@ ...@@ -50,6 +51,7 @@
</view> </view>
</block> </block>
</block> </block>
<!-- 热门 -->
<block wx:elif="{{tabIndex == 2}}"> <block wx:elif="{{tabIndex == 2}}">
<block wx:for="{{checkPopular}}" wx:for-item="item"> <block wx:for="{{checkPopular}}" wx:for-item="item">
<view class="topic-item"> <view class="topic-item">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment