提交 2f4d4a85 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 移除无用的代码

上级 a1b41e2a
差异被折叠。
...@@ -16,12 +16,8 @@ ...@@ -16,12 +16,8 @@
"lodash": "^4.17.20", "lodash": "^4.17.20",
"print-js": "^1.6.0", "print-js": "^1.6.0",
"qrcode.vue": "^1.7.0", "qrcode.vue": "^1.7.0",
"swiper": "^6.3.5",
"vue": "^2.7.16", "vue": "^2.7.16",
"vue-awesome-swiper": "3.1.3", "vue-router": "^3.6.5"
"vue-mobile-calendar": "^3.3.0",
"vue-router": "^3.6.5",
"vuex": "^3.6.2"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue2": "^2.3.3", "@vitejs/plugin-vue2": "^2.3.3",
......
...@@ -4,17 +4,13 @@ import '@ezijing/vue-passport/dist/vue-passport.css' ...@@ -4,17 +4,13 @@ import '@ezijing/vue-passport/dist/vue-passport.css'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css' // import 'element-ui/lib/theme-chalk/index.css'
import router from './router' // router定义 import router from './router' // router定义
import store from './store'
import App from './app.vue' import App from './app.vue'
import Calendar from 'vue-mobile-calendar'
import './style.scss' import './style.scss'
Vue.use(Calendar)
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(VuePassport) Vue.use(VuePassport)
new Vue({ new Vue({
store,
router, router,
render: (h) => h(App), render: (h) => h(App),
}).$mount('#app') }).$mount('#app')
...@@ -7,19 +7,14 @@ ...@@ -7,19 +7,14 @@
:data="screenTabsData" :data="screenTabsData"
@tabChange="HandleTabChange"></screen-tabs> @tabChange="HandleTabChange"></screen-tabs>
<div class="train-mian"> <div class="train-mian">
<ul> <ul v-if="currentList.length">
<template v-for="(item, index) in tabsContentList"> <template v-for="(item, index) in currentList">
<li :key="index" v-if="tabsIndex === 0 || tabsIndex === item.activeIndex"> <li :key="index" v-if="tabsIndex === 0 || tabsIndex === item.activeIndex">
<listItem :data="item" /> <listItem :data="item" />
</li> </li>
</template> </template>
</ul> </ul>
<div class="calendar"> <noData v-else />
<inlineCalendar mode="during"></inlineCalendar>
<div class="btn-box">
<div class="btn">确定</div>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -33,14 +28,20 @@ export default { ...@@ -33,14 +28,20 @@ export default {
data() { data() {
return { return {
tabsIndex: 1, tabsIndex: 1,
tabsContentList: datalist, datalist,
screenTabsData: { screenTabsData: {
name: '筛选:', name: '筛选:',
options: ['全部', '正在进行', '未开始', '已结束'], options: ['全部', '正在进行', '未开始', '已结束'],
}, },
} }
}, },
computed: {
currentList() {
return this.datalist.filter((item) => {
return this.tabsIndex === 0 || this.tabsIndex === item.activeIndex
})
},
},
methods: { methods: {
HandleTabChange(index) { HandleTabChange(index) {
this.tabsIndex = index this.tabsIndex = index
...@@ -65,71 +66,6 @@ export default { ...@@ -65,71 +66,6 @@ export default {
padding: 24px 0; padding: 24px 0;
justify-content: left; justify-content: left;
} }
.train-mian {
display: flex;
ul {
width: 700px;
}
.calendar {
width: 336px;
height: 385px;
background: #ffffff;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.06);
margin-left: auto;
.btn-box {
width: 100%;
border-top: 1px solid #eee;
overflow: hidden;
.btn {
margin-top: 10px;
width: 62px;
height: 36px;
background: linear-gradient(315deg, rgba(225, 47, 116, 0.83) 0%, #c01540 100%);
border-radius: 4px;
text-align: center;
line-height: 36px;
color: #fff;
font-size: 14px;
float: right;
margin-right: 24px;
cursor: pointer;
}
}
}
}
::v-deep {
.m-row {
&::before {
background-color: #fff !important;
}
}
.m-week-header {
background: #fff;
}
.m-calendar {
.m-toolbar {
height: 58px;
background: #fff;
border-bottom: 1px solid #eee;
margin-bottom: 10px;
}
}
.m-during {
background: #c01540 !important;
}
.m-prev-btn {
width: 11px !important;
height: 18px !important;
background-image: url(https://zws-imgs-pub.ezijing.com/static/public/8cc2155bd9f98ae7e50d64bf4bad9e6a.png) !important;
background-size: 100% 100% !important;
}
.m-next-btn {
width: 11px !important;
height: 18px !important;
background-image: url(https://zws-imgs-pub.ezijing.com/static/public/ef4abd96b29419b0eb182c291f802488.png) !important;
background-size: 100% 100% !important;
}
}
.new-tits { .new-tits {
text-align: center; text-align: center;
font-size: 20px; font-size: 20px;
......
import Vue from 'vue'
import Vuex from 'vuex'
import * as api from '@/api/article'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
classify: {},
},
getters: {},
mutations: {
setClassify(state, classify) {
state.classify = classify
},
},
actions: {
getClassify({ commit }) {
api.getAllClassify().then((response) => {
commit('setClassify', response.data)
})
},
},
})
export default store
store.dispatch('getClassify')
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论