zoukankan      html  css  js  c++  java
  • 小程序内置基本语法

    在app.wpy配置路由,设置tabar,下拉刷新,顶部标题

    <config>
    {
      pages: [
        'pages/welcome',
        'pages/auth',
    
        'pages/agent/init/invite',
        'pages/agent/init/agreement',
      ],
      "tabBar": {
        "selectedColor": '#EB6F28',
        "list": [{
          "pagePath": "pages/agent/mall/index",
          "text": "商城",
          //"iconPath": './assets/img/home.png',
          //"selectedIconPath": './assets/img/home_hover.png',
        }, {
          "pagePath": "pages/agent/shop/index",
          "text": "店铺",
          //"iconPath": './assets/img/shop_tabar_ico.png',
          //"selectedIconPath": './assets/img/shop_tabar_hoverIco.png',
        }, {
          "pagePath": "pages/agent/message/index",
          "text": "消息",
          //"iconPath": './assets/img/message.png',
          //"selectedIconPath": './assets/img/message_hover.png',
        }, {
          "text": "购物车",
          "pagePath": "pages/agent/order/index",
          //"iconPath": './assets/img/card.png',
          //"selectedIconPath": './assets/img/card_hover.png',
        }, {
          "pagePath": "pages/agent/me/index",
          "text": "我的",
          //"iconPath": './assets/img/me.png',
          //"selectedIconPath": './assets/img/me_hover.png',
        }]
      },
      window: {
        backgroundTextStyle: 'light',
        navigationBarBackgroundColor: '#fff',
        navigationBarTitleText: '我的项目',
        navigationBarTextStyle: 'black'
      }
    }
    </config>
  • 相关阅读:
    852. Peak Index in a Mountain Array
    841. Keys and Rooms
    832. Flipping an Image
    821. Shortest Distance to a Character
    824. Goat Latin
    如何生成git的公钥和私钥
    学习笔记
    加快JavaScript加载和执行效率
    PO BO VO DTO POJO DAO概念及其作用
    jvm 垃圾回收区的形象说明
  • 原文地址:https://www.cnblogs.com/ll15888/p/11468286.html
Copyright © 2011-2022 走看看