<textarea placeholder="点击这里记录你的心情吧 ~" bindinput="shouqi" style="text-align: {{textStyle}};" auto-height="{{true}}" maxlength="-1">
<keyboard-accessory class="containe" style="height: 50rpx;">
<cover-view class="containe_item">
<cover-image src="../../img/tupian.png" bindtap="updata" class="contatiner_tupian"></cover-image>
<cover-image src="../../img/luyin.png" bindtap="luyin" class="contatiner_luyin"></cover-image>
</cover-view>
</keyboard-accessory>
</textarea>
updata() {
console.log('上传');
let that = this
wx.chooseImage({
count: 1,
sizeType: ['compressed'],
sourceType: ['album', 'camera'],
success(res) {
const tempFilePaths = res.tempFilePaths[0];
console.log(tempFilePaths);
}
})
},
你好,请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。