Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
b7458a52
Commit
b7458a52
authored
May 24, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原生个人资料页
parent
da4a4bb1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
src/pages/userInfo/index.vue
+20
-11
src/utils/themeModule.js
+0
-0
No files found.
src/pages/userInfo/index.vue
View file @
b7458a52
...
...
@@ -86,7 +86,8 @@
v-if=
"userMsg.mobilephone"
@
click=
"toUpdateBindPhone"
>
{{
correctTel
(
userMsg
.
mobilephone
)
?
userMsg
.
mobilephone
:
"未认证"
}}
<!--
{{
correctTel
(
userMsg
.
mobilephone
)
?
userMsg
.
mobilephone
:
"未认证"
}}
-->
{{
mobilephone
}}
<van-icon
name=
"arrow"
/>
</div>
</div>
...
...
@@ -128,6 +129,7 @@ import index from "@/api/index";
import
{
DFSImg
}
from
"@/utils/index"
;
import
{
themeColor
}
from
"../../utils/mayi.js"
;
import
{
formatTime
}
from
"@/utils/index"
;
const
app
=
getApp
()
export
default
{
name
:
"userInfo"
,
data
()
{
...
...
@@ -157,6 +159,11 @@ export default {
ossConfig
:
{},
};
},
computed
:
{
mobilephone
()
{
return
this
.
correctTel
(
this
.
userMsg
.
mobilephone
)
?
this
.
userMsg
.
mobilephone
:
"未认证"
;
}
},
onLoad
()
{
console
.
log
(
"onLoad-----------------"
);
if
(
themeColor
[
"--main-color"
]
!=
"#ffffff"
)
{
...
...
@@ -166,23 +173,24 @@ export default {
this
.
themeColor
=
res
;
};
}
},
onShow
()
{
this
.
getUserMsg
();
},
methods
:
{
toUpdateBindPhone
()
{
let
_this
=
this
;
if
(
this
.
correctTel
(
this
.
userMsg
.
mobilephone
))
{
this
.
$router
.
push
(
"/personalCenter/updateBindPhone?mobilephone="
+
this
.
userMsg
.
mobilephone
);
app
.
$themeToLink
({
type
:
1
,
link
:
`/personalCenter/updateBindPhone?mobilephone=
${
_this
.
userMsg
.
mobilephone
}
`
,
})
}
else
{
console
.
log
(
this
.
$store
.
state
.
userInfo
,
"-------------------135"
);
this
.
$router
.
push
({
path
:
"/login/wxRegister"
,
query
:
{
openId
:
this
.
$store
.
state
.
userInfo
.
wxMiniOpenId
,
},
});
app
.
$themeToLink
({
type
:
1
,
link
:
`/login/wxRegister?openId=
${
_this
.
$store
.
state
.
userInfo
.
wxMiniOpenId
}
`
,
})
}
},
click
()
{
...
...
@@ -258,6 +266,7 @@ export default {
icon
:
"success"
,
duration
:
2000
,
});
wx
.
setStorageSync
(
"reloadTabbarPage"
,
1
)
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
...
...
src/utils/themeModule.js
View file @
b7458a52
This diff is collapsed.
Click to expand it.
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