会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ThisCall
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
110
111
112
113
114
115
116
117
118
···
129
下一页
2017年11月30日
微信小程序 功能函数 openid本地和网络请求
摘要: 本地 // wx.login({ // success: res => { // var code = res.code; //返回code // // console.log(code) // // 小程序appid // // wxd751fc845c90fbd8 // // 3df95e167
阅读全文
posted @ 2017-11-30 08:45 ThisCall
阅读(450)
评论(0)
推荐(0)
2017年11月29日
微信小程序组件 自定义弹出框
摘要: <!-- 点击立即抢拼弹出框 --> <view class='add-rob' bindtap="setModalStatus" data-status="0" wx:if="{{showModalStatus}}"></view> <view class='rob-box' wx:if="{{s
阅读全文
posted @ 2017-11-29 16:05 ThisCall
阅读(1239)
评论(0)
推荐(0)
微信 小程序布局 swiper 页面
摘要: JS // pages/classify/swiper.js Page({ /** * 页面的初始数据 */ data: { current:0 }, titleBtn:function(e){ var acIndex = e.currentTarget.dataset.current; this.
阅读全文
posted @ 2017-11-29 10:36 ThisCall
阅读(1275)
评论(0)
推荐(0)
微信 小程序布局 scroll-view
摘要: //滚动触底事件 <scroll-view scroll-y lower-threshold="0" bindscrolltolower="scrollBottom" style="height: 200rpx;"> </scroll-view>
阅读全文
posted @ 2017-11-29 09:59 ThisCall
阅读(626)
评论(0)
推荐(0)
2017年11月28日
微信 小程序组件 搜索分类 带缓存(终极 上线版)
摘要: JS // pages/search/search.js var app = getApp(); Page({ /** * 页面的初始数据 */ data: { inputValue:'', // 焦点默认数据 keyListId: 1, keyselecte: true, // keylist:{
阅读全文
posted @ 2017-11-28 11:44 ThisCall
阅读(921)
评论(0)
推荐(0)
微信 小程序组件 加入购物车 (终极 上线版)
摘要: JS // pages/shop/shop.js Page({ /** * 页面的初始数据 */ data: { //判断购物车是否为空时的页面 hasList: false, carts:[], }, // 实现bindSelectAll事件,改变全选状态 selectedAllStatus: t
阅读全文
posted @ 2017-11-28 11:40 ThisCall
阅读(630)
评论(0)
推荐(0)
微信小程序组件 日历
摘要: js文件 'use strict'; let choose_year = null, choose_month = null; const conf = { data: { hasEmptyGrid: false, showPicker: false }, onLoad() { const date
阅读全文
posted @ 2017-11-28 11:20 ThisCall
阅读(6573)
评论(0)
推荐(0)
2017年11月24日
CSS 绝对定位与弹性布局合作居中
摘要: position: absolute; display:flex; justify-content:center;align-items:center; justify-content:center;align-items:center;
阅读全文
posted @ 2017-11-24 15:50 ThisCall
阅读(592)
评论(0)
推荐(0)
2017年11月23日
JS 随机整数
摘要: <script> function GetRandomNum(Min,Max){ var Range = Max - Min; var Rand = Math.random(); return(Min + Math.round(Rand * Range)); } var num = GetRando
阅读全文
posted @ 2017-11-23 18:04 ThisCall
阅读(1076)
评论(0)
推荐(0)
微信小程序 功能函数 支付接口
摘要: // 订单生成返回数据,弹出是否支付模态 wx.showModal({ title: '微信支付', content: '确定支付吗?', success: function (res) { if (res.confirm) { self.pay(bianhao); } else if (res.c
阅读全文
posted @ 2017-11-23 17:45 ThisCall
阅读(250)
评论(0)
推荐(0)
上一页
1
···
110
111
112
113
114
115
116
117
118
···
129
下一页
公告