wepy store tony
wepy store tony
npm install wepy-cli -g
wxParseImgLoad(e) {
console.log('wxParseImgLoad')
console.log(e)
}
wxParseImgTap(e) {
console.log('wxParseImgTap')
console.log(e)
var that = this
var nowImgUrl = e.target.dataset.src
var tagFrom = e.target.dataset.from
if (typeof (tagFrom) != 'undefined' && tagFrom.length > 0) {
wx.previewImage({
current: nowImgUrl, // 当前显示图片的http链接
// urls: that.data[tagFrom].imageUrls // 需要预览的图片http链接列表
urls: that.bindData[tagFrom].imageUrls // 注释掉上面的 换着一行 (http://blog.csdn.net/zhuming3834/article/details/74380079)
})
}
}
使用微信开发者工具新建项目,本地开发选择dist目录。
微信开发者工具 —> 项目 —> 关闭ES6转ES5。
本地项目根目录运行npm run dev,开启实时编译。
https://tencent.github.io/wepy/
http://mp.weixin.qq.com/debug/wxadoc/dev/