随笔分类 -  微信小程序

点击交换图片位置
摘要:自己写的,应该是最简易的 router 拦截;无需大量封装,语法还是uni的语法, 跳转的方法并未特殊封装https://github.com/lipuqing/vue-router-test 阅读全文
posted @ 2020-07-24 10:39 heart中的烦恼哟 阅读(6255) 评论(0) 推荐(0) 编辑
摘要:copy地址@http://bmob-cdn-23580.b0.upaiyun.com/2019/01/24/9836a9ec40ec182b8055b0684c3c0f70.rar 阅读全文
posted @ 2019-01-24 11:57 heart中的烦恼哟 阅读(580) 评论(0) 推荐(0) 编辑
摘要:手机号: if (!(/^1[345768]\d{9}$/.test(e.detail.value.phone))) { wx.showToast({ title: '手机号码有误', duration: 2000, icon:'none' }); return false; } 邮箱: if (! 阅读全文
posted @ 2019-01-24 11:03 heart中的烦恼哟 阅读(3164) 评论(2) 推荐(1) 编辑
摘要:之前由于项目比较赶 所有草草的封装了一下请求 并没有超时这类的操作;最近闲下来了,所以就补上了; 第一次自己写,难免的,然后把,偶遇了一下promise.race(); PS:::: 官解———————————————————————————————————————————————————————— 阅读全文
posted @ 2019-01-03 14:31 heart中的烦恼哟 阅读(1781) 评论(0) 推荐(0) 编辑
摘要:小程序基础 1,小程序的构成 wxml (文本页面), wxss (文本页面样式) js (js) JSON (这是个好东西) :在当前页面设置一些自己独有的属性,设置; 比如:设置标题名称 (navigationBarTitleText),标题背景色,标题文字颜色等等有限的小程序注明的样式,(ht 阅读全文
posted @ 2018-11-21 15:01 heart中的烦恼哟 阅读(294) 评论(0) 推荐(0) 编辑
摘要:想来想去 还是先引入组件吧 http://bmob-cdn-20610.b0.upaiyun.com/2018/11/20/736355a740c835f9806ee0d021ff6696.rar 复制以上链接 直接下载 之后压缩 放进你的项目 在引入页面引入 下列方法: wxml <view cl 阅读全文
posted @ 2018-11-20 14:12 heart中的烦恼哟 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-20 13:59 heart中的烦恼哟 阅读(334) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-10-21 14:43 heart中的烦恼哟 阅读(1) 评论(0) 推荐(0) 编辑
摘要:wxml <view class='bg' style='background-size: 100% {{winHeight}}px;'> <!-- 背景 --> <scroll-view class='scroll' style='height:{{winHeight}}px' scroll-y 阅读全文
posted @ 2018-09-27 09:56 heart中的烦恼哟 阅读(1105) 评论(0) 推荐(0) 编辑
摘要:我是封装在uilts文件夹下,尽量减少文件数量; /** * 自定义post函数,返回Promise * + * author: 李先生<17638198892@163.com> * + * @param {String} url 接口网址 * @param {arrayObject} data 要 阅读全文
posted @ 2018-09-27 09:45 heart中的烦恼哟 阅读(1061) 评论(0) 推荐(0) 编辑
摘要:< 定义组建 > // components/component-tag-name.js Component({ options: { multipleSlots: true // 在组件定义时的选项中启用多slot支持 }, /** * 组件的属性列表 */ properties: { }, /* 阅读全文
posted @ 2018-09-07 14:38 heart中的烦恼哟 阅读(511) 评论(0) 推荐(0) 编辑
摘要:动态标题 wx.setNavigationBarTitle({ title: this.data.title//页面标题为路由参数 }) wx.setNavigationBarTitle({ title: this.data.title//页面标题为路由参数 }) 阅读全文
posted @ 2018-09-07 09:44 heart中的烦恼哟 阅读(117) 评论(1) 推荐(0) 编辑
摘要:<!--pages/homeMap/homeMap.wxml--> <view class='background' style='background-image: url("http://bmob-cdn-13048.b0.upaiyun.com/2018/09/05/9b5bbf2040294 阅读全文
posted @ 2018-09-07 09:42 heart中的烦恼哟 阅读(531) 评论(0) 推荐(0) 编辑
摘要:wxml <view class='page_bg' wx:if='{{block}}' bindtap='hide_bg' /> <view class='btn_bg' wx:if='{{block}}'> <view wx:for="{{link_list}}" wx:key='index'> 阅读全文
posted @ 2018-09-07 09:39 heart中的烦恼哟 阅读(389) 评论(0) 推荐(0) 编辑
摘要:wxml <view class='identifyingCode'> <input bindinput="bindInput" type="number" bindfocus='textAnimation'/> <button class='changeType' bindtap='getIden 阅读全文
posted @ 2018-09-07 09:26 heart中的烦恼哟 阅读(152) 评论(0) 推荐(0) 编辑
摘要:wxml <view class='taskAll_pic'> <view class='titleTxet'>图片</view> <view class='picBgInput'> <view wx:for='{{changeList}}' wx:for-item='item' class='im 阅读全文
posted @ 2018-09-07 09:23 heart中的烦恼哟 阅读(1431) 评论(0) 推荐(0) 编辑
摘要:<progress class='progressPercent' percent="{{showPercentProgress}}" stroke-width='2' /> js // pages/startPage/startPage.js const app =getApp(); let Bm 阅读全文
posted @ 2018-09-06 09:26 heart中的烦恼哟 阅读(363) 评论(0) 推荐(0) 编辑
摘要:<!--pages/newwxml/newwxml.wxml--> <view class='background' > <view class='center' animation="{{animationData}}"> <view class='line' wx:for='{{text.len 阅读全文
posted @ 2018-09-06 09:23 heart中的烦恼哟 阅读(153) 评论(0) 推荐(0) 编辑
摘要:wxml <view class="view"> <image class="cover-9" src="{{img}}" bindtap="img"></image> <view class="window-1"> <button type="default" id="open" bindtap= 阅读全文
posted @ 2018-09-06 09:21 heart中的烦恼哟 阅读(2138) 评论(0) 推荐(0) 编辑
摘要:wxml <view class='allFather'> <view class='box1' bindtap='showDialog'> 1</view> </view> <view class='{{show==true?"mengceng":""}}'> <view class='{{sho 阅读全文
posted @ 2018-09-06 09:18 heart中的烦恼哟 阅读(384) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示