Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leiqingsong
XiTianSenMall
Commits
429d5356
Commit
429d5356
authored
Mar 15, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
98cb3c21
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
main.js
H5/src/main.js
+2
-1
localGetter.js
H5/src/utils/localGetter.js
+9
-0
modefyAvatar.vue
H5/src/views/modefyAvatar.vue
+0
-1
myStatus.vue
H5/src/views/my/myStatus.vue
+2
-1
No files found.
H5/src/main.js
View file @
429d5356
...
@@ -8,8 +8,9 @@ import "amfe-flexible";
...
@@ -8,8 +8,9 @@ import "amfe-flexible";
import
"@/plugins/vant-ui.js"
;
import
"@/plugins/vant-ui.js"
;
import
"@/plugins/echarts-plugins.js"
;
import
"@/plugins/echarts-plugins.js"
;
import
Vconsole
from
"vconsole"
;
import
Vconsole
from
"vconsole"
;
import
{
getUserId
}
from
"./utils/localGetter"
;
import
{
getUserId
,
getUserAvatar
}
from
"./utils/localGetter"
;
Vue
.
prototype
.
$userId
=
getUserId
();
Vue
.
prototype
.
$userId
=
getUserId
();
Vue
.
prototype
.
$userAvatar
=
getUserAvatar
();
import
bridgeToAppFun
from
"@/utils/bridgeToAppFun"
;
import
bridgeToAppFun
from
"@/utils/bridgeToAppFun"
;
Vue
.
prototype
.
$bridgeToAppFun
=
new
bridgeToAppFun
();
Vue
.
prototype
.
$bridgeToAppFun
=
new
bridgeToAppFun
();
...
...
H5/src/utils/localGetter.js
View file @
429d5356
...
@@ -6,3 +6,12 @@ export function getUserId() {
...
@@ -6,3 +6,12 @@ export function getUserId() {
return
""
;
return
""
;
}
}
}
}
export
function
getUserAvatar
()
{
let
userInfo
=
localStorage
.
getItem
(
"user"
);
if
(
userInfo
)
{
return
JSON
.
parse
(
userInfo
).
headImage
;
}
else
{
return
""
;
}
}
H5/src/views/modefyAvatar.vue
View file @
429d5356
...
@@ -33,7 +33,6 @@ export default {
...
@@ -33,7 +33,6 @@ export default {
};
};
},
},
mounted
()
{
mounted
()
{
console
.
log
(
"123"
);
console
.
log
(
this
.
$route
.
query
);
console
.
log
(
this
.
$route
.
query
);
const
headImage
=
this
.
$route
.
query
.
headImage
;
const
headImage
=
this
.
$route
.
query
.
headImage
;
if
(
headImage
)
{
if
(
headImage
)
{
...
...
H5/src/views/my/myStatus.vue
View file @
429d5356
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
>
>
<div
class=
"userAvatar"
>
<div
class=
"userAvatar"
>
<div
class=
"avatar-box"
>
<div
class=
"avatar-box"
>
<img
class=
"avatar"
src=
"@/assets/images/avatar.png
"
alt=
"头像"
/>
<img
class=
"avatar"
:src=
"avatar
"
alt=
"头像"
/>
<img
class=
"level-img"
src=
"@/assets/images/等级展示框.png"
alt
/>
<img
class=
"level-img"
src=
"@/assets/images/等级展示框.png"
alt
/>
<span
class=
"avatar-level"
>
Lv.
{{
userRecommendInfo
.
userlevel
}}
</span>
<span
class=
"avatar-level"
>
Lv.
{{
userRecommendInfo
.
userlevel
}}
</span>
</div>
</div>
...
@@ -88,6 +88,7 @@ export default {
...
@@ -88,6 +88,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
avatar
:
process
.
env
.
VUE_APP_BASE_URL
+
this
.
$userAvatar
,
inviteeArr
:
[],
inviteeArr
:
[],
userRecommendInfo
:
{},
userRecommendInfo
:
{},
activeTab
:
""
,
activeTab
:
""
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment