Browse Source

首页轮播图

LAPTOP-FO2T5SIU\35838 10 months ago
parent
commit
8cbb33ddbf
1 changed files with 16 additions and 1 deletions
  1. 16 1
      pages/index/components/enterpriseSide.vue

+ 16 - 1
pages/index/components/enterpriseSide.vue

@@ -100,7 +100,7 @@
 import vanRate from "../../../wxcomponents/weapp/dist/rate/index";
 import dynamic from "./dynamic.vue";
 import Activity from "./activity.vue";
-import { getUserPower, getUserLocalStorageInfo, newNotice,getUserMainHouseKeeper, activityList, ParkInfoControllerListAll} from "@/js_sdk/http";
+import { getUserPower, getUserLocalStorageInfo, newNotice,getUserMainHouseKeeper, activityList, ParkInfoControllerListAll, getByGroupId} from "@/js_sdk/http";
 export default {
   components: {
     Activity,
@@ -212,6 +212,7 @@ export default {
     this.getNotice()
     this.getActiveList()
     this.getParkList()
+    this.getInfoByGroupId()
     // this.getHouseKeeper()
   },
   methods: {
@@ -240,6 +241,20 @@ export default {
         }
       })
     },
+    getInfoByGroupId() {
+      const data = {
+        groupId : JSON.parse(uni.getStorageSync('selectGroup')).groupId
+      }
+      getByGroupId(data).then((res)=>{
+        this.briefImg = JSON.parse(res.briefImg)
+        console.log('this.briefImg',this.briefImg)
+        this.briefImg.forEach(item=>{
+          console.log('item', item)
+          this.envList.push({imgUrl:item.url})
+        })
+      })
+      console.log('this.envList', this.envList)
+    },
     getActiveList(){
       activityList(this.pages).then(res=>{
        if (res.data.total > 0){