# cms-xiaochengxu **Repository Path**: cbter/cms-xiaochengxu ## Basic Information - **Project Name**: cms-xiaochengxu - **Description**: 百度小程序资讯要么 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-10 - **Last Updated**: 2023-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 百度小程序 ### 百度小程序名称 app.json ```javascript "window": { "navigationBarBackgroundColor": "#ffffff", "navigationBarTextStyle": "black", "navigationBarTitleText": "华劵唯美资讯", "backgroundTextStyle": "light" }, ``` > navigationBarTitleText 这是小程序名称,请修改 ### 百度小程序页面 app.json ``` "pages": [ "pages/index/index", "pages/show/index", "pages/search/index", "pages/list/index", "pages/to/index" ], ``` > 这是小程序指定的页面路径 ### 百度小程序路由 app.json ``` "routes": [ { "path": "home", "page": "pages/index/index" }, { "path": "show", "page": "pages/show/index" }, { "path": "search", "page": "pages/search/index" }, { "path": "list", "page": "pages/list/index" }, { "path": "artinfo", "page": "pages/to/index" }, { "path": "siteinfo", "page": "pages/to/index" } ] ``` > 这是小程序访问路由跟静态页面进行绑定的代码块 > 犹豫百度小程序不支持301跳转页面的功能,特地增加to/index页面进行跳转,不影响百度收录小程序页面 ### 进入pages页面 所包含的index.js 修改请求api域名