zoukankan      html  css  js  c++  java
  • 豆瓣电影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>
    -->
    我是首页
  • 相关阅读:
    Linux目录图解
    Linux-Monitor-Tools
    常用系统及工具下载
    vim 编辑器常规使用
    Win10 安装.NET framework 3.5
    Apache 2.4.6 新增虚拟目录
    html5
    CentOS 7 修改ssh端口
    CentOS7 设置密码复杂度
    CentOS 7安装 hping
  • 原文地址:https://www.cnblogs.com/ZHONGZHENHUA/p/8988726.html
Copyright © 2011-2022 走看看