随笔分类 - 微信小程序
摘要:wxml <view id='screen'> <van-popup get-container="#screen" show="{{ visible }}" closeable round position="bottom" bind:close="close_pop" custom-style=
阅读全文
摘要:wxml 必须定义宽高 <view style="height: 500rpx;margin-top:40rpx;"> <ec-canvas id="mychart-dom-bar" class="myCanvas" canvas-id="mychart-bar" ec="{{ec}}"></ec-
阅读全文
摘要:小程序界面间的跳转 **保留当前页面,只能打开非 tabBar 页面,返回时返回该页面** wx.navigateTo({ url: '路径地址', }) **关闭卸载当前页面,只能打开非 tabBar 页面,** wx.redirectTo({ url: '路径地址' }) **关闭所有非tabb
阅读全文
摘要:input_blur(event) { //获取唯一值 var _type = event.currentTarget.dataset.type; this.setData({ ['form.' + _type]: event.detail }) },
阅读全文
摘要:1、在scroll-view标签中写(和滚动在一个标签中) :scroll-top="scrollTop 2、在data中写 scrollTop : 0 3、在相对应的点击跳转的方法内写 this.scrollTop = Math.random()
阅读全文
摘要:let weixinBoolean = false const ready = () => { if (window.__wxjs_environment 'miniprogram') { weixinBoolean = true; } }; if (!window.WeixinJSBridge |
阅读全文
摘要:navBar.wxml <!-- 底部导航条 --> <view class="navBar"> <view class="navBar-home" bindtap='goHome'> <image wx:if="{{homeActive}}" src="../../public/index_tab
阅读全文
摘要:html <view class="carousel"> <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indica
阅读全文
摘要:html <ul class="rev_img_list"> <li wx:for="{{ cItem.pic_arr }}" wx:for-item="pItem" wx:key="pKey" class="rev_img_item"> <image src="{{pItem}}" class="
阅读全文

浙公网安备 33010602011771号