Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
8d67920c
authored
Jan 04, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加隐藏逻辑
parent
a53605fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
resources/views/script/SupplierAccountListScript.blade.php
resources/views/script/supplier/SupplierContactScript.blade.php
resources/views/script/SupplierAccountListScript.blade.php
View file @
8d67920c
...
@@ -154,6 +154,10 @@
...
@@ -154,6 +154,10 @@
});
});
$
(
document
).
on
(
'click'
,
'.viewAccount'
,
function
()
{
$
(
document
).
on
(
'click'
,
'.viewAccount'
,
function
()
{
if
(
$
(
this
).
text
()
===
'隐藏'
)
{
$
(
this
).
prev
().
text
(
$
(
this
).
attr
(
'prev_text'
));
$
(
this
).
text
(
'查看'
);
}
else
{
let
id
=
$
(
this
).
attr
(
'id'
);
let
id
=
$
(
this
).
attr
(
'id'
);
let
type
=
$
(
this
).
attr
(
'type'
);
let
type
=
$
(
this
).
attr
(
'type'
);
let
resp
=
ajax
(
'/api/supplier_account/GetSupplierAccount'
,
{
id
:
id
,
type
:
type
});
let
resp
=
ajax
(
'/api/supplier_account/GetSupplierAccount'
,
{
id
:
id
,
type
:
type
});
...
@@ -161,6 +165,8 @@
...
@@ -161,6 +165,8 @@
layer
.
msg
(
'网络连接失败'
,
{
'icon'
:
5
});
layer
.
msg
(
'网络连接失败'
,
{
'icon'
:
5
});
return
false
;
return
false
;
}
}
let
prevText
=
$
(
this
).
prev
().
text
();
$
(
this
).
attr
(
'prev_text'
,
prevText
);
if
(
resp
.
err_code
===
0
)
{
if
(
resp
.
err_code
===
0
)
{
switch
(
type
)
{
switch
(
type
)
{
case
'mobile'
:
case
'mobile'
:
...
@@ -171,10 +177,13 @@
...
@@ -171,10 +177,13 @@
break
;
break
;
}
}
console
.
log
(
resp
);
console
.
log
(
resp
);
$
(
this
).
text
(
'隐藏'
);
}
else
{
}
else
{
layer
.
msg
(
resp
.
err_msg
,
{
'icon'
:
5
});
layer
.
msg
(
resp
.
err_msg
,
{
'icon'
:
5
});
return
false
;
return
false
;
}
}
}
});
});
});
});
...
...
resources/views/script/supplier/SupplierContactScript.blade.php
View file @
8d67920c
...
@@ -150,6 +150,10 @@
...
@@ -150,6 +150,10 @@
}
}
$
(
document
).
on
(
'click'
,
'.viewContact'
,
function
()
{
$
(
document
).
on
(
'click'
,
'.viewContact'
,
function
()
{
if
(
$
(
this
).
text
()
===
'隐藏'
)
{
$
(
this
).
prev
().
text
(
$
(
this
).
attr
(
'prev_text'
));
$
(
this
).
text
(
'查看'
);
}
else
{
let
contactId
=
$
(
this
).
attr
(
'contact_id'
);
let
contactId
=
$
(
this
).
attr
(
'contact_id'
);
let
type
=
$
(
this
).
attr
(
'type'
);
let
type
=
$
(
this
).
attr
(
'type'
);
let
resp
=
ajax
(
'/api/supplier_contact/GetSupplierContact'
,
{
contact_id
:
contactId
,
type
:
type
});
let
resp
=
ajax
(
'/api/supplier_contact/GetSupplierContact'
,
{
contact_id
:
contactId
,
type
:
type
});
...
@@ -157,6 +161,8 @@
...
@@ -157,6 +161,8 @@
layer
.
msg
(
'网络连接失败'
,
{
'icon'
:
5
});
layer
.
msg
(
'网络连接失败'
,
{
'icon'
:
5
});
return
false
;
return
false
;
}
}
let
prevText
=
$
(
this
).
prev
().
text
();
$
(
this
).
attr
(
'prev_text'
,
prevText
);
if
(
resp
.
err_code
===
0
)
{
if
(
resp
.
err_code
===
0
)
{
switch
(
type
)
{
switch
(
type
)
{
case
'supplier_email'
:
case
'supplier_email'
:
...
@@ -172,11 +178,14 @@
...
@@ -172,11 +178,14 @@
$
(
this
).
prev
().
text
(
resp
.
data
.
supplier_telephone
);
$
(
this
).
prev
().
text
(
resp
.
data
.
supplier_telephone
);
break
;
break
;
}
}
$
(
this
).
text
(
'隐藏'
);
console
.
log
(
resp
);
console
.
log
(
resp
);
}
else
{
}
else
{
layer
.
msg
(
resp
.
err_msg
,
{
'icon'
:
5
});
layer
.
msg
(
resp
.
err_msg
,
{
'icon'
:
5
});
return
false
;
return
false
;
}
}
}
});
});
});
});
</script>
</script>
\ No newline at end of file
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