wxmlview class="talk" bindtap="bindReply"回復(fù)/viewview class="release" hidden="{{!releaseFocus}}" textarea class="text" placeholder-class="input_null" fixed="true" maxlength="-1&qu
wxml
<view class="talk" bindtap="bindReply">回復(fù)</view><view class="release" hidden="{{!releaseFocus}}"><textarea class="text"placeholder-class="input_null" fixed="true" maxlength="-1" show-confirm-bar="false" cursor-spacing="15" auto-height="true" focus="{{releaseFocus}}"placeholder="回復(fù) {{releaseName}}"></textarea><view class="submit">發(fā)送</view></view>wxss
.input_null{color: #C9C9C9;}.release{display: flex;align-items: flex-end; /*底部對(duì)齊*/justify-content: space-between; /*兩端對(duì)齊*/box-sizing: border-box;position: fixed;left: 0;bottom: 0;width: 100%;padding: 18rpx 0 18rpx 30rpx;background-color: #F7F8F7;font-size: 28rpx;z-index: 999;}.release .text{width: 604rpx;min-height: 34rpx;max-height: 102rpx; /*最多顯示三行*/border-width: 15rpx 20rpx; /*使用padding與預(yù)期留白不一致,故使用border*/border-style: solid;border-color: #ffffff;line-height: 34rpx;font-size: 28rpx;background-color: #ffffff;border-radius: 4rpx;}.release .submit{width: 116rpx;height: 64rpx;line-height: 64rpx;text-align: center;color: #66CC00;}js
Page({/*** 頁(yè)面的初始數(shù)據(jù)*/data: {releaseFocus: false,},/*** 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面加載*/onLoad: function (options) {},/*** 點(diǎn)擊回復(fù)*/bindReply: function(e){this.setData({releaseFocus: true})}})預(yù)覽

顯示
