From c8edf9c1bdf216e80ebc0be8c0d0cc9b82c6c1a2 Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 2 Sep 2021 16:37:46 +0800 Subject: [PATCH] add goods parameter sort --- buyer/src/pages/GoodsList.vue | 12 ++++++------ manager/src/views/goods/goods-manage/parameter.vue | 6 +++++- .../views/goods/goods-seller/goodsOperationSec.vue | 2 ++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/buyer/src/pages/GoodsList.vue b/buyer/src/pages/GoodsList.vue index 31f2b9c3..55fbb20c 100644 --- a/buyer/src/pages/GoodsList.vue +++ b/buyer/src/pages/GoodsList.vue @@ -49,27 +49,27 @@ class="goods-show-info" v-for="(item, index) in goodsList" :key="index" - @click="goGoodsDetail(item.id, item.goodsId)" + @click="goGoodsDetail(item.id, item.content.goodsId)" >
- +
{{ - item.price | unitPrice("¥") + item.content.price | unitPrice("¥") }}
- {{ item.goodsName }} + {{ item.content.goodsName }}
- 已有{{ item.commentNum || 0 }}{{ item.content.commentNum || 0 }}人评价
- 自营{{ item.storeName }} + 自营{{ item.content.storeName }}
diff --git a/manager/src/views/goods/goods-manage/parameter.vue b/manager/src/views/goods/goods-manage/parameter.vue index dee7a669..bc18a985 100644 --- a/manager/src/views/goods/goods-manage/parameter.vue +++ b/manager/src/views/goods/goods-manage/parameter.vue @@ -79,6 +79,9 @@ 必填 可索引 + + +
@@ -170,6 +173,7 @@ export default { options: "", required: false, isIndex: false, + sort: 0, groupId: group.groupId, categoryId: this.categoryId, }; @@ -186,9 +190,9 @@ export default { isIndex: param.isIndex==1?true:false, groupId: group.groupId, categoryId: this.categoryId, + sort: param.sort, id: param.id, }; - console.warn(this.paramForm.options) this.ops = this.paramForm.options this.modalType = 1; this.modalTitle = "修改参数"; diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue index 91ff8ed0..cddc5413 100644 --- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue +++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue @@ -509,6 +509,7 @@ export default { isIndex: "", required: "", paramId: "", + sort: "" }; } this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[ @@ -519,6 +520,7 @@ export default { isIndex: params.isIndex, required: params.required, paramId: params.id, + sort: params.sort }; }, // 编辑sku图片