Browse Source

fix: 🧩 优化模块

pull/2/head
liyongle 3 years ago
parent
commit
9296ccbf36
  1. 2
      public/static/offline/JSON/getModuleList.json
  2. 3
      src/components/CarInfo/CarInfo.vue
  3. 4
      src/composables/useInitConfigAndMallInfo.ts
  4. 1
      src/views/Index/Middle.vue
  5. 2
      src/views/Member/Member.vue
  6. 9
      src/views/Parking/Parking.vue

2
public/static/offline/JSON/getModuleList.json

@ -24,7 +24,7 @@
},
{
"moduleName": "停车与缴费",
"status": 1
"status": 0
},
{
"moduleName": "文化学院",

3
src/components/CarInfo/CarInfo.vue

@ -76,12 +76,13 @@ function go() {
}
</script>
<style scoped>
<style lang="scss" scoped>
.car-info-wrapper {
position: fixed;
z-index: 20;
background: rgb(0 0 0 / 50%);
inset: 0;
.masker {
position: absolute;
inset: 0;

4
src/composables/useInitConfigAndMallInfo.ts

@ -43,6 +43,10 @@ export const useInitConfigAndMallInfo = async () => {
store.SET_SHOP_LIST_BY_INDUSTRY(_shopListByIndustry.data.list)
store.SET_FACILITY_LIST(_facilityList.data)
store.SET_WEATHER(_weather.data)
_menuList.data.unshift({
moduleName: '主页',
status: 0
})
store.SET_MENU_LIST(_menuList.data)
store.SET_PICTURE_LIST(_pictureList.data)
} catch (error) {

1
src/views/Index/Middle.vue

@ -74,6 +74,7 @@ function go(path: string, moduleName: string) {
break
}
}
//
if (isGo) {
router.push(path)
useStatisticsModel({ recordType: 1, moduleName })

2
src/views/Member/Member.vue

@ -1,6 +1,6 @@
<template>
<typeBtnGroup class="top" :list="list" @change-type="change" />
<transition appear enter-active-class="animate__animated animate__fadeIn" leave-active-class="animate__animated animate__zoomOut">
<transition appear enter-active-class="animate__animated animate__fadeIn">
<div v-if="current === 0" class="carousel">
<Carousel :ac-list="goldMemberInfo" />
</div>

9
src/views/Parking/Parking.vue

@ -21,7 +21,9 @@
</div>
<div class="content-right">
<div class="parking-carousel">
<EffectFade></EffectFade>
<EffectFade v-slot="{ item }" :list="parkingInfo.fileList">
<img class="img" :src="item" alt="" />
</EffectFade>
</div>
<h1 class="title">{{ switchLanguage(parkingInfo, 'title') }}</h1>
<ScrollView class="parking-scroll" scrollbar :list="switchLanguage(parkingInfo, 'content')" :pull-up="false">
@ -158,6 +160,11 @@ getParkingInfo().then(({ data }) => {
:deep(.stay-tuned) {
height: 200px;
}
.img {
width: 540px;
height: 304px;
border-radius: 8px 8px 0 0;
}
}
.title {
margin: 0 48px 12px;

Loading…
Cancel
Save