diff --git a/src/assets/styles/myTable.scss b/src/assets/styles/myTable.scss index 7a893b6..37fdfe2 100644 --- a/src/assets/styles/myTable.scss +++ b/src/assets/styles/myTable.scss @@ -56,3 +56,81 @@ } } } +//搜索框 +.search { + display: flex; + align-items: center; + justify-content: space-between; +} +//卡片布局 +.book-main { + margin: 0; + padding: 0; + display: flex; + flex-wrap: wrap; + width: 100%; + li { + width: 19%; + height: 49%; + margin-right: calc(1% + (2% / 8)); + margin-bottom: 1%; + list-style: none; + background: #fff; + box-shadow: 0px 3px 15px 0px rgba(184, 184, 184, 0.22); + border-radius: 10px; + position: relative; + overflow: hidden; + .integral-num { + position: absolute; + top: 6%; + right: 10%; + font-size: 20px; + font-weight: bold; + color: #2aa984; + z-index: 10; + font-family: "din-bold-2.ttf"; + } + .operate { + height: 13%; + width: 100%; + display: flex; + justify-content: space-between; + align-content: center; + padding: 0 10px; + .integral { + flex: 1; + padding: 4px 0; + font-weight: 400; + font-family: "Alibaba-PuHuiTi-Regular"; + color: #4d4949; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + .exchange-btn { + padding: 4px 10px; + font-size: 14px; + cursor: pointer; + font-family: "Alibaba-PuHuiTi-Regular"; + font-weight: 400; + color: $--color-primary; + background: rgba(249, 86, 95, 0.1); + border-radius: 4px; + } + } + } + li:nth-of-type(5n) { + margin-right: 0; + } + li:nth-of-type(n + 2) { + margin-bottom: 0; + } +} +::v-deep .pagination-container { + height: 0 !important; + padding: 0 !important; + background: transparent !important; + .el-pagination { + top: 20px; + } +} diff --git a/src/main.js b/src/main.js index db72ed0..cbd8500 100644 --- a/src/main.js +++ b/src/main.js @@ -1,76 +1,86 @@ -import Vue from 'vue' +import Vue from "vue"; -import Cookies from 'js-cookie' +import Cookies from "js-cookie"; -import Element from 'element-ui' -import './assets/styles/element-variables.scss' +import Element from "element-ui"; +import "./assets/styles/element-variables.scss"; import "@/utils/rem.js"; //计算rem基准 import API from "@/api/index.js"; -import '@/assets/styles/index.scss' // global css -import '@/assets/styles/ruoyi.scss' // ruoyi css -import App from './App' -import store from './store' -import router from './router' -import directive from './directive' // directive -import plugins from './plugins' // plugins -import { download } from '@/utils/request' +import "@/assets/styles/index.scss"; // global css +import "@/assets/styles/ruoyi.scss"; // ruoyi css +import App from "./App"; +import store from "./store"; +import router from "./router"; +import directive from "./directive"; // directive +import plugins from "./plugins"; // plugins +import { download } from "@/utils/request"; import moment from "moment"; import "moment/locale/zh-cn"; moment.locale("zh-cn"); Vue.prototype.$moment = moment; -import './assets/icons' // icon -import './permission' // permission control +import "./assets/icons"; // icon +import "./permission"; // permission control import { getDicts } from "@/api/system/dict/data"; import { getConfigKey } from "@/api/system/config"; -import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"; +import { + parseTime, + resetForm, + addDateRange, + selectDictLabel, + selectDictLabels, + handleTree, +} from "@/utils/ruoyi"; // 分页组件 import Pagination from "@/components/Pagination"; // 自定义表格工具组件 -import RightToolbar from "@/components/RightToolbar" +import RightToolbar from "@/components/RightToolbar"; // 富文本组件 -import Editor from "@/components/Editor" +import Editor from "@/components/Editor"; // 文件上传组件 -import FileUpload from "@/components/FileUpload" +import FileUpload from "@/components/FileUpload"; // 图片上传组件 -import ImageUpload from "@/components/ImageUpload" +import ImageUpload from "@/components/ImageUpload"; // 图片预览组件 -import ImagePreview from "@/components/ImagePreview" +import ImagePreview from "@/components/ImagePreview"; // 字典标签组件 -import DictTag from '@/components/DictTag' +import DictTag from "@/components/DictTag"; // 头部标签组件 -import VueMeta from 'vue-meta' +import VueMeta from "vue-meta"; // 字典数据组件 -import DictData from '@/components/DictData' +import DictData from "@/components/DictData"; +//列表搜索框 +import MyInput from "@/views/components/myInput"; // 全局方法挂载 -Vue.prototype.getDicts = getDicts -Vue.prototype.getConfigKey = getConfigKey -Vue.prototype.parseTime = parseTime -Vue.prototype.resetForm = resetForm -Vue.prototype.addDateRange = addDateRange -Vue.prototype.selectDictLabel = selectDictLabel -Vue.prototype.selectDictLabels = selectDictLabels -Vue.prototype.download = download -Vue.prototype.handleTree = handleTree -Vue.prototype.$api = API +Vue.prototype.getDicts = getDicts; +Vue.prototype.getConfigKey = getConfigKey; +Vue.prototype.parseTime = parseTime; +Vue.prototype.resetForm = resetForm; +Vue.prototype.addDateRange = addDateRange; +Vue.prototype.selectDictLabel = selectDictLabel; +Vue.prototype.selectDictLabels = selectDictLabels; +Vue.prototype.download = download; +Vue.prototype.handleTree = handleTree; +Vue.prototype.$api = API; // 全局组件挂载 -Vue.component('DictTag', DictTag) -Vue.component('Pagination', Pagination) -Vue.component('RightToolbar', RightToolbar) -Vue.component('Editor', Editor) -Vue.component('FileUpload', FileUpload) -Vue.component('ImageUpload', ImageUpload) -Vue.component('ImagePreview', ImagePreview) +Vue.component("DictTag", DictTag); +Vue.component("Pagination", Pagination); +Vue.component("RightToolbar", RightToolbar); +Vue.component("Editor", Editor); +Vue.component("FileUpload", FileUpload); +Vue.component("ImageUpload", ImageUpload); +Vue.component("ImagePreview", ImagePreview); +Vue.component("MyInput", MyInput); -Vue.use(directive) -Vue.use(plugins) -Vue.use(VueMeta) -DictData.install() +Vue.use(directive); +Vue.use(plugins); +Vue.use(VueMeta); +DictData.install(); /** * If you don't want to use mock-server @@ -82,14 +92,14 @@ DictData.install() */ Vue.use(Element, { - size: Cookies.get('size') || 'medium' // set element-ui default size -}) + size: Cookies.get("size") || "medium", // set element-ui default size +}); -Vue.config.productionTip = false +Vue.config.productionTip = false; new Vue({ - el: '#app', + el: "#app", router, store, - render: h => h(App) -}) + render: (h) => h(App), +}); diff --git a/src/views/components/myInput/index.vue b/src/views/components/myInput/index.vue index b7edb88..b8174f7 100644 --- a/src/views/components/myInput/index.vue +++ b/src/views/components/myInput/index.vue @@ -8,7 +8,7 @@ --> @@ -16,37 +16,36 @@ export default { data() { return { - input:'', - } + input: "", + }; }, - props:{ - placeholder:{ - type:String, - default:'请输入内容' - } + props: { + placeholder: { + type: String, + default: "请输入关键字", + }, }, - methods:{ - inputValue(){ - this.$emit('changeInput',this.input) + methods: { + inputValue() { + this.$emit("clickSearch", this.input); }, - changeValue(){ - this.$emit('changeValue',this.input) - } }, -} +}; diff --git a/src/views/volunteer/integralConversion/index.vue b/src/views/volunteer/integralConversion/index.vue index 40cd86f..7705851 100644 --- a/src/views/volunteer/integralConversion/index.vue +++ b/src/views/volunteer/integralConversion/index.vue @@ -1,172 +1,120 @@ - + \ No newline at end of file +@import "@/assets/styles/myTable.scss"; +