2022年3月16日
摘要:
wxml 底部有侧边栏效果图 <!-- 侧边栏 --> <view class="sidebar {{open?'show':''}}"> <input class="wc" wx:for="{{countryArray}}" wx:key="index" style="display:{{vis}
阅读全文
posted @ 2022-03-16 11:14
隔壁老王(加速版)
阅读(455)
推荐(0)
摘要:
wxml:(点击通讯录按钮可以打开,关闭点击遮罩层任意位置) <view class="btn" bindtap="onChange">通讯录</view> <view class="sidebar {{open?'show':''}}">侧边栏位</view> <view class="sideb
阅读全文
posted @ 2022-03-16 10:30
隔壁老王(加速版)
阅读(205)
推荐(0)
2022年3月15日
摘要:
.wxml代码 默认样式 修改后样式 <switch bindchange="switch2Change" class="switch"/> .wxss代码 .wx-switch-input{ /* 按钮的背景大小*/ width: 80rpx !important; height: 40rpx !
阅读全文
posted @ 2022-03-15 15:36
隔壁老王(加速版)
阅读(406)
推荐(0)
2022年3月10日
posted @ 2022-03-10 15:48
隔壁老王(加速版)
阅读(55)
推荐(0)
摘要:
<view wx:for="{{checkboxItems}}"> <view value="{{item.name}}" style="color:{{item.color}};"> {{item.value}} <image src="{{item.image}}" style="width:5
阅读全文
posted @ 2022-03-10 14:36
隔壁老王(加速版)
阅读(89)
推荐(0)
摘要:
old.wxml代码 <view>{{name}}</view> <view>{{age}}</view> <button bindtap="jump">跳转传参</button> old.js代码 Page({ data:{ name:"李知恩", age:"18" }, jump:functio
阅读全文
posted @ 2022-03-10 10:50
隔壁老王(加速版)
阅读(292)
推荐(0)
摘要:
wx.switchTab :跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 wx.reLaunch :关闭所有页面,打开到应用内的某个页面 wx.redirectTo:关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面 wx.navigateTo:保留当前页
阅读全文
posted @ 2022-03-10 10:18
隔壁老王(加速版)
阅读(254)
推荐(0)
摘要:
.wxml代码 <scroll-view scroll-y="true" style="height:100px;"> <view class="iu">iuiu</view> <view class="iu">iuiu</view> <view class="iu">iuiu</view> <vi
阅读全文
posted @ 2022-03-10 10:07
隔壁老王(加速版)
阅读(197)
推荐(0)
摘要:
.wxml代码 备注:标颜色部分是“获取点击数据的代码”,其他部分是侧边栏的功能 <view class="page"> <!-- 侧边栏内容 --> <view class="page-slidebar"> <view class="page-content"> <input class="wc"
阅读全文
posted @ 2022-03-10 09:50
隔壁老王(加速版)
阅读(287)
推荐(0)
摘要:
.wxml代码 <view class="page"> <!-- 侧边栏内容 --> <view class="page-slidebar"> <view class="page-content"> <input class="wc" type="text" wx:for="{{array}}" w
阅读全文
posted @ 2022-03-10 09:11
隔壁老王(加速版)
阅读(279)
推荐(0)