Browse Source

1、隐藏消息列表页

2、我的页面UI
master
chenxuhui 7 years ago
parent
commit
4949fc785c
4 changed files with 22 additions and 20 deletions
  1. +15
    -9
      app.js
  2. +0
    -6
      app.json
  3. +3
    -1
      pages/my/my.json
  4. +4
    -4
      pages/my/my.wxml

+ 15
- 9
app.js View File

@ -1,20 +1,19 @@
App({ App({
onLaunch: function () {
onLaunch: function() {
var that = this; var that = this;
wx.getSystemInfo({ wx.getSystemInfo({
success: function (res) {
success: function(res) {
that.globalData.winHeight = res.windowHeight; that.globalData.winHeight = res.windowHeight;
} }
}); });
}, },
onShow: function (options) {
onShow: function(options) {
var that = this; var that = this;
var path = options.path; var path = options.path;
if (options.query.id) { if (options.query.id) {
wx.reLaunch({ wx.reLaunch({
url: '/pages/login/login', url: '/pages/login/login',
complete: function (res) {
complete: function(res) {
that.globalData.shareInPath = path; that.globalData.shareInPath = path;
that.globalData.shareInParameter = options.query; that.globalData.shareInParameter = options.query;
}, },
@ -25,7 +24,7 @@ App({
shareInPath: "", shareInPath: "",
shareInParameter: {}, shareInParameter: {},
shareInState: 1, shareInState: 1,
winHeight:0,
winHeight: 0,
cookie: "", cookie: "",
decryptCookie: '', decryptCookie: '',
userInfo: null, userInfo: null,
@ -35,8 +34,15 @@ App({
phoneNum: "", phoneNum: "",
openID: "", openID: "",
appID: "wx0b897783b2588147", appID: "wx0b897783b2588147",
userID:"",
selectStartDate:null,
selectEndDate:null,
userID: "",
selectStartDate: null,
selectEndDate: null,
}, },
// {
// "pagePath": "pages/homePage/homePage",
// "text": "消息",
// "iconPath": "/imgs/message1.png",
// "selectedIconPath": "/imgs/message.png"
// },
}) })

+ 0
- 6
app.json View File

@ -44,12 +44,6 @@
"iconPath": "/imgs/xiaoxi1.png", "iconPath": "/imgs/xiaoxi1.png",
"selectedIconPath": "/imgs/xiaoxi.png" "selectedIconPath": "/imgs/xiaoxi.png"
}, },
{
"pagePath": "pages/homePage/homePage",
"text": "消息",
"iconPath": "/imgs/message1.png",
"selectedIconPath": "/imgs/message.png"
},
{ {
"pagePath": "pages/my/my", "pagePath": "pages/my/my",
"text": "我的", "text": "我的",


+ 3
- 1
pages/my/my.json View File

@ -1 +1,3 @@
{}
{
"navigationBarTitleText": "我的"
}

+ 4
- 4
pages/my/my.wxml View File

@ -4,13 +4,13 @@
<image class="userinfo-avatar" src="{{avatarUrl}}" mode="cover"></image> <image class="userinfo-avatar" src="{{avatarUrl}}" mode="cover"></image>
<view class='view_me_infos'> <view class='view_me_infos'>
<text class='view_me_text'>{{meName}}李丽丽</text>
<text class='view_me_text'>{{mePhone}}1234567890</text>
<text class='view_me_text'>{{meName}}</text>
<text class='view_me_text'>{{mePhone}}</text>
</view> </view>
</view> </view>
<view class='unregirst'>设置
<!-- <view class='unregirst'>设置
<image class='unregirstImage' src='/imgs/jiantou.png'> <image class='unregirstImage' src='/imgs/jiantou.png'>
</image> </image>
</view>
</view> -->

Loading…
Cancel
Save