您当前的位置: 首页 >  小程序

科大云炬

暂无认证

  • 3浏览

    0关注

    507博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

[云炬小程序实战笔记] 第3章 云炬博客小程序全局配置

科大云炬 发布时间:2022-02-03 22:07:15 ,浏览量:3

app.json
{
  "pages": [
    "pages/index/index",              //首頁
    "pages/category/category",        //分类页
    "pages/search/search",            //搜索页
    "pages/me/me",                    //我
    "pages/data/data",                
    "pages/category/categ_lisst",
    "pages/friend/friend",
    "pages/tags/tags",
    "pages/weblist/weblist",
    "pages/about/about",
    "pages/wxmore/wxmore",
    "pages/questions/questions",
    "pages/questions/questions-list",
    "pages/download/download"
  ],
  "subPackages": [],
  "window": {
    "navigationBarTextStyle": "@navTxtStyle",
    "backgroundColor": "@bgColor",
    "navigationBarBackgroundColor": "@navBgColor",
    "navigationBarTitleText": "云炬博客"
  },
  "tabBar": {
    "color": "#7A7E83",
    "selectedColor": "#000000",
    "borderStyle": "white",
    "backgroundColor": "@bgColor",
    "list": [   
      {
        "pagePath": "pages/index/index",
        "iconPath": "static/tabar/home.png",
        "selectedIconPath": "static/tabar/home_h.png",
        "text": "首页"
      },
      {
        "pagePath": "pages/category/category",
        "iconPath": "static/tabar/catelog.png",
        "selectedIconPath": "static/tabar/catelog_h.png",
        "text": "专题"
      },
      {
        "pagePath": "pages/search/search",
        "iconPath": "static/tabar/res.png",
        "selectedIconPath": "static/tabar/res_h.png",
        "text": "发现"
      },
      {
        "pagePath": "pages/me/me",
        "iconPath": "static/tabar/my.png",
        "selectedIconPath": "static/tabar/my_h.png",
        "text": "我的"
      }
    ]
  },
  "darkmode": true,
  "themeLocation": "theme.json",
  "usingComponents": {},
  "sitemapLocation": "sitemap.json"
}

app.wxss

@import './common/main.wxss';

[data-custom-hidden="true"],[bind-data-custom-hidden="true"]{display: none !important;}

app.js


require('./common/runtime.js')
require('./common/vendor.js')
require('./common/main.js')

project.config.json

{
  "description": "项目配置文件。",
  "packOptions": {
    "ignore": []
  },
  "setting": {
    "urlCheck": false,
    "es6": true,
    "enhance": true,
    "postcss": true,
    "preloadBackgroundData": false,
    "minified": true,
    "newFeature": false,
    "coverView": true,
    "nodeModules": false,
    "autoAudits": false,
    "showShadowRootInWxmlPanel": true,
    "scopeDataCheck": false,
    "uglifyFileName": false,
    "checkInvalidKey": true,
    "checkSiteMap": true,
    "uploadWithSourceMap": true,
    "compileHotReLoad": false,
    "lazyloadPlaceholderEnable": false,
    "useMultiFrameRuntime": true,
    "useApiHook": true,
    "useApiHostProcess": true,
    "babelSetting": {
      "ignore": [],
      "disablePlugins": [],
      "outputPath": ""
    },
    "useIsolateContext": true,
    "userConfirmedBundleSwitch": false,
    "packNpmManually": false,
    "packNpmRelationList": [],
    "minifyWXSS": true,
    "disableUseStrict": false,
    "showES6CompileOption": false,
    "useCompilerPlugins": false,
    "ignoreUploadUnusedFiles": true,
    "minifyWXML": true
  },
  "compileType": "miniprogram",
  "libVersion": "",
  "appid": "xxxxxxxxxxxxxxxxx",
  "projectname": "云炬博客",
  "condition": {
    "search": {
      "list": []
    },
    "conversation": {
      "list": []
    },
    "game": {
      "list": []
    },
    "miniprogram": {
      "list": []
    }
  }
}

效果预览

 

关注
打赏
1656131973
查看更多评论
立即登录/注册

微信扫码登录

0.1165s