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

bug fix

parent 1887691e
...@@ -125,12 +125,12 @@ ...@@ -125,12 +125,12 @@
}, },
jumpSecondPage(cate_id, current, pageSize) { jumpSecondPage(cate_id, current, pageSize) {
uni.navigateTo({ 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() { jumpDetailPage() {
uni.navigateTo({ uni.navigateTo({
url: `/pages/detail/Detail` url: `/pages/detail/detail`
}); });
}, },
getData() { getData() {
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
this.credit_goods_list = res.data.data.credit_goods_list; this.credit_goods_list = res.data.data.credit_goods_list;
this.isLogin = res.data.login_flg; this.isLogin = res.data.login_flg;
this.credit_flg = res.data.credit_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; this.customer_name = res.data.data.customer_name;
} }
if(res.data.data.portrait) { if(res.data.data.portrait) {
......
...@@ -7,16 +7,16 @@ ...@@ -7,16 +7,16 @@
} }
}, },
{ {
"path": "pages/category/Category", "path": "pages/category/category",
"style": { "style": {
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
{ {
"path": "pages/web/Web" "path": "pages/web/web"
}, },
{ {
"path": "pages/detail/Detail" "path": "pages/detail/detail"
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
onLoad(option) { onLoad(option) {
this.firsr_cate_id = option.cate_id_1; this.firsr_cate_id = option.cate_id_1;
option.current = Number(option.current); option.current = Number(option.current);
option.pageSize = Number(option.pageSize); option.page_size = Number(option.page_size);
this.params = option; this.params = option;
this.getData(option) this.getData(option)
}, },
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
...params, ...params,
goods_name: this.keyword, goods_name: this.keyword,
current: 1, current: 1,
pageSize: 10 page_size: 10
}, },
dataType: 'json', dataType: 'json',
success: (res) => { success: (res) => {
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
const { current } = data; const { current } = data;
if(this.cate_id_2) { if(this.cate_id_2) {
var params = { var params = {
pageSize: 10, page_size: 10,
cate_id_2: this.cate_id_2, cate_id_2: this.cate_id_2,
goods_name: this.keyword goods_name: this.keyword
} }
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
goods_name: this.keyword, goods_name: this.keyword,
cate_id_1: this.firsr_cate_id, cate_id_1: this.firsr_cate_id,
current: 1, current: 1,
pageSize: 10 page_size: 10
}, },
dataType: 'json', dataType: 'json',
success: (res) => { success: (res) => {
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
onLoad(option) { onLoad(option) {
this.getData({ this.getData({
current: 1, current: 1,
pageSize: 10 page_size: 10
}); });
}, },
onPullDownRefresh() { onPullDownRefresh() {
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
...params, ...params,
goods_name: this.keyword, goods_name: this.keyword,
current: 1, current: 1,
pageSize: 10 page_size: 10
}, },
dataType: 'json', dataType: 'json',
success: (res) => { success: (res) => {
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
cate_id_1: this.cate_id_1, cate_id_1: this.cate_id_1,
goods_name: this.keywords, goods_name: this.keywords,
current: current, current: current,
pageSize: 10 page_size: 10
}, },
dataType: 'json', dataType: 'json',
success: (res) => { success: (res) => {
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
data: { data: {
goods_name: this.keyword, goods_name: this.keyword,
current: 1, current: 1,
pageSize: 10 page_size: 10
}, },
dataType: 'json', dataType: 'json',
success: (res) => { 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