Commit 7a086542 by liuchuanming

隐藏按钮

1 parent 9caa9ac1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
ENV = 'development' ENV = 'development'
# 塬微管理系统/开发环境 # 塬微管理系统/开发环境
VUE_APP_BASE_API = 'http://106.13.201.219' VUE_APP_BASE_API = 'http://106.13.236.58:8080'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc' # VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# 开发环境IP # 开发环境IP
......
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
options = Object.assign(includeUIOptions, this.options); options = Object.assign(includeUIOptions, this.options);
} }
this.editorInstance = new ImageEditor(this.$refs.tuiImageEditor, options); this.editorInstance = new ImageEditor(this.$refs.tuiImageEditor, options);
document.getElementsByClassName('tui-image-editor-header')[0].innerHTML = '';
setTimeout(()=>{ setTimeout(()=>{
if(window.localStorage.getItem('record')){ if(window.localStorage.getItem('record')){
var list = JSON.parse(window.localStorage.getItem('record')); var list = JSON.parse(window.localStorage.getItem('record'));
......
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
}, },
data () { data () {
return { return {
bgPath: "'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg1.gtimg.com%2Fsports%2Fpics%2Fhv1%2F171%2F106%2F1472%2F95744001.jpg&refer=http%3A%2F%2Fimg1.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1612444990&t=6589254fe9669cc6a45fd3688f269612'",
dialog: { dialog: {
preview: false, // 预览弹出显示隐藏 preview: false, // 预览弹出显示隐藏
edit: false // 编辑弹出显示隐藏 edit: false // 编辑弹出显示隐藏
...@@ -49,12 +50,12 @@ export default { ...@@ -49,12 +50,12 @@ export default {
// initMenu: "text", // initMenu: "text",
locale: locale_ru_RU, locale: locale_ru_RU,
loadImage: { loadImage: {
path: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg1.gtimg.com%2Fsports%2Fpics%2Fhv1%2F171%2F106%2F1472%2F95744001.jpg&refer=http%3A%2F%2Fimg1.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1612444990&t=6589254fe9669cc6a45fd3688f269612', path: bgPath,
name: "posterImage" name: "posterImage"
}, },
usageStatistics: false, usageStatistics: false,
menuBarPosition: "top", menuBarPosition: "right",
menu: ["text", "mask"], menu: [],
theme: { theme: {
"common.bi.image": "", "common.bi.image": "",
"common.bisize.width": "251px", "common.bisize.width": "251px",
...@@ -69,8 +70,8 @@ export default { ...@@ -69,8 +70,8 @@ export default {
"header.border": "0px", "header.border": "0px",
// main icons // main icons
"menu.iconSize.width": "24px", "menu.iconSize.width": "34px",
"menu.iconSize.height": "24px", "menu.iconSize.height": "34px",
// submenu primary color // submenu primary color
"submenu.backgroundColor": "#ffffffE5", "submenu.backgroundColor": "#ffffffE5",
...@@ -139,9 +140,8 @@ export default { ...@@ -139,9 +140,8 @@ export default {
ready () { ready () {
console.log('ready') console.log('ready')
}, },
onAddText(res) { onAddText(res) {
console.log("RES : ", res); console.log("RES : ", res)
}, },
//移动 //移动
onObjectMoved(res) { onObjectMoved(res) {
...@@ -194,6 +194,7 @@ export default { ...@@ -194,6 +194,7 @@ export default {
}, },
// //
save() { save() {
console.log('save')
let res = {}; let res = {};
var list =[]; var list =[];
this.$refs.tuiImageEditor.editorInstance._invoker._undoStack.forEach(element => { this.$refs.tuiImageEditor.editorInstance._invoker._undoStack.forEach(element => {
...@@ -430,7 +431,7 @@ export default { ...@@ -430,7 +431,7 @@ export default {
width: 100%; width: 100%;
} }
.imageEditorApp { .imageEditorApp {
width: 1000px; // width: 1000px;
height: 800px; height: 800px;
} }
.tui-image-editor-header-logo { .tui-image-editor-header-logo {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!