Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
c3c8e290
提交
c3c8e290
编写于
9月 16, 2022
作者:
“grape”
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
首页样式
上级
3d7eda8b
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
37 行增加
和
45 行删除
+37
-45
Tool.vue
src/components/common/Tool.vue
+11
-9
Main.vue
src/views/main/Main.vue
+26
-36
未找到文件。
src/components/common/Tool.vue
浏览文件 @
c3c8e290
...
...
@@ -77,16 +77,18 @@ export default class Tool extends Vue {
}
.title
{
margin
:
4%
auto
5%
0%
;
font-size
:
18px
;
color
:
#FFFFFF
;
border-width
:
0px
;
white-space
:
nowrap
;
text-transform
:
none
;
width
:
100%
;
height
:
100%
;
text-align
:
center
;
margin
:
1%
auto
1%
0
;
font-size
:
18px
;
color
:
#fff
;
border-width
:
0
;
white-space
:
nowrap
;
text-transform
:
none
;
width
:
100%
;
height
:
35%
;
text-align
:
center
;
}
.icon
{
width
:
32px
;
height
:
32px
;
...
...
src/views/main/Main.vue
浏览文件 @
c3c8e290
...
...
@@ -8,12 +8,9 @@
-->
<
template
>
<div
class=
"d-page d-flex flex-column"
style=
"background-color: linear-gradient(to bottom, #0B54E0, #ffffff); padding-bottom:20px;"
>
<scroller-view
v-calculate-height
pulldown=
"true"
pullup=
"true"
:height=
"10000"
class=
"product"
>
<div
class=
"rarle"
>
<tools-bar
:title=
"tatleName"
style=
"width: 100%; height: calc(25vh)"
>
<div
class=
"d-page d-flex flex-column"
style=
"background-color: linear-gradient(to bottom, #0B54E0 50px , #ffffff); padding-bottom:20px;"
>
<div
class=
"rarle"
>
<tools-bar
:title=
"tatleName"
style=
"width: 100%; height: calc(16vh)"
>
</tools-bar>
</div>
<div
class=
"roolsolt"
>
...
...
@@ -25,19 +22,11 @@
background: #ecf9ff;
width: 90%;
height: 34px;
margin: 2% auto;
border-radius: 10px;
border-radius: 10px;
position: absolute;
top: 14vh;
left: 5%;
position: absolute;
top: 22vh;
display: flex;
"
>
<van-col
...
...
@@ -349,6 +338,7 @@
</div>
<scroller-view
v-calculate-height
pulldown=
"true"
pullup=
"true"
:height=
"10000"
class=
"product"
>
<div
v-for=
"(item, index) in productList"
:key=
"index"
...
...
@@ -368,6 +358,7 @@
</scroller-view>
</div>
</template>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"
vue-property-decorator
"
;
...
...
@@ -447,11 +438,17 @@ export default class Main extends Vue {
};
created
(){
// created(){
document
.
addEventListener
(
'
touchmove
'
,
event
=>
{
event
.
preventDefault
()
},
{
passive
:
false
})
// document.addEventListener('touchmove', event => { event.preventDefault() }, { passive: false });
// }
activated
(){
document
.
addEventListener
(
'
touchmove
'
,
event
=>
{
event
.
preventDefault
()
},
{
passive
:
false
});
}
//测试
...
...
@@ -766,20 +763,7 @@ export default class Main extends Vue {
}
onClick
(
index
:
any
)
{
if
(
index
==
0
){
this
.
tabsList
[
index
].
status
=
this
.
tabsList
[
index
].
status
===
1
?
0
:
1
;
this
.
tabsList
[
1
].
status
=
0
;
this
.
tabsList
[
2
].
status
=
0
;
}
else
if
(
index
==
1
)
{
this
.
tabsList
[
index
].
status
=
this
.
tabsList
[
index
].
status
===
1
?
0
:
1
;
this
.
tabsList
[
0
].
status
=
0
;
this
.
tabsList
[
2
].
status
=
0
;
}
else
{
this
.
tabsList
[
index
].
status
=
this
.
tabsList
[
index
].
status
===
1
?
0
:
1
;
this
.
tabsList
[
1
].
status
=
0
;
this
.
tabsList
[
0
].
status
=
0
;
}
this
.
tabsList
[
index
].
status
=
this
.
tabsList
[
index
].
status
===
1
?
0
:
1
// Toast(this.tabsList[index].status===1?"升序":"降序");
}
}
...
...
@@ -806,9 +790,15 @@ export default class Main extends Vue {
}
.prudect
{
line-height
:
100%
;
padding-top
:
20px
;
padding-bottom
:
10px
;
padding-top
:
16px
;
}
.van-row--align-center
{
-webkit-box-align
:
center
;
-webkit-align-items
:
center
;
align-items
:
center
;
height
:
33px
;
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录