Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
b0260e809f
7 changed files with 8 additions and 20 deletions
  1. BIN
      assets/myinfo/dbzgl.png
  2. BIN
      assets/myinfo/dflb.png
  3. BIN
      assets/myinfo/incon13.png
  4. BIN
      assets/myinfo/rtWhite.png
  5. 10
      pages/home/index/index.js
  6. 16
      pages/home/index/index.wxss
  7. 2
      pages/index/index.wxml

BIN
assets/myinfo/dbzgl.png

Before After
Width: 37  |  Height: 37  |  Size: 1.5 KiB

BIN
assets/myinfo/dflb.png

Before After
Width: 37  |  Height: 35  |  Size: 2.7 KiB

BIN
assets/myinfo/incon13.png

Before After
Width: 20  |  Height: 20  |  Size: 257 B

BIN
assets/myinfo/rtWhite.png

Before After
Width: 48  |  Height: 48  |  Size: 402 B

10
pages/home/index/index.js

@ -11,11 +11,13 @@ Component({
addGlobalClass: true,
multipleSlots: true
},
properties: {
height: { type: Number, value: 0 }
},
/**
* 页面的初始数据
*/
data: {
height: app.globalData.safeFragmentHeight,
firstShow: false,
userInfo: null,
avatarUrl: '/assets/myinfo/user-icon.png',
@ -71,6 +73,9 @@ Component({
})
},
handUserInfo: function(){
if(!app.globalData.userInfo){
return
}
var nickname = ''
if (app.globalData.userInfo.isAuth) {
nickname = app.globalData.userInfo.realName.substring(0, 14)
@ -86,8 +91,7 @@ Component({
if(app.globalData.isVIP == 1 && app.globalData.userInfo.memberExpiredAt){
app.globalData.userInfo.memberExpiredAt = util.formatDate(new Date(app.globalData.userInfo.memberExpiredAt.replace(/\-/g, "/")), 'Y-M-D')
}
this.setData({ height: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight - 100),
CustomBar: app.globalData.CustomBar, avatarUrl: app.globalData.userInfo.avatarUrl, userInfo: app.globalData.userInfo })
this.setData({ CustomBar: app.globalData.CustomBar, avatarUrl: app.globalData.userInfo.avatarUrl, userInfo: app.globalData.userInfo })
},
fetchUserInfo: function () {
if (!app.globalData.token) {

16
pages/home/index/index.wxss

@ -141,17 +141,8 @@
right: 56rpx;
top: -34rpx;
}
.dmArea2-bottom {
width: 100%;
padding: 56rpx 50rpx 30rpx 50rpx;
justify-content: space-between
}
.dmArea2-bottom-content {
width: 100%;
display: flex;
@ -178,13 +169,6 @@
margin-top: 7rpx;
}
.dmArea3-left {
width: 380rpx;
height: 100%;
float: left;
padding-top: 7rpx;
}
.dmArea3-right {
width: 120rpx;
height: 50rpx;

2
pages/index/index.wxml

@ -9,7 +9,7 @@
<agent id="{{TabList[2].value}}" city-list="{{cityList}}" bind:picker="onPicker"/>
</swiper-item>
<swiper-item catchtouchmove="stopTouchMove">
<home id="{{TabList[3].value}}" />
<home id="{{TabList[3].value}}" height="{{fragment}}"/>
</swiper-item>
</swiper>

Loading…
Cancel
Save