Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
b7e27080
Commit
b7e27080
authored
Oct 17, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加下拉
parent
84d1071f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
675 additions
and
2 deletions
+675
-2
style44.vue
components/cats/style44.vue
+641
-0
index.vue
components/sidebar/index.vue
+23
-1
cats.vue
pages/cats/cats.vue
+11
-1
No files found.
components/cats/style44.vue
0 → 100644
View file @
b7e27080
This diff is collapsed.
Click to expand it.
components/sidebar/index.vue
View file @
b7e27080
<
template
>
<view
class=
"side-box"
:style=
"
{ background: bg }">
<view>
<view
class=
"item"
:style=
"
{
color: !currentIndex2 ? textColor : activeColor,
'border-color': !currentIndex2 ? 'transparent' : activeColor,
'border-bottom': border ? '1rpx solid #eee' : 'none',
'text-align': textAlign,
'background':currentIndex==i?'#FFF':''
}"
@click="change2()"
> 全部
</view
>
</view>
<view
v-for=
"(x, i) in list"
:key=
"i"
...
...
@@ -50,11 +64,12 @@ export default {
},
active
:
{
type
:
Number
,
default
:
0
,
default
:
-
1
,
},
},
data
()
{
return
{
currentIndex2
:
true
,
currentIndex
:
this
.
active
};
},
...
...
@@ -73,7 +88,14 @@ export default {
methods
:
{
change
(
i
)
{
this
.
$emit
(
"change"
,
i
);
this
.
currentIndex2
=
false
},
change2
()
{
this
.
$emit
(
"change2"
,
0
);
this
.
currentIndex2
=
!
this
.
currentIndex2
this
.
currentIndex
=
-
1
// console.log('4555555555',this.currentIndex)
},
},
};
</
script
>
...
...
pages/cats/cats.vue
View file @
b7e27080
...
...
@@ -21,10 +21,16 @@
:h=
"(navHeight+54)"
></style3>
<style
4
v-if=
"cstyle.Type == 1 && cstyle.Style == 4"
v-if=
"cstyle.Type == 1 && cstyle.Style == 4
&&u.TenantId!=27
"
:d=
"types"
:h=
"(navHeight+54)"
></style4>
<!-- 新增进阶教育id27 -->
<style
44
v-if=
"cstyle.Type == 1 && cstyle.Style == 4&&u.TenantId==27"
:d=
"types"
:h=
"(navHeight+54)"
></style44>
<style
5
v-if=
"cstyle.Type == 2 && cstyle.Style == 1"
:d=
"types"
...
...
@@ -72,6 +78,7 @@ import style1 from "@/components/cats/style1";
import
style2
from
"@/components/cats/style2"
;
import
style3
from
"@/components/cats/style3"
;
import
style4
from
"@/components/cats/style4"
;
import
style44
from
"@/components/cats/style44"
;
//进阶教育id为27
import
style5
from
"@/components/cats/style5"
;
import
style6
from
"@/components/cats/style6"
;
import
style7
from
"@/components/cats/style7"
;
...
...
@@ -83,6 +90,7 @@ import style11 from "@/components/cats/style11";
export
default
{
data
()
{
return
{
u
:{},
cat_style
:
2
,
isloading
:
true
,
pageTitle
:
"分类"
,
...
...
@@ -112,6 +120,7 @@ export default {
style2
,
style3
,
style4
,
style44
,
style5
,
style6
,
style7
,
...
...
@@ -121,6 +130,7 @@ export default {
style11
,
},
onLoad
(
option
)
{
this
.
u
=
uni
.
getStorageSync
(
'mall_UserInfo'
);
this
.
navHeight
=
this
.
$navHeight
-
2
;
// this.cstyle = uni.getStorageSync("basedata")
// ? uni.getStorageSync("basedata").cat_style
...
...
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