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
3b9eaf8b
Commit
3b9eaf8b
authored
May 29, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9d93c931
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
359 additions
and
171 deletions
+359
-171
style1.vue
components/cats/style1.vue
+2
-2
style2.vue
components/cats/style2.vue
+2
-2
style3.vue
components/cats/style3.vue
+53
-24
style4.vue
components/cats/style4.vue
+52
-22
style5.vue
components/cats/style5.vue
+6
-6
style6.vue
components/cats/style6.vue
+10
-6
style7.vue
components/cats/style7.vue
+67
-28
style8.vue
components/cats/style8.vue
+75
-33
cats.vue
pages/cats/cats.vue
+91
-47
pay.vue
pages/pay/pay/pay.vue
+1
-1
No files found.
components/cats/style1.vue
View file @
3b9eaf8b
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
@
click=
"clickHandler(c.page_url)"
@
click=
"clickHandler(c.page_url)"
>
>
<image
<image
:src=
"
c.pic_url
"
:src=
"
getIconLink(c.IconPath)
"
mode=
"widthFix"
mode=
"widthFix"
style=
"width: 80rpx; height: 80rpx;"
style=
"width: 80rpx; height: 80rpx;"
/>
/>
<text
class=
"grid-text"
>
{{
c
.
n
ame
}}
</text>
<text
class=
"grid-text"
>
{{
c
.
N
ame
}}
</text>
</u-grid-item>
</u-grid-item>
</u-grid>
</u-grid>
</div>
</div>
...
...
components/cats/style2.vue
View file @
3b9eaf8b
<
template
>
<
template
>
<view
class=
"catsstyle2"
>
<view
class=
"catsstyle2"
>
<view
class=
"item"
v-for=
"(x, index) in d"
:key=
"index"
@
click=
"goUrl"
:data-url=
'x.page_url'
>
<view
class=
"item"
v-for=
"(x, index) in d"
:key=
"index"
@
click=
"goUrl"
:data-url=
'x.page_url'
>
<view
class=
"left"
>
{{
x
.
n
ame
}}
</view>
<view
class=
"left"
>
{{
x
.
N
ame
}}
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<image
:src=
"
x.big_pic_url
"
style=
"width:100%;height:100%"
mode=
"aspectFit"
/>
<image
:src=
"
getIconLink(x.IconPath)
"
style=
"width:100%;height:100%"
mode=
"aspectFit"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
components/cats/style3.vue
View file @
3b9eaf8b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"tabsbox"
>
<view
class=
"tabsbox"
>
<u-tabs
<u-tabs
:is-scroll=
"true"
:is-scroll=
"true"
name=
"
n
ame"
name=
"
N
ame"
:list=
"d"
:list=
"d"
:active-color=
"mainColor"
:active-color=
"mainColor"
:current=
"active"
:current=
"active"
...
@@ -60,7 +60,15 @@ export default {
...
@@ -60,7 +60,15 @@ export default {
data
()
{
data
()
{
return
{
return
{
mainColor
:
""
,
mainColor
:
""
,
page
:
1
,
msg
:{
pageIndex
:
1
,
pageSize
:
14
,
Name
:
''
,
GoodsType
:
0
,
CategoryIds
:
''
,
OrderBy
:
1
,
UserId
:
0
,
},
page_count
:
1
,
page_count
:
1
,
mh
:
0
,
mh
:
0
,
g
:
[],
g
:
[],
...
@@ -78,8 +86,9 @@ export default {
...
@@ -78,8 +86,9 @@ export default {
},
},
methods
:
{
methods
:
{
changeHandler
(
i
)
{
changeHandler
(
i
)
{
this
.
msg
.
CategoryIds
=
this
.
d
[
i
].
Id
+
''
;
this
.
msg
.
page
=
1
;
this
.
tid
=
i
;
this
.
tid
=
i
;
this
.
page
=
1
;
this
.
g
=
[];
this
.
g
=
[];
this
.
init
();
this
.
init
();
this
.
active
=
i
this
.
active
=
i
...
@@ -90,29 +99,49 @@ export default {
...
@@ -90,29 +99,49 @@ export default {
init
()
{
init
()
{
this
.
isover
=
false
;
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
request
(
this
.
request2
(
{
{
url
:
""
,
url
:
'/api/AppletGoods/GetAppletGoodsPageListForZY'
,
data
:
{
data
:
this
.
msg
r
:
"api/default/goods-list"
,
page
:
this
.
page
,
cat_id
:
this
.
d
[
this
.
tid
].
id
,
},
},
},
(
res
)
=>
{
res
=>
{
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
list
);
this
.
loading
=
false
;
this
.
page_count
=
res
.
data
.
pagination
.
page_count
;
console
.
log
(
"resggg"
,
res
);
if
(
this
.
page_count
==
1
)
{
if
(
res
.
resultCode
==
1
){
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
||
this
.
page_count
==
0
)
{
this
.
isover
=
true
;
this
.
isover
=
true
;
}
}
this
.
loading
=
false
;
}
uni
.
hideNavigationBarLoading
();
}
}
);
);
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].id,
// },
// },
// (res) => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
},
},
lower
(
e
)
{
lower
(
e
)
{
if
(
this
.
page
<
this
.
page_count
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
if
(
!
this
.
loading
)
{
if
(
!
this
.
loading
)
{
this
.
page
++
;
this
.
msg
.
pageIndex
++
;
this
.
init
();
this
.
init
();
}
}
}
else
{
}
else
{
...
...
components/cats/style4.vue
View file @
3b9eaf8b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"left-slider"
>
<div
class=
"left-slider"
>
<sidebar
<sidebar
:active=
"tid"
:active=
"tid"
name=
"
n
ame"
name=
"
N
ame"
:active-color=
"mainColor"
:active-color=
"mainColor"
:border=
"false"
:border=
"false"
:list=
"d"
:list=
"d"
...
@@ -88,6 +88,15 @@ export default {
...
@@ -88,6 +88,15 @@ export default {
loading
:
false
,
loading
:
false
,
tid
:
0
,
tid
:
0
,
active
:
0
,
active
:
0
,
msg
:{
pageIndex
:
1
,
pageSize
:
14
,
Name
:
''
,
GoodsType
:
0
,
CategoryIds
:
''
,
OrderBy
:
1
,
UserId
:
0
,
},
};
};
},
},
created
()
{
created
()
{
...
@@ -99,8 +108,9 @@ export default {
...
@@ -99,8 +108,9 @@ export default {
},
},
methods
:
{
methods
:
{
changeHandler
(
i
)
{
changeHandler
(
i
)
{
this
.
msg
.
CategoryIds
=
this
.
d
[
i
].
Id
+
''
;
this
.
msg
.
page
=
1
;
this
.
tid
=
i
;
this
.
tid
=
i
;
this
.
page
=
1
;
this
.
g
=
[];
this
.
g
=
[];
this
.
init
();
this
.
init
();
},
},
...
@@ -110,29 +120,49 @@ export default {
...
@@ -110,29 +120,49 @@ export default {
init
()
{
init
()
{
this
.
isover
=
false
;
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
request
(
this
.
request2
(
{
{
url
:
""
,
url
:
'/api/AppletGoods/GetAppletGoodsPageListForZY'
,
data
:
{
data
:
this
.
msg
r
:
"api/default/goods-list"
,
page
:
this
.
page
,
cat_id
:
this
.
d
[
this
.
tid
].
id
,
},
},
},
(
res
)
=>
{
res
=>
{
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
list
);
this
.
loading
=
false
;
this
.
page_count
=
res
.
data
.
pagination
.
page_count
;
console
.
log
(
"resggg"
,
res
);
if
(
this
.
page_count
==
1
)
{
if
(
res
.
resultCode
==
1
){
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
||
this
.
page_count
==
0
)
{
this
.
isover
=
true
;
this
.
isover
=
true
;
}
}
this
.
loading
=
false
;
}
uni
.
hideNavigationBarLoading
();
}
}
);
);
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].id,
// },
// },
// (res) => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
},
},
lower
(
e
)
{
lower
(
e
)
{
if
(
this
.
page
<
this
.
page_count
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
if
(
!
this
.
loading
)
{
if
(
!
this
.
loading
)
{
this
.
page
++
;
this
.
msg
.
pageIndex
++
;
this
.
init
();
this
.
init
();
}
}
}
else
{
}
else
{
...
...
components/cats/style5.vue
View file @
3b9eaf8b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"left-slider"
>
<div
class=
"left-slider"
>
<sidebar
<sidebar
:active=
"tid"
:active=
"tid"
name=
"
n
ame"
name=
"
N
ame"
:active-color=
"mainColor"
:active-color=
"mainColor"
:border=
"false"
:border=
"false"
:list=
"d"
:list=
"d"
...
@@ -29,12 +29,12 @@
...
@@ -29,12 +29,12 @@
:key=
"index"
:key=
"index"
@
click=
"clickHandler(x.page_url)"
@
click=
"clickHandler(x.page_url)"
>
>
<div
class=
"left"
>
{{
x
.
n
ame
}}
</div>
<div
class=
"left"
>
{{
x
.
N
ame
}}
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<image
<image
v-if=
"x.
big_pic_url && x.big_pic_url
.length > 0"
v-if=
"x.
IconPath && x.IconPath
.length > 0"
mode=
"aspectFit"
mode=
"aspectFit"
:src=
"
x.big_pic_url
"
:src=
"
getIconLink(c.IconPath)
"
style=
"width: 100%; height: 100%;"
style=
"width: 100%; height: 100%;"
/>
/>
</div>
</div>
...
@@ -63,13 +63,13 @@ export default {
...
@@ -63,13 +63,13 @@ export default {
},
},
created
()
{
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
sd
=
this
.
d
[
this
.
tid
].
child
;
this
.
sd
=
this
.
d
[
this
.
tid
].
ChildList
;
},
},
methods
:
{
methods
:
{
changeHandler
(
i
)
{
changeHandler
(
i
)
{
this
.
tid
=
i
;
this
.
tid
=
i
;
this
.
page
=
1
;
this
.
page
=
1
;
this
.
sd
=
this
.
d
[
this
.
tid
].
child
;
this
.
sd
=
this
.
d
[
this
.
tid
].
ChildList
;
},
},
clickHandler
(
url
)
{
clickHandler
(
url
)
{
uni
.
navigateTo
({
url
:
url
});
uni
.
navigateTo
({
url
:
url
});
...
...
components/cats/style6.vue
View file @
3b9eaf8b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"left-slider"
>
<div
class=
"left-slider"
>
<sidebar
<sidebar
:active=
"tid"
:active=
"tid"
name=
"
n
ame"
name=
"
N
ame"
:active-color=
"mainColor"
:active-color=
"mainColor"
:border=
"false"
:border=
"false"
:list=
"d"
:list=
"d"
...
@@ -29,11 +29,11 @@
...
@@ -29,11 +29,11 @@
@
click=
"clickHandler(c.page_url)"
@
click=
"clickHandler(c.page_url)"
>
>
<image
<image
:src=
"c.pic_url
"
class=
"imgclass
"
mode=
"widthFix
"
:src=
"getIconLink(c.IconPath)
"
style=
"width: 80rpx; height: 80rpx;"
style=
"width: 80rpx; height: 80rpx;"
/>
/>
<text
class=
"grid-text"
>
{{
c
.
n
ame
}}
</text>
<text
class=
"grid-text"
>
{{
c
.
N
ame
}}
</text>
</u-grid-item>
</u-grid-item>
</u-grid>
</u-grid>
</div>
</div>
...
@@ -62,13 +62,13 @@ export default {
...
@@ -62,13 +62,13 @@ export default {
created
()
{
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
activeStyle
=
`background:
${
this
.
mainColor
}
;`
;
this
.
activeStyle
=
`background:
${
this
.
mainColor
}
;`
;
this
.
sd
=
this
.
d
[
this
.
tid
].
child
;
this
.
sd
=
this
.
d
[
this
.
tid
].
ChildList
;
},
},
methods
:
{
methods
:
{
changeHandler
(
i
)
{
changeHandler
(
i
)
{
this
.
tid
=
i
;
this
.
tid
=
i
;
this
.
page
=
1
;
this
.
page
=
1
;
this
.
sd
=
this
.
d
[
this
.
tid
].
child
;
this
.
sd
=
this
.
d
[
this
.
tid
].
ChildList
;
},
},
clickHandler
(
url
)
{
clickHandler
(
url
)
{
uni
.
navigateTo
({
url
:
url
});
uni
.
navigateTo
({
url
:
url
});
...
@@ -78,6 +78,10 @@ export default {
...
@@ -78,6 +78,10 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
.catstyle6
.imgclass
{
display
:
block
;
width
:
80
rpx
;
height
:
80
rpx
;
}
.catstyle6
{
.catstyle6
{
display
:
flex
;
display
:
flex
;
}
}
...
...
components/cats/style7.vue
View file @
3b9eaf8b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"tabsbox"
>
<view
class=
"tabsbox"
>
<u-tabs
<u-tabs
:is-scroll=
"true"
:is-scroll=
"true"
name=
"
n
ame"
name=
"
N
ame"
:list=
"d"
:list=
"d"
:active-color=
"mainColor"
:active-color=
"mainColor"
:current=
"active"
:current=
"active"
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
'border-color': stid == i ? mainColor : '#999',
'border-color': stid == i ? mainColor : '#999',
color: stid == i ? mainColor : '#999',
color: stid == i ? mainColor : '#999',
}"
}"
v-for="(x, i) in d[tid].
child
"
v-for="(x, i) in d[tid].
ChildList
"
:key="i"
:key="i"
@click="clickSecondHandler(i)"
@click="clickSecondHandler(i)"
>
>
{{
x
.
n
ame
}}
{{
x
.
N
ame
}}
</div>
</div>
</div>
</div>
<div
<div
...
@@ -84,12 +84,24 @@ export default {
...
@@ -84,12 +84,24 @@ export default {
active
:
0
,
active
:
0
,
stid
:
0
,
stid
:
0
,
sHeight
:
0
,
sHeight
:
0
,
msg
:{
pageIndex
:
1
,
pageSize
:
14
,
Name
:
''
,
GoodsType
:
0
,
CategoryIds
:
''
,
OrderBy
:
1
,
UserId
:
0
,
},
};
};
},
},
created
()
{
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
},
},
mounted
()
{
mounted
()
{
this
.
CategoryIdsList
=
[];
this
.
CategoryIds1
=
this
.
d
[
0
].
Id
;
this
.
CategoryIds2
=
this
.
d
[
0
].
ChildList
[
0
].
Id
;
this
.
init
();
this
.
init
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
computSecondHeight
();
this
.
computSecondHeight
();
...
@@ -97,9 +109,11 @@ export default {
...
@@ -97,9 +109,11 @@ export default {
},
},
methods
:
{
methods
:
{
changeHandler
(
i
)
{
changeHandler
(
i
)
{
this
.
active
=
i
;
this
.
CategoryIds1
=
this
.
d
[
i
].
Id
;
this
.
msg
.
page
=
1
;
this
.
tid
=
i
;
this
.
tid
=
i
;
this
.
stid
=
0
;
this
.
stid
=
0
;
this
.
page
=
1
;
this
.
g
=
[];
this
.
g
=
[];
this
.
init
();
this
.
init
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -107,8 +121,10 @@ export default {
...
@@ -107,8 +121,10 @@ export default {
},
500
);
},
500
);
},
},
clickSecondHandler
(
i
)
{
clickSecondHandler
(
i
)
{
let
tid
=
this
.
tid
;
this
.
CategoryIds2
=
this
.
d
[
tid
].
ChildList
[
i
].
Id
;
this
.
stid
=
i
;
this
.
stid
=
i
;
this
.
page
=
1
;
this
.
msg
.
page
=
1
;
this
.
g
=
[];
this
.
g
=
[];
this
.
init
();
this
.
init
();
},
},
...
@@ -125,31 +141,54 @@ export default {
...
@@ -125,31 +141,54 @@ export default {
.
exec
();
.
exec
();
},
},
init
()
{
init
()
{
this
.
CategoryIdsList
=
[];
this
.
CategoryIdsList
.
push
(
this
.
CategoryIds1
,
this
.
CategoryIds2
);
this
.
msg
.
CategoryIds
=
this
.
CategoryIdsList
.
join
(
','
);
this
.
isover
=
false
;
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
request
(
this
.
request2
(
{
{
url
:
""
,
url
:
'/api/AppletGoods/GetAppletGoodsPageListForZY'
,
data
:
{
data
:
this
.
msg
r
:
"api/default/goods-list"
,
page
:
this
.
page
,
cat_id
:
this
.
d
[
this
.
tid
].
child
[
this
.
stid
].
id
,
},
},
},
(
res
)
=>
{
res
=>
{
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
list
);
this
.
loading
=
false
;
this
.
page_count
=
res
.
data
.
pagination
.
page_count
;
console
.
log
(
"resggg"
,
res
);
if
(
this
.
page_count
==
1
)
{
if
(
res
.
resultCode
==
1
){
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
||
this
.
page_count
==
0
)
{
this
.
isover
=
true
;
this
.
isover
=
true
;
}
}
this
.
loading
=
false
;
}
uni
.
hideNavigationBarLoading
();
}
}
);
);
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].ChildList[this.stid].id,
// },
// },
// (res) => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
},
},
lower
(
e
)
{
lower
(
e
)
{
if
(
this
.
page
<
this
.
page_count
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
if
(
!
this
.
loading
)
{
if
(
!
this
.
loading
)
{
this
.
page
++
;
this
.
msg
.
pageIndex
++
;
this
.
init
();
this
.
init
();
}
}
}
else
{
}
else
{
...
...
components/cats/style8.vue
View file @
3b9eaf8b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"left-slider"
>
<view
class=
"left-slider"
>
<sidebar
<sidebar
:active=
"tid"
:active=
"tid"
name=
"
n
ame"
name=
"
N
ame"
:active-color=
"mainColor"
:active-color=
"mainColor"
:border=
"false"
:border=
"false"
:list=
"d"
:list=
"d"
...
@@ -26,10 +26,10 @@
...
@@ -26,10 +26,10 @@
'border-color': stid == i ? mainColor : '#999',
'border-color': stid == i ? mainColor : '#999',
color: stid == i ? mainColor : '#999',
color: stid == i ? mainColor : '#999',
}"
}"
v-for="(x, i) in d[tid].
child
"
v-for="(x, i) in d[tid].
ChildList
"
:key="i"
:key="i"
@click="clickSecondHandler(i)"
@click="clickSecondHandler(i)"
>
{{
x
.
n
ame
}}
</view>
>
{{
x
.
N
ame
}}
</view>
</view>
</view>
</view>
</view>
...
@@ -49,9 +49,9 @@
...
@@ -49,9 +49,9 @@
<view
class=
"good-name"
>
{{
cx
.
name
}}
</view>
<view
class=
"good-name"
>
{{
cx
.
name
}}
</view>
<view
class=
"goodprice"
>
<view
class=
"goodprice"
>
<view
class=
"left"
>
<view
class=
"left"
>
<view
v-if=
"cx.
vip_price
"
>
<view
v-if=
"cx.
price_member
"
>
<van-tag
plain
color=
"#f39800"
>
会员价
</van-tag>
<van-tag
plain
color=
"#f39800"
>
会员价
</van-tag>
<span
class=
"vip"
>
¥
329
</span>
<span
class=
"vip"
>
¥
{{
cx
.
price_member
}}
</span>
</view>
</view>
<view
class=
"price"
:style=
"
{ color: mainColor }">
{{
cx
.
price_content
}}
</view>
<view
class=
"price"
:style=
"
{ color: mainColor }">
{{
cx
.
price_content
}}
</view>
<view
class=
"sell"
>
{{
cx
.
sales
}}
</view>
<view
class=
"sell"
>
{{
cx
.
sales
}}
</view>
...
@@ -90,7 +90,19 @@ export default {
...
@@ -90,7 +90,19 @@ export default {
tid
:
0
,
tid
:
0
,
stid
:
0
,
stid
:
0
,
active
:
0
,
active
:
0
,
scrollHeight
:
"calc(100% - 33px"
scrollHeight
:
"calc(100% - 33px)"
,
msg
:{
pageIndex
:
1
,
pageSize
:
14
,
Name
:
''
,
GoodsType
:
0
,
CategoryIds
:
''
,
OrderBy
:
1
,
UserId
:
0
,
},
CategoryIdsList
:[],
CategoryIds1
:
''
,
CategoryIds2
:
''
,
};
};
},
},
components
:
{
components
:
{
...
@@ -105,19 +117,26 @@ export default {
...
@@ -105,19 +117,26 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
CategoryIdsList
=
[];
this
.
CategoryIds1
=
this
.
d
[
0
].
Id
;
this
.
CategoryIds2
=
this
.
d
[
0
].
ChildList
[
0
].
Id
;
this
.
init
();
this
.
init
();
},
},
methods
:
{
methods
:
{
changeHandler
(
e
)
{
changeHandler
(
i
)
{
this
.
tid
=
e
;
this
.
active
=
i
;
this
.
CategoryIds1
=
this
.
d
[
i
].
Id
;
this
.
msg
.
page
=
1
;
this
.
tid
=
i
;
this
.
stid
=
0
;
this
.
stid
=
0
;
this
.
page
=
1
;
this
.
g
=
[];
this
.
g
=
[];
this
.
init
();
this
.
init
();
},
},
clickSecondHandler
(
e
)
{
clickSecondHandler
(
i
)
{
this
.
stid
=
e
;
let
tid
=
this
.
tid
;
this
.
page
=
1
;
this
.
CategoryIds2
=
this
.
d
[
tid
].
ChildList
[
i
].
Id
;
this
.
stid
=
i
;
this
.
msg
.
page
=
1
;
this
.
g
=
[];
this
.
g
=
[];
this
.
init
();
this
.
init
();
},
},
...
@@ -125,31 +144,54 @@ export default {
...
@@ -125,31 +144,54 @@ export default {
uni
.
navigateTo
({
url
:
e
});
uni
.
navigateTo
({
url
:
e
});
},
},
init
()
{
init
()
{
this
.
CategoryIdsList
=
[];
this
.
CategoryIdsList
.
push
(
this
.
CategoryIds1
,
this
.
CategoryIds2
);
this
.
msg
.
CategoryIds
=
this
.
CategoryIdsList
.
join
(
','
);
this
.
isover
=
false
;
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
request
(
this
.
request2
(
{
{
url
:
""
,
url
:
'/api/AppletGoods/GetAppletGoodsPageListForZY'
,
data
:
{
data
:
this
.
msg
r
:
"api/default/goods-list"
,
page
:
this
.
page
,
cat_id
:
this
.
d
[
this
.
tid
].
child
[
this
.
stid
].
id
}
},
},
res
=>
{
res
=>
{
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
list
);
this
.
loading
=
false
;
this
.
page_count
=
res
.
data
.
pagination
.
page_count
;
console
.
log
(
"resggg"
,
res
);
if
(
this
.
page_count
==
1
)
{
if
(
res
.
resultCode
==
1
){
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
||
this
.
page_count
==
0
)
{
this
.
isover
=
true
;
this
.
isover
=
true
;
}
}
this
.
loading
=
false
;
}
uni
.
hideNavigationBarLoading
();
}
}
);
);
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].child[this.stid].id
// }
// },
// res => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
},
},
lower
(
e
)
{
lower
(
e
)
{
if
(
this
.
page
<
this
.
page_count
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
if
(
!
this
.
loading
)
{
if
(
!
this
.
loading
)
{
this
.
page
++
;
this
.
msg
.
pageIndex
++
;
this
.
init
();
this
.
init
();
}
}
}
else
{
}
else
{
...
...
pages/cats/cats.vue
View file @
3b9eaf8b
...
@@ -6,42 +6,42 @@
...
@@ -6,42 +6,42 @@
style="voerflow: hidden; overflow-y: auto;"
style="voerflow: hidden; overflow-y: auto;"
>
>
<style
1
<style
1
v-if=
"cstyle.
cat_s
tyle == 1"
v-if=
"cstyle.
Type == 1 && cstyle.S
tyle == 1"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style1>
></style1>
<style
2
<style
2
v-if=
"cstyle.
cat_s
tyle == 2"
v-if=
"cstyle.
Type == 1 && cstyle.S
tyle == 2"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style2>
></style2>
<style
3
<style
3
v-if=
"cstyle.
cat_s
tyle == 3"
v-if=
"cstyle.
Type == 1 && cstyle.S
tyle == 3"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style3>
></style3>
<style
4
<style
4
v-if=
"cstyle.
cat_style == 5
"
v-if=
"cstyle.
Type == 1 && cstyle.Style == 4
"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style4>
></style4>
<style
5
<style
5
v-if=
"cstyle.
cat_style == 6
"
v-if=
"cstyle.
Type == 2 && cstyle.Style == 1
"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style5>
></style5>
<style
6
<style
6
v-if=
"cstyle.
cat_style == 4
"
v-if=
"cstyle.
Type == 2 && cstyle.Style == 2
"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style6>
></style6>
<style
7
<style
7
v-if=
"cstyle.
cat_style == 7
"
v-if=
"cstyle.
Type == 2 && cstyle.Style == 3
"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style7>
></style7>
<style
8
<style
8
v-if=
"cstyle.
cat_style == 8
"
v-if=
"cstyle.
Type == 2 && cstyle.Style == 4
"
:d=
"types"
:d=
"types"
:h=
"(navHeight+54)"
:h=
"(navHeight+54)"
></style8>
></style8>
...
@@ -82,6 +82,7 @@ import style11 from "@/components/cats/style10";
...
@@ -82,6 +82,7 @@ import style11 from "@/components/cats/style10";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
cat_style
:
2
,
isloading
:
true
,
isloading
:
true
,
pageTitle
:
"分类"
,
pageTitle
:
"分类"
,
navHeight
:
0
,
navHeight
:
0
,
...
@@ -96,7 +97,10 @@ export default {
...
@@ -96,7 +97,10 @@ export default {
types
:
[],
types
:
[],
changeHeight
:
0
,
changeHeight
:
0
,
contentHeight
:
0
,
contentHeight
:
0
,
cstyle
:
{},
cstyle
:
{
Type
:
1
,
Style
:
1
},
};
};
},
},
components
:
{
components
:
{
...
@@ -116,9 +120,9 @@ export default {
...
@@ -116,9 +120,9 @@ export default {
},
},
onLoad
()
{
onLoad
()
{
this
.
navHeight
=
this
.
$navHeight
-
2
;
this
.
navHeight
=
this
.
$navHeight
-
2
;
this
.
cstyle
=
uni
.
getStorageSync
(
"basedata"
)
//
this.cstyle = uni.getStorageSync("basedata")
?
uni
.
getStorageSync
(
"basedata"
).
cat_style
//
? uni.getStorageSync("basedata").cat_style
:
[];
//
: [];
if
(
this
.
cstyle
.
cat_style
==
"4"
)
{
if
(
this
.
cstyle
.
cat_style
==
"4"
)
{
// this.searchStyle.p = {
// this.searchStyle.p = {
// position: "fixed",
// position: "fixed",
...
@@ -146,34 +150,74 @@ export default {
...
@@ -146,34 +150,74 @@ export default {
title
:
this
.
pageTitle
,
title
:
this
.
pageTitle
,
});
});
this
.
init
();
this
.
init
();
this
.
getStyle
();
uni
.
showNavigationBarLoading
();
uni
.
showNavigationBarLoading
();
},
},
methods
:
{
methods
:
{
goHome
()
{
goHome
()
{
uni
.
redirectTo
({
url
:
"/pages/index/main"
});
uni
.
redirectTo
({
url
:
"/pages/index/main"
});
},
},
init
()
{
getStyle
()
{
this
.
request
(
this
.
request2
(
{
{
url
:
""
,
url
:
'/api/AppletGoods/GetProductCategoryTreeList'
,
data
:
{
data
:
{}
r
:
"api/cat/list"
,
cat_id
:
""
,
select_cat_id
:
""
,
},
},
res
=>
{
console
.
log
(
"res"
,
res
);
this
.
isloading
=
false
;
if
(
res
.
resultCode
==
1
){
this
.
types
=
res
.
data
;
console
.
log
(
"this.types"
,
this
.
types
)
// this.types.forEach((x) => {
// if (x.IconPath == "") {
// x.IconPath =
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200330/2099ca5e58ff3e0548d730bfaae14f7a.png";
// }
// });
}
uni
.
hideNavigationBarLoading
();
}
);
},
init
()
{
this
.
request2
(
{
url
:
'/api/AppletGoods/GetProductCategoryStyleInfo'
,
data
:
{}
},
},
(
res
)
=>
{
res
=>
{
this
.
types
=
res
.
data
.
list
;
console
.
log
(
"res"
,
res
);
this
.
types
.
forEach
((
x
)
=>
{
if
(
res
.
resultCode
==
1
){
if
(
x
.
pic_url
==
""
)
{
this
.
cstyle
=
res
.
data
;
x
.
pic_url
=
"https://cdnimg.iotweixin.com/uploads/mall1285/20200330/2099ca5e58ff3e0548d730bfaae14f7a.png"
;
}
}
});
this
.
isloading
=
false
;
uni
.
hideNavigationBarLoading
();
uni
.
hideNavigationBarLoading
();
}
}
);
);
// this.request(
// {
// url: "",
// data: {
// r: "api/cat/list",
// cat_id: "",
// select_cat_id: "",
// },
// },
// (res) => {
// this.types = res.data.list;
// console.log("this.types",this.types)
// this.types.forEach((x) => {
// if (x.pic_url == "") {
// x.pic_url =
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200330/2099ca5e58ff3e0548d730bfaae14f7a.png";
// }
// });
// this.isloading = false;
// uni.hideNavigationBarLoading();
// }
// );
},
},
},
},
};
};
...
...
pages/pay/pay/pay.vue
View file @
3b9eaf8b
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
nonceStr
:
this
.
payInfo
.
nonceStr
,
nonceStr
:
this
.
payInfo
.
nonceStr
,
package
:
this
.
payInfo
.
package
,
package
:
this
.
payInfo
.
package
,
signType
:
this
.
payInfo
.
signType
,
signType
:
this
.
payInfo
.
signType
,
paySign
:
''
,
paySign
:
this
.
payInfo
.
sign
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
"success"
,
res
)
console
.
log
(
"success"
,
res
)
},
},
...
...
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