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
Show 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 @@
...
@@ -86,7 +86,8 @@
v-if=
"userMsg.mobilephone"
v-if=
"userMsg.mobilephone"
@
click=
"toUpdateBindPhone"
@
click=
"toUpdateBindPhone"
>
>
{{
correctTel
(
userMsg
.
mobilephone
)
?
userMsg
.
mobilephone
:
"未认证"
}}
<!--
{{
correctTel
(
userMsg
.
mobilephone
)
?
userMsg
.
mobilephone
:
"未认证"
}}
-->
{{
mobilephone
}}
<van-icon
name=
"arrow"
/>
<van-icon
name=
"arrow"
/>
</div>
</div>
</div>
</div>
...
@@ -128,6 +129,7 @@ import index from "@/api/index";
...
@@ -128,6 +129,7 @@ import index from "@/api/index";
import
{
DFSImg
}
from
"@/utils/index"
;
import
{
DFSImg
}
from
"@/utils/index"
;
import
{
themeColor
}
from
"../../utils/mayi.js"
;
import
{
themeColor
}
from
"../../utils/mayi.js"
;
import
{
formatTime
}
from
"@/utils/index"
;
import
{
formatTime
}
from
"@/utils/index"
;
const
app
=
getApp
()
export
default
{
export
default
{
name
:
"userInfo"
,
name
:
"userInfo"
,
data
()
{
data
()
{
...
@@ -157,6 +159,11 @@ export default {
...
@@ -157,6 +159,11 @@ export default {
ossConfig
:
{},
ossConfig
:
{},
};
};
},
},
computed
:
{
mobilephone
()
{
return
this
.
correctTel
(
this
.
userMsg
.
mobilephone
)
?
this
.
userMsg
.
mobilephone
:
"未认证"
;
}
},
onLoad
()
{
onLoad
()
{
console
.
log
(
"onLoad-----------------"
);
console
.
log
(
"onLoad-----------------"
);
if
(
themeColor
[
"--main-color"
]
!=
"#ffffff"
)
{
if
(
themeColor
[
"--main-color"
]
!=
"#ffffff"
)
{
...
@@ -166,23 +173,24 @@ export default {
...
@@ -166,23 +173,24 @@ export default {
this
.
themeColor
=
res
;
this
.
themeColor
=
res
;
};
};
}
}
},
onShow
()
{
this
.
getUserMsg
();
this
.
getUserMsg
();
},
},
methods
:
{
methods
:
{
toUpdateBindPhone
()
{
toUpdateBindPhone
()
{
let
_this
=
this
;
if
(
this
.
correctTel
(
this
.
userMsg
.
mobilephone
))
{
if
(
this
.
correctTel
(
this
.
userMsg
.
mobilephone
))
{
this
.
$router
.
push
(
app
.
$themeToLink
({
"/personalCenter/updateBindPhone?mobilephone="
+
type
:
1
,
this
.
userMsg
.
mobilephone
link
:
`/personalCenter/updateBindPhone?mobilephone=
${
_this
.
userMsg
.
mobilephone
}
`
,
);
})
}
else
{
}
else
{
console
.
log
(
this
.
$store
.
state
.
userInfo
,
"-------------------135"
);
console
.
log
(
this
.
$store
.
state
.
userInfo
,
"-------------------135"
);
this
.
$router
.
push
({
app
.
$themeToLink
({
path
:
"/login/wxRegister"
,
type
:
1
,
query
:
{
link
:
`/login/wxRegister?openId=
${
_this
.
$store
.
state
.
userInfo
.
wxMiniOpenId
}
`
,
openId
:
this
.
$store
.
state
.
userInfo
.
wxMiniOpenId
,
})
},
});
}
}
},
},
click
()
{
click
()
{
...
@@ -258,6 +266,7 @@ export default {
...
@@ -258,6 +266,7 @@ export default {
icon
:
"success"
,
icon
:
"success"
,
duration
:
2000
,
duration
:
2000
,
});
});
wx
.
setStorageSync
(
"reloadTabbarPage"
,
1
)
}
else
{
}
else
{
wx
.
showToast
({
wx
.
showToast
({
title
:
res
.
data
.
msg
,
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