2018年3月27日

小程序输入框

摘要: // 输入框 bindKeyInput:function(e){ var that = this; var kind = e.target.id; switch (kind) { case "input_wx": that.setData({ user_wx: e.detail.value }) b 阅读全文

posted @ 2018-03-27 10:00 再胖十斤就好 阅读(878) 评论(0) 推荐(0) 编辑

2018年3月17日

小程序全局ajax

摘要: util = { request:function(appUrl,appData,called,type){ wx.showLoading({ title: '加载中...', }) if(!type){ type = "POST"; } wx.request({ url: appUrl, data 阅读全文

posted @ 2018-03-17 15:23 再胖十斤就好 阅读(629) 评论(0) 推荐(0) 编辑

2018年1月19日

微信授权处理

摘要: // 授权 wx.authorize({ scope: 'scope.writePhotosAlbum', success(res) { // 用户已经同意 console.log(res); wx.saveImageToPhotosAlbum({ filePath: that.data.RQImg 阅读全文

posted @ 2018-01-19 13:56 再胖十斤就好 阅读(249) 评论(0) 推荐(0) 编辑

2018年1月18日

授权

摘要: // 授权 wx.getLocation({ success: function (res) { console.log(res) lat = res.latitude, lon = res.longitude, wx.chooseLocation({ latitude: res.latitude, 阅读全文

posted @ 2018-01-18 18:25 再胖十斤就好 阅读(182) 评论(0) 推荐(0) 编辑

2018年1月10日

微信小程序-tab切换

摘要: //wxml <view class="wrap"> <view class="swiper-tab"> <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">可 阅读全文

posted @ 2018-01-10 10:51 再胖十斤就好 阅读(1110) 评论(0) 推荐(0) 编辑

2018年1月9日

全局js

摘要: //单位(function(){var iScale = 1;iScale = iScale / window.devicePixelRatio;document.write('<meta name="viewport" content="width=device-width,user-scalab 阅读全文

posted @ 2018-01-09 11:51 再胖十斤就好 阅读(255) 评论(0) 推荐(0) 编辑

全局ajax 请求

摘要: Util = { request : function(url,jsdata,type,callback){ if(!type){ type = "POST"; } $.ajax( url, { async : true, type : type, contentType : "applicatio 阅读全文

posted @ 2018-01-09 10:00 再胖十斤就好 阅读(158) 评论(0) 推荐(0) 编辑

2018年1月3日

微信小程序-传递参数

摘要: var pages = getCurrentPages(); var prevPage = pages[pages.length - 2]; //上一个页面 prevPage.setData({ infoFace: avatar, isChooseImg:true }) // 获取到裁剪后的图片 w 阅读全文

posted @ 2018-01-03 15:28 再胖十斤就好 阅读(190) 评论(0) 推荐(0) 编辑

微信小程序-默认选中状态

摘要: <view class="bank_MianBox" id="{{item.id}}" wx:for="{{list}}" bindtap='activeBtn'> <view class="recharg_wechatEmpty"> <image id="{{item.id}}" catchtap 阅读全文

posted @ 2018-01-03 14:30 再胖十斤就好 阅读(4757) 评论(0) 推荐(0) 编辑

微信小程序-翻页(优化)

摘要: if (res.data.result == "01") { var length = res.data.list.length; that.setData({ length: length }) if (currentPage == "1") { for (var i = 0; i < lengt 阅读全文

posted @ 2018-01-03 11:17 再胖十斤就好 阅读(2743) 评论(0) 推荐(0) 编辑

导航