How to implement Jiugongge jump in WeChat applet?
Rendering:
The red line in the rendering includes part of the nine-square grid effect, and comes with the item click time.
Related recommendations: " Mini Program Development Tutorial"
Specific implementation:
1. First add the image resource file
Create a new directory in the project root directory, named images, to store image resources, and then add a few pictures
2. Home.js file in the home directory Configure the data source in
The data source is an array, and each array element is an object. The object contains name (item text), img (item diagram), url (click the item to jump to the directory)
3. Program home.wxml based on the knowledge points of list rendering
① From the renderings, each item is surrounded by thin lines. This is the construction idea, an external view, draw the top border line
Outermost view style:
②. Draw each item in the external view For the border lines on the right and lower sides, the width of each item is set to 33.33333%, which means that three items are displayed equally in one line.
home.wxml文件 <view class="home_grids"> <block wx:for="{{griddata}}" wx:key="item.name"> <navigator url="../{{item.url}}/{{item.url}}" class='home_grid'> <image src="{{item.img}}" class="home_icon"></image> <view class="home_grid_text">{{item.name}}</view> </navigator> </block> </view>Home.wxss file
.home_grids { border-top: 1rpx solid #D9D9D9; overflow: hidden; margin-top: 10px } .home_grid{ position: relative; float: left; padding: 20px 10px; width: 33.33333333%; box-sizing: border-box; border-right: 1rpx solid #D9D9D9; border-bottom: 1rpx solid #D9D9D9; }
The above is the detailed content of How to implement Jiugongge jump in WeChat applet. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version
God-level code editing software (SublimeText3)