Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
F
fenxiao_h5-dz
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张志伟
fenxiao_h5-dz
提交
bfcec0d0
提交
bfcec0d0
编写于
5月 11, 2024
作者:
zhangzhiwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
排序
上级
e503e063
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
25 行增加
和
3 行删除
+25
-3
index.vue
src/pages/goodList/index.vue
+23
-0
index.vue
src/pages/index/index.vue
+2
-3
未找到文件。
src/pages/goodList/index.vue
浏览文件 @
bfcec0d0
...
...
@@ -47,6 +47,7 @@
onPageScroll
(
e
=>
{
})
// uniapp的Bug,这句话不要去掉,否则to-top不生效
const
state
=
reactive
({
temPP
:
null
,
skuId
:
''
,
spuId
:
''
,
params
:
{},
...
...
@@ -77,6 +78,7 @@
state
.
showStyle
=
uni
.
getStorageSync
(
'searchCard'
)
===
''
?
true
:
uni
.
getStorageSync
(
'searchCard'
)
let
search
=
getCurrentInstance
().
ctx
.
$page
.
options
||
''
if
(
search
)
{
state
.
temPP
=
JSON
.
parse
(
JSON
.
stringify
(
search
));
// 价格搜索
if
(
search
[
'money'
])
{
let
minSalePrice
=
''
...
...
@@ -140,6 +142,7 @@
}
}
function
changeTab
(
e
)
{
state
.
good
.
list
=
[]
state
.
good
.
page
=
0
if
(
e
.
name
==
0
)
{
...
...
@@ -150,6 +153,16 @@
if
(
e
.
name
==
1
)
{
state
.
params
.
sortType
=
3
state
.
sortType
=
3
if
(
state
.
temPP
)
{
if
(
state
.
temPP
.
sortType
==
25
){
state
.
sortType
=
25
state
.
params
.
sortType
=
25
}
if
(
state
.
temPP
.
sortType
==
20
){
state
.
sortType
=
21
state
.
params
.
sortType
=
21
}
}
state
.
params
[
'sort'
]
==
1
?
state
.
params
[
'sort'
]
=
0
:
state
.
params
[
'sort'
]
=
1
}
onGoodLoad
()
...
...
@@ -183,6 +196,16 @@
}
function
onGoodLoad
()
{
if
(
state
.
temPP
&&
state
.
active
==
0
)
{
if
(
state
.
temPP
.
sortType
==
25
){
state
.
sortType
=
0
state
.
params
.
sortType
=
0
}
if
(
state
.
temPP
.
sortType
==
20
){
state
.
sortType
=
20
state
.
params
.
sortType
=
20
}
}
// 获取link参数
// url.indexOf('localhost') == -1 ? link :
// let url = window.location.href
...
...
src/pages/index/index.vue
浏览文件 @
bfcec0d0
...
...
@@ -191,14 +191,13 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx" @click="goPhoneBt
},
1000
)
});
function
goUrl
(
type
)
{
console
.
log
(
type
);
if
(
type
==
1
){
uni
.
navigateTo
({
url
:
`/pages/goodList/index?sortType=
0
`
,
url
:
`/pages/goodList/index?sortType=
25
`
,
});
}
else
if
(
type
==
3
){
uni
.
navigateTo
({
url
:
`/pages/goodList/index?sortType=0`
,
url
:
`/pages/goodList/index?sortType=
2
0`
,
});
}
else
if
(
type
==
2
){
uni
.
navigateTo
({
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录