Mr.Zhang
2023-08-22 83c4a4b74ab056ab447edadb3d06d8e9560c0aff
screen_standard/src/components/AppLayout.vue
@@ -27,7 +27,7 @@
          <div class="time">{{ tempDate.time }}</div>
          <div class="day">{{ `${tempDate.date} ${tempDate.day}` }}</div>
        </div>
        <img src="@/assets/img/title_line@2x.png" class="right-line" alt="">
        <!-- <img src="@/assets/img/title_line@2x.png" class="right-line" alt=""> -->
      </div>
    </div>
    <!-- 'background': `url(${getAssets(item.bgImg)})`, -->
@@ -53,7 +53,8 @@
<script setup>
import { getAssets } from '@/utils'
import { reactive, toRefs, onMounted } from 'vue';
import { getDepartmentList } from '@/utils/apis.js'
import { reactive, toRefs, ref, onMounted } from 'vue';
import { RouterView } from 'vue-router'
const layoutList = [
@@ -70,18 +71,11 @@
    time: '',
    date: '',
    day: ''
  }
  },
  comList: []
})
let { tempCom, isFull, tempDate } = toRefs(data)
const comList = [
  {name: '豆米'},
  {name: '大米'},
  {name: '小米'},
  {name: '黄米'},
]
let { tempCom, isFull, tempDate, comList } = toRefs(data)
const selectCom = (item, index) => {
  data.tempCom = item
@@ -116,7 +110,12 @@
}
onMounted(() => {
  getDepartmentList(8)
    .then(res => {
      data.comList = res
      data.tempCom = res[0]
    })
    .catch(err => {})
  const week = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日',]
  setInterval(() => {
    let date = new Date()