摘要:
使用for指令可以实现循环 使用wx:for标签 index和item默认表示索引和value wxml: <text>商品列表信息</text> <view wx:for="{{dataList}}"> 索引:{{index}} - 内容:{{item}} </view> <text>商品列表信息 阅读全文
posted @ 2020-04-29 20:39
一只小小的寄居蟹
阅读(1007)
评论(0)
推荐(0)
摘要:
注意:图片目前只是上传到了内存 使用 wx.chooseImage({ count: 6, sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], …… 样式: wxml: <view bindtap="uploa 阅读全文
posted @ 2020-04-29 20:35
一只小小的寄居蟹
阅读(663)
评论(0)
推荐(0)
摘要:
推荐使用: wx.chooseLocation({ success: function (res) { console.log(res) //获取位置 that.setData({ localPath: res.address}); }, }); 样图: 实现: wxml: <view class= 阅读全文
posted @ 2020-04-29 17:30
一只小小的寄居蟹
阅读(696)
评论(0)
推荐(1)
摘要:
注意事项: 想要获取用户信息,必须经过用户授权(button)。 已授权 不授权,通过调用wx.openSetting // 打开配置,手动授权。 // wx.openSetting({}) 官方推荐使用 <button class="confirm-btn" open-type="getUserI 阅读全文
posted @ 2020-04-29 16:14
一只小小的寄居蟹
阅读(618)
评论(0)
推荐(0)

浙公网安备 33010602011771号