|
|
@ -76,7 +76,7 @@ export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
listParams: { |
|
|
|
listParams: { |
|
|
|
page: 1 |
|
|
|
page: 1, |
|
|
|
}, //当前分页 |
|
|
|
}, //当前分页 |
|
|
|
lastPage: 1, //总分页 |
|
|
|
lastPage: 1, //总分页 |
|
|
|
total: 0, //总商品数 |
|
|
|
total: 0, //总商品数 |
|
|
@ -100,6 +100,12 @@ export default { |
|
|
|
detail: { |
|
|
|
detail: { |
|
|
|
type: Object, |
|
|
|
type: Object, |
|
|
|
default: () => {} |
|
|
|
default: () => {} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
per_page:{ |
|
|
|
|
|
|
|
type:Number, |
|
|
|
|
|
|
|
default:()=>{ |
|
|
|
|
|
|
|
return 10 |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
@ -155,6 +161,7 @@ export default { |
|
|
|
// 商品列表 |
|
|
|
// 商品列表 |
|
|
|
getGoodsList() { |
|
|
|
getGoodsList() { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
|
|
|
|
this.listParams.per_page = this.per_page |
|
|
|
that.$http('goods.lists', this.listParams).then(res => { |
|
|
|
that.$http('goods.lists', this.listParams).then(res => { |
|
|
|
if (res.code === 1) { |
|
|
|
if (res.code === 1) { |
|
|
|
this.lastPage = res.data.last_page; |
|
|
|
this.lastPage = res.data.last_page; |
|
|
|