|
@@ -1,12 +1,13 @@
|
|
|
<template>
|
|
<template>
|
|
|
|
|
+ <!-- 编辑器-基础-中间部分 -->
|
|
|
<div class="app-view-toolbar app-view-full-toolbar">
|
|
<div class="app-view-toolbar app-view-full-toolbar">
|
|
|
<div class="main">
|
|
<div class="main">
|
|
|
<div class="ui-title-big">基础设置</div>
|
|
<div class="ui-title-big">基础设置</div>
|
|
|
- <div class="ui-title"><span class="">封面</span></div>
|
|
|
|
|
<div class="upload-con">
|
|
<div class="upload-con">
|
|
|
<div class="uc-l">
|
|
<div class="uc-l">
|
|
|
<div class="preview">
|
|
<div class="preview">
|
|
|
- <img :src="info.icon||$thumb" alt="" />
|
|
|
|
|
|
|
+ <img :src="info.icon || require('@/assets/images/default/img_cover_default_2.png')" alt="" />
|
|
|
|
|
+ <button class="ui-button submit setting-cover-btn" @click="addScene">设置封面</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="upload-btn">
|
|
<div class="upload-btn">
|
|
|
<button class="ui-button submit" @click="selectHandle('image')">选择图片</button>
|
|
<button class="ui-button submit" @click="selectHandle('image')">选择图片</button>
|
|
@@ -24,27 +25,26 @@
|
|
|
<div class="ui-title">
|
|
<div class="ui-title">
|
|
|
<span class="">标题</span>
|
|
<span class="">标题</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div :class="{ 'ui-warning': false }">
|
|
|
|
|
|
|
+ <div class="title-input-wrapper">
|
|
|
<input
|
|
<input
|
|
|
v-model="info.name"
|
|
v-model="info.name"
|
|
|
@blur="$store.commit('SetInfo',info)"
|
|
@blur="$store.commit('SetInfo',info)"
|
|
|
type="text"
|
|
type="text"
|
|
|
- class="ui-input"
|
|
|
|
|
maxlength="50"
|
|
maxlength="50"
|
|
|
- placeholder="作品标题,限50字"
|
|
|
|
|
|
|
+ placeholder="请输入作品标题"
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <span class="count">{{info.name.length}}/50</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="ui-title" style="margin-top:10px"><span>简介</span></div>
|
|
|
|
|
- <div :class="{ 'ui-warning': false }">
|
|
|
|
|
|
|
+ <div class="ui-title jianjie"><span>简介</span></div>
|
|
|
|
|
+ <div class="jianjie-textarea-wrapper">
|
|
|
<textarea
|
|
<textarea
|
|
|
v-model="info.description"
|
|
v-model="info.description"
|
|
|
@blur="$store.commit('SetInfo',info)"
|
|
@blur="$store.commit('SetInfo',info)"
|
|
|
- style="height:110px;"
|
|
|
|
|
maxlength="500"
|
|
maxlength="500"
|
|
|
- placeholder="作品简介,限500字"
|
|
|
|
|
|
|
+ placeholder="请输入作品简介"
|
|
|
type="text"
|
|
type="text"
|
|
|
- class="ui-input ui-textarea"
|
|
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <span class="count">{{info.description.length}}/500</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -73,9 +73,9 @@
|
|
|
</Table>
|
|
</Table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="dialog" style="z-index: 2000" v-if="showScene">
|
|
|
|
|
|
|
+ <div class="dialog" style="z-index: 2000" v-if="isShowScene">
|
|
|
<Select
|
|
<Select
|
|
|
- @cancle="showScene = false"
|
|
|
|
|
|
|
+ @cancle="isShowScene = false"
|
|
|
:title="'选择素材'"
|
|
:title="'选择素材'"
|
|
|
@submit="handleSelect"
|
|
@submit="handleSelect"
|
|
|
>
|
|
>
|
|
@@ -115,13 +115,13 @@ export default {
|
|
|
name:"自动巡游",
|
|
name:"自动巡游",
|
|
|
id:"xy"
|
|
id:"xy"
|
|
|
}],
|
|
}],
|
|
|
- showScene:false,
|
|
|
|
|
activeSetting:'',
|
|
activeSetting:'',
|
|
|
dataURL: "",
|
|
dataURL: "",
|
|
|
- isShowSelect:false,
|
|
|
|
|
|
|
+ isShowScene:false, // 显示全景图片选择窗口
|
|
|
|
|
+ isShowSelect:false, // 显示普通图片选择窗口
|
|
|
list:[],
|
|
list:[],
|
|
|
key:'',
|
|
key:'',
|
|
|
- clickFrom:'',
|
|
|
|
|
|
|
+ clickFrom:'', // 来自“选择图片”:base。来自“全景封面”:scene。来自右侧的“选择图片”:editPanel
|
|
|
paging: {
|
|
paging: {
|
|
|
pageSize: 8,
|
|
pageSize: 8,
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
addScene(){
|
|
addScene(){
|
|
|
this.clickFrom = 'scene'
|
|
this.clickFrom = 'scene'
|
|
|
- this.showScene = true
|
|
|
|
|
|
|
+ this.isShowScene = true
|
|
|
},
|
|
},
|
|
|
changeCurrent(data){
|
|
changeCurrent(data){
|
|
|
this.paging.pageNum = data;
|
|
this.paging.pageNum = data;
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
handleSelect(data){
|
|
handleSelect(data){
|
|
|
if (this.clickFrom == 'scene') {
|
|
if (this.clickFrom == 'scene') {
|
|
|
this.info.icon = data.icon
|
|
this.info.icon = data.icon
|
|
|
- this.showScene = false
|
|
|
|
|
|
|
+ this.isShowScene = false
|
|
|
}
|
|
}
|
|
|
else{
|
|
else{
|
|
|
this.clickFrom == 'editpanel'? this.select = data[0].icon :this.info.icon = data[0].icon
|
|
this.clickFrom == 'editpanel'? this.select = data[0].icon :this.info.icon = data[0].icon
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
.main {
|
|
.main {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
- width: 800px;
|
|
|
|
|
|
|
+ width: 930px;
|
|
|
top: 15%;
|
|
top: 15%;
|
|
|
left: 50%;
|
|
left: 50%;
|
|
|
transform: translateX(-50%);
|
|
transform: translateX(-50%);
|
|
@@ -234,15 +234,74 @@ export default {
|
|
|
}
|
|
}
|
|
|
.uc-l {
|
|
.uc-l {
|
|
|
.ui-remark{
|
|
.ui-remark{
|
|
|
- margin-top: 10px;
|
|
|
|
|
|
|
+ margin-top: 16px;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.uc-r {
|
|
.uc-r {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
+ > .title-input-wrapper {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ border: 1px solid rgba(151, 151, 151, 0.2);
|
|
|
|
|
+ padding: 0 16px;
|
|
|
|
|
+ background: #252526;
|
|
|
|
|
+ border-radius: 2px;
|
|
|
|
|
+ height: 36px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ > input {
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ background: transparent;
|
|
|
|
|
+ outline: none;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: calc(100% - 50px);
|
|
|
|
|
+ padding: none;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ letter-spacing: 1px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ }
|
|
|
|
|
+ > .count {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
|
+ right: 16px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.2);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ > .jianjie {
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+ > .jianjie-textarea-wrapper {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ border: 1px solid rgba(151, 151, 151, 0.2);
|
|
|
|
|
+ background: #252526;
|
|
|
|
|
+ border-radius: 2px;
|
|
|
|
|
+ height: 123px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ > textarea {
|
|
|
|
|
+ padding: 9px 16px 30px 16px;
|
|
|
|
|
+ resize: none;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ background: transparent;
|
|
|
|
|
+ outline: none;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: calc(100% - 30px);
|
|
|
|
|
+ padding: none;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ letter-spacing: 1px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ }
|
|
|
|
|
+ > .count {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 16px;
|
|
|
|
|
+ bottom: 9px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.2);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
.upload-btn {
|
|
.upload-btn {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
width: 216px;
|
|
width: 216px;
|
|
@@ -289,7 +348,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ */
|
|
|
.guide {
|
|
.guide {
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
position: relative;
|
|
position: relative;
|
|
@@ -334,9 +393,16 @@ export default {
|
|
|
|
|
|
|
|
.preview {
|
|
.preview {
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
|
+ position: relative;
|
|
|
img {
|
|
img {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
+ .setting-cover-btn {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ bottom: 16px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.setting-con{
|
|
.setting-con{
|