- 请问要怎么绑定图片点击事件才能提交图片左边input的表单?
[图片] 需求:坐标输入框输入后点击右边图片提交数据表单。 在输入框可以自己点击键盘的发送提交。但是要怎么通过点击右边图片也能提交呢? [代码]<view class=[代码][代码]'inputRoom'[代码] [代码]style=[代码][代码]'bottom: {{inputBottom}}'[代码][代码]>[代码][代码] [代码][代码]<input bindconfirm=[代码][代码]'sendClick'[代码] [代码]adjust-position=[代码][代码]'{{false}}'[代码] [代码]value=[代码][代码]'{{inputVal}}'[代码] [代码]confirm-type=[代码][代码]'send'[代码] [代码]bindfocus=[代码][代码]'focus'[代码] [代码]bindblur=[代码][代码]'blur'[代码][代码]></input>[代码][代码] [代码][代码]<image style=[代码][代码]'width: 7vw; margin-left: 3.2vw;'[代码] [代码]src=[代码][代码]'../../img/发送.png'[代码] [代码]mode=[代码][代码]'widthFix'[代码] [代码]bindtap=[代码][代码]"sendbutton"[代码][代码]></image>[代码][代码] [代码][代码]</view>[代码][代码]</view>[代码][代码]sendClick: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]msgList.push({[代码][代码] [代码][代码]speaker: [代码][代码]'customer'[代码][代码],[代码][代码] [代码][代码]contentType: [代码][代码]'text'[代码][代码],[代码][代码] [代码][代码]content: e.detail.value[代码][代码] [代码][代码]})[代码][代码] [代码][代码]inputVal = [代码][代码]''[代码][代码];[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]msgList,[代码][代码] [代码][代码]inputVal[代码][代码] [代码][代码]});[代码]
2019-11-20 - 为什么无法垂直居中?
[代码]<view class=[代码][代码]"c1"[代码][代码]>[代码][代码] [代码][代码]<text>111111</text>[代码][代码]</view>[代码][代码].c1{[代码][代码] [代码][代码]width: 100%;[代码][代码] [代码][代码]height: 100%;[代码][代码] [代码][代码]display: flex;[代码][代码] [代码][代码]justify-content: center;[代码][代码] [代码][代码]align-items: center;[代码][代码]}[代码][图片]
2019-11-10 - iconfont为什么显示不出来?
https://www.jianshu.com/p/0d631d3b1983参考了这个博客。没有报错。但是没有显示出来icon [代码]<span class=[代码][代码]"iconfont fliter"[代码][代码]></span>[代码]
2019-11-09 - 请问bindtap事件点击了却不能跳转页面?
[代码]<view id=[代码][代码]"task"[代码] [代码]bindtap=[代码][代码]"jump"[代码][代码]> [代码][代码] [代码][代码]<text id=[代码][代码]"task_status"[代码] [代码]decode=[代码][代码]"true"[代码][代码]> 状态:\n</text>[代码][代码] [代码][代码]<text>内容:\n</text>[代码][代码] [代码][代码]<text>tips:\n</text>[代码][代码] [代码][代码]<view id=[代码][代码]"money"[代码][代码]>¥:3</view>[代码][代码] [代码][代码]</view>[代码][代码]jump: [代码][代码]function[代码] [代码](event) {[代码][代码] [代码][代码]console.log(event)[代码][代码] [代码][代码]wx.navigateTo({[代码][代码] [代码][代码]url: [代码][代码]"pages/taskDetail/taskDetail"[代码][代码],[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}[代码][图片]点击了有日志文件输出,但是为什么不能跳转
2019-11-08