Commit fe74b23e by wangzhihui

优化输入空格

1 parent c50865c5
......@@ -245,14 +245,13 @@ Page({
})
},
bindInput(e) {
console.log(e)
const {
item: {
key,
}
} = e.currentTarget.dataset
this.setData({
[`formData.${key}`]: e.detail.value
[`formData.${key}`]: e.detail.value.replace(/\s/g, '')
})
this.check()
},
......
......@@ -14,7 +14,7 @@
<image src="{{userInfo.headImgUrl}}" />
</block>
<block wx:else>
<glsx-image webp src="/mine/default-avatar.png"></glsx-image>
<glsx-image webp src="/mine/avatar.png"></glsx-image>
</block>
</view>
<view class="info auth">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!