豆瓣电影1

{
  "pages":[
    "pages/index/index",
    "pages/logs/logs",
    "pages/movie/movie",//详情页
    "pages/search/search",//搜索页
    "pages/profile/profile"
  ],
  "window":{
    "backgroundTextStyle":"light",
    //"navigationBarBackgroundColor": "#fff",
    "navigationBarBackgroundColor": "#000",
    //"navigationBarTitleText": "WeChat",
    "navigationBarTitleText": "豆瓣电影",
    //"navigationBarTextStyle":"black"
    "navigationBarTextStyle": "white"
  },
  "tabBar":{
    "color":"#ccc",//灰色的
    "list":[{
       "text":"推荐电影",
       "iconPath":"images/LMQ.jpg",
        "selectedIconPath":"images/LMQ1.jpg",
        "pagePath":"pages/index/index"
    }//里面放的是一个对象
    ,{
      "text":"搜索",
      "iconPath":"images/LMQ2.jpg",
      "selectedIconPath":"images/LMQ3.jpg",
      "pagePath":"pages/search/search"
    },
    {
         "text":"我的",
         "iconPath":"images/LMQ4.jpg",
         "selectedIconPath":"images/LMQ5.jpg",
         "pagePath":"pages/profile/profile"

    }
    ]
  }
}

{
  "pages":[
    "pages/index/index",
    "pages/logs/logs",
    "pages/movie/movie",
    "pages/search/search",
    "pages/profile/profile"
  ],
  "window":{
    "backgroundTextStyle":"light",
    "navigationBarBackgroundColor": "#000",
    "navigationBarTitleText": "豆瓣电影",
    "navigationBarTextStyle": "white"
  },
  "tabBar":{
    "color":"#ccc",
    "list":[{
       "text":"推荐电影",
       "iconPath":"images/LMQ.jpg",
        "selectedIconPath":"images/LMQ1.jpg",
        "pagePath":"pages/index/index"
    }
    ,{
      "text":"搜索",
      "iconPath":"images/LMQ2.jpg",
      "selectedIconPath":"images/LMQ3.jpg",
      "pagePath":"pages/search/search"
    },
    {
         "text":"我的",
         "iconPath":"images/LMQ4.jpg",
         "selectedIconPath":"images/LMQ5.jpg",
         "pagePath":"pages/profile/profile"

    }
    ]
  }
}
<view>
我是搜索页

</view>
<view>
这是我的页
 </view>
<!--index.wxml-->
<!--
<view class="container">
  <view class="userinfo">
    <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
    <block wx:else>
      <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
      <text class="userinfo-nickname">{{userInfo.nickName}}</text>
    </block>
  </view>
  <view class="usermotto">
    <text class="user-motto">{{motto}}</text>
  </view>
</view>
-->
我是首页

 

posted on 2018-05-04 02:50  绿茵好莱坞  阅读(208)  评论(0编辑  收藏  举报

导航