当前位置:网站首页>Configure tabbar and request network data requests
Configure tabbar and request network data requests
2022-07-19 05:37:00 【One finger quicksand Q】
One 、 To configure tabBar
design sketch :

Code :app.json
"tabBar": {
"selectedColor": "green",
"position": "bottom",
"list": [
{
"pagePath": "pages/home/home",
"text": " home page ",
"iconPath": "/images/ home page .png",
"selectedIconPath": "/images/ home page (1).png"
},
{
"pagePath": "pages/message/message",
"text": " Information ",
"iconPath": "/images/ news .png",
"selectedIconPath": "/images/ news (1).png"
},
{
"pagePath": "pages/contact/contact",
"text": " Contact us ",
"iconPath": "/images/ Contact us .png",
"selectedIconPath": "/images/ Contact us (1).png"
}
]
},Two 、 Network data request
skip request Legal domain name verification

Code :
home.wxml
<swiper indicator-dots='true' circular="true">
<swiper-item wx:for="{
{swiperList}}" wx:key="id">
<image src="{
{item.image}}"></image>
</swiper-item>
</swiper>home.wxss
swiper {
height: 350rpx;
}
swiper image {
width: 100%;
height: 100%;
}
home.js
Page({
/**
* Initial data of the page
*/
data: {
swiperList: [],
},
/**
* Life cycle function -- Monitor page loading
*/
onLoad(options) {
this.getSwiperList()
},
getSwiperList() {
wx.request({
url: 'https://www.escook.cn/slides',
method: 'GET',
success: (res) => {
console.log(res);
this.setData({
swiperList: res.data
})
}
})
},design sketch :
边栏推荐
- Is the software testing training of lemon class reliable? This successful case of counter attack from the training class tells you
- 微信小程序的常用组件
- 关于线程池中终止任务
- Flutter Intl的使用
- Scala初级实践——统计手机耗费流量(1)
- 在 CDP中使用Iceberg 为数据湖仓增压
- 2. Technology selection of Neusoft cross border e-commerce data warehouse project
- Minor problems of GCC compiling C language in ubantu
- 5.1数据采集通道搭建之业务数据采集通道搭建
- 1. Dongsoft Cross - Border E - commerce Data Warehouse Requirement specification document
猜你喜欢

ambari 2.7.5集成安装hue 4.6

4.东软跨境电商数仓项目--数据采集通道搭建之用户行为数据采集通道搭建(2022.6.1-2022.6.4)

The future of data Lakehouse - Open

Use iceberg in CDP to pressurize the data Lake warehouse

6.数据仓库搭建之数据仓库设计

Pointer array & array pointer

gradle自定义插件

Use Flink SQL to transfer market data 1: transfer VWAP

Solve idea new module prompt module XXXX does exits

Ambari cluster expansion node + expansion service operation
随机推荐
微信小程序之计算器
Ambari2.7.5 integration es6.4.2
Judging prime
利用IDE打jar包
关于线程池中终止任务
Ambari cluster expansion node + expansion service operation
svg绘制曲线
微信小程序的常用组件
表字段属性查询
MySQL学习笔记(4)——(基本CRUD)操作数据库中的表的数据
sqlalchemy的两种方法详解
MySQL basic grammar dictionary
ambari 2.7.5集成安装hue 4.6
微信小程序代码的构成
[first launch in the whole network] one month later, we switched from MySQL dual master to master-slave
7.数据仓库搭建之数据仓库环境准备
Some applications of special pointers
1.东软跨境电商数仓需求规格说明文档
5. Business analysis of data acquisition channel construction
使用Gson解析错误json数据