Skip to content

Commit

Permalink
fix: #5
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Nov 2, 2023
1 parent 45b4482 commit 670aae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion miniprogram/pages/user/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Page({
async onChooseAvatar(e: any) {
await wx.showLoading({title: '上传中', icon: 'loading', mask: true})

let res = await wx.compressImage({ src: e.detail.avatarUrl, quality: 1})
let res = await wx.compressImage({ src: e.detail.avatarUrl, quality: 50})

wx.getFileSystemManager().readFile({
filePath: res.tempFilePath,
Expand Down
2 changes: 1 addition & 1 deletion miniprogram/pages/user/edit.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<view class="weui-label">昵称</view>
</view>
<view class="weui-cell__bd">
<input id="nickname" class="weui-input" placeholder="{{nickname}}" name="nickname" value="{{nickname}}" />
<input id="nickname" type="nickname" class="weui-input" placeholder="{{nickname}}" name="nickname" value="{{nickname}}" />
</view>
</view>
<view for="slogan" class="weui-cell weui-cell_active">
Expand Down

0 comments on commit 670aae7

Please sign in to comment.