Commit 7038bfd5 authored by 王建威's avatar 王建威

bug fix

parent 1887691e
......@@ -125,12 +125,12 @@
},
jumpSecondPage(cate_id, current, pageSize) {
uni.navigateTo({
url: `/pages/category/Category?cate_id_1=${cate_id}&current=${current}&pageSize=${pageSize}`
url: `/pages/category/category?cate_id_1=${cate_id}&current=${current}&page_size=${pageSize}`
});
},
jumpDetailPage() {
uni.navigateTo({
url: `/pages/detail/Detail`
url: `/pages/detail/detail`
});
},
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.user_name) {
if(res.data.data.customer_name) {
this.customer_name = res.data.data.customer_name;
}
if(res.data.data.portrait) {
......
......@@ -7,16 +7,16 @@
}
},
{
"path": "pages/category/Category",
"path": "pages/category/category",
"style": {
"enablePullDownRefresh": true
}
},
{
"path": "pages/web/Web"
"path": "pages/web/web"
},
{
"path": "pages/detail/Detail"
"path": "pages/detail/detail"
}
],
"globalStyle": {
......
......@@ -59,7 +59,7 @@
onLoad(option) {
this.firsr_cate_id = option.cate_id_1;
option.current = Number(option.current);
option.pageSize = Number(option.pageSize);
option.page_size = Number(option.page_size);
this.params = option;
this.getData(option)
},
......@@ -119,7 +119,7 @@
...params,
goods_name: this.keyword,
current: 1,
pageSize: 10
page_size: 10
},
dataType: 'json',
success: (res) => {
......@@ -135,7 +135,7 @@
const { current } = data;
if(this.cate_id_2) {
var params = {
pageSize: 10,
page_size: 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,
pageSize: 10
page_size: 10
},
dataType: 'json',
success: (res) => {
......
......@@ -58,7 +58,7 @@
onLoad(option) {
this.getData({
current: 1,
pageSize: 10
page_size: 10
});
},
onPullDownRefresh() {
......@@ -115,7 +115,7 @@
...params,
goods_name: this.keyword,
current: 1,
pageSize: 10
page_size: 10
},
dataType: 'json',
success: (res) => {
......@@ -136,7 +136,7 @@
cate_id_1: this.cate_id_1,
goods_name: this.keywords,
current: current,
pageSize: 10
page_size: 10
},
dataType: 'json',
success: (res) => {
......@@ -152,7 +152,7 @@
data: {
goods_name: this.keyword,
current: 1,
pageSize: 10
page_size: 10
},
dataType: 'json',
success: (res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment