In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
The knowledge of this article "how WeChat Mini Programs jumps from the list item item to the next page" is not understood by most people, so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "WeChat Mini Programs how to jump from the list item item to the next page" article.
First, the effect picture
From the list page on the left to the details page on the right
Second, the jump between pages
The first thing to look at is the jump of the page. WeChat Mini Programs has three ways to jump:
1. Keep the current page, jump to a page in the application, and use wx.navigateBack to return to the original page.
Wx.navigateTo ({url: 'test?id=1'})
2. Close the current page and jump to a page within the application.
Wx.redirectTo ({url: 'test?id=1'})
3. Jump to the tabBar page and close all other non-tabBar pages
Wx.switchTab ({url:'/ index'})
Note: wx.navigateBack (OBJECT) closes the current page and returns to the previous page or multi-level page. You can get the current page stack through getCurrentPages () and decide how many layers you need to return.
Jump from the list item item to the next page
The first step is to render the list, bind an array on the component with the wx:for control property, and render the component repeatedly with the data of the items in the array. The subscript variable name of the current item of the default array defaults to index, and the variable name of the current item of the array defaults to item
{{index}}: {{item.message}}
The second step is to use wx:key to bind identifiers for items in the list
{{index}}: {{item.message}}
The third step is to pass the corresponding parameters for each item corresponding link, use the navigator navigation component on the layout page, specify the url and pass the corresponding parameters for each item corresponding link, and follow the URL. And the key value is fine. Multiple parameters are connected with &, for example:
Url= ".. / detail/detail?index= {{item.viewid}}"
4. Demo source code
{{item.name}} Page ({data: {words: [{message: 'WeChat Mini Programs', viewid:'1',time:'2017-01-09 8001-09 815), {message: 'WeChat Mini Programs', {message: 'WeChat Mini Programs', {message: 'WeChat Mini Programs', viewid:'3' Time:'2017-01-09 8GRV 00GRN MoneyRanger hello'}, {message: 'WeChat Mini Programs', viewid:'4',time:'2017-01-09 8Rd MoneyRod-00RemotedMoneyRod hello', {message: 'WeChat Mini Programs', viewid:'5',time:'2017-01-09 8MH-01-09 8MANEREGRAPHALLON, {message: WeChat Mini Programs, viewid:'6' Time:'2017-01-09 8GRV 00GRN MoneyRanger hello'}, {message: 'WeChat Mini Programs', viewid:'7',time:'2017-01-09 8Rd MoneyRod-00RemotedMoneyRod hello', {message: 'WeChat Mini Programs', viewid:'8',time:'2017-01-09 8MH-01-09 8MANEREGRAPHALLON, {message: WeChat Mini Programs, viewid:'9' (time:'2017-01-09 8) the above article is about how WeChat Mini Programs jumps from the list item item to the next page. I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.