会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
YCA
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
下一页
2018年11月29日
微信小程序---picker
摘要: picker 从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器。 wxml: 普通选择器(mode = selector) <view class='cell-picker'> <view class=
阅读全文
posted @ 2018-11-29 16:46 Super_gaga
阅读(518)
评论(0)
推荐(0)
编辑
2018年11月28日
vue -- 九宫格抽奖
摘要: html: <div class="line_item" :class="index == 1 ? 'active' : 'white_item'"> <div>有礼</div> </div> <div class="line_item" :class="index == 2 ? 'active'
阅读全文
posted @ 2018-11-28 10:30 Super_gaga
阅读(1340)
评论(0)
推荐(0)
编辑
2018年11月22日
vue --轮播图
摘要: 轮播图,可以使用mint-ui中的swipe HTML: <Swipe :auto="4000"> <SwipeItem v-for="item in slideitem"> <img :src="item.img" alt="" @click="toUrl(item.link)"> </Swipe
阅读全文
posted @ 2018-11-22 14:02 Super_gaga
阅读(399)
评论(0)
推荐(0)
编辑
vue--公告轮播
摘要: html: <div class="news" v-if="news.length > 0" > <ul class="marquee_list" :class="{ marquee_top : animate }"> <li v-for="item in news">{{item.title}}<
阅读全文
posted @ 2018-11-22 13:53 Super_gaga
阅读(1542)
评论(0)
推荐(0)
编辑
导航栏滚动
摘要: 在项目,遇到导航栏滚动,滚到到窗口顶部悬停;滚动导航栏的产品,对应的导航栏选中。 html: <div id="nav" > <a class="xyifu" data-id="yifu" @click="goscrol">衣服</a> <a class="xxiezi" data-id="xiez
阅读全文
posted @ 2018-11-22 11:34 Super_gaga
阅读(636)
评论(0)
推荐(0)
编辑
2018年9月27日
微信小程序--分享报错(thirdScriptError Cannot read property 'from' of undefined;at pages/index/index page onShareAppMessage function TypeError: Cannot read property 'from' of undefined)
摘要: 分享功能: onShareAppMessage: function (res) { if (res.from 'button') { // 来自页面内转发按钮 console.log(res.target) } return { title: '首页', path: 'pages/index/ind
阅读全文
posted @ 2018-09-27 11:19 Super_gaga
阅读(15275)
评论(0)
推荐(1)
编辑
2018年8月9日
微信小程序--获取当前城市位置及再次授权地理位置
摘要: 微信小程序-获取当前城市位置 1. 获取当前地理位置,可通过wx.getLocation接口,返回经纬度、速度等信息; 注意 它的默认工作机制: 首次进入页面,调用该api,返回用户授权结果,并保持该结果。只要用户未删除该小程序或变更授权情况,那么用户再次进入该页面,授权结果还是不变,且不会再次调用
阅读全文
posted @ 2018-08-09 20:43 Super_gaga
阅读(9622)
评论(0)
推荐(1)
编辑
微信小程序----搜索框input回车搜索事件
摘要: 在微信小程序里的搜索框,按软键盘回车键触发搜索事件。 <input type="text" placeholder="搜索" value="{{inputVal}}" bindinput="inputTyping" bindconfirm="search" /> bindconfirm 即为回车事件
阅读全文
posted @ 2018-08-09 19:27 Super_gaga
阅读(15554)
评论(0)
推荐(1)
编辑
微信小程序---数据存储
摘要: 微信小程序存储方式有两种:同步和异步。 保存数据有以下两种方式: wx.setStorage 异步保存 wx.setStorageSync同步保存 获取数据也是两种: wx.getStorage 异步获取 wx.getStorageSync同步获取 注意事项: eg. 场景 A页面存储后,跳转至B页
阅读全文
posted @ 2018-08-09 19:22 Super_gaga
阅读(552)
评论(0)
推荐(0)
编辑
微信小程序生命周期——小程序的生命周期及页面的生命周期。
摘要: 最近在做微信小程序开发,也发现一些坑,分享一下自己踩过的坑。 生命周期是指一个小程序从创建到销毁的一系列过程。 在小程序中 ,通过App()来注册一个小程序 ,通过Page()来注册一个页面。 首先来看一下,app.js中,定义的一些小程序生命周期方法: 打印小程序这些方法,程序依次执行了app.j
阅读全文
posted @ 2018-08-09 18:17 Super_gaga
阅读(1440)
评论(0)
推荐(0)
编辑
上一页
1
···
7
8
9
10
11
12
13
14
15
下一页