- 小程序解密手机号失败
- 当前 Bug 的表现 微信登录后code,服务端拿到session_key并保存到服务器端。调用getPhoneNumber解密手机号取用之前保存的session_key解密报错 先调用wx.login之后才调用的getPhoneNumber。并且调用getPhoneNumber之前都是调用wx.checkSession确保会话有效才调用的 [图片]
2019-06-06 - 关于flex子元素布局问题,如何让最后一行是左对齐
[图片] <view class="page"> <view class="section"> <view class="book_items"> <view class="book_attr">请选择到店时间</view> <picker mode="date" value="{{bookDate}}" start="2015-09-01" end="2017-09-01" bindchange="bindDateChange"> <view class="book_picker_view"> {{bookDate}} </view> </picker> </view> <view class="book_items"> <view class="book_attr">请选择预约日期</view> <view class="book_picker_view" bindtap="showModal"> {{bookTime}} </view> </view> </view> <view class="container-column buydes-dialog-container" wx:if="{{showModalStatus}}"> <view class="buydes-dialog-container-top" bindtap="hideModal"></view> <view animation="{{animationData}}" class="container-column buydes-dialog-container-bottom"> <view class="time_title">请选择预约时间</view> <view class="times_block"> <view bindtap="hideModal" class="buydes-dialog-container-bottom-item" wx:for="{{timesData}}" wx:for-index="index" wx:key="key" wx:for-item="item"> {{item}} </view> </view> </view> </view> </view> --------------------wxss------------------------------ .times_block{ display: flex; flex-wrap:wrap; padding: 10rpx 20rpx ; justify-content: center; } .times_block{ display: flex; flex-wrap:wrap; padding: 10rpx 20rpx ; justify-content: center; } .buydes-dialog-container-bottom-item{ display: flex; font-size: 30rpx; padding:12rpx; justify-content: center; border: 10rpx solid #eeeeee; margin: 10rpx 20rpx; border-radius: 10rpx; text-align: center; align-items: flex-start; }
2017-09-04 - 设计支付密码的输入框,如何输入一个密码之后自动跳到下一个input
<view class="pass_view"> <input password type="number" class="password_input_start" maxlength="1" bindinput="getpassword" tabindex="1"/> <input password type="number" class="password_input_middle" maxlength="1" bindinput="getpassword" tabindex="2"/> <input password type="number" class="password_input_middle" maxlength="1" bindinput="getpassword" tabindex="3"/> <input password type="number" class="password_input_middle" maxlength="1" bindinput="getpassword" tabindex="4"/> <input password type="" class="password_input_middle" maxlength="1" bindinput="getpassword" tabindex="5"/> <input password type="" class="password_input_end" maxlength="1" bindinput="getpassword" tabindex="6"/> </view>
2017-06-13