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
2bb2366f
Commit
2bb2366f
authored
Jul 22, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c698422a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
19 deletions
+23
-19
uni-indexed-list.vue
components/uni-indexed-list/uni-indexed-list.vue
+9
-2
ClassList.vue
pages/Luxury/ClassList.vue
+14
-17
No files found.
components/uni-indexed-list/uni-indexed-list.vue
View file @
2bb2366f
...
...
@@ -7,9 +7,11 @@
<!-- #ifndef APP-NVUE -->
<scroll-view
:scroll-into-view=
"scrollViewId"
class=
"uni-indexed-list__scroll"
scroll-y
>
<view
class=
"right-img"
>
<!--
<image
src=
""
/>
-->
{{
classObj
.
Image
}}
<image
:src=
"classObj.Image"
style=
"width: 100%; height: 100%;"
mode=
"aspectFill"
/>
</view>
<view
v-for=
"(list, idx) in lists"
:key=
"idx"
:id=
"'uni-indexed-list-' + idx"
>
<!-- #endif -->
<indexed-list-item
:list=
"list"
:loaded=
"loaded"
:idx=
"idx"
:showSelect=
"showSelect"
...
...
@@ -97,6 +99,12 @@
},
emits
:
[
'click'
],
props
:
{
classObj
:{
type
:
Object
,
default
()
{
return
{}
}
},
options
:
{
type
:
Array
,
default
()
{
...
...
@@ -377,7 +385,6 @@
.right-img
{
width
:
100%
;
height
:
200rpx
;
background
:
#ffffff
;
}
.right-img
image
{
...
...
pages/Luxury/ClassList.vue
View file @
2bb2366f
...
...
@@ -8,15 +8,15 @@
<view
class=
"ClassList-form"
>
<view
class=
"form-left"
>
<view
v-for=
"(item,index) in classData"
:key=
"index"
class=
"name-box"
:class=
"
{'active':classObj.
name==item.n
ame}"
class=
"name-box"
:class=
"
{'active':classObj.
Name==item.N
ame}"
@click="chooseType(item)">
<view></view>
<text>
{{
item
.
n
ame
}}
</text>
<text>
{{
item
.
N
ame
}}
</text>
</view>
</view>
<view
class=
"form-right"
>
<view
class=
"right-box"
>
<uni-indexed-list
:options=
"list"
:show-select=
"true"
@
click=
"bindClick"
/>
<uni-indexed-list
:
class-Obj=
"classObj"
:
options=
"list"
:show-select=
"true"
@
click=
"bindClick"
/>
</view>
</view>
...
...
@@ -51,14 +51,8 @@
Style
:
1
},
cat_id
:
''
,
classData
:[
{
name
:
'戒指'
},
{
name
:
'项链'
},
{
name
:
'手镯'
},
],
classObj
:{
name
:
'戒指'
,
},
classData
:[],
classObj
:
null
,
list
:
[{
letter
:
'*'
,
data
:
[
...
...
@@ -394,19 +388,22 @@
uni
.
redirectTo
({
url
:
"/pages/index/main"
});
},
getStyle
(){
uni
.
showLoading
({
title
:
'加载中'
});
var
UserPageType
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
this
.
request2
(
{
url
:
'/api/AppletGoods/GetProductCategoryTreeList'
,
data
:
{
RootId
:
this
.
cat_id
,
CategoryPageType
:
UserPageType
}
url
:
'/api/AppletAssess/GetCategoryDropList'
,
data
:
{}
},
res
=>
{
this
.
isloading
=
false
;
if
(
res
.
resultCode
==
1
){
this
.
types
=
res
.
data
;
uni
.
hideLoading
();
this
.
classData
=
res
.
data
;
this
.
classObj
=
this
.
classData
[
0
]
// this.types.forEach((x) => {
// if (x.IconPath == "") {
// x.IconPath =
...
...
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