Browse Source

update topic

master
fanp 6 years ago
parent
commit
e4774204ba
  1. BIN
      images/topic/avatar.png
  2. 25
      pages/topics/index.js
  3. 2
      pages/topics/interactive/submitTopic/index.wxss
  4. 4
      pages/topics/message/index.wxss
  5. 2
      pages/user/myFavorite/index.wxml

BIN
images/topic/avatar.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

25
pages/topics/index.js

@ -25,18 +25,33 @@ Page({
*/ */
onLoad: function () { onLoad: function () {
if (store.hasPhone()) { if (store.hasBindUserInfo()){
console.log('已经绑定手机号码') console.log('已经绑定微信')
if (store.hasPhone()) {
console.log('已经绑定手机号码')
} else {
console.log('未绑定手机号码')
wx.redirectTo({
url: '/pages/register/index',
})
}
} else { } else {
console.log('未绑定手机号码') console.log('未绑定微信')
wx.redirectTo({ wx.reLaunch({
url: '/pages/register/index', url: '/pages/user/index',
}) })
} }
}, },
onShow: function () { onShow: function () {
// 页面出现在前台时执行 // 页面出现在前台时执行
console.log('啦啦啦') console.log('啦啦啦')
let segmentIndex = this.data.segmentIndex
if (segmentIndex === 0 || segmentIndex === 1){
wx.pageScrollTo({
scrollTop: 0,
})
}
this.setData({ this.setData({
currPage: 1, currPage: 1,
}) })

2
pages/topics/interactive/submitTopic/index.wxss

@ -15,9 +15,11 @@
} }
.title{ .title{
font-size: 15px; font-size: 15px;
width: 100%;
} }
.textArea{ .textArea{
font-size: 14px; font-size: 14px;
width: 100%;
} }
.line-view{ .line-view{
height: 1px; height: 1px;

4
pages/topics/message/index.wxss

@ -15,10 +15,12 @@
} }
.title{ .title{
font-size: 15px; font-size: 15px;
width: 100%;
} }
.textArea{ .textArea{
font-size: 14px; font-size: 14px;
line-height: 10px; width: 100%;
/* line-height: 10px; */
} }
.line-view{ .line-view{
height: 1px; height: 1px;

2
pages/user/myFavorite/index.wxml

@ -18,7 +18,7 @@
time="{{item.time}}" time="{{item.time}}"
commentNum="{{item.commentNum}}" commentNum="{{item.commentNum}}"
type="{{item.type}}" type="{{item.type}}"
userIcon="{{item.userIcon}}" userIcon="{{item.userIcon || '/images/topic/avatar.png'}}"
bind:clickListItem="clickListItem"/> bind:clickListItem="clickListItem"/>
</block> </block>
</block> </block>

Loading…
Cancel
Save