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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
17 deletions
+20
-17
pages/index/index.vue
+16
-11
pages/index/scrollView.vue
+3
-3
util/Env.js
+1
-1
util/wx-touch-event.js
+0
-2
No files found.
pages/index/index.vue
View file @
c9da0ba8
<
template
>
<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>
...
...
@@ -13,10 +14,11 @@
<!-- 设计区域 -->
<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
:style=
"
{width: data.bgWidth +'px',height: data.bgHeight +'px'}" style="position: relative; ">
...
...
@@ -458,7 +460,7 @@
<view
style=
"position: relative; width: calc(100% - 40upx); z-index: 99; margin:30upx auto; "
>
<swiper
:autoplay=
"true"
:interval=
"3000"
:duration=
"1000"
:indicator-dots=
"true"
: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"
>
<image
:src=
"item.content + '?x-oss-process=image/resize,lfit,w_375'"
mode=
"aspectFill"
class=
"full-width full-height"
...
...
@@ -467,13 +469,15 @@
</swiper>
</view>
<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
@
tap=
"material_series_handleScroll(index,item)"
: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"
@tap="material_series_handleScroll(index,item)"
>
>
<view>
{{
item
.
title
}}
</view>
</view>
</view>
...
...
@@ -491,7 +495,7 @@
</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>
...
...
@@ -1954,6 +1958,7 @@
////打开弹框 1模板 2贴图 3字体 4编辑 22添加相框 23壁纸
material_series_handleScroll
(
index
,
item
)
{
console
.
log
(
"点击"
+
index
)
this
.
queryPage
.
page
=
1
this
.
material_series_currentId
=
item
.
id
this
.
queryPage
.
material_series_id
=
item
.
id
...
...
@@ -3410,9 +3415,9 @@
title
:
"最新"
},
)
this
.
Adlists
=
this
.
diy_bannerList
//console.log(this.Adlists)
this
.
queryPage
.
goods_id
=
this
.
data
.
goods_id
this
.
brands
=
this
.
Material_category
this
.
currentId
=
this
.
currentId_Material
;
...
...
pages/index/scrollView.vue
View file @
c9da0ba8
<
template
>
<!-- 贴图 -->
<view
class=
"content"
style=
"width: 100%; height: 100%; position: relative;
z-index: 999999;
"
:style=
"
{height: (windowHeight
+ 80
) +'px'}">
<view
class=
"content"
style=
"width: 100%; height: 100%; position: relative;"
:style=
"
{height: (windowHeight
- classificationHeight
) +'px'}">
<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"
>
<view
style=
"color: #FFFFFF;position: absolute; top: 0;width: 100%; text-align: center;"
:style=
"'height:' + 40 + 'px; line-height:' + 40 + 'px;'"
>
{{
tip
}}
</view>
...
...
util/Env.js
View file @
c9da0ba8
...
...
@@ -4,7 +4,7 @@ if(!accountInfo.miniProgram.envVersion){
}
const
baseApi
=
{
// 开发版
develop
:
"https://tprint.refinecolor.com"
,
develop
:
"https://tprint.refinecolor.com"
,
//develop: "https://tprint.colorpark.cn",
// 体验版
trial
:
"https://tprint.refinecolor.com"
,
...
...
util/wx-touch-event.js
View file @
c9da0ba8
...
...
@@ -12,7 +12,6 @@ class WxTouchEvent {
bind
(
option
)
{
this
.
element
=
null
;
this
.
rotate
=
wrapFunc
(
this
.
element
,
option
.
rotate
||
noop
);
this
.
touchStart
=
wrapFunc
(
this
.
element
,
option
.
touchStart
||
noop
);
this
.
multipointStart
=
wrapFunc
(
this
.
element
,
option
.
multipointStart
||
noop
);
...
...
@@ -27,7 +26,6 @@ class WxTouchEvent {
this
.
touchMove
=
wrapFunc
(
this
.
element
,
option
.
touchMove
||
noop
);
this
.
touchEnd
=
wrapFunc
(
this
.
element
,
option
.
touchEnd
||
noop
);
this
.
touchCancel
=
wrapFunc
(
this
.
element
,
option
.
touchCancel
||
noop
);
this
.
delta
=
null
;
this
.
last
=
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