Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-customer-new-master
Commits
7741b889
Commit
7741b889
authored
Aug 06, 2024
by
lizhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
【TASK-20240806-01】TASK:APP个人信息国家城市增加
parent
831b3483
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1784 additions
and
1924 deletions
+1784
-1924
.env.development
.env.development
+1
-1
my_info.vue
src/pages/my_info/my_info.vue
+296
-407
register.vue
src/pages/register/register.vue
+4
-4
en.js
src/static/lang/en.js
+732
-744
zh.js
src/static/lang/zh.js
+737
-745
config.js
src/utils/config.js
+3
-4
request.js
src/utils/request.js
+11
-19
No files found.
.env.development
View file @
7741b889
NODE_ENV = development
NODE_ENV = development
# 捷道管理系统/本地开发环境
# 捷道管理系统/本地开发环境
VUE_APP_BASE_API = 'https://api
.jd.jdshangmen.com
'
VUE_APP_BASE_API = 'https://api
test.groupage.cn
'
src/pages/my_info/my_info.vue
View file @
7741b889
This diff is collapsed.
Click to expand it.
src/pages/register/register.vue
View file @
7741b889
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
for
(
let
i
in
res
.
data
){
for
(
let
i
in
res
.
data
){
this
.
areaData
.
push
(
res
.
data
[
i
].
tel
)
this
.
areaData
.
push
(
res
.
data
[
i
].
tel
)
if
(
this
.
$lang
.
locale
==
'
zh
'
){
if
(
this
.
$lang
.
locale
==
'
zh
'
){
this
.
areaName
.
push
(
'
+
'
+
res
.
data
[
i
].
tel
+
'
'
+
res
.
data
[
i
].
nameZh
)
this
.
areaName
.
push
(
'
+
'
+
res
.
data
[
i
].
tel
+
'
'
+
res
.
data
[
i
].
nameZh
)
}
else
{
}
else
{
this
.
areaName
.
push
(
'
+
'
+
res
.
data
[
i
].
tel
+
'
'
+
res
.
data
[
i
].
nameEn
)
this
.
areaName
.
push
(
'
+
'
+
res
.
data
[
i
].
tel
+
'
'
+
res
.
data
[
i
].
nameEn
)
}
}
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
return
false
return
false
}
}
this
.
ismobile
(
this
.
areaData
[
this
.
areaIndex
],
this
.
mobile
)
this
.
ismobile
(
this
.
areaData
[
this
.
areaIndex
],
this
.
mobile
)
},
},
countDown
()
{
countDown
()
{
this
.
leftTime
--
this
.
leftTime
--
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
let
params
=
{
let
params
=
{
areaCode
:
this
.
areaData
[
this
.
areaIndex
],
areaCode
:
this
.
areaData
[
this
.
areaIndex
],
code
:
this
.
code
,
code
:
this
.
code
,
englishName
:
'
Nick
'
,
englishName
:
''
,
mobile
:
this
.
mobile
,
mobile
:
this
.
mobile
,
password
:
this
.
password
,
password
:
this
.
password
,
}
}
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
icon
:
'
none
'
,
icon
:
'
none
'
,
})
})
}
}
this
.
$request
.
post
(
'
/app-api/member/reg
'
,
params
).
then
(
res
=>
{
this
.
$request
.
post
(
'
/app-api/member/reg
'
,
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
&&
res
.
data
){
if
(
res
.
code
==
0
&&
res
.
data
){
uni
.
setStorageSync
(
'
Authorization
'
,
res
.
data
.
token
)
uni
.
setStorageSync
(
'
Authorization
'
,
res
.
data
.
token
)
...
...
src/static/lang/en.js
View file @
7741b889
This diff is collapsed.
Click to expand it.
src/static/lang/zh.js
View file @
7741b889
This diff is collapsed.
Click to expand it.
src/utils/config.js
View file @
7741b889
//
const domain = 'https://api2.groupage.cn'
const
domain
=
'
https://api2.groupage.cn
'
// const domain = 'https://api.jd.jdshangmen.com'
// const domain = 'https://api.jd.jdshangmen.com'
// const domain = 'https://api.sit.jdshangmen.com'
// const domain = 'https://api.sit.jdshangmen.com'
// const domain = 'https://api2.groupage.cn'
// const domain = 'https://api2.groupage.cn'
const
domain
=
'
https://apitest.groupage.cn
'
const
config
=
{
const
config
=
{
CDN_DOMAIN
:
domain
,
CDN_DOMAIN
:
domain
,
API
:
domain
API
:
domain
,
}
}
export
default
config
export
default
config
src/utils/request.js
View file @
7741b889
...
@@ -69,18 +69,10 @@ function callback(resolve, reject, response) {
...
@@ -69,18 +69,10 @@ function callback(resolve, reject, response) {
})
})
}
}
if
(
data
.
code
==
401
)
{
if
(
data
.
code
==
401
)
{
let
pages
=
getCurrentPages
()
// 获取栈实例
store
.
commit
(
'
logout
'
)
uni
.
reLaunch
({
if
(
pages
.
length
>
1
){
url
:
'
/pages/login/login
'
let
prevPage
=
pages
[
pages
.
length
-
2
]
})
if
(
!
prevPage
||
prevPage
.
route
!=
'
pages/login/login
'
){
store
.
commit
(
'
logout
'
)
uni
.
reLaunch
({
url
:
'
/pages/login/login
'
})
}
}
}
}
resolve
(
data
)
resolve
(
data
)
}
else
{
}
else
{
...
@@ -157,7 +149,7 @@ const deleted = (url, param) => {
...
@@ -157,7 +149,7 @@ const deleted = (url, param) => {
})
})
}
}
const
goPage
=
(
url
,
type
=
1
)
=>
{
const
goPage
=
(
url
,
type
=
1
)
=>
{
if
(
type
==
1
){
if
(
type
==
1
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
url
,
url
:
url
,
...
@@ -179,7 +171,7 @@ const backGo = () => {
...
@@ -179,7 +171,7 @@ const backGo = () => {
uni
.
navigateBack
()
uni
.
navigateBack
()
}
}
const
getLocalTime
=
(
nS
)
=>
{
const
getLocalTime
=
(
nS
)
=>
{
if
(
!
nS
){
if
(
!
nS
){
return
''
return
''
}
}
...
@@ -195,18 +187,18 @@ const getLocalTime = (nS) => {
...
@@ -195,18 +187,18 @@ const getLocalTime = (nS) => {
day
=
day
>
9
?
day
:
'
0
'
+
day
;
day
=
day
>
9
?
day
:
'
0
'
+
day
;
min
=
min
>
9
?
min
:
'
0
'
+
min
;
min
=
min
>
9
?
min
:
'
0
'
+
min
;
sec
=
sec
>
9
?
sec
:
'
0
'
+
sec
;
sec
=
sec
>
9
?
sec
:
'
0
'
+
sec
;
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hour
}
:
${
min
}
:
${
sec
}
`
;
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hour
}
:
${
min
}
:
${
sec
}
`
;
}
}
const
getDate
=
(
nS
)
=>
{
const
getDate
=
(
nS
)
=>
{
const
date
=
new
Date
(
nS
);
const
date
=
new
Date
(
nS
);
let
year
=
date
.
getFullYear
();
let
year
=
date
.
getFullYear
();
let
month
=
date
.
getMonth
()
+
1
;
let
month
=
date
.
getMonth
()
+
1
;
let
day
=
date
.
getDate
();
let
day
=
date
.
getDate
();
month
=
month
>
9
?
month
:
'
0
'
+
month
;
month
=
month
>
9
?
month
:
'
0
'
+
month
;
return
`
${
year
}
-
${
month
}
-
${
day
}
`
;
return
`
${
year
}
-
${
month
}
-
${
day
}
`
;
}
}
const
checkFormData
=
(
params
,
rules
)
=>
{
const
checkFormData
=
(
params
,
rules
)
=>
{
for
(
let
i
in
params
){
for
(
let
i
in
params
){
if
(
params
[
i
]
==
''
||
params
[
i
]
==
0
){
if
(
params
[
i
]
==
''
||
params
[
i
]
==
0
){
...
...
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