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 @@
...
@@ -7,9 +7,11 @@
<!-- #ifndef APP-NVUE -->
<!-- #ifndef APP-NVUE -->
<scroll-view
:scroll-into-view=
"scrollViewId"
class=
"uni-indexed-list__scroll"
scroll-y
>
<scroll-view
:scroll-into-view=
"scrollViewId"
class=
"uni-indexed-list__scroll"
scroll-y
>
<view
class=
"right-img"
>
<view
class=
"right-img"
>
<!--
<image
src=
""
/>
-->
{{
classObj
.
Image
}}
<image
:src=
"classObj.Image"
style=
"width: 100%; height: 100%;"
mode=
"aspectFill"
/>
</view>
</view>
<view
v-for=
"(list, idx) in lists"
:key=
"idx"
:id=
"'uni-indexed-list-' + idx"
>
<view
v-for=
"(list, idx) in lists"
:key=
"idx"
:id=
"'uni-indexed-list-' + idx"
>
<!-- #endif -->
<!-- #endif -->
<indexed-list-item
:list=
"list"
:loaded=
"loaded"
:idx=
"idx"
:showSelect=
"showSelect"
<indexed-list-item
:list=
"list"
:loaded=
"loaded"
:idx=
"idx"
:showSelect=
"showSelect"
...
@@ -97,6 +99,12 @@
...
@@ -97,6 +99,12 @@
},
},
emits
:
[
'click'
],
emits
:
[
'click'
],
props
:
{
props
:
{
classObj
:{
type
:
Object
,
default
()
{
return
{}
}
},
options
:
{
options
:
{
type
:
Array
,
type
:
Array
,
default
()
{
default
()
{
...
@@ -377,7 +385,6 @@
...
@@ -377,7 +385,6 @@
.right-img
{
.right-img
{
width
:
100%
;
width
:
100%
;
height
:
200rpx
;
height
:
200rpx
;
background
:
#ffffff
;
}
}
.right-img
image
{
.right-img
image
{
...
...
pages/Luxury/ClassList.vue
View file @
2bb2366f
...
@@ -8,15 +8,15 @@
...
@@ -8,15 +8,15 @@
<view
class=
"ClassList-form"
>
<view
class=
"ClassList-form"
>
<view
class=
"form-left"
>
<view
class=
"form-left"
>
<view
v-for=
"(item,index) in classData"
:key=
"index"
<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)">
@click="chooseType(item)">
<view></view>
<view></view>
<text>
{{
item
.
n
ame
}}
</text>
<text>
{{
item
.
N
ame
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"form-right"
>
<view
class=
"form-right"
>
<view
class=
"right-box"
>
<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>
</view>
</view>
...
@@ -51,14 +51,8 @@
...
@@ -51,14 +51,8 @@
Style
:
1
Style
:
1
},
},
cat_id
:
''
,
cat_id
:
''
,
classData
:[
classData
:[],
{
name
:
'戒指'
},
classObj
:
null
,
{
name
:
'项链'
},
{
name
:
'手镯'
},
],
classObj
:{
name
:
'戒指'
,
},
list
:
[{
list
:
[{
letter
:
'*'
,
letter
:
'*'
,
data
:
[
data
:
[
...
@@ -394,19 +388,22 @@
...
@@ -394,19 +388,22 @@
uni
.
redirectTo
({
url
:
"/pages/index/main"
});
uni
.
redirectTo
({
url
:
"/pages/index/main"
});
},
},
getStyle
(){
getStyle
(){
uni
.
showLoading
({
title
:
'加载中'
});
var
UserPageType
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
var
UserPageType
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
this
.
request2
(
this
.
request2
(
{
{
url
:
'/api/AppletGoods/GetProductCategoryTreeList'
,
url
:
'/api/AppletAssess/GetCategoryDropList'
,
data
:
{
data
:
{}
RootId
:
this
.
cat_id
,
CategoryPageType
:
UserPageType
}
},
},
res
=>
{
res
=>
{
this
.
isloading
=
false
;
this
.
isloading
=
false
;
if
(
res
.
resultCode
==
1
){
if
(
res
.
resultCode
==
1
){
this
.
types
=
res
.
data
;
uni
.
hideLoading
();
this
.
classData
=
res
.
data
;
this
.
classObj
=
this
.
classData
[
0
]
// this.types.forEach((x) => {
// this.types.forEach((x) => {
// if (x.IconPath == "") {
// if (x.IconPath == "") {
// 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