随笔分类 -  小程序

摘要:尺寸单位: rpx(responsive pixel): 可以根据屏幕宽度进行自适应。规定屏幕宽为750rpx。如在 iPhone6 上,屏幕宽度为375px,共有750个物理像素,则750rpx = 375px = 750物理像素,1rpx = 0.5px = 1物理像素。所以用rpx可解决适配问 阅读全文
posted @ 2017-04-11 16:20 JoyJin 阅读(99655) 评论(0) 推荐(0)
摘要:姓名 身份证号 完成 page({ name: function (e) { //获取input输入的值 var that = this; that.setData({ name: e.detail.value ... 阅读全文
posted @ 2017-04-11 15:55 JoyJin 阅读(35393) 评论(0) 推荐(0)
摘要:目前小程序好像没有支持手机预览背景本地图片,所以将本地图片改为网络图片链接就可以了 阅读全文
posted @ 2017-04-11 15:36 JoyJin 阅读(4662) 评论(0) 推荐(0)
摘要:1.list中的第一个tab的地址必须定义在pages 中 2.pagePath的地址一定要正确 正确写法是: 我的文件目录结构: 阅读全文
posted @ 2017-04-11 15:04 JoyJin 阅读(1292) 评论(0) 推荐(0)
摘要:wxml: js: 点击发送清空input值: 阅读全文
posted @ 2017-04-11 15:00 JoyJin 阅读(468) 评论(0) 推荐(0)
摘要:地图用的是百度的地图,链接:http://lbsyun.baidu.com/index.php?title=wxjsapi/guide/getlocation 获取日期时间可以用小程序里自带的js文件,var util = require('../../utils/util.js') 引入文件 图片 阅读全文
posted @ 2017-04-06 15:44 JoyJin 阅读(866) 评论(4) 推荐(0)
摘要:销售品申请 {{objectArray[item.option].good_name}} ... 阅读全文
posted @ 2017-04-06 15:24 JoyJin 阅读(8786) 评论(1) 推荐(0)
摘要:设置背景颜色就直接在page里设置 page {background-color: rgb(242, 242, 242);} tab切换: navigator 页面链接 传参的格式为url="路径?title={{item.title}}" 多个用&&连接 下个页面接收参数: wxml: wxss: 阅读全文
posted @ 2017-04-06 14:30 JoyJin 阅读(3129) 评论(0) 推荐(0)
摘要:附上微信小程序开发文档链接:https://mp.weixin.qq.com/debug/wxadoc/dev/framework/MINA.html form表单: 当点击 <form/> 表单中 formType 为 submit 的 <button/> 组件时,会将表单组件中的 value 值 阅读全文
posted @ 2017-03-27 11:21 JoyJin 阅读(1643) 评论(0) 推荐(0)
摘要:HTML: {{item.act_name}} {{item.pro_name}} JS:var app = getApp() Page({ data: { oneList: [{ //遍历数组,前台需要请求遍历的参数 id: '', act_name: '', pro_name: '... 阅读全文
posted @ 2017-03-03 15:57 JoyJin 阅读(359) 评论(0) 推荐(0)