Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_baking
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huahua
wechat_baking
Commits
c9da0ba8
Commit
c9da0ba8
authored
Jan 07, 2023
by
huahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
5ca35981
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
pages/index/index.vue
+11
-6
pages/index/scrollView.vue
+3
-3
util/Env.js
+0
-0
util/wx-touch-event.js
+0
-2
No files found.
pages/index/index.vue
View file @
c9da0ba8
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<view
class=
"full-width full-height"
style=
"background: #FFFFFF; "
>
<view
class=
"full-width full-height"
style=
"background: #FFFFFF; "
>
<!-- 自定义头部 -->
<!-- 自定义头部 -->
<myhead
:worksid=
"works_id"
:title=
"titlename"
:color=
"'#131319'"
:titleShow=
"true"
:backShow=
"true"
:background=
"'#fff'"
></myhead>
<myhead
:worksid=
"works_id"
:title=
"titlename"
:color=
"'#131319'"
:titleShow=
"true"
:backShow=
"true"
:background=
"'#fff'"
></myhead>
<!-- 登录弹框 -->
<!-- 登录弹框 -->
<Signin
ref=
"Signin"
></Signin>
<Signin
ref=
"Signin"
></Signin>
...
@@ -15,7 +16,8 @@
...
@@ -15,7 +16,8 @@
<view
v-show=
"!state"
class=
"full-width content-color full-height"
:style=
"
{background: design_color }">
<view
v-show=
"!state"
class=
"full-width content-color full-height"
:style=
"
{background: design_color }">
<!-- 取消选中 -->
<!-- 取消选中 -->
<view
class=
"full-width full-height"
style=
"position: absolute; top: 0; left: 0;"
@
click
.
stop=
"itemCancel"
></view>
<view
class=
"full-width full-height"
style=
"position: absolute; top: 0; left: 0;"
@
click
.
stop=
"itemCancel"
>
</view>
<view
class=
"container"
@
click=
'itemCancel'
@
touchmove
.
stop=
"touchMove"
@
touchend
.
stop=
"touchEnd"
>
<view
class=
"container"
@
click=
'itemCancel'
@
touchmove
.
stop=
"touchMove"
@
touchend
.
stop=
"touchEnd"
>
...
@@ -458,7 +460,7 @@
...
@@ -458,7 +460,7 @@
<view
style=
"position: relative; width: calc(100% - 40upx); z-index: 99; margin:30upx auto; "
>
<view
style=
"position: relative; width: calc(100% - 40upx); z-index: 99; margin:30upx auto; "
>
<swiper
:autoplay=
"true"
:interval=
"3000"
:duration=
"1000"
:indicator-dots=
"true"
<swiper
:autoplay=
"true"
:interval=
"3000"
:duration=
"1000"
:indicator-dots=
"true"
:indicator-active-color=
"'#ffffff'"
:indicator-active-color=
"'#ffffff'"
style=
"height: 15
5
upx; width: 100%; border-radius: 10upx; overflow: hidden; margin:auto; margin-top:55upx;"
>
style=
"height: 15
0
upx; width: 100%; border-radius: 10upx; overflow: hidden; margin:auto; margin-top:55upx;"
>
<swiper-item
v-for=
"(item, index) in Adlists"
:key=
"index"
class=
"full-width"
>
<swiper-item
v-for=
"(item, index) in Adlists"
:key=
"index"
class=
"full-width"
>
<image
:src=
"item.content + '?x-oss-process=image/resize,lfit,w_375'"
<image
:src=
"item.content + '?x-oss-process=image/resize,lfit,w_375'"
mode=
"aspectFill"
class=
"full-width full-height"
mode=
"aspectFill"
class=
"full-width full-height"
...
@@ -467,13 +469,15 @@
...
@@ -467,13 +469,15 @@
</swiper>
</swiper>
</view>
</view>
<view
id=
"classification"
v-if=
"e_active == 2 || e_active == 23 || e_active == 99"
<view
id=
"classification"
v-if=
"e_active == 2 || e_active == 23 || e_active == 99"
style=
"width: 100%; position: relative; z-index: 99;
"
>
style=
"width: 100%; position: relative; z-index: 99;
"
>
<view
style=
"overflow: hidden;"
v-if=
"material_series_list.length > 0"
>
<view
style=
"overflow: hidden;"
v-if=
"material_series_list.length > 0"
>
<view
<view
@
tap=
"material_series_handleScroll(index,item)"
:class=
"['material-series-scroll-item',
{ 'material-series-scroll-item-active': item.id == material_series_currentId }]"
:class=
"['material-series-scroll-item',
{ 'material-series-scroll-item-active': item.id == material_series_currentId }]"
:id="'s' + index" v-for="(item, index) in material_series_list" :key="index"
:id="'s' + index" v-for="(item, index) in material_series_list" :key="index"
@tap="material_series_handleScroll(index,item)"
>
>
<view>
{{
item
.
title
}}
</view>
<view>
{{
item
.
title
}}
</view>
</view>
</view>
</view>
</view>
...
@@ -491,7 +495,7 @@
...
@@ -491,7 +495,7 @@
</view>
</view>
</view>
</view>
<
view
v-if=
"e_active == 0"
style=
"width: 100%; height:100%; opacity: 1;"
></view
>
<
!--
<view
v-if=
"e_active == 0"
style=
"width: 100%; height:100%; opacity: 1;"
></view>
--
>
</uni-popup>
</uni-popup>
...
@@ -1954,6 +1958,7 @@
...
@@ -1954,6 +1958,7 @@
////打开弹框 1模板 2贴图 3字体 4编辑 22添加相框 23壁纸
////打开弹框 1模板 2贴图 3字体 4编辑 22添加相框 23壁纸
material_series_handleScroll
(
index
,
item
)
{
material_series_handleScroll
(
index
,
item
)
{
console
.
log
(
"点击"
+
index
)
this
.
queryPage
.
page
=
1
this
.
queryPage
.
page
=
1
this
.
material_series_currentId
=
item
.
id
this
.
material_series_currentId
=
item
.
id
this
.
queryPage
.
material_series_id
=
item
.
id
this
.
queryPage
.
material_series_id
=
item
.
id
...
...
pages/index/scrollView.vue
View file @
c9da0ba8
<
template
>
<
template
>
<!-- 贴图 -->
<!-- 贴图 -->
<view
class=
"content"
style=
"width: 100%; height: 100%; position: relative;
z-index: 999999;
"
<view
class=
"content"
style=
"width: 100%; height: 100%; position: relative;"
:style=
"
{height: (windowHeight
+ 80
) +'px'}">
:style=
"
{height: (windowHeight
- classificationHeight
) +'px'}">
<refresh
@
interrupt=
"interrupt"
@
pushToInterrupt=
"pushToInterrupt"
@
finished=
"finished"
@
scrolltolower=
"g"
<refresh
@
interrupt=
"interrupt"
@
pushToInterrupt=
"pushToInterrupt"
@
finished=
"finished"
@
scrolltolower=
"g"
:scrollHeight=
"(windowHeight
+ 80
)"
:scrollTop=
"scrollViewTop"
@
scroll=
"scroll"
>
:scrollHeight=
"(windowHeight
- classificationHeight
)"
:scrollTop=
"scrollViewTop"
@
scroll=
"scroll"
>
<template
slot=
"top"
>
<template
slot=
"top"
>
<view
style=
"color: #FFFFFF;position: absolute; top: 0;width: 100%; text-align: center;"
<view
style=
"color: #FFFFFF;position: absolute; top: 0;width: 100%; text-align: center;"
:style=
"'height:' + 40 + 'px; line-height:' + 40 + 'px;'"
>
{{
tip
}}
</view>
:style=
"'height:' + 40 + 'px; line-height:' + 40 + 'px;'"
>
{{
tip
}}
</view>
...
...
util/Env.js
View file @
c9da0ba8
util/wx-touch-event.js
View file @
c9da0ba8
...
@@ -12,7 +12,6 @@ class WxTouchEvent {
...
@@ -12,7 +12,6 @@ class WxTouchEvent {
bind
(
option
)
{
bind
(
option
)
{
this
.
element
=
null
;
this
.
element
=
null
;
this
.
rotate
=
wrapFunc
(
this
.
element
,
option
.
rotate
||
noop
);
this
.
rotate
=
wrapFunc
(
this
.
element
,
option
.
rotate
||
noop
);
this
.
touchStart
=
wrapFunc
(
this
.
element
,
option
.
touchStart
||
noop
);
this
.
touchStart
=
wrapFunc
(
this
.
element
,
option
.
touchStart
||
noop
);
this
.
multipointStart
=
wrapFunc
(
this
.
element
,
option
.
multipointStart
||
noop
);
this
.
multipointStart
=
wrapFunc
(
this
.
element
,
option
.
multipointStart
||
noop
);
...
@@ -27,7 +26,6 @@ class WxTouchEvent {
...
@@ -27,7 +26,6 @@ class WxTouchEvent {
this
.
touchMove
=
wrapFunc
(
this
.
element
,
option
.
touchMove
||
noop
);
this
.
touchMove
=
wrapFunc
(
this
.
element
,
option
.
touchMove
||
noop
);
this
.
touchEnd
=
wrapFunc
(
this
.
element
,
option
.
touchEnd
||
noop
);
this
.
touchEnd
=
wrapFunc
(
this
.
element
,
option
.
touchEnd
||
noop
);
this
.
touchCancel
=
wrapFunc
(
this
.
element
,
option
.
touchCancel
||
noop
);
this
.
touchCancel
=
wrapFunc
(
this
.
element
,
option
.
touchCancel
||
noop
);
this
.
delta
=
null
;
this
.
delta
=
null
;
this
.
last
=
null
;
this
.
last
=
null
;
this
.
now
=
null
;
this
.
now
=
null
;
...
...
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