Commit 5ede839c authored by yaya's avatar yaya

feat:修改分类参数

parent 9b89c042
...@@ -10,7 +10,7 @@ export function detailGoods(params) { ...@@ -10,7 +10,7 @@ export function detailGoods(params) {
export function editGoods(params) { export function editGoods(params) {
return request({ return request({
url: '/item/setCoin', url: '/item/setItem',
method: 'post', method: 'post',
data: params data: params
}) })
......
...@@ -331,8 +331,8 @@ export default { ...@@ -331,8 +331,8 @@ export default {
this.goodsParams = response.data.data this.goodsParams = response.data.data
this.goodsParams.isStd = response.data.data.isStd === true ? 1 : 0 this.goodsParams.isStd = response.data.data.isStd === true ? 1 : 0
if (this.goodsParams.cid) { if (this.goodsParams.categoryIds) {
this.categoryIds = [this.goodsParams.cid] this.categoryIds = this.goodsParams.categoryIds || []
} }
if (response.data.data.images) { if (response.data.data.images) {
this.goodsParams.images = response.data.data.images.split(';') || [] this.goodsParams.images = response.data.data.images.split(';') || []
...@@ -527,6 +527,7 @@ export default { ...@@ -527,6 +527,7 @@ export default {
// 分类结果 // 分类结果
handleCategoryChange(value) { handleCategoryChange(value) {
this.goodsParams.cid = value[value.length - 1] this.goodsParams.cid = value[value.length - 1]
console.log('=====cid==', value)
}, },
// 上一个 // 上一个
handlePrevious() { handlePrevious() {
......
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