Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
offical_web
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
zhangjie
offical_web
Commits
75abb357
Commit
75abb357
authored
May 15, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
添加重新绑定功能 See merge request
!16
parents
86f62861
b9489fef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
3 deletions
+56
-3
src/components/head.vue
+1
-1
src/views/contact.vue
+53
-0
src/views/login.vue
+2
-2
No files found.
src/components/head.vue
View file @
75abb357
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"container"
v-else
>
<div
class=
"container"
v-else
>
<div
class=
"logo"
>
<div
class=
"logo"
>
<span
class=
"logo_text"
>
<span
class=
"logo_text"
>
<img
s
rc=
"../assets/logo.png"
height=
"40px
"
/>
<img
s
tyle=
"height: 40px"
src=
"../assets/logo.png
"
/>
</span>
</span>
</div>
</div>
<nav
class=
"navbar"
>
<nav
class=
"navbar"
>
...
...
src/views/contact.vue
View file @
75abb357
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
</div>
</div>
<div
class=
"login_content"
>
<div
class=
"login_content"
>
<div
class=
"no-authority"
>
<div
class=
"no-authority"
>
<div
style=
"display: flex;align-items: center"
>
<div
<div
style=
"
style=
"
text-align: center;
text-align: center;
...
@@ -43,6 +44,8 @@
...
@@ -43,6 +44,8 @@
v
-
else
>
v
-
else
>
您尚未开通
erp
权限
,
请联系您的商务经理
您尚未开通
erp
权限
,
请联系您的商务经理
<
/h1
>
<
/h1
>
<
el
-
button
@
click
=
"handleBind"
style
=
"margin-left: 8px;height: 41px"
type
=
"primary"
>
重新绑定
ERP
<
/el-button
>
<
/div
>
<
h2
<
h2
style
=
"
style
=
"
text-align: center;
text-align: center;
...
@@ -79,6 +82,22 @@
...
@@ -79,6 +82,22 @@
<
/el-button
>
<
/el-button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
el
-
dialog
:
close
-
on
-
click
-
modal
=
"false"
:
visible
.
sync
=
"bindVisible"
titlt
=
""
width
=
"500px"
>
<
template
slot
=
"title"
>
重新绑定
ERP
<
/template
>
<
el
-
form
ref
=
"formRef"
:
model
=
"bindForm"
inline
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"域名"
prop
=
"erpKey"
:
rules
=
"[{ required: true, message: '请输入erp域名',trigger:'blur'
}
]"
>
<
el
-
input
style
=
"width: 100%;"
v
-
model
=
"bindForm.erpKey"
clearable
>
<
template
slot
=
"append"
>
.
jomalls
.
com
<
/template
>
<
/el-input
>
<
/el-form-item
>
<
/el-form
>
<
template
slot
=
"footer"
>
<
el
-
button
@
click
=
"confirmBind"
type
=
"primary"
>
确定
<
/el-button
>
<
el
-
button
@
click
=
"bindVisible = false"
>
取消
<
/el-button
>
<
/template
>
<
/el-dialog
>
<!--
<
div
class
=
"contain"
v
-
else
><
/div> --
>
<!--
<
div
class
=
"contain"
v
-
else
><
/div> --
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -92,6 +111,10 @@ export default {
...
@@ -92,6 +111,10 @@ export default {
components
:
{
}
,
components
:
{
}
,
data
()
{
data
()
{
return
{
return
{
bindVisible
:
false
,
bindForm
:{
erpKey
:
''
}
,
userInfo
:
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
)),
userInfo
:
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
)),
shopifyObj
:
JSON
.
parse
(
localStorage
.
getItem
(
'shopifyObj'
))
shopifyObj
:
JSON
.
parse
(
localStorage
.
getItem
(
'shopifyObj'
))
}
}
...
@@ -107,6 +130,36 @@ export default {
...
@@ -107,6 +130,36 @@ export default {
}
,
}
,
methods
:
{
methods
:
{
...
mapMutations
([
'setUserInfo'
]),
...
mapMutations
([
'setUserInfo'
]),
confirmBind
(){
this
.
$refs
.
formRef
.
validate
((
v
)
=>
{
if
(
v
){
let
u
=
localStorage
.
getItem
(
'userInfo'
)
if
(
u
)
u
=
JSON
.
parse
(
u
)
let
obj
=
{
erpKey
:
this
.
bindForm
.
erpKey
,
}
if
(
u
.
email
)
obj
.
email
=
u
.
email
if
(
u
.
phoneNumber
)
obj
.
phoneNumber
=
u
.
phoneNumber
post
(
'business/user/bindErp'
,
obj
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
$message
.
success
(
'操作成功'
)
u
.
erpKey
=
this
.
bindForm
.
erpKey
localStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
u
))
location
.
reload
()
}
}
)
}
}
)
}
,
handleBind
(){
this
.
bindVisible
=
true
this
.
bindForm
=
{
erpKey
:
''
}
this
.
$nextTick
(
function
(){
this
.
$refs
.
formRef
?.
clearValidate
()
}
)
}
,
goBack
()
{
goBack
()
{
this
.
$router
.
push
(
'/'
)
this
.
$router
.
push
(
'/'
)
}
,
}
,
...
...
src/views/login.vue
View file @
75abb357
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<div
class=
"logo"
>
<div
class=
"logo"
>
<a
href=
"/"
>
<a
href=
"/"
>
<span
class=
"logo_text"
>
<span
class=
"logo_text"
>
<img
src=
"../assets/logo1.png"
height=
"
40px"
v-if=
"$isMobile"
/>
<img
src=
"../assets/logo1.png"
style=
"height:
40px"
v-if=
"$isMobile"
/>
<img
src=
"../assets/logo.png"
height=
"
40px"
v-else
/>
<img
src=
"../assets/logo.png"
style=
"height:
40px"
v-else
/>
</span>
</span>
</a>
</a>
</div>
</div>
...
...
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