Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
33acf595
Commit
33acf595
authored
Jul 30, 2021
by
陈羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: update
parent
25835e31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
59 deletions
+61
-59
index.vue
src/views/apps/customerApp/index.vue
+61
-59
No files found.
src/views/apps/customerApp/index.vue
View file @
33acf595
...
...
@@ -9,11 +9,11 @@
<
template
>
<div
class=
"my-customer-wrap common-set-wrap"
>
<nav-crumb
:navpath=
"navpath"
@
selectBrandId=
"selectBrandId"
>
</nav-crumb>
<div
class=
"right-content"
>
<div
class=
"right-content"
v-loading=
"loading"
>
<div
class=
"right-box"
style=
"min-height: calc(100vh - 112px);"
>
<div
class=
"apps-content flex"
style=
"min-height: calc(100vh - 112px);"
>
<div
class=
"apps-content-left w-157"
style=
"min-height: calc(100vh - 112px);"
>
<common-detail-left
:tabListData=
"tabListData"
:activeSelTab=
"activeSelTab"
@
setSelectTab=
"setSelectTab"
>
</common-detail-left>
<common-detail-left
v-if=
"!loading"
:tabListData=
"tabListData"
:activeSelTab=
"activeSelTab"
@
setSelectTab=
"setSelectTab"
>
</common-detail-left>
</div>
<div
class=
"apps-content-right"
>
<transition
name=
"fade"
mode=
"out-in"
>
...
...
@@ -35,6 +35,46 @@ import expiredDialog from '@/components/company/expired-dialog.vue';
import
errMsg
from
'@/common/js/error'
;
// import showMsg from '@/common/js/showmsg';
import
{
getRequest
}
from
'@/api/api'
;
const
defaultTabList
=
[
{
tabId
:
'1'
,
tabName
:
'会员基础设置'
,
icon
:
'iconjichushezhi'
,
onlyIconActive
:
false
,
children
:
[
{
tabId
:
'11'
,
tabName
:
'会员展示设置'
,
icon
:
''
},
{
tabId
:
'12'
,
tabName
:
'会员分组设置'
,
icon
:
''
},
{
tabId
:
'13'
,
tabName
:
'会员搜索设置'
,
icon
:
''
},
{
tabId
:
'14'
,
tabName
:
'会员详情设置'
,
icon
:
''
}
// {
// tabId: '15',
// tabName: '会员标签设置',
// icon: ''
// }
]
},
{
tabId
:
'2'
,
tabName
:
'我的顾客列表'
,
icon
:
'icongukeguanliicon'
}
];
export
default
{
name
:
'reviewed'
,
data
()
{
...
...
@@ -64,46 +104,8 @@ export default {
path
:
'/memberShowSet'
}
],
tabListData
:
[
{
tabId
:
'1'
,
tabName
:
'会员基础设置'
,
icon
:
'iconjichushezhi'
,
onlyIconActive
:
false
,
children
:
[
{
tabId
:
'11'
,
tabName
:
'会员展示设置'
,
icon
:
''
},
{
tabId
:
'12'
,
tabName
:
'会员分组设置'
,
icon
:
''
},
{
tabId
:
'13'
,
tabName
:
'会员搜索设置'
,
icon
:
''
},
{
tabId
:
'14'
,
tabName
:
'会员详情设置'
,
icon
:
''
}
// {
// tabId: '15',
// tabName: '会员标签设置',
// icon: ''
// }
]
},
{
tabId
:
'2'
,
tabName
:
'我的顾客列表'
,
icon
:
'icongukeguanliicon'
}
],
defaultTabList
,
tabListData
:
Object
.
assign
({},
defaultTabList
),
navName
:
{
1
:
'会员基础设置'
,
11
:
'会员展示设置'
,
...
...
@@ -126,7 +128,8 @@ export default {
},
activeBrand
:
''
,
// 商户(品牌) id
activeGroup
:
''
,
// 商户(品牌) groupId
expiredFlag
:
false
expiredFlag
:
false
,
loading
:
true
};
},
computed
:
{},
...
...
@@ -135,23 +138,22 @@ export default {
let
para
=
{
enterpriseId
:
this
.
activeBrand
};
getRequest
(
'/haoban-app-customer-web/tag/open-tag'
,
para
)
.
then
(
res
=>
{
if
(
!!
res
.
data
.
result
)
{
this
.
tabListData
[
0
].
children
.
push
({
tabId
:
'15'
,
tabName
:
'会员标签设置'
,
icon
:
''
});
}
// errMsg.errorMsg(resData);
})
.
catch
(
function
(
error
)
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
error
.
message
});
let
list
=
[].
concat
(
this
.
defaultTabList
);
console
.
log
(
list
);
getRequest
(
'/haoban-app-customer-web/tag/open-tag'
,
para
).
then
(
res
=>
{
this
.
loading
=
true
;
if
(
!!
res
.
data
.
result
)
{
list
[
0
].
children
[
4
]
=
{
tabId
:
'15'
,
tabName
:
'会员标签设置'
,
icon
:
''
};
}
this
.
$nextTick
(()
=>
{
this
.
tabListData
=
[].
concat
(
list
);
this
.
loading
=
false
;
});
});
},
getExpired
()
{
const
that
=
this
;
...
...
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