Blame view

src/views/index/index.vue 1.36 KB
b25b036d   wuxw   v1.9 优化日期
1
  <template>
a42b3256   wuxw   HC小区管理系统前段vue版正在开发中
2
3
4
5
6
7
8
9
      <div >
        
          <div v-if="storeInfo.storeTypeCd == '800900000000'">
              <index-dev></index-dev>
          </div>
          <div v-if="storeInfo.storeTypeCd == '800900000001'">
              <index-admin></index-admin>
          </div>
6d9d3e27   wuxw   完成物业首页功能
10
11
12
          <div v-if="storeInfo.storeTypeCd == '800900000003'">
              <index-property></index-property>
          </div>
a42b3256   wuxw   HC小区管理系统前段vue版正在开发中
13
14
15
16
17
18
19
20
      </div>
    </template>
    
    <script>
    import {getStoreInfo} from "@/api/user/indexApi"
    import {deepCopy} from "@/utils/vc"
    import indexDev from "@/components/index/index-dev.vue"
    import indexAdmin from "@/components/index/index-admin.vue"
6d9d3e27   wuxw   完成物业首页功能
21
    import indexProperty from '@/components/index/index-property.vue'
a42b3256   wuxw   HC小区管理系统前段vue版正在开发中
22
23
24
25
26
    
    export default {
      name: 'index',
      components: {
          indexDev,
6d9d3e27   wuxw   完成物业首页功能
27
28
          indexAdmin,
          indexProperty
a42b3256   wuxw   HC小区管理系统前段vue版正在开发中
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
      },
      data() {
        return {
           storeInfo:{
              storeTypeCd:'',
              storeId:''
           }
        }
      },
      created() {
          this._loadStoreInfo()
      },
      methods: {
        async _loadStoreInfo(){
          this.loading = true
            try {
              const res = await getStoreInfo()
              deepCopy(res,this.storeInfo);
            } catch (error) {
              console.error('登录失败:', error)
            } finally {
              this.loading = false
            }
          
        }
      }
    }
    </script>
    
    <style scoped>
    </style>