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 8bb2b13a
authored
Jun 04, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
d691d89a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
10 deletions
assets/css/sprite.scss
pages/boutique/membranes.vue
assets/css/sprite.scss
View file @
8bb2b13
...
...
@@ -50,9 +50,4 @@
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-742rpx
-780rpx
;}
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-650rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-720rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-790rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-790rpx
;}
.icon-aito
{
width
:
320rpx
;
height
:
36rpx
;
background-position
:
0rpx
-734rpx
;}
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-742rpx
-780rpx
;}
.icon-customer-detail
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1016rpx
-576rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-750rpx
-638rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-790rpx
;}
\ No newline at end of file
pages/boutique/membranes.vue
View file @
8bb2b13
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-05-30 14:40:39
* @LastEditors: huyue
* @LastEditTime: 2024-06-04 1
5:08:43
* @LastEditTime: 2024-06-04 1
6:17:11
-->
<
template
>
<view
style=
"position: relative;"
>
...
...
@@ -31,6 +31,48 @@
<view
class=
"text"
:class=
"[firstIndex == index ? `active` : '']"
>
{{
i
.
tabName
}}
</view>
</view>
</view>
<template
v-if=
"madiaId == 8"
>
<!-- 套餐 无分组 -->
<view
class=
"content"
id=
"content"
>
<template
v-if=
"views[firstIndex].noGroupReceptionSourceDetailInfoList.length > 0"
>
<view
class=
"product-list"
:key=
"firstIndex"
:class=
"direction"
style=
"height: 1120rpx;"
>
<view
class=
"product-item"
v-for=
"(it, ids) in views[firstIndex].noGroupReceptionSourceDetailInfoList"
:key=
"ids"
@
click=
"goDetail(it)"
>
<image
:src=
"it.thumbnail"
mode=
"scaleToFill"
class=
"product-img"
/>
</view>
<view
class=
"product-item"
v-for=
"(it, ids) in views[firstIndex].noGroupReceptionSourceDetailInfoList"
:key=
"ids"
@
click=
"goDetail(it)"
>
<image
:src=
"it.thumbnail"
mode=
"scaleToFill"
class=
"product-img"
/>
</view>
<view
class=
"product-item"
v-for=
"(it, ids) in views[firstIndex].noGroupReceptionSourceDetailInfoList"
:key=
"ids"
@
click=
"goDetail(it)"
>
<image
:src=
"it.thumbnail"
mode=
"scaleToFill"
class=
"product-img"
/>
</view>
</view>
</
template
>
<
template
v-else
>
<view
class=
"nothing flex"
>
<image
class=
"icon"
src=
"../../assets/images/boutique/nothing.png"
/>
<view>
暂无产品内容
</view>
</view>
</
template
>
</view>
</template>
<
template
v-else
>
<!-- 其他 有分组 -->
<view
class=
"content"
id=
"content"
>
<view
class=
"second-tab"
ref=
"secondTab"
v-if=
"views[firstIndex].receptionSourceDetailInfoList.length > 0"
>
<view
...
...
@@ -47,7 +89,7 @@
</view>
</view>
<template
v-if=
"views[firstIndex].receptionSourceDetailInfoList.length > 0 && views[firstIndex].receptionSourceDetailInfoList[secondIndex].receptionSourceDetailInfoList"
>
<view
class=
"product-list
left"
:style=
"
{height: views[firstIndex].receptionSourceDetailInfoList ? '958
rpx' : '1032rpx'}">
<view
class=
"product-list
"
:key=
"firstIndex+secondIndex"
:class=
"direction"
:style=
"
{height: views[firstIndex].receptionSourceDetailInfoList ? '962
rpx' : '1032rpx'}">
<view
class=
"product-item"
v-for=
"(itm, idx) in views[firstIndex].receptionSourceDetailInfoList[secondIndex].receptionSourceDetailInfoList"
:key=
"idx"
@
click=
"goDetail(itm)"
>
<image
:src=
"itm.thumbnail"
...
...
@@ -67,6 +109,8 @@
</view>
</
template
>
</view>
</template>
</view>
</view>
<image
...
...
@@ -86,6 +130,7 @@ export default {
type
:
Array
,
default
:
()
=>
[]
},
madiaId
:
String
,
show
:
Boolean
},
data
()
{
...
...
@@ -95,7 +140,9 @@ export default {
firstClass
:
[
'first-nav'
,
'second-nav'
,
'second-nav'
],
secondIndex
:
0
,
animationList
:
[
require
(
'@/assets/images/boutique/animation-m5.png'
),
require
(
'@/assets/images/boutique/animation-m7.png'
),
require
(
'@/assets/images/boutique/animation-m9.png'
)],
imgKey
:
Date
.
now
()
imgKey
:
Date
.
now
(),
direction
:
'left'
,
productKey
:
Date
.
now
()
}
},
computed
:
{
...
...
@@ -116,8 +163,15 @@ export default {
},
methods
:
{
changeIndex
(
index
,
name
)
{
console
.
log
(
index
,
name
)
this
.
direction
=
''
console
.
log
(
index
,
name
,
this
[
name
])
if
(
this
[
name
]
<
index
)
{
this
.
direction
=
'right'
}
else
{
this
.
direction
=
'left'
}
this
[
name
]
=
index
console
.
log
(
index
,
name
,
this
[
name
],
'===='
)
if
(
name
===
'firstIndex'
)
{
this
.
secondIndex
=
0
this
.
imgKey
=
Date
.
now
()
...
...
@@ -233,6 +287,7 @@ export default {
margin-top
:
-48
rpx
;
border-radius
:
48
rpx
;
height
:
calc
(
100%
-
128
rpx
);
overflow-x
:
hidden
;
.second-tab
{
display
:
inline-flex
;
background
:
#f2f2f2
;
...
...
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