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 571ec856
authored
Apr 11, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 三包可配置
1 parent
d62d440d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
39 deletions
api/module/systemApi.js
pages/equity/detail/components/ThreeGuarantees.vue
api/module/systemApi.js
View file @
571ec85
...
@@ -171,7 +171,7 @@ const imgTransformBase64 = async (imgList = [], keyList = []) => {
...
@@ -171,7 +171,7 @@ const imgTransformBase64 = async (imgList = [], keyList = []) => {
await
Promise
.
all
(
await
Promise
.
all
(
Object
.
keys
(
i
).
map
(
async
k
=>
{
Object
.
keys
(
i
).
map
(
async
k
=>
{
// i[`original_${k}`] = JSON.parse(JSON.stringify(i[k]))
// i[`original_${k}`] = JSON.parse(JSON.stringify(i[k]))
i
[
k
]
=
await
getBase64
(
i
[
k
])
i
f
(
k
==
'detailUrl'
)
i
[
k
]
=
await
getBase64
(
i
[
k
])
})
})
)
)
})
})
...
...
pages/equity/detail/components/ThreeGuarantees.vue
View file @
571ec85
...
@@ -6,10 +6,13 @@
...
@@ -6,10 +6,13 @@
* @LastEditTime: 2024-07-04 16:02:54
* @LastEditTime: 2024-07-04 16:02:54
-->
-->
<
template
>
<
template
>
<view
class=
"layout"
>
<view
class=
"layout"
:style=
"detail.pageStyle"
>
<image
<image
class=
"icon-car"
class=
"icon-car"
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/icon-car.webp
"
:src=
"detail.carIcon
"
/>
/>
<wnCanvas
<wnCanvas
:drawStatus=
"penSwitch"
:drawStatus=
"penSwitch"
...
@@ -26,7 +29,7 @@
...
@@ -26,7 +29,7 @@
<view
class=
"left-tab"
>
<view
class=
"left-tab"
>
<view
<view
class=
"tab-item"
class=
"tab-item"
v-for=
"item in
l
ist"
v-for=
"item in
detail.tabL
ist"
:key=
"item.id"
:key=
"item.id"
@
click=
"tabChange(item)"
@
click=
"tabChange(item)"
:class=
"[item.id == activeIndex ? 'active' : '']"
:class=
"[item.id == activeIndex ? 'active' : '']"
...
@@ -34,22 +37,22 @@
...
@@ -34,22 +37,22 @@
</view>
</view>
<div
class=
"content-bg"
></div>
<div
class=
"content-bg"
></div>
<view
class=
"content"
>
<view
class=
"content"
>
<template
v-if=
"
activeIndex == 2
"
>
<template
v-if=
"
detail.viewActiveIndex.includes(activeIndex)
"
>
<image
<image
:key=
"imgKey"
:key=
"imgKey"
:class=
"direction"
:class=
"direction"
class=
"content-image"
class=
"content-image"
:src=
"viewsImg()"
:src=
"viewsImg()"
/>
/>
<view
class=
"content-tab"
>
<view
class=
"content-tab"
>
<template
v-for=
"(item,index) in imgIdList"
>
<view
<view
:key=
"index"
class=
"tab-item"
class=
"tab-item"
@
click=
"tabSwitch(1)"
@
click=
"tabSwitch(item)"
></view>
<view
class=
"tab-item"
@
click=
"tabSwitch(2)"
></view>
></view>
</
template
>
</view>
</view>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
...
@@ -71,72 +74,56 @@
...
@@ -71,72 +74,56 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
props
:
{
props
:
{
views
:
Array
,
views
:
Object
,
penSwitch
:
Boolean
,
penSwitch
:
Boolean
,
title
:
String
,
title
:
String
,
madiaId
:
Number
,
madiaId
:
Number
,
detail
:
Object
,
},
},
name
:
'MediaComponent'
,
name
:
'MediaComponent'
,
data
()
{
data
()
{
return
{
return
{
activeIndex
:
1
,
activeIndex
:
1
,
list
:
[
{
id
:
1
,
name
:
'整车质保'
,
urlName
:
'5-1'
},
{
id
:
2
,
name
:
'零部件范围及质保期'
,
urlName
:
'5-2'
},
{
id
:
3
,
name
:
'三包凭证'
,
urlName
:
'5-3'
}
],
direction
:
'bottom'
,
direction
:
'bottom'
,
imgKey
:
Date
.
now
(),
imgKey
:
Date
.
now
(),
tabIndex
:
1
tabIndex
:
2
}
}
},
},
computed
:
{
computed
:
{
watchStatus
()
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
imgIdList
()
{
return
this
.
detail
.
tabList
.
find
(
item
=>
item
.
id
==
this
.
activeIndex
).
imgIdList
}
},
},
watch
:
{
watch
:
{
watchStatus
()
{
watchStatus
()
{
this
.
activeIndex
=
1
this
.
activeIndex
=
this
.
detail
.
defultActiveId
||
0
this
.
tabIndex
=
1
this
.
tabIndex
=
this
.
detail
.
defultTabId
}
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
tabChange
(
item
)
{
tabChange
(
item
)
{
if
(
this
.
activeIndex
===
id
)
return
const
{
id
}
=
item
const
{
id
}
=
item
if
(
this
.
activeIndex
===
id
)
return
this
.
direction
=
''
this
.
direction
=
''
console
.
log
(
id
,
this
.
activeIndex
,
' !!!!!!!!!!'
)
this
.
direction
=
id
>
this
.
activeIndex
?
'bottom'
:
'top'
this
.
direction
=
id
>
this
.
activeIndex
?
'bottom'
:
'top'
this
.
activeIndex
=
id
this
.
activeIndex
=
id
this
.
imgKey
=
Date
.
now
()
this
.
imgKey
=
Date
.
now
()
this
.
$refs
.
threeGuarantees
.
clearBoard
()
this
.
$refs
.
threeGuarantees
.
clearBoard
()
},
},
tabSwitch
(
val
)
{
tabSwitch
(
val
)
{
console
.
log
(
val
)
if
(
val
==
this
.
tabIndex
)
return
if
(
val
==
this
.
tabIndex
)
return
this
.
tabIndex
=
val
this
.
tabIndex
=
val
this
.
$refs
.
threeGuarantees
.
clearBoard
()
this
.
$refs
.
threeGuarantees
.
clearBoard
()
},
},
viewsImg
()
{
viewsImg
()
{
let
{
activeIndex
,
tabIndex
}
=
this
let
{
activeIndex
,
tabIndex
,
detail
,
views
}
=
this
if
(
activeIndex
==
3
)
activeIndex
=
4
if
(
detail
.
viewActiveIndex
.
includes
(
activeIndex
))
return
views
[
tabIndex
]
if
(
activeIndex
==
2
)
return
this
.
views
[
tabIndex
].
detailUrl
return
views
[
activeIndex
]
return
this
.
views
[
activeIndex
-
1
].
detailUrl
}
}
}
}
}
}
...
@@ -147,7 +134,7 @@ export default {
...
@@ -147,7 +134,7 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
background-image
:
url('@/assets/images/media/media-bg.webp')
;
//
background-image
:
url('@/assets/images/media/media-bg.webp')
;
background-size
:
100%
;
background-size
:
100%
;
&-content
{
&-content
{
margin
:
$
margin
;
margin
:
$
margin
;
...
...
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