xiaomei 3 months ago
parent
commit
d73fd650b1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/pages/shoppingMall/index.vue

+ 3 - 3
src/pages/shoppingMall/index.vue

@@ -493,10 +493,10 @@ export default {
   methods: {
     // 获取平台
     getIcon() {
-      post("v1/cashback/getIcon", {isApp: 1}).then((res) => {
+      post("v1/cashback/getIcon").then((res) => {
         if (res.code === 0) {
           this.platform = res.data;
-          this.platform.length = 5; // 后期要去掉
+          // this.platform.length = 5; // 后期要去掉
           this.platformObj = this.platform[this.navIndex];
           this.ratio = this.platform[this.navIndex].ratio;
         } else {
@@ -842,7 +842,7 @@ export default {
                     // obj.forEach((e) => {
                     //     that.goods.push(e);
                     // });
-                    that.goods.push(...that.goods,...obj)
+                    that.goods = [...that.goods,...obj]
                 } else {
                     if (page == 1) {
                         that.haveGoods = true;