Get the App
SLTechnology News&Howtos  ›  Development  › 

How does WeChat Mini Programs realize the Nine Palace Grid?

Shulou Source: shulou.com Published: 2022-06-01 06:46:15 10月03日 Update

This article mainly introduces "how WeChat Mini Programs realizes the Nine Palace Grid". In the daily operation, I believe that many people have doubts about how WeChat Mini Programs realizes the Nine Palace Lattice. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how WeChat Mini Programs realizes the Nine Palace Grid". Next, please follow the editor to study!

Here are the implementation steps:

Add data to .js

Page ({

/ * *

* initial data of the page

, /

Data: {

Routers: [

{

Text:'my account'

Icon:'.. /.. / images/mine/mine_account.png'

Url:'.. / myAccount/myAccount'

}

{

Text:'my contract'

Icon:'.. /.. / images/mine/mine_contract.png'

Url:'.. / myAccount/myAccount'

}

{

Text: 'browsing history'

Icon:'.. /.. / images/mine/mine_browing.png'

Url:'.. / myAccount/myAccount'

}

{

Text: "I want to rent it."

Icon:'.. /.. / images/mine/mine_lease.png'

Url:'.. / myAccount/myAccount'

}

{

Text: 'customer service'

Icon:'.. /.. / images/mine/mine_customService.png'

Url:'.. / myAccount/myAccount'

}

{

Text:'my Collection'

Icon:'.. /.. / images/mine/mine_collect.png'

Url:'.. / myAccount/myAccount'

}

]

}

})

In .wxml, add weui-grids

{{item.text}}

Setting style in wxss

. weui-grids {

Position: relative

Overflow: hidden

Margin-top: 10rpx

}

. weui-grids:before {

Content: ""

Position: absolute

Left: 0

Top: 0

Right: 0

Height: 1px

Border-top: 1px solid # D9D9D9

Color: # D9D9D9

-webkit-transform-origin: 0 0

Transform-origin: 0 0

-webkit-transform: scaleY (0.5)

Transform: scaleY (0.5)

}

. weui-grids:after {

Content: ""

Position: absolute

Left: 0

Top: 0

Width: 1px

Bottom: 0

Border-left: 1px solid # D9D9D9

Color: # D9D9D9

-webkit-transform-origin: 0 0

Transform-origin: 0 0

-webkit-transform: scaleX (0.5)

Transform: scaleX (0.5)

}

. weui-grid {

Position: relative

Float: left

Padding: 20px 10px

Width: 33.33333333%

Box-sizing: border-box

Background-color: white

}

. weui-grid:before {

Content:

At this point, the study on "how to achieve the ninth palace grid by WeChat Mini Programs" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Ninth house programs learning data more help practical next contract I want articles methods styles steps theory knowledge articles websites accounts materials Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Redmi Shulou Technology MariaDB Shulou Tech Info