Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
49f709f2
authored
Nov 30, 2022
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
个人公司 基本信息修改
parent
085d9d37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
public/assets/js/user/account.js
resources/views/user/account.blade.php
public/assets/js/user/account.js
View file @
49f709f2
...
...
@@ -4,6 +4,7 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
var
form
=
require
(
"form"
)
var
artTemplate
=
require
(
"artTemplate"
);
var
account
=
{
type
:
""
,
init
:
function
()
{
account
.
handle
();
account
.
getData
()
...
...
@@ -21,16 +22,29 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
$
(
".infobase .last_name_val"
).
text
(
res
.
data
.
last_name
)
$
(
".changeInfoPop .last_name_acpo"
).
val
(
res
.
data
.
last_name
)
$
(
".infobase .account_properties_val"
).
text
(
"For Individual"
)
account
.
type
=
res
.
data
.
account_properties
;
if
(
res
.
data
.
account_properties
==
2
)
{
$
(
".infobase .account_properties_val"
).
text
(
"For Business"
)
$
(
".changeInfoPop .checkbox_acpo .check-group"
).
removeClass
(
"act"
)
$
(
".changeInfoPop .checkbox_acpo .check-group22"
).
addClass
(
"act"
)
}
account
.
isBt
()
}
else
{
liexin_pop
.
Tip
({
title
:
res
.
msg
})
}
})
},
isBt
:
function
(
type
){
var
type_
=
type
||
account
.
type
;
if
(
type_
==
2
){
//公司
$
(
".tthide"
).
show
()
$
(
".company_name_acpo"
).
addClass
(
"verify"
)
}
else
{
$
(
".tthide"
).
hide
()
$
(
".company_name_acpo"
).
removeClass
(
"verify"
)
}
},
getAddress
:
function
()
{
$
.
liexin_ajax
(
'/api/user_address/list'
,
'GET'
,
{},
function
(
res
)
{
if
(
res
.
code
==
0
)
{
...
...
@@ -269,6 +283,7 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
$
(
"body"
).
on
(
"click"
,
".check-groupinfo"
,
function
()
{
$
(
".check-groupinfo"
).
removeClass
(
"act"
)
$
(
this
).
addClass
(
"act"
)
account
.
isBt
(
$
(
this
).
attr
(
"guid"
))
})
//获取国家
...
...
resources/views/user/account.blade.php
View file @
49f709f2
...
...
@@ -63,7 +63,7 @@
</div>
<div class="
grp
row
">
<div class="
labels
"><span>*</span>COMPANY NAME</div>
<div class="
labels
"><span
class="
tthide
"
>*</span>COMPANY NAME</div>
<span class="
lval
company_name_val
"></span>
</div>
...
...
@@ -200,7 +200,7 @@
</div>
<div class="
input
-
con
">
<div class="
input
-
group
-
auth
">
<p class="
labelp
"><span>*</span>COMPANY NAME</p>
<p class="
labelp
"><span
class="
tthide
"
>*</span>COMPANY NAME</p>
<input type="
text
" class="
verify
company_name_acpo
" verifyTip='{"
type
":"
null
","
text
":"
COMPANY
NAME
"}'>
</div>
<div class="
input
-
group
-
auth
">
...
...
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