Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
2d43357c
Commit
2d43357c
authored
3 years ago
by
leiqingsong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_lqs' into 'master'
Dev lqs See merge request
!152
parents
0abfa790
ea395e4c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
16 deletions
+15
-16
App.vue
H5/src/App.vue
+2
-2
base.js
H5/src/api/base.js
+5
-6
register.vue
H5/src/views/register.vue
+4
-4
settings.vue
H5/src/views/settings.vue
+4
-4
No files found.
H5/src/App.vue
View file @
2d43357c
...
...
@@ -36,9 +36,9 @@ export default {
});
},
methods
:
{
saveUser
(
data
)
{
async
saveUser
(
data
)
{
if
(
data
)
{
getUserInfo
().
then
(
res
=>
{
await
getUserInfo
().
then
(
res
=>
{
console
.
log
(
"存用户信息"
);
if
(
res
.
code
==
0
)
{
localStorage
.
setItem
(
"user"
,
JSON
.
stringify
(
res
.
data
));
...
...
This diff is collapsed.
Click to expand it.
H5/src/api/base.js
View file @
2d43357c
...
...
@@ -38,7 +38,7 @@ export function uploadImage(params, file) {
*/
export
function
versionUpdate
(
params
)
{
return
request
({
url
:
'/account/version'
,
url
:
"/account/version"
,
method
:
"get"
,
params
});
...
...
@@ -50,8 +50,7 @@ export function versionUpdate(params) {
*/
export
function
getAppDownUrl
()
{
return
request
({
url
:
'/account/download'
,
method
:
'get'
})
url
:
"/account/download"
,
method
:
"get"
})
;
}
This diff is collapsed.
Click to expand it.
H5/src/views/register.vue
View file @
2d43357c
...
...
@@ -86,8 +86,8 @@ export default {
name
:
"Register"
,
data
()
{
return
{
androidUrl
:
''
,
iosUrl
:
''
,
androidUrl
:
""
,
iosUrl
:
""
,
form
:
{
userId
:
""
,
sms
:
""
,
...
...
@@ -129,7 +129,7 @@ export default {
}
});
}
})
})
;
},
onClickHide
()
{
this
.
show
=
false
;
...
...
This diff is collapsed.
Click to expand it.
H5/src/views/settings.vue
View file @
2d43357c
...
...
@@ -3,7 +3,7 @@
<van-cell-group
class=
"group-1"
>
<van-cell
title=
"用户名"
:value=
"userName"
/>
<!--is-link @click="onModefy" -->
<van-cell
center
title=
"头像"
is-link
@
click=
"onModefy"
>
<van-cell
center
title=
"头像"
>
<img
class=
"avatar-img"
:src=
"imageBaseUrl + avatar"
alt=
"头像"
/>
</van-cell>
</van-cell-group>
...
...
@@ -90,7 +90,7 @@ export default {
};
},
mounted
()
{
console
.
log
(
'读取用户信息'
);
console
.
log
(
"读取用户信息"
);
this
.
imageBaseUrl
=
process
.
env
.
VUE_APP_BASE_URL
;
this
.
getUser
();
this
.
getAppVersion
();
...
...
@@ -105,9 +105,9 @@ export default {
},
updateVersion
()
{
const
params
=
{
type
:
this
.
$bridgeToAppFun
.
userAgent
===
'ios'
?
1
:
2
,
type
:
this
.
$bridgeToAppFun
.
userAgent
===
"ios"
?
1
:
2
,
version
:
this
.
version
.
substr
(
2
)
}
}
;
versionUpdate
(
params
).
then
(
res
=>
{
this
.
versionShow
=
true
;
if
(
res
.
code
==
1
)
{
...
...
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