diff --git a/uni_modules/uni-id-pages/components/cloud-image/cloud-image.vue b/uni_modules/uni-id-pages/components/cloud-image/cloud-image.vue index f36bb91a7097a973d5c7d7597ecb0828c0ff08df..5f99a39a096a155c15be81b8faac8ee337cb334b 100644 --- a/uni_modules/uni-id-pages/components/cloud-image/cloud-image.vue +++ b/uni_modules/uni-id-pages/components/cloud-image/cloud-image.vue @@ -1,5 +1,5 @@ @@ -46,13 +46,10 @@ watch: { src:{ handler(src) { - // console.log(src); - // console.log(src.substring(0, 8)); if (src&&src.substring(0, 8) == "cloud://") { uniCloud.getTempFileURL({ fileList: [src] }).then(res=>{ - // console.log(res); this.cSrc = res.fileList[0].tempFileURL }) }else{ @@ -61,9 +58,6 @@ }, immediate: true } - }, - async mounted() { - }, methods:{ onClick(){ diff --git a/uni_modules/uni-id-pages/components/uni-id-pages-agreements/uni-id-pages-agreements.vue b/uni_modules/uni-id-pages/components/uni-id-pages-agreements/uni-id-pages-agreements.vue index d2660a939588e0e77cf9c28383b7f98d51aa321c..861e3887e275f542c85201a5cb8a2d97bc0af4aa 100644 --- a/uni_modules/uni-id-pages/components/uni-id-pages-agreements/uni-id-pages-agreements.vue +++ b/uni_modules/uni-id-pages/components/uni-id-pages-agreements/uni-id-pages-agreements.vue @@ -67,7 +67,6 @@ }, methods: { popupConfirm(){ - // console.log("popupConfirm"); this.isAgree = true retryFun() // this.$emit('popupConfirm') diff --git a/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue b/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue index e9b3ae1ab285cb8bd3da8333f083c145fc50c00d..80e8f32fb9b7d0aa9c613c9daa8b0b10e8d3adc9 100644 --- a/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue +++ b/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue @@ -48,7 +48,6 @@ async mounted() { // #ifdef H5 this.isPC = !['ios', 'android'].includes(uni.getSystemInfoSync().platform); - // console.log(' this.isPC', this.isPC, uni.getSystemInfoSync().platform); // #endif }, computed: { @@ -68,7 +67,6 @@ mutations.updateUserInfo({avatar_file}) }, uploadAvatarImg(res) { - // console.log(this.hasLogin); if(!this.hasLogin){ return uni.navigateTo({ url:'/uni_modules/uni-id-pages/pages/login/login-withoutpwd' @@ -84,7 +82,6 @@ count: 1, crop, success: async (res) => { - // console.log(res); let tempFile = res.tempFiles[0], avatar_file = { // #ifdef H5 @@ -95,10 +92,12 @@ // #endif }, filePath = res.tempFilePaths[0] + + //非app端剪裁头像,app端用内置的原生裁剪 // #ifndef APP-PLUS - //非app端用前端组件剪裁头像,app端用内置的原生裁剪 - if (!this.isPC) { - filePath = await new Promise((callback) => { + filePath = await new Promise((callback) => { + // #ifdef H5 + if (!this.isPC) { uni.navigateTo({ url: '/uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage?path=' + filePath + `&options=${JSON.stringify(crop)}`, @@ -112,10 +111,25 @@ // console.log(e); } }); + } + // #endif + + // #ifdef MP-WEIXIN + wx.cropImage({ + src:filePath, + cropScale:"1:1", + success: res => { + callback(res.tempFilePath) + }, + fail(e){ + console.error(e) + callback(filePath) + } }) - } + // #endif + }) // #endif - // console.log(this.userInfo); + let cloudPath = this.userInfo._id + '' + Date.now() avatar_file.name = cloudPath uni.showLoading({ @@ -129,9 +143,7 @@ cloudPath, fileType: "image" }); - // console.log(result) avatar_file.url = fileID - // console.log({avatar_file}); uni.hideLoading() this.setAvatarFile(avatar_file) } diff --git a/uni_modules/uni-id-pages/components/uni-id-pages-bind-mobile/uni-id-pages-bind-mobile.vue b/uni_modules/uni-id-pages/components/uni-id-pages-bind-mobile/uni-id-pages-bind-mobile.vue index 5f0b5f05e1c1af5b315ef3f73e0999bb0412def7..c67b2609af442938b92414b74606504e91301369 100644 --- a/uni_modules/uni-id-pages/components/uni-id-pages-bind-mobile/uni-id-pages-bind-mobile.vue +++ b/uni_modules/uni-id-pages/components/uni-id-pages-bind-mobile/uni-id-pages-bind-mobile.vue @@ -41,13 +41,11 @@ uniCloud.importObject("uni-id-co",{ customUI:true }).loginByWeixin({code}).then(e=>{ - // console.log(e); resolve() }).catch(e=>{ console.log(e); reject() }).finally(e=>{ - // console.log(e); uni.hideLoading() }) }, @@ -61,13 +59,10 @@ }) }, async bindMobileByMpWeixin(e) { - // console.log(e); if (e.detail.errMsg == "getPhoneNumber:ok") { - // console.log(e.detail); //检查登录信息是否过期,否则通过重新登录刷新session_key await this.beforeGetphonenumber() uniIdCo.bindMobileByMpWeixin(e.detail).then(e => { - // console.log(e); this.$emit('success') }).finally(e => { this.closeMe() @@ -157,8 +152,8 @@ .agree::after { border: none; } - /* #endif */ + .agree:active { background-color: #F5F5F6; } diff --git a/uni_modules/uni-id-pages/components/uni-id-pages-email-form/uni-id-pages-email-form.vue b/uni_modules/uni-id-pages/components/uni-id-pages-email-form/uni-id-pages-email-form.vue index ba53d736346cc47c88ea9f83b75b8dfcac31ea98..b10d7dc013f1c42ba9abef74d69822e2380b0e30 100644 --- a/uni_modules/uni-id-pages/components/uni-id-pages-email-form/uni-id-pages-email-form.vue +++ b/uni_modules/uni-id-pages/components/uni-id-pages-email-form/uni-id-pages-email-form.vue @@ -141,7 +141,6 @@ const uniIdCo = uniCloud.importObject("uni-id-co", { customUI: true }) - // console.log('uniIdCo', uniIdCo) console.log('sendEmailCode',{ "email": this.email, "scene": this.type, @@ -152,7 +151,6 @@ "scene": this.type, "captcha": this.captcha }).then(result => { - // console.log(result.code); uni.showToast({ title: "邮箱验证码发送成功", icon: 'none', @@ -161,7 +159,6 @@ this.reverseNumber = Number(this.count); this.getCode(); }).catch(e => { - // console.log(JSON.stringify(e)); if (e.code == "uni-id-invalid-mail-template") { this.modelValue = "123456" uni.showToast({ diff --git a/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue b/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue index c652a56d150a6df7e06a8e1090e51b2eb72e892d..c6a98309ed3c106e99219330d8ce495977566b66 100644 --- a/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue +++ b/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue @@ -15,13 +15,7 @@ - - diff --git a/uni_modules/uni-id-pages/pages/login/login-smscode.vue b/uni_modules/uni-id-pages/pages/login/login-smscode.vue index 22948258b8cd28fe65523d76daa8e6f96559dae5..f847cc57c0e223f5915739cab73202ccce9eaeda 100644 --- a/uni_modules/uni-id-pages/pages/login/login-smscode.vue +++ b/uni_modules/uni-id-pages/pages/login/login-smscode.vue @@ -38,7 +38,6 @@ this.phone = phoneNumber; }, onShow() { - // console.log('onShow'); // #ifdef H5 document.onkeydown = event => { var e = event || window.event; @@ -68,14 +67,12 @@ "code": this.code, "captcha": this.captcha }).then(e => { - // console.log(e); this.loginSuccess(e) }).catch(e => { if (e.errCode == 'uni-id-captcha-required') { this.$refs.popup.open() } else { console.log(e.errMsg); - // console.log(e.errCode); } }).finally(e => { this.captcha = '' diff --git a/uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue b/uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue index 85676414d4b15b00a9576e23cea053279689375a..ca60fe311fef91afa03e6085f1f74f207a35ee1e 100644 --- a/uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue +++ b/uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue @@ -52,14 +52,14 @@ return /^1\d{10}$/.test(this.phone); }, imgSrc() { //大快捷登录按钮图 - return '/uni_modules/uni-id-pages/static/login/' + this.type + '.png' + return this.type == 'weixin'? '/uni_modules/uni-id-pages/static/login/weixin.png' : '/uni_modules/uni-id-pages/static/app-plus/apple.png' } }, async onLoad(e) { - // console.log(e); //获取通过url传递的参数type设置当前登录方式,如果没传递直接默认以配置的登录 let type = e.type || config.loginTypes[0] this.type = type + // console.log("this.type: -----------",this.type); if(type != 'univerify'){ this.focusPhone = true } @@ -111,7 +111,6 @@ this.$refs.uniFabLogin.login_before(this.type, true, options) }, toSmsPage() { - // console.log('toSmsPage',this.agree); if (!this.isPhone) { this.focusPhone = true return uni.showToast({ @@ -201,7 +200,6 @@ } .quickLogin { - // width: 650rpx; height: 350px; align-items: center; justify-content: center; diff --git a/uni_modules/uni-id-pages/pages/register/register-admin.vue b/uni_modules/uni-id-pages/pages/register/register-admin.vue index 8366cd4c44ede3d08b4c457103f8c304edd635b1..fcaf88a15202d6595b569c550df5cf8db813938e 100644 --- a/uni_modules/uni-id-pages/pages/register/register-admin.vue +++ b/uni_modules/uni-id-pages/pages/register/register-admin.vue @@ -108,12 +108,9 @@ }, submitForm(params) { uniIdCo.registerAdmin(this.formData).then(e => { - // console.log(e); uni.navigateBack() }) .catch(e => { - // console.log(e); - // console.log(e.message); //更好的体验:登录错误,直接刷新验证码 this.$refs.captcha.getImageCaptcha() uni.showModal({ diff --git a/uni_modules/uni-id-pages/pages/register/register.vue b/uni_modules/uni-id-pages/pages/register/register.vue index abe19582558be787c47da1a880f515518098b48b..1c6718e575b4bcab6aca227ad16603e31068c281 100644 --- a/uni_modules/uni-id-pages/pages/register/register.vue +++ b/uni_modules/uni-id-pages/pages/register/register.vue @@ -114,7 +114,6 @@ }).catch((errors) => { let key = errors[0].key key = key.replace(key[0], key[0].toUpperCase()) - // console.log(key); this['focus' + key] = true return errors }) diff --git a/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue b/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue index d3cf17cd52b011b85907b0e9e3b1eb9f7b04c5c2..b6e770436b05e801be58b931195294911365c66e 100644 --- a/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue +++ b/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue @@ -137,8 +137,6 @@ * 完成并提交 */ submit() { - // console.log("formData", this.formData); - // console.log('rules', this.rules); this.$refs.form.validate() .then(res => { let { @@ -153,7 +151,6 @@ password, captcha }).then(e => { - // console.log(e); uni.navigateTo({ url: '/uni_modules/uni-id-pages/pages/login/login-withpwd', complete: (e) => { @@ -171,11 +168,9 @@ }).catch(errors=>{ let key = errors[0].key if(key == 'code'){ - // console.log(this.$refs.shortCode); return this.$refs.shortCode.focusSmsCodeInput = true } key = key.replace(key[0], key[0].toUpperCase()) - // console.log(key,'focus'+key); this['focus'+key] = true }) }, diff --git a/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue b/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue index 183c4055fe254750e48518644c8ba73535c0155d..6e1976ba37daddf9d3b77a9a703934f74b8b81b9 100644 --- a/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue +++ b/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue @@ -166,8 +166,6 @@ * 完成并提交 */ submit() { - // console.log("formData", this.formData); - // console.log('rules', this.rules); this.$refs.form.validate() .then(res => { let { @@ -182,7 +180,6 @@ password, captcha }).then(e => { - // console.log(e); uni.navigateBack() }) .catch(e => { @@ -195,11 +192,9 @@ }).catch(errors=>{ let key = errors[0].key if(key == 'code'){ - // console.log(this.$refs.shortCode); return this.$refs.shortCode.focusSmsCodeInput = true } key = key.replace(key[0], key[0].toUpperCase()) - // console.log(key,'focus'+key); this['focus'+key] = true }) }, @@ -208,11 +203,11 @@ url: '/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email' }) }, - backLogin () { - uni.redirectTo({ - url: '/uni_modules/uni-id-pages/pages/login/login-withpwd' - }) - } + backLogin () { + uni.redirectTo({ + url: '/uni_modules/uni-id-pages/pages/login/login-withpwd' + }) + } } } diff --git a/uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue b/uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue index 32386b831a015f3483c65d6ce46a8ffaaa6e6ff6..ce0b4869e8778a5c0b4a566b023eb16b5df07c56 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue +++ b/uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue @@ -65,7 +65,6 @@ }); } - // console.log(this.formData); const uniIdCo = uniCloud.importObject("uni-id-co") return await uniIdCo.bindMobileBySms(this.formData).then(e => { // console.log(e); diff --git a/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue b/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue index beeabc752b2bdfc5e3951c50ea4e2da4a915b668..648bffb77d7366dc64f92b65f32e9b0117dbfc30 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue +++ b/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue @@ -112,7 +112,6 @@ console.log("errors: ",errors); let key = errors[0].key key = key.replace(key[0], key[0].toUpperCase()) - // console.log(key, 'focus' + key); this['focus' + key] = true return errors }) diff --git a/uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate.vue b/uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate.vue index d1c9467e0cd8d70f3308d7d9453d1ed2161e1384..6d96421551c79cbcce792f58d9482d6c85dc2b53 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate.vue +++ b/uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate.vue @@ -39,11 +39,8 @@ content: '已经仔细阅读注销提示,知晓可能带来的后果,并确认要注销', complete: (e) => { if (e.confirm) { - const db = uniCloud.database(); - const uniIdco = uniCloud.importObject("uni-id-co"); uniIdco.closeAccount().then((e) => { - // console.log(e); uni.showToast({ title: '注销成功', duration: 3000 diff --git a/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue b/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue index 1329b7f46243e3608d0d06aa392a2e897fc78f61..0b482609657ef0547a24460da20119f5afa82187 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue +++ b/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue @@ -115,7 +115,6 @@ export default { this.$refs.popup.open() } else { console.log(e.errMsg); - // console.log(e.errCode); } }).finally(e => { this.formData.captcha = '' diff --git a/uni_modules/uni-id-pages/pages/userinfo/userinfo.vue b/uni_modules/uni-id-pages/pages/userinfo/userinfo.vue index 36b34b17ad803f2b00aed403a05b1294bcb04906..5124c4cf3d5c5f81abd80b6ff320f370771ecc80 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/userinfo.vue +++ b/uni_modules/uni-id-pages/pages/userinfo/userinfo.vue @@ -14,9 +14,11 @@ + + @@ -30,8 +32,6 @@