Browse Source

update topic

master
fanp 6 years ago
parent
commit
e4774204ba
  1. BIN
      images/topic/avatar.png
  2. 15
      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

15
pages/topics/index.js

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

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

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

4
pages/topics/message/index.wxss

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

2
pages/user/myFavorite/index.wxml

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

Loading…
Cancel
Save