This article mainly introduces the production methods of simple news for mini-programs, for more information about how to create simple news for small programs, see this article. For more information, see
Small program practice project:
Simple News production
First look at the effect:
{"Pages": ["pages/news", "pages/joke", "pages/history", "pages/index"], "window": {"navigationBarBackgroundColor": "# f85959", "navigationBarTextStyle": "white", "navigationBarTitleText": "WeChat", "backgroundColor": "# FFFFFF ", "backgroundTextStyle": "dark", "enablePullDownRefresh": true}, "tabBar": {"color": "#626567", "selectedColor": "# f85959 ", "backgroundColor": "# FBFBFB", "borderStyle": "white", "position": "bottom", "list": [{"pagePath ": "pages/news", "text": "news", "iconPath": "images/discovery.png", "selectedIconPath": "images/discovery_focus.png "}, {"pagePath": "pages/joke", "text": "joke", "iconPath": "images/ring.png", "selectedIconPath ": "images/ring_focus.png" },{ "pagePath": "pages/history", "text": "history", "iconPath": "images/chat.png ", "selectedIconPath": "images/chat_focus.png" },{ "pagePath": "pages/index", "text": "homepage", "iconPath ": "images/index.png", "selectedIconPath": "images/index_focus.png"}]}, "networkTimeout": {"request": 10000, "downloadFile": 10000 }, "debug": true}
Attribute |
Type |
Required |
Description |
Pages |
String Array |
Yes |
Set the page path |
Window |
Object |
No |
Set the display on the detail page |
TabBar |
Object |
No |
Set the display of the tab at the bottom |
NetworkTimeout |
Object |
No |
Set Network Timeout |
Debug |
Boolean |
No |
Set whether to enable debug mode |
For detailed configuration and usage instructions, refer to the official website:
Https://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html? T = 201715
Thank you for reading this article. I hope it will help you. thank you for your support for this site!
The above is the detailed content of the production method of simple news for small program Practice Programs. For more information, see other related articles in the first PHP community!