微信小程序
知音难遇
学无止境
展开
-
微信小程序发布
1.后台IIS发布https代码2.微信小程序后台添加域名3.微信小程序提交版本审核原创 2019-12-13 10:08:28 · 164 阅读 · 0 评论 -
微信小程序跳转导航页面
wx.switchTab({url: '../landlord/landlord'})原创 2018-12-11 17:06:52 · 1451 阅读 · 0 评论 -
微信小程序下拉刷新
home.json添加{"enablePullDownRefresh": true,"backgroundColor": "#FFFFFF"}home.js添加onPullDownRefresh:function(){this.onShow();},原创 2018-12-12 16:50:30 · 237 阅读 · 0 评论 -
微信小程序加虚线
.cartLeft{width: 50%;height: 100rpx;border-right: 1rpx dashed #a7a8a8;}原创 2018-12-05 18:19:16 · 12592 阅读 · 0 评论 -
微信小程序view下的字体居中显示
.ordinary {width: 160rpx;height: 60rpx;font-size: 30rpx;border-radius: 30rpx;background-color: #c7c6c6;color: #fff;display: flex; /*设置显示样式**/align-items: center; /**子view垂直居中*/vertic...原创 2018-12-05 09:48:15 · 10577 阅读 · 0 评论 -
微信小程序图片自适应
<image class='img' src="../../images/title.png" mode="widthFix" ></image> .img{width: 400rpx;height: 100rpx;}原创 2018-12-03 09:56:08 · 454 阅读 · 1 评论 -
微信小程序滚动事件的触发
onPageScroll: function(e) {let that=this;if (e.scrollTop==0){that.setData({isScroll: false})}else{that.setData({isScroll: true})}// console.log(e);//{scrollTop:99}},原创 2018-12-03 09:48:07 · 5634 阅读 · 0 评论 -
微信小程序跳转上一页
Selected: function(e) {//用户收货地址var that = this;var id = e.currentTarget.dataset.address;that.SelectedAddress(id); var pages = getCurrentPages(); //当前页面var prevPage = pages[pages.length -...原创 2018-11-30 13:45:40 · 339 阅读 · 0 评论 -
微信小程序跳转上一页
lastPage:function(){var pages = getCurrentPages(); //当前页面var prevPage = pages[pages.length - 2]; //上一页面wx.navigateBack({ //返回delta: 1});}原创 2018-12-04 11:11:08 · 508 阅读 · 0 评论 -
微信小程序中view中文字强制换行显示属性
white-space:pre-line;(不会保留空白和tabs)/white-space:pre-wrap; (会保留空白和tabs)原创 2018-12-04 10:06:36 · 8803 阅读 · 0 评论 -
微信小程序跳转上一页
wx.showModal({title: '提示',content: "服务器异常",showCancel: false,success: function(res) {if (res.confirm) {wx.navigateBack();}}});原创 2018-11-23 15:45:05 · 1161 阅读 · 0 评论 -
判断样式view是否显示
WXML<view class="lab {{addressId==''?'show':'hide'}}" bindtap='SelectAddress'>请选择收货地址</view><view class="lab {{addressId==''?'hide':'show'}}" bindtap='SelectAddress'>{{address.Ad...原创 2018-11-16 11:04:45 · 694 阅读 · 0 评论 -
微信小程序实现模块
.container{background-color: white;margin: 10rpx 20rpx 10rpx 20rpx;-moz-box-shadow: 2rpx 2rpx 5rpx #969696;-webkit-box-shadow: 2rpx 2rpx 5rpx #969696;box-shadow: 2rpx 2rpx 5rpx #969696;wid...原创 2018-11-16 10:50:12 · 851 阅读 · 0 评论 -
微信小程序view禁掉bindtap
<view class="addCart {{shop.OpenFlag=='1'?'chose':'other'}}" bindtap="tapAddCart" data-id="{{items.GoodsId}}"> .other {background: #ff8810;pointer-events: none;}.chose {background:...原创 2018-11-13 11:30:47 · 9714 阅读 · 4 评论