- 首 页
+
+
+ 首 页
+
- 个人中心
- 关 于
- 退 出
+
+
+ 个人中心
+
+
+
+ 关 于
+
+
+
+ 退 出
+
- 登 录
- 注 册
- 关 于
+
+
+ 登 录
+
+
+
+ 注 册
+
+
+
+ 关 于
+
@@ -205,7 +232,7 @@ export default {
data() {
return {
- isMenu:'none',
+ isMenu: 'none',
isCollapsed: false,
noticeSwitch: false,
urlTexts: '',
@@ -240,13 +267,36 @@ export default {
return (() => {
window.screenWidth = document.body.clientWidth
this.screenWidth = window.screenWidth
- if( window.screenWidth>1024){
+ if (window.screenWidth > 1024) {
this.isMenu = 'none'
}
//console.log("屏幕宽度=="+this.screenWidth);
})()
}
+
+ document.addEventListener('paste', (event) => {
+ const items = (event.clipboardData || window.clipboardData).items
+ let file = null
+ if (!items || items.length === 0) {
+ this.$Message.error('当前浏览器不支持本地或请打开图片再复制')
+ return
+ }
+ // 搜索剪切板items
+ for (let i = 0; i < items.length; i++) {
+ // console.log('==>'+items[i].type);
+ if (items[i].type.indexOf('image') !== -1) {
+ file = items[i].getAsFile()
+ break
+ }
+ }
+ if (file == null) {
+ return
+ }
+ this.$refs.indexTarget.sendImgData(file)
+
+ })
+
},
methods: {
@@ -403,16 +453,16 @@ export default {
this.$Message.error('服务器请求错误');
})
},
- showMenu(){
- if(this.isMenu=='none'){
- this.isMenu='show'
+ showMenu() {
+ if (this.isMenu == 'none') {
+ this.isMenu = 'show'
this.isCollapsed = true
- }else{
- if(this.isMenu=='show'){
- this.isMenu='hide'
+ } else {
+ if (this.isMenu == 'show') {
+ this.isMenu = 'hide'
this.isCollapsed = false
- }else{
- this.isMenu='show'
+ } else {
+ this.isMenu = 'show'
this.isCollapsed = true
}
}
@@ -431,6 +481,7 @@ export default {
.animate__fadeInDown {
--animate-duration: .5s;
}
+
.animate__fadeOutUp {
--animate-duration: .5s;
}
@@ -562,6 +613,7 @@ body {
border-radius: 4px;
background-color: #515a6d;
}
+
.hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner:after, .hamburger.is-active .hamburger-inner:before {
background-color: #515a6d;
}
diff --git a/src/views/upload.vue b/src/views/upload.vue
index 3b03ccd..f46e3a0 100644
--- a/src/views/upload.vue
+++ b/src/views/upload.vue
@@ -1,183 +1,196 @@
-
-
-
-
-
-
-
![]()
-
- 图片链接转存
-
-
-
-
+
+
+
+
+
+ 存储期限
+
![]()
-
+
存储期限:
- 永久
- {{ data.day }}天
+ 永久
+ {{ img_day }}天
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ or
+
{{ this.uploadInfo.uploadInfo }}
+
+
+
+
+
+
+
+ 上传进度
+
+
+
+
+
+ 小提示:
+
+
上传前可选择[上方三个小卡片],选择附加功能哦!
+
+
+
+
+ :srcset="item.briefimgurl?item.briefimgurl:item.url" :src="item.url"/>
+ :style="{color:(selectIndex.indexOf(item.imguid)>=0?'#43b984':'#c7c7c7')}"
+ @click.native="clickImg(item.imguid)" title="选择">
-
-
-
-
-
-
-
-
{{ this.uploadInfo.uploadInfo }}
-
-
-
-
-
-
-
-
- 更多功能待开发
-
-
-
-
-
-
-
- U R L
-
-
- HTML
-
-
- Markdown
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 更多功能待开发
+
+
+
+
+
+
+
+ U R L
+
+
+ 缩略图
+
+
+ HTML
+
+
+ Markdown
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
批量上传中,请耐心等待
+
@@ -187,13 +200,89 @@
diff --git a/src/views/upload.vue.bak b/src/views/upload.vue.bak
new file mode 100644
index 0000000..3b03ccd
--- /dev/null
+++ b/src/views/upload.vue.bak
@@ -0,0 +1,300 @@
+
+
+
+
+
+
+
+
![]()
+
+ 图片链接转存
+
+
+
+
+
+
+
+
![]()
+
+ 存储期限:
+ 永久
+ {{ data.day }}天
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ this.uploadInfo.uploadInfo }}
+
+
+
+
+
+
+
+
+ 更多功能待开发
+
+
+
+
+
+
+
+ U R L
+
+
+ HTML
+
+
+ Markdown
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 批量上传中,请耐心等待
+
+
+
+
+
+
+
+
+
+