Commit 6ca1f1fa by 施宇

Merge branch 'master' of http://119.23.72.7/shiyu/icsalesProgram

parents 85805be8 f6b072a4
......@@ -159,10 +159,28 @@ Page({
/**
* 发布
*/
sendSignin: function (evt) {
sendSignin: function (e) {
console.log(evt)
console.log(e)
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切换
......
......@@ -21,6 +21,7 @@
</view>
</view>
<view class="topic-list">
<!-- 最新 -->
<block wx:if="{{tabIndex == 1}}">
<block wx:for="{{checkList}}" wx:for-item="item">
<view class="topic-item">
......@@ -50,6 +51,7 @@
</view>
</block>
</block>
<!-- 热门 -->
<block wx:elif="{{tabIndex == 2}}">
<block wx:for="{{checkPopular}}" wx:for-item="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