豆瓣电影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>
-->
我是首页

 

转载于:https://www.cnblogs.com/ZHONGZHENHUA/p/8988726.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值