瀏覽代碼

商品排序修复

e 5 年之前
父節點
當前提交
df1e37c158
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/views/goods/list-commonly.vue
  2. 2 2
      src/views/goods/list-preferred.vue

+ 2 - 2
src/views/goods/list-commonly.vue

@@ -131,8 +131,8 @@ export default {
     batchSaveSort() {
       const sorts = []
       this.list.map(item => {
-        if (item.preferentialProductSort) {
-          sorts.push(item.id + '-' + item.preferentialProductSort)
+        if (item.commonlyProductSort) {
+          sorts.push(item.id + '-' + item.commonlyProductSort)
         }
       })
       saveGoodsSort({ newProducSorttList: sorts.join(','), modules: this.activeIndex }).then(response => {

+ 2 - 2
src/views/goods/list-preferred.vue

@@ -131,8 +131,8 @@ export default {
     batchSaveSort() {
       const sorts = []
       this.list.map(item => {
-        if (item.preferentialProductSort) {
-          sorts.push(item.id + '-' + item.preferentialProductSort)
+        if (item.preferredProductSort) {
+          sorts.push(item.id + '-' + item.preferredProductSort)
         }
       })
       saveGoodsSort({ newProducSorttList: sorts.join(','), modules: this.activeIndex }).then(response => {