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 fb561762
authored
Sep 12, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
6cf2b444
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
19 deletions
assets/css/sprite.scss
assets/images/sprite.png
assets/spritesmith/arrow-bottom.png
pages/boutique/case.vue
pages/boutique/components/CouponPop.vue
assets/css/sprite.scss
View file @
fb56176
...
...
@@ -5,9 +5,9 @@
.icon-avatar
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-635rpx
-726rpx
;}
.icon-back
{
width
:
128rpx
;
height
:
50rpx
;
background-position
:
-333rpx
-853rpx
;}
.icon-bao
{
width
:
196rpx
;
height
:
220rpx
;
background-position
:
-830rpx
-382rpx
;}
.icon-boutique-config-0
{
width
:
44rpx
;
height
:
44rpx
;
background-position
:
-
765rpx
-621
rpx
;}
.icon-boutique-config-1
{
width
:
44rpx
;
height
:
44rpx
;
background-position
:
-
476
rpx
-853rpx
;}
.icon-boutique-config-2
{
width
:
44rpx
;
height
:
44rpx
;
background-position
:
-5
35
rpx
-853rpx
;}
.icon-boutique-config-0
{
width
:
44rpx
;
height
:
44rpx
;
background-position
:
-
476rpx
-853
rpx
;}
.icon-boutique-config-1
{
width
:
44rpx
;
height
:
44rpx
;
background-position
:
-
535
rpx
-853rpx
;}
.icon-boutique-config-2
{
width
:
44rpx
;
height
:
44rpx
;
background-position
:
-5
94
rpx
-853rpx
;}
.icon-byd
{
width
:
184rpx
;
height
:
36rpx
;
background-position
:
-1041rpx
-557rpx
;}
.icon-change-account
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1259rpx
-617rpx
;}
.icon-clone
{
width
:
24rpx
;
height
:
24rpx
;
background-position
:
-781rpx
-509rpx
;}
...
...
@@ -32,13 +32,13 @@
.icon-icon-male
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-781rpx
-415rpx
;}
.icon-icon-shop
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-781rpx
-462rpx
;}
.icon-icon-upload
{
width
:
128rpx
;
height
:
128rpx
;
background-position
:
-503rpx
-415rpx
;}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
594
rpx
-853rpx
;}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
653
rpx
-853rpx
;}
.icon-info_shield
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-885rpx
-668rpx
;}
.icon-invisible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-940rpx
-668rpx
;}
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
641
rpx
-853rpx
;}
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
688
rpx
-853rpx
;}
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-7
35
rpx
-853rpx
;}
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
782
rpx
-853rpx
;}
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
700
rpx
-853rpx
;}
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
747
rpx
-853rpx
;}
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-7
94
rpx
-853rpx
;}
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
841
rpx
-853rpx
;}
.icon-logo
{
width
:
160rpx
;
height
:
160rpx
;
background-position
:
-1041rpx
-382rpx
;}
.icon-mask-del
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-95rpx
-964rpx
;}
.icon-mask-edit
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-190rpx
-964rpx
;}
...
...
@@ -51,7 +51,7 @@
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-765rpx
-558rpx
;}
.icon-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-381rpx
-726rpx
;}
.icon-record
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-508rpx
-726rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-8
29
rpx
-853rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-8
88
rpx
-853rpx
;}
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-853rpx
;}
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-111rpx
-853rpx
;}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1105rpx
-668rpx
;}
...
...
@@ -62,5 +62,6 @@
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-451rpx
-964rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-526rpx
-964rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-601rpx
-964rpx
;}
.icon-total
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-876rpx
-853rpx
;}
.icon-visible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1160rpx
-668rpx
;}
\ No newline at end of file
.icon-total
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-935rpx
-853rpx
;}
.icon-visible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1160rpx
-668rpx
;}
.icon-arrow-bottom
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-765rpx
-621rpx
;}
\ No newline at end of file
assets/images/sprite.png
View file @
fb56176
1.2 MB
|
W:
|
H:
1.2 MB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/spritesmith/arrow-bottom.png
0 → 100644
View file @
fb56176
1.24 KB
pages/boutique/case.vue
View file @
fb56176
...
...
@@ -2,6 +2,19 @@
<view
class=
"container"
>
<view
class=
"bg"
></view>
<view
class=
"box"
>
<view
class=
"select-box"
>
<view
class=
"select"
@
click=
"selectType"
>
全部
<view
class=
"sprite-icon icon-arrow-bottom"
></view>
</view>
<view
class=
"pop-box"
v-show=
"isSelect"
>
<view
v-for=
"i in selectList"
:key=
"i.label"
class=
"type-item"
:class=
"i.value == selectIndex ? 'active' : ''"
@
click=
"chooseType(i)"
>
{{
i
.
label
}}
</view>
<!--
<view
class=
"type-item active"
>
全部
</view>
<view
class=
"type-item"
>
视频
</view>
<view
class=
"type-item"
>
图片
</view>
<view
class=
"type-item"
>
PDF
</view>
-->
</view>
</view>
<view
class=
"input-box"
>
<input
type=
"text"
...
...
@@ -115,7 +128,27 @@ export default {
popupShow
:
false
,
isSearch
:
false
,
videoSrc
:
''
,
showPreview
:
false
showPreview
:
false
,
isSelect
:
false
,
selectIndex
:
0
,
selectList
:
[
{
label
:
'全部'
,
value
:
0
},
{
label
:
'视频'
,
value
:
1
},
{
label
:
'图片'
,
value
:
2
},
{
label
:
'PDF'
,
value
:
3
}
]
}
},
props
:
{
...
...
@@ -169,6 +202,13 @@ export default {
this
.
isSearch
=
false
this
.
list
=
this
.
views
.
filter
(
i
=>
i
.
tabName
.
includes
(
this
.
name
))
},
selectType
()
{
this
.
isSelect
=
!
this
.
isSelect
},
chooseType
(
val
)
{
console
.
log
(
val
)
this
.
selectIndex
=
val
.
value
}
},
}
</
script
>
...
...
@@ -193,6 +233,42 @@ export default {
.box
{
padding
:
64
rpx
;
margin-top
:
90
rpx
;
position
:
relative
;
.select-box
{
position
:
absolute
;
right
:
24
rpx
;
top
:
-18
rpx
;
z-index
:
1
;
.select
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
margin-bottom
:
8
rpx
;
}
.arrow-bottom
{
width
:
48
rpx
;
height
:
48
rpx
;
}
.pop-box
{
width
:
368
rpx
;
//
height
:
248
rpx
;
background
:
#FFFFFF
;
border-radius
:
16
rpx
;
padding
:
16
rpx
0
;
.type-item
{
padding
:
0
24
rpx
;
margin-bottom
:
8
rpx
;
height
:
48
rpx
;
line-height
:
48
rpx
;
&:last-child
{
margin-bottom
:
0
;
}
&
.active
{
background-color
:
#ECF1FF
;
}
}
}
}
.input-box
{
position
:
relative
;
.input
{
...
...
pages/boutique/components/CouponPop.vue
View file @
fb56176
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-09-06 10:11:03
* @LastEditors: huyue
* @LastEditTime: 2024-09-12 15:
25:12
* @LastEditTime: 2024-09-12 15:
52:17
-->
<
template
>
<view>
...
...
@@ -237,12 +237,14 @@ export default {
watchStatus
:
{
immediate
:
true
,
handler
(
newval
)
{
// console.log('重新进入', this.pageParams)
// let item = this.couponList.find(e => e.couponType == 1),
// item2 = this.couponList.find(e => e.couponType == 18)
// if (item) this.chooseCoupon(item) //默认填入类型为「太阳膜」类型
// else if (item2) this.chooseCoupon(item2) //次选填入「精品」类型
// else this.chooseCoupon(this.couponList[0]) // 无此两种类型情况默认带入任意类型礼券
console
.
log
(
'重新进入'
,
this
.
pageParams
)
if
(
this
.
couponList
.
length
)
{
let
item
=
this
.
couponList
.
find
(
e
=>
e
.
couponType
==
1
),
item2
=
this
.
couponList
.
find
(
e
=>
e
.
couponType
==
18
)
if
(
item
)
this
.
chooseCoupon
(
item
)
//默认填入类型为「太阳膜」类型
else
if
(
item2
)
this
.
chooseCoupon
(
item2
)
//次选填入「精品」类型
else
this
.
chooseCoupon
(
this
.
couponList
[
0
])
// 无此两种类型情况默认带入任意类型礼券
}
}
}
},
...
...
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