diff --git a/src/api/wjnft/rotation.js b/src/api/wjnft/rotation.js new file mode 100644 index 0000000..5081ce5 --- /dev/null +++ b/src/api/wjnft/rotation.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询pc端轮播图列表 +export function listRotation(query) { + return request({ + url: '/wjnft/rotation/list', + method: 'get', + params: query + }) +} + +// 查询pc端轮播图详细 +export function getRotation(id) { + return request({ + url: '/wjnft/rotation/' + id, + method: 'get' + }) +} + +// 新增pc端轮播图 +export function addRotation(data) { + return request({ + url: '/wjnft/rotation', + method: 'post', + data: data + }) +} + +// 修改pc端轮播图 +export function updateRotation(data) { + return request({ + url: '/wjnft/rotation', + method: 'put', + data: data + }) +} + +// 删除pc端轮播图 +export function delRotation(id) { + return request({ + url: '/wjnft/rotation/' + id, + method: 'delete' + }) +} diff --git a/src/api/wjnft/rotationmap.js b/src/api/wjnft/rotationmap.js new file mode 100644 index 0000000..494d0ea --- /dev/null +++ b/src/api/wjnft/rotationmap.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询PC图片路径列表 +export function listRotationmap(query) { + return request({ + url: '/wjnft/rotationmap/list', + method: 'get', + params: query + }) +} + +// 查询PC图片路径详细 +export function getRotationmap(id) { + return request({ + url: '/wjnft/rotationmap/' + id, + method: 'get' + }) +} + +// 新增PC图片路径 +export function addRotationmap(data) { + return request({ + url: '/wjnft/rotationmap', + method: 'post', + data: data + }) +} + +// 修改PC图片路径 +export function updateRotationmap(data) { + return request({ + url: '/wjnft/rotationmap', + method: 'put', + data: data + }) +} + +// 删除PC图片路径 +export function delRotationmap(id) { + return request({ + url: '/wjnft/rotationmap/' + id, + method: 'delete' + }) +} diff --git a/src/assets/styles/transition.scss b/src/assets/styles/transition.scss index 4cb27cc..e77070e 100644 --- a/src/assets/styles/transition.scss +++ b/src/assets/styles/transition.scss @@ -1,4 +1,4 @@ -// global transition css +//global transition css /* fade */ .fade-enter-active, diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 53a40fb..068d508 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -13,7 +13,11 @@ v-if="this.type == 'url'" > -
+ + +
+
+
@@ -84,6 +88,28 @@ export default { ["clean"], // 清除文本格式 ["link", "image", "video"] // 链接、图片、视频 ], + // toolbar: { + // container: [ // 工具栏配置, 默认是全部 + // ["bold", "italic", "underline", "strike"], + // [{ color: [] }, { background: [] }], + // [{ header: 1 }, { header: 2 }], + // [{ script: "sub" }, { script: "super" }], + // [{ indent: "-1" }, { indent: "+1" }], + // [{ size: ["small", false, "large", "huge"] }], + // [{ header: [1, 2, 3, 4, 5, 6, false] }], + // [{ font: [] }], + // [{ 'align': [] }], + // [{ + // 'list': 'ordered' + // }, { + // 'list': 'bullet' + // }], + // ['blockquote'], + // ['code-block'], + // ['link'], + // ['image'], + // ], + // } }, placeholder: "请输入内容", readOnly: this.readOnly, diff --git a/src/global/global.js b/src/global/global.js new file mode 100644 index 0000000..16072b4 --- /dev/null +++ b/src/global/global.js @@ -0,0 +1,7 @@ + +// 接口地址 +const apiUrl = null; + +export default { + apiUrl +}; diff --git a/src/main.js b/src/main.js index 13c6cf2..4a69722 100644 --- a/src/main.js +++ b/src/main.js @@ -5,7 +5,7 @@ import Cookies from 'js-cookie' import Element from 'element-ui' import './assets/styles/element-variables.scss' -import '@/assets/styles/index.scss' // global css +import '@/assets/styles/index.scss' //global css import '@/assets/styles/ruoyi.scss' // ruoyi css import App from './App' import store from './store' @@ -49,6 +49,11 @@ Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree + +// 全局引入global +import global from "@/global/global.js" +Vue.prototype.global = global + // 全局组件挂载 Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) diff --git a/src/views/wjnft/agreement/index.vue b/src/views/wjnft/agreement/index.vue index 9338429..b459ef4 100644 --- a/src/views/wjnft/agreement/index.vue +++ b/src/views/wjnft/agreement/index.vue @@ -96,7 +96,14 @@ - + + + - + -