Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-web-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
1
Merge Requests
1
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-web-master
Commits
11b86901
Commit
11b86901
authored
Aug 28, 2024
by
chenwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature' into 'dev'
member system status control See merge request
!8
parents
52644366
2c8aedf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
user.js
src/api/user.js
+8
-0
index.vue
src/layout/components/JdSidebar/index.vue
+9
-1
No files found.
src/api/user.js
View file @
11b86901
...
...
@@ -208,3 +208,11 @@ export function getTradeCountryList(query) {
params
:
query
,
});
}
export
function
memberSystemStatus
()
{
return
request
({
url
:
"
/admin-api/member/score-rule/switch/get
"
,
method
:
"
get
"
});
}
src/layout/components/JdSidebar/index.vue
View file @
11b86901
...
...
@@ -370,6 +370,7 @@
margin-top: 16px;
cursor: pointer;
"
v-if =
"switchState"
class=
"hover"
:class=
"
{ active: action === 'Integral' }"
@click="myIntegral"
...
...
@@ -1014,7 +1015,7 @@
<
script
>
import
JdButton
from
"
@/components/JdButton
"
;
import
{
getMark
,
getInfo
,
getIdCard
}
from
"
@/api/user
"
;
import
{
getMark
,
getInfo
,
getIdCard
,
memberSystemStatus
}
from
"
@/api/user
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
DictTag
from
"
@/components/DictTag
"
;
import
md5
from
"
js-md5
"
;
...
...
@@ -1030,6 +1031,7 @@ export default {
showMyOrder
:
true
,
showCustom
:
true
,
mark
:
{},
switchState
:
false
,
userInfo
:
{},
noticeVisble
:
false
,
idcardVisble
:
false
,
...
...
@@ -1041,6 +1043,7 @@ export default {
...
mapGetters
([
"
loginUser
"
]),
},
created
()
{
this
.
getMemberSystemStatus
();
this
.
action
=
this
.
$route
.
name
;
this
.
userInfo
=
this
.
loginUser
;
getMark
().
then
((
r
)
=>
{
...
...
@@ -1054,6 +1057,11 @@ export default {
});
},
methods
:
{
getMemberSystemStatus
(){
memberSystemStatus
().
then
(
res
=>
{
this
.
switchState
=
res
.
data
})
},
getDictDatas
,
handleService
()
{
const
online_talk
=
document
.
getElementsByClassName
(
"
online_talk
"
);
...
...
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