Commit 05b6d942 by yanju

Merge branch 'master' of coding.yundingshuyuan.com:pigbigbig/beyond-clouds-front

parents b0aa63b9 517af4e8
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
preview: true // 预览 preview: true // 预览
}, },
zIndex: 100, zIndex: 100,
value: '', content: '',
tagList: new Set(), tagList: new Set(),
i:0, i:0,
blogClass:'', blogClass:'',
...@@ -338,9 +338,16 @@ ...@@ -338,9 +338,16 @@
this.questionDetail = render; this.questionDetail = render;
}, },
readScreen(boolean, str){ // 预览 readScreen(boolean, str) { // 预览
let offsetWidth;
this.$nextTick(() => {
offsetWidth = this.$refs.questionDetail.$el.offsetWidth;
if (offsetWidth > 723) {
this.zIndex = 8000; this.zIndex = 8000;
boolean = true; } else {
this.zIndex = 100;
}
});
} }
} }
} }
...@@ -415,11 +422,11 @@ ...@@ -415,11 +422,11 @@
.editor-container { .editor-container {
width: 723*$length; width: 723*$length;
height: 230*$length; height: 230*$length;
overflow: auto;
box-shadow: rgba(0, 0, 0, 0.1) 0 2*$length 12*$length 0;
.editor { .editor {
min-height: 230*$length; min-height: 230*$length;
min-width: 723*$length; min-width: 723*$length;
max-height:230*$length;
max-width: 732*$length;
} }
} }
} }
......
...@@ -44,7 +44,8 @@ ...@@ -44,7 +44,8 @@
></select-card> ></select-card>
</div> </div>
<!-- 博客链接 --> <!-- 博客链接 -->
<input v-if="false" type="text" placeholder="相关链接" style="width: 461px;" v-model="originLink" ref="originLink"> <input v-if="false" type="text" placeholder="相关链接" style="width: 461px;" v-model="originLink"
ref="originLink">
</div> </div>
<div class="header-content"> <div class="header-content">
<span>*</span> <span>*</span>
...@@ -118,7 +119,7 @@ ...@@ -118,7 +119,7 @@
</p> </p>
<div class="footer__right"> <div class="footer__right">
<p>已自动存为草稿</p> <p>已自动存为草稿</p>
<button class="preview" @click="readScreen">预览</button> <button class="preview" @click="preview">预览</button>
<button class="submit" v-on:click="dataPost">提交</button> <button class="submit" v-on:click="dataPost">提交</button>
</div> </div>
</div> </div>
...@@ -166,6 +167,7 @@ export default { ...@@ -166,6 +167,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.$refs.content);
if (this.$route.query.id) { if (this.$route.query.id) {
this.blogTitle = this.detailContent.blogTitle; this.blogTitle = this.detailContent.blogTitle;
this.originLink = this.detailContent.originLink; this.originLink = this.detailContent.originLink;
...@@ -246,6 +248,12 @@ export default { ...@@ -246,6 +248,12 @@ export default {
} }
}, },
methods: { methods: {
preview() {
console.log(32);
this.$nextTick(() => {
// this.$refs.content.readmodel();
})
},
toDetail(path) { toDetail(path) {
this.$router.push(`/blog/detail/${path}`); this.$router.push(`/blog/detail/${path}`);
}, },
...@@ -328,7 +336,7 @@ export default { ...@@ -328,7 +336,7 @@ export default {
}); });
return false; return false;
} }
if (Array.from(this.tagList).length===0) { if (Array.from(this.tagList).length === 0) {
this.$refs.tagIds.handleShow(); this.$refs.tagIds.handleShow();
this.$refs.tagIds.$refs.tag.focus(); this.$refs.tagIds.$refs.tag.focus();
this.$message({ this.$message({
...@@ -473,7 +481,15 @@ export default { ...@@ -473,7 +481,15 @@ export default {
// if (now - this.lastSaveTime >= 2 * 1000) {} // if (now - this.lastSaveTime >= 2 * 1000) {}
}, },
readScreen(boolean, str) { // 预览 readScreen(boolean, str) { // 预览
this.zIndex = 8000 let offsetWidth;
this.$nextTick(() => {
offsetWidth = this.$refs.content.$el.offsetWidth;
if (offsetWidth > 723) {
this.zIndex = 8000;
} else {
this.zIndex = 100;
}
});
} }
}, },
} }
...@@ -483,6 +499,7 @@ export default { ...@@ -483,6 +499,7 @@ export default {
input { input {
border: 1*$length solid transparent; border: 1*$length solid transparent;
@extend %animate-transition; @extend %animate-transition;
&:focus { &:focus {
border: 1*$length solid #00AAE6; border: 1*$length solid #00AAE6;
} }
...@@ -494,20 +511,24 @@ export default { ...@@ -494,20 +511,24 @@ export default {
@extend %flex-row-spb; @extend %flex-row-spb;
align-items: start; align-items: start;
overflow: hidden; overflow: hidden;
.blog-release-container__l { .blog-release-container__l {
.blog-release_List { .blog-release_List {
width: 266*$length; width: 266*$length;
padding: 0 18*$length; padding: 0 18*$length;
.blog-box { .blog-box {
margin: 15*$length 0; margin: 15*$length 0;
@extend %cursorPointer; @extend %cursorPointer;
@include fontStyle(13,17,500,#333,left); @include fontStyle(13, 17, 500, #333, left);
@extend %flex-row-spb; @extend %flex-row-spb;
@extend %cursorPointer; @extend %cursorPointer;
.blog-box__title { .blog-box__title {
width: 60%; width: 60%;
@extend %nowrap; @extend %nowrap;
} }
&:hover { &:hover {
color: #00AAE6; color: #00AAE6;
} }
...@@ -521,15 +542,19 @@ export default { ...@@ -521,15 +542,19 @@ export default {
.blog-release { .blog-release {
width: 748*$length; width: 748*$length;
margin: 0 auto; margin: 0 auto;
.blog-release__header { .blog-release__header {
margin-top: 40*$length; margin-top: 40*$length;
.header-content { .header-content {
@extend %flex-row-spb; @extend %flex-row-spb;
margin-bottom: 32*$length; margin-bottom: 32*$length;
> span { > span {
color: #FF7474; color: #FF7474;
font-size: 6*$length; font-size: 6*$length;
} }
> input { > input {
width: 726*$length; width: 726*$length;
padding: 14*$length 16*$length; padding: 14*$length 16*$length;
...@@ -538,9 +563,11 @@ export default { ...@@ -538,9 +563,11 @@ export default {
@include border-radius(4*$length); @include border-radius(4*$length);
@include fontStyle(14, 46, 500, #666, left); @include fontStyle(14, 46, 500, #666, left);
} }
.select__wrap { .select__wrap {
@extend %flex-row-spb; @extend %flex-row-spb;
align-items: start; align-items: start;
> span { > span {
color: #FF7474; color: #FF7474;
font-size: 6*$length; font-size: 6*$length;
...@@ -554,16 +581,20 @@ export default { ...@@ -554,16 +581,20 @@ export default {
.blog-release__content { .blog-release__content {
@extend %flex-row-spb; @extend %flex-row-spb;
align-items: start; align-items: start;
> span { > span {
display: inline-block; display: inline-block;
margin-top: 18*$length; margin-top: 18*$length;
color: #FF7474; color: #FF7474;
font-size: 6*$length; font-size: 6*$length;
} }
.editor-container { .editor-container {
width: 723*$length; width: 723*$length;
height: 230*$length; height: 230*$length;
overflow: auto; overflow: auto;
box-shadow: rgba(0, 0, 0, 0.1) 0 2*$length 12*$length 0;
.editor { .editor {
min-height: 230*$length; min-height: 230*$length;
min-width: 723*$length; min-width: 723*$length;
...@@ -575,9 +606,11 @@ export default { ...@@ -575,9 +606,11 @@ export default {
@extend %flex-row-spb; @extend %flex-row-spb;
align-items: start; align-items: start;
margin-top: 32*$length; margin-top: 32*$length;
.select-content { .select-content {
@extend %flex-row-spb; @extend %flex-row-spb;
align-items: start; align-items: start;
> span { > span {
color: #FF7474; color: #FF7474;
font-size: 6*$length; font-size: 6*$length;
...@@ -589,23 +622,29 @@ export default { ...@@ -589,23 +622,29 @@ export default {
.choose-container { .choose-container {
@extend %flex-row-spb; @extend %flex-row-spb;
.input-box__wrap { .input-box__wrap {
@extend %flex-row-spb; @extend %flex-row-spb;
> span { > span {
margin-right: 16*$length; margin-right: 16*$length;
color: #FF7474; color: #FF7474;
font-size: 6*$length; font-size: 6*$length;
} }
.input-box { .input-box {
margin-right: 40*$length; margin-right: 40*$length;
line-height: 16*$length; line-height: 16*$length;
input[type="radio"] { input[type="radio"] {
display: none; display: none;
} }
label { label {
@include fontStyle(12, 16, 500, #999, left); @include fontStyle(12, 16, 500, #999, left);
vertical-align: middle; vertical-align: middle;
} }
input[type="radio"] + label::before { input[type="radio"] + label::before {
content: "\a0"; /*不换行空格*/ content: "\a0"; /*不换行空格*/
display: inline-block; display: inline-block;
...@@ -620,6 +659,7 @@ export default { ...@@ -620,6 +659,7 @@ export default {
background-color: #fff; background-color: #fff;
@include border-radius(2*$length); @include border-radius(2*$length);
} }
input[type="radio"]:checked + label::before { input[type="radio"]:checked + label::before {
display: inline-block; display: inline-block;
width: 12*$length; width: 12*$length;
...@@ -643,6 +683,7 @@ export default { ...@@ -643,6 +683,7 @@ export default {
@extend %flex-row-spb; @extend %flex-row-spb;
align-items: flex-end; align-items: flex-end;
margin-top: 35*$length; margin-top: 35*$length;
.footer__left { .footer__left {
overflow: hidden; overflow: hidden;
width: 196*$length; width: 196*$length;
...@@ -650,6 +691,7 @@ export default { ...@@ -650,6 +691,7 @@ export default {
@extend %cursorPointer; @extend %cursorPointer;
@include border-radius(4*$length); @include border-radius(4*$length);
@include fontStyle(12, 130, 500, #666, center); @include fontStyle(12, 130, 500, #666, center);
& input { & input {
float: left; float: left;
height: 100%; height: 100%;
...@@ -658,6 +700,7 @@ export default { ...@@ -658,6 +700,7 @@ export default {
transform: translateY(-200%); transform: translateY(-200%);
@extend %cursorPointer; @extend %cursorPointer;
} }
& img { & img {
float: left; float: left;
height: 100%; height: 100%;
...@@ -666,13 +709,16 @@ export default { ...@@ -666,13 +709,16 @@ export default {
object-fit: contain; object-fit: contain;
} }
} }
.footer__right { .footer__right {
@extend %flex-row-spb; @extend %flex-row-spb;
justify-content: flex-end; justify-content: flex-end;
> p { > p {
margin-right: 32*$length; margin-right: 32*$length;
@include fontStyle(12, 16, 500, #999, left); @include fontStyle(12, 16, 500, #999, left);
} }
> button { > button {
@include fontStyle(14, 19, 500, #fff, center); @include fontStyle(14, 19, 500, #fff, center);
width: 100*$length; width: 100*$length;
...@@ -682,11 +728,13 @@ export default { ...@@ -682,11 +728,13 @@ export default {
@extend %cursorPointer; @extend %cursorPointer;
@include border-radius(4*$length); @include border-radius(4*$length);
} }
.preview { .preview {
color: #666; color: #666;
background-color: #fff; background-color: #fff;
margin-right: 16*$length; margin-right: 16*$length;
@extend %animate-transition; @extend %animate-transition;
&:hover { &:hover {
color: #fff; color: #fff;
background-color: #00AAE6; background-color: #00AAE6;
......
...@@ -320,7 +320,15 @@ export default { ...@@ -320,7 +320,15 @@ export default {
this.imgSrc = pic; this.imgSrc = pic;
}, },
readScreen(boolean, str) { // 预览 readScreen(boolean, str) { // 预览
this.zIndex = 8000 let offsetWidth;
this.$nextTick(() => {
offsetWidth = this.$refs.editor.$el.offsetWidth;
if (offsetWidth > 723) {
this.zIndex = 8000;
} else {
this.zIndex = 100;
}
});
}, },
// 检测网址 // 检测网址
checkAddress(address, ref) { checkAddress(address, ref) {
...@@ -579,6 +587,7 @@ export default { ...@@ -579,6 +587,7 @@ export default {
width: 723*$length; width: 723*$length;
height: 230*$length; height: 230*$length;
overflow: auto; overflow: auto;
box-shadow: rgba(0, 0, 0, 0.1) 0 2*$length 12*$length 0;
.editor { .editor {
min-height: 230*$length; min-height: 230*$length;
min-width: 723*$length; min-width: 723*$length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment