diff --git a/components/uni-navbar-lite/uni-icons.css b/components/uni-navbar-lite/uni-icons.css
index 22c98b6163d384124ceabe7b42e9ce6ceab4a06d..469ca822ee999354737cab2a7527f017bc704f1a 100644
--- a/components/uni-navbar-lite/uni-icons.css
+++ b/components/uni-navbar-lite/uni-icons.css
@@ -7,8 +7,6 @@
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
}
.uniui-back:before {
diff --git a/components/uni-navbar-lite/uni-navbar-lite.uvue b/components/uni-navbar-lite/uni-navbar-lite.uvue
index 375364a150df1f942864d0231e83c805616fa780..f7f5db0db27e65385ce775a43b77098849d13408 100644
--- a/components/uni-navbar-lite/uni-navbar-lite.uvue
+++ b/components/uni-navbar-lite/uni-navbar-lite.uvue
@@ -1,121 +1,126 @@
-
-
-
- {{unicode}}
-
-
- {{title}}
-
-
-
-
-
-
+
+
+
+ {{
+ unicode
+ }}
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
\ No newline at end of file
+ .is-left {
+ justify-content: flex-start;
+ }
+
diff --git a/components/uni-navbar-lite/uni-navbar-lite.vue b/components/uni-navbar-lite/uni-navbar-lite.vue
index 58a05a84a34f07d7938ee5ed1df5a6a527915289..550ec7dc39826a9914aa36d80ae9665d2b30b02d 100644
--- a/components/uni-navbar-lite/uni-navbar-lite.vue
+++ b/components/uni-navbar-lite/uni-navbar-lite.vue
@@ -1,94 +1,91 @@
-
-
-
-
-
-
- {{title}}
-
-
-
-
-
-
+
+
+
+
+
+
+ {{title}}
+
+
+
+
+
+
\ No newline at end of file
+ .uni-navbar-content {
+ position: absolute;
+ height: 100%;
+ top: 0;
+ bottom: 0;
+ left: 45px;
+ right: 45px;
+ justify-content: center;
+ align-items: center;
+ }
+
diff --git a/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue b/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue
index 421e49bc65d2c38db8e35e9063a016ca73d30bad..34b31e1f60e3efdb7d89b1d7c87c5777fd040f10 100644
--- a/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue
+++ b/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue
@@ -113,16 +113,12 @@
// this.setAvatarFile(avatar_file)
},
uploadAvatarImg() {
-
if(this.readOnly){
return
}
-
-
// #ifdef MP-WEIXIN
return // 微信小程序走 bindchooseavatar方法
// #endif
-
// #ifndef MP-WEIXIN
// if(!this.hasLogin){
// uni.navigateTo({
@@ -139,21 +135,20 @@
uni.chooseImage({
count: 1,
crop,
- success(res) : void {
+ success: (res) => {
// console.log('res', res);
let tempFiles = res.tempFiles as UTSJSONObject[];
let tempFile = tempFiles[0];
- let tempFileName = tempFile.getString('name')
- let tempFilePath = tempFile.getString('path')
+ let tempFileName = tempFile['name'] as string
+ let tempFilePath = tempFile['path'] as string
if (tempFileName == null) {
tempFileName = ""
}
if (tempFilePath == null) {
tempFilePath = ""
}
- console.log(9527,tempFileName.length);
- console.log('tempFileName',tempFileName);
- console.log('tempFilePath',tempFilePath);
+ // console.log('tempFileName',tempFileName);
+ // console.log('tempFilePath',tempFilePath);
let avatar_file = {
// #ifdef WEB
extname: tempFileName.split(".")[tempFileName.split(".").length - 1],
@@ -164,7 +159,7 @@
name: tempFileName,
url: tempFilePath
} as UTSJSONObject
- console.log('avatar_file', avatar_file);
+ // console.log('avatar_file', avatar_file);
let filePath = res.tempFilePaths[0]
//非app端剪裁头像,app端用内置的原生裁剪
@@ -191,12 +186,6 @@
});
})
// #endif
-
-
- console.log("state",state)
- console.log("state.userInfo",state.userInfo)
- console.log("this.userInfo",this.userInfo)
-
let _id = this.userInfo["_id"] as string
console.log("id",_id)
// if(_id != null){
@@ -204,19 +193,17 @@
// }
let cloudPath = _id + '' + Date.now()
avatar_file.name = cloudPath
-
uni.showLoading({
title: "更新中",
mask: true
});
-
// console.log('filePath', filePath);
uniCloud.uploadFile({
filePath,
cloudPath,
})
.then(function (res) {
- // console.log('res777777777',res);
+ // console.log('res', res);
avatar_file.url = res.fileID
// console.log('avatar_file111', avatar_file);
mutations.updateUserInfo({ avatar_file } as UTSJSONObject)
@@ -232,7 +219,7 @@
uni.hideLoading()
})
},
- fail(err) : void {
+ fail:(err)=>{
console.error('chooseImage fail: ', err)
uni.showModal({
content: '失败,' + err.errMsg,
diff --git a/uni_modules/uni-id-pages-x/pages/userinfo/bindMobile/bindMobile.uvue b/uni_modules/uni-id-pages-x/pages/userinfo/bindMobile/bindMobile.uvue
index 0ebd69e4844fc0166fb8d9418d957505581dc740..96d3058f4584ee75bf294812368c7c06ec96435f 100644
--- a/uni_modules/uni-id-pages-x/pages/userinfo/bindMobile/bindMobile.uvue
+++ b/uni_modules/uni-id-pages-x/pages/userinfo/bindMobile/bindMobile.uvue
@@ -14,7 +14,7 @@