Home  >  Article  >  WeChat Applet  >  Introduction to WeChat applet page jump parameter transfer

Introduction to WeChat applet page jump parameter transfer

不言
不言Original
2018-06-23 15:45:011969browse

This article mainly introduces the relevant information on the detailed explanation of page jump of WeChat Mini Program and attached with simple examples and implementation renderings. Friends in need can refer to

WeChat Mini Program Page Jump Passing parameters is a function that must be used when making WeChat mini programs. Here I will record the information I learned to implement the code.

I am new to the WeChat applet, and I still don’t know much about the syntax and attributes in it. If there are not many places, I hope you can give me some advice. Today I will talk about how to jump and transfer parameters in the WeChat applet. Without further ado, let’s get straight to the code.

The function implemented is to add a click function to the list to pass parameters to the next page;


The code is as follows:

<import src="../WXtemplate/headerTemplate.wxml"/> 
<view> 
 <!--滚动图--> 
 <view> 
 <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoPlay}}" interval="{{intervalTime}}" duration="{{Time}}"> 
 <block wx:for="{{imageURl}}"> 
  <swiper-item> 
   <image src="{{item}}" class="imagePX"></image> 
  </swiper-item> 
 </block> 
 </swiper> 
 </view> 
 <!--功能按钮--> 
 <view class="section-bg"> 
 <block wx:for="{{buttonNum}}"> 
  <!--模版--> 
  <template is="buttonList" data="{{item}}"/> 
  <!--<view class="section-item"> 
  <image class="section-img" src="{{item.image}}"></image> 
  <text class="section-text">{{item.text}}</text> 
 </view>--> 
 </block> 
 </view> 
 <!--资讯列表--> 
 <view> 
 <block wx:for="{{listNum}}"> 
  <template is="newList" data="{{item,index}}"/> 
 </block> 
  
 </view> 
 
 
 </view>

where

565485b9cb9003436ae98b07d2d36763{ {title}}de5f4c1163741e920c998275338d29b2

Final effect:

##The above is the entire content of this article, I hope it will be helpful to everyone’s learning. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

Development of WeChat Mini Program to realize page switching of tabs

WeChat Mini Program Page jump and data transfer

#

The above is the detailed content of Introduction to WeChat applet page jump parameter transfer. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn