Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
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
郑秀明
shop_mobile_uni
Commits
7038bfd5
Commit
7038bfd5
authored
Feb 21, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
1887691e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
index.vue
index/index.vue
+3
-3
pages.json
pages.json
+3
-3
Category.vue
pages/category/Category.vue
+4
-4
Detail.vue
pages/detail/Detail.vue
+4
-4
No files found.
pages/
index/index.vue
→
index/index.vue
View file @
7038bfd5
...
...
@@ -125,12 +125,12 @@
}
,
jumpSecondPage
(
cate_id
,
current
,
pageSize
)
{
uni
.
navigateTo
({
url
:
`/pages/category/
Category?cate_id_1=${cate_id
}
¤t=${current
}
&pageS
ize=${pageSize
}
`
url
:
`/pages/category/
category?cate_id_1=${cate_id
}
¤t=${current
}
&page_s
ize=${pageSize
}
`
}
);
}
,
jumpDetailPage
()
{
uni
.
navigateTo
({
url
:
`/pages/detail/
D
etail`
url
:
`/pages/detail/
d
etail`
}
);
}
,
getData
()
{
...
...
@@ -143,7 +143,7 @@
this
.
credit_goods_list
=
res
.
data
.
data
.
credit_goods_list
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
credit_flg
=
res
.
data
.
credit_flg
;
if
(
res
.
data
.
data
.
us
er_name
)
{
if
(
res
.
data
.
data
.
custom
er_name
)
{
this
.
customer_name
=
res
.
data
.
data
.
customer_name
;
}
if
(
res
.
data
.
data
.
portrait
)
{
...
...
pages.json
View file @
7038bfd5
...
...
@@ -7,16 +7,16 @@
}
},
{
"path"
:
"pages/category/
C
ategory"
,
"path"
:
"pages/category/
c
ategory"
,
"style"
:
{
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/web/
W
eb"
"path"
:
"pages/web/
w
eb"
},
{
"path"
:
"pages/detail/
D
etail"
"path"
:
"pages/detail/
d
etail"
}
],
"globalStyle"
:
{
...
...
pages/category/Category.vue
View file @
7038bfd5
...
...
@@ -59,7 +59,7 @@
onLoad
(
option
)
{
this
.
firsr_cate_id
=
option
.
cate_id_1
;
option
.
current
=
Number
(
option
.
current
);
option
.
page
Size
=
Number
(
option
.
pageS
ize
);
option
.
page
_size
=
Number
(
option
.
page_s
ize
);
this
.
params
=
option
;
this
.
getData
(
option
)
},
...
...
@@ -119,7 +119,7 @@
...
params
,
goods_name
:
this
.
keyword
,
current
:
1
,
page
S
ize
:
10
page
_s
ize
:
10
},
dataType
:
'json'
,
success
:
(
res
)
=>
{
...
...
@@ -135,7 +135,7 @@
const
{
current
}
=
data
;
if
(
this
.
cate_id_2
)
{
var
params
=
{
page
S
ize
:
10
,
page
_s
ize
:
10
,
cate_id_2
:
this
.
cate_id_2
,
goods_name
:
this
.
keyword
}
...
...
@@ -164,7 +164,7 @@
goods_name
:
this
.
keyword
,
cate_id_1
:
this
.
firsr_cate_id
,
current
:
1
,
page
S
ize
:
10
page
_s
ize
:
10
},
dataType
:
'json'
,
success
:
(
res
)
=>
{
...
...
pages/detail/Detail.vue
View file @
7038bfd5
...
...
@@ -58,7 +58,7 @@
onLoad
(
option
)
{
this
.
getData
({
current
:
1
,
page
S
ize
:
10
page
_s
ize
:
10
});
},
onPullDownRefresh
()
{
...
...
@@ -115,7 +115,7 @@
...
params
,
goods_name
:
this
.
keyword
,
current
:
1
,
page
S
ize
:
10
page
_s
ize
:
10
},
dataType
:
'json'
,
success
:
(
res
)
=>
{
...
...
@@ -136,7 +136,7 @@
cate_id_1
:
this
.
cate_id_1
,
goods_name
:
this
.
keywords
,
current
:
current
,
page
S
ize
:
10
page
_s
ize
:
10
},
dataType
:
'json'
,
success
:
(
res
)
=>
{
...
...
@@ -152,7 +152,7 @@
data
:
{
goods_name
:
this
.
keyword
,
current
:
1
,
page
S
ize
:
10
page
_s
ize
:
10
},
dataType
:
'json'
,
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