摘要:1.wxml代码: <l-image-picker count="3" bind:linchange="onChangeTap" /> 2.js代码: onChangeTap(e){ //获取所有的图片,类型是一个数组 var image=e.detail.all var _this=this //
阅读全文
摘要:1.wxml代码: <input type="text" value="{{home}}" bindtap="home"/> 2.js代码 home(){ var _this = this wx.chooseLocation({ success:function(e){ var home=e.nam
阅读全文
摘要:1.写wxml页面 <!--前台页面,通过判断决定展示登录还是信息--> <view wx:if="{{isHide}}"> <view wx:if="{{canIUse}}" > <view class='header'> <image src='/image/hhh.jpg'></image>
阅读全文
摘要:1.写wxml代码:(因为这里是测试,所以写的比较简答) <view class="view" wx:for="{{list}}" wx:key="*this"> <view class="view1">{{item.content}}</view> </view> 2.写js代码: // page
阅读全文
摘要:1.参考官方文档 https://developers.weixin.qq.com/miniprogram/dev/component/editor.html 在文档最下方有示例代码,如下图: 点击“在开发者工具中预览效果” 2.将示例代码保存至桌面,以便后期操作 3.文件甲中有一下文件,如下图,我
阅读全文
摘要:1.前端wxml代码 <!--index.wxml--> <view> <view class="page-body"> <view class="page-section page-section-spacing swiper" style="white:100%" style="height:2
阅读全文