AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
### 小程序在在面之间用url来传递参数,但是这个url不用转码的话,太长就会截取掉,所以使用以下方式进行传递参数: ``` 传送: wx.navigateTo({ url: '../video/video?id=' + encodeURIComponent(id) }); 接收: onLoad: function (query) { var url = decodeURIComponent(query.id); } ``` ### 小程序自定义顶部bar title ``` navigationStyle: "custom" ``` navigationStyleStringdefault导航栏样式,仅支持以下值:default&nbsp;默认样式custom&nbsp;自定义导航栏,只保留右上角胶囊按钮。参见注2。 注2:关于`navigationStyle` * 客户端 7.0.0 以下版本,`navigationStyle`只在`app.json`中生效。 * 客户端 6.7.2 版本开始,`navigationStyle: custom`对[`<web-view>`](https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html)组件无效 * 开启 custom 后,低版本客户端需要做好兼容。开发者工具基础库版本切到 1.7.0(不代表最低版本,只供调试用)可方便切到旧视觉 ### 设置tabBar ``` tabBar:{ "color": "#666666", "selectedColor": "#f10b2e", "list": [ { "pagePath": "pages/home/home", "text": "大厅", "iconPath": "./res/icon_tab_home.png", "selectedIconPath": "./res/icon_tab_home_hl.png" }, { "pagePath": "pages/fightings/home", "text": "挑战", "iconPath": "./res/icon_tab_fighting.png", "selectedIconPath": "./res/icon_tab_fighting_hl.png" }, { "pagePath": "pages/mine/home", "text": "我", "iconPath": "./res/icon_tab_me.png", "selectedIconPath": "./res/icon_tab_me_hl.png" } ] } ```