Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 01e5f339
authored
Jun 18, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 轻改根据门店显示素材
1 parent
396bd7db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
21 deletions
components/ToolBox.vue
pages/boutique/detail.vue
pages/boutique/index.vue
components/ToolBox.vue
View file @
01e5f33
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
>
文件夹
</view>
>
文件夹
</view>
<template
v-for=
"(i,index) in data"
>
<template
v-for=
"(i,index) in data"
>
<view
<view
:class=
"['item',
{active: i
.id
== id} ]"
:class=
"['item',
{active: i
[idKey]
== id} ]"
:key="index"
:key="index"
@click="jump(i)"
@click="jump(i)"
>
>
...
@@ -60,7 +60,11 @@ export default {
...
@@ -60,7 +60,11 @@ export default {
type
:
String
,
type
:
String
,
data
:
Array
,
data
:
Array
,
id
:
[
String
,
Number
],
id
:
[
String
,
Number
],
showPayBtn
:
Boolean
showPayBtn
:
Boolean
,
idKey
:{
type
:
String
,
default
:
'id'
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
pages/boutique/detail.vue
View file @
01e5f33
...
@@ -22,18 +22,18 @@
...
@@ -22,18 +22,18 @@
</view>
</view>
<template
v-for=
"(item, index) in media"
>
<template
v-for=
"(item, index) in media"
>
<view
<view
:class=
"['view',
{ showView: id == item.
id
}]"
:class=
"['view',
{ showView: id == item.
sort
}]"
:key="index"
:key="index"
>
>
<component
<component
:is=
"componentName(item.
id
)"
:is=
"componentName(item.
sort
)"
:views=
"item.receptionSourceDetailList || []"
:views=
"item.receptionSourceDetailList || []"
:ref=
"'media' + item.
id
"
:ref=
"'media' + item.
sort
"
:title=
"item.detailTitle || ''"
:title=
"item.detailTitle || ''"
:madiaId=
"item.
id
"
:madiaId=
"item.
sort
"
:customerType=
"customerType"
:customerType=
"customerType"
@
jumpPage=
"jumpPage"
@
jumpPage=
"jumpPage"
:show=
"id == item.
id
"
:show=
"id == item.
sort
"
@
reception=
"reception"
@
reception=
"reception"
/>
/>
</view>
</view>
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
@
choose=
"choose"
@
choose=
"choose"
@
finish=
"open"
@
finish=
"open"
:id=
"id"
:id=
"id"
idKey=
"sort"
/>
/>
</
template
>
</
template
>
<finish-step
<finish-step
...
@@ -95,7 +96,7 @@ export default {
...
@@ -95,7 +96,7 @@ export default {
computed
:
{
computed
:
{
title
()
{
title
()
{
let
{
id
}
=
this
,
let
{
id
}
=
this
,
name
=
this
.
media
.
find
((
e
)
=>
e
.
id
==
id
)?.
detailTitle
||
""
;
name
=
this
.
media
.
find
((
e
)
=>
e
.
sort
==
id
)?.
detailTitle
||
""
;
return
name
;
return
name
;
},
},
watchStatus
()
{
watchStatus
()
{
...
@@ -112,13 +113,13 @@ export default {
...
@@ -112,13 +113,13 @@ export default {
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
componentName
(
id
)
{
componentName
(
id
)
{
let
name
=
""
;
let
name
=
""
;
if
([
8
,
10
,
11
].
includes
(
id
))
name
=
"membranes"
;
if
([
2
,
4
,
5
].
includes
(
id
))
name
=
"membranes"
;
else
else
name
=
{
name
=
{
7
:
"reception"
,
1
:
"reception"
,
13
:
"invitation"
,
7
:
"invitation"
,
9
:
"Case"
,
3
:
"Case"
,
12
:
'history'
6
:
'history'
}[
id
];
}[
id
];
return
name
;
return
name
;
},
},
...
@@ -127,8 +128,8 @@ export default {
...
@@ -127,8 +128,8 @@ export default {
},
},
/**切换素材 */
/**切换素材 */
choose
(
e
)
{
choose
(
e
)
{
if
(
this
.
id
==
7
)
this
.
$refs
.
media7
[
0
].
closeAllPopup
();
if
(
this
.
id
==
1
)
this
.
$refs
.
media1
[
0
].
closeAllPopup
();
this
.
jumpPage
({
id
:
e
.
id
})
this
.
jumpPage
({
id
:
e
.
sort
})
},
},
back
()
{
back
()
{
if
(
this
.
historyId
)
{
if
(
this
.
historyId
)
{
...
@@ -171,7 +172,7 @@ export default {
...
@@ -171,7 +172,7 @@ export default {
this
.
$emit
(
'reception'
)
this
.
$emit
(
'reception'
)
},
},
backInvitation
()
{
backInvitation
()
{
this
.
jumpPage
({
id
:
13
})
this
.
jumpPage
({
id
:
7
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请选择回店客户'
,
title
:
'请选择回店客户'
,
...
...
pages/boutique/index.vue
View file @
01e5f33
...
@@ -157,9 +157,9 @@ export default {
...
@@ -157,9 +157,9 @@ export default {
this
.
$refs
.
home
.
previewRef
.
close
();
this
.
$refs
.
home
.
previewRef
.
close
();
},
},
preview
()
{
preview
()
{
let
{
id
}
=
this
.
chooseItem
;
let
{
sort
}
=
this
.
chooseItem
;
this
.
type
=
"preview"
;
this
.
type
=
"preview"
;
this
.
id
=
id
;
this
.
id
=
sort
;
this
.
cancel
()
this
.
cancel
()
},
},
back
()
{
back
()
{
...
@@ -200,7 +200,7 @@ export default {
...
@@ -200,7 +200,7 @@ export default {
return
true
return
true
},
},
jumpPage
(
id
)
{
jumpPage
(
id
)
{
this
.
id
=
id
?
id
:
this
.
moduleList
[
0
].
id
this
.
id
=
id
?
id
:
this
.
moduleList
[
0
].
sort
this
.
type
=
"edit"
this
.
type
=
"edit"
},
},
clearHistory
()
{
clearHistory
()
{
...
@@ -217,8 +217,8 @@ export default {
...
@@ -217,8 +217,8 @@ export default {
if
(
!
flag
)
return
if
(
!
flag
)
return
this
.
customerType
=
index
this
.
customerType
=
index
if
(
index
==
0
)
{
if
(
index
==
0
)
{
const
{
id
}
=
moduleList
[
moduleList
.
length
-
1
]
const
{
sort
}
=
moduleList
[
moduleList
.
length
-
1
]
this
.
jumpPage
(
id
)
this
.
jumpPage
(
sort
)
}
}
else
this
.
jumpPage
()
else
this
.
jumpPage
()
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment