更新记录

1.0.0(2025-09-16) 下载此版本

长期支持版本,可留言反馈问题


平台兼容性

uni-app(3.6.9)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
× ×
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟

d-update-user-info


<d-update-user-info ref="updateUserInfoRef" @update="onUpdateUserInfo"></d-update-user-info>

onClickUseWXAvatar() {
    console.log(this.userFind,'this.userFind')
    console.log(this.$refs,'this.$refs')
    this.$refs.updateUserInfoRef.show({
        avatar:this.userFind.avatar,
        nickName:this.userFind.nick_name,
    })

}

onUpdateUserInfo(res) {
    console.log(res,'res')

    // this.userInfo.avatar = res.avatar
    this.userInfo.nick_name = res.nickName

    var that = this

    if (res.isUpdateAvatar) {
        var ww = that.$common.aliOssApiSyncPHP(res.avatar).then(file_url_path_all=>{
            console.log(file_url_path_all)
            var userParam = {
                avatar:file_url_path_all.path,
            }

            if (res.nickName) {
                userParam.nick_name = res.nickName
            }

            that.userInfo.avatar = file_url_path_all.path

            that.$common.updateUserFindApi(userParam)

            // uni.showModal({
            //  title:'提示',
            //  content:'修改成功',
            //  showCancel:false,
            //  success() {
                    // uni.switchTab({
                    //  url:'/pages/index/my'
                    // })
            //  }
            // })

        })
    }

},

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议