随笔分类 - 微信小程序
小程序开发
摘要:<!--pages/member/member.wxml--> <view class="member-container"> <view class="header-info"> <!--背景图片 --> <image class="bg-wrapper" src='../../images/me
阅读全文
摘要:// 登录 wx.login({ success: res => { // 发送 res.code 到后台换取 openId, sessionKey if(res.code){ //获取到code wx.request({ url: this.globalData.url+'WxGetOpenid'
阅读全文
摘要:#region 模板消息推送 public string fw_appid = System.Configuration.ConfigurationManager.AppSettings["appid"].ToString(); public string fw_secret = System.Co
阅读全文
摘要:不废话,看代码 onLaunch: function() { var _this = this; var url=this.globalData.url+"WeiXinConfig"; wx.request({ method: 'POST', url:url, header:{ 'content-t
阅读全文
摘要:wxml文件 <view class="weui-uploader"> <view class="img-v weui-uploader__bd"> <view class='pic' wx:for="{{imgs}}" wx:for-item="item" wx:key="*this"> <ima
阅读全文
摘要:<block wx:for="{{scoreList}}" wx:key> <view class="cu-bar bg-white solid-bottom margin-top"> <view class="action"> <text class="cuIcon-title text-brow
阅读全文
摘要:<view class="pro-section"> <view class="selectTime"> <text style="float:left;margin-left:-30rpx;">申请时间:</text> <view class="section" style="float:left
阅读全文
摘要:<view class="pro-section"> <text style="float:left;margin-left:-30rpx;">申请日期:</text> <view class="section" style="float:left;width:70%;"> <picker mode
阅读全文
摘要:上篇说到微信小程序select下拉组件的定义为死值 现在来说说怎么从数据库读取数据循环绑定到组件上 wxml <view class="pro-section"> <text class="sect-title">规格:</text> <view class="weui-cell__bd"> <vi
阅读全文
摘要:原始的html中select下拉框是这样的 <select> <option value='Id'>name</option> </select> 但微信小程序不同,如果你这么在微信小程序中定义,那璀璨的红线条会告诉你花儿为什么那么红 微信小程序是没有select标签的,我们需要自己定义select
阅读全文