|
@@ -2,11 +2,12 @@
|
|
|
<div class="editor">
|
|
|
<!-- 头部 -->
|
|
|
<HeaderMain></HeaderMain>
|
|
|
- <HeaderEdit :title="title" :goback="dialogSave" :save="save" @saveThemeSuccess="showPreView=true" />
|
|
|
+ <HeaderEdit :title="title" :shareModel="shareModel" :goback="dialogSave" :save="save"
|
|
|
+ @saveThemeSuccess="showPreView=true" />
|
|
|
<!-- 内容区域 -->
|
|
|
<section class="section">
|
|
|
<!-- 左侧图层 -->
|
|
|
- <Overview class="overview" :testcaseId="testcaseId" />
|
|
|
+ <Overview ref='overview' class="overview" :testcaseId="testcaseId" :resultCount="resultPageCount" />
|
|
|
<!-- 编辑区域 -->
|
|
|
<div class="container" id="h5editor">
|
|
|
<elab-canvas v-show="animatedNameGlobal!=''" :width="750" :height="1334"
|
|
@@ -319,6 +320,8 @@ export default {
|
|
|
isLoadingPreview: false,
|
|
|
panelTabState: 0,
|
|
|
animatedNameGlobal: "",
|
|
|
+ shareModel: null,
|
|
|
+ resultPageCount: 0,
|
|
|
animateGlobalList: [
|
|
|
{ id: "Snow", name: "下雪", type: 0 },
|
|
|
{ id: "Bubble", name: "冒泡", type: 0 },
|
|
@@ -396,6 +399,14 @@ export default {
|
|
|
return this.$store.state.editor.editorTheme._id;
|
|
|
},
|
|
|
editorPage() {
|
|
|
+ this.shareModel = {
|
|
|
+ id: this.itemId,
|
|
|
+ shareTitle: this.$store.state.editor.editorTheme.shareTitle,
|
|
|
+ shareContent: this.$store.state.editor.editorTheme.shareContent,
|
|
|
+ shareImg: this.$store.state.editor.editorTheme.shareImg,
|
|
|
+ shareUrl: this.$store.state.editor.editorTheme.shareUrl
|
|
|
+ };
|
|
|
+ this.resultPageCount = this.$store.state.editor.editorTheme.resultPageCount;
|
|
|
this.bgc = this.$store.state.editor.editorTheme.bgc || "#B1C096";
|
|
|
this.btnColor =
|
|
|
this.$store.state.editor.editorTheme.btnColor || "#5f8a61";
|
|
@@ -615,9 +626,12 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ let chil = this.$refs.overview;
|
|
|
+ console.log("子组件结果页的值:", chil.resultPageCount);
|
|
|
let param = {
|
|
|
id: this.itemId,
|
|
|
jsonString: JSON.stringify(this.$store.state.editor.editorTheme),
|
|
|
+ resultPageCount: chil.resultPageCount,
|
|
|
updator: "admin"
|
|
|
};
|
|
|
console.log("参数", param);
|
|
@@ -625,7 +639,6 @@ export default {
|
|
|
.dispatch("saveTheme", param)
|
|
|
.then(() => {
|
|
|
loading.close();
|
|
|
- å;
|
|
|
this.$message({
|
|
|
message: "保存成功",
|
|
|
type: "success"
|
|
@@ -633,6 +646,10 @@ export default {
|
|
|
})
|
|
|
.catch(() => {
|
|
|
loading.close();
|
|
|
+ this.$message({
|
|
|
+ message: "保存失败",
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
deploy() {
|
|
@@ -818,72 +835,84 @@ export default {
|
|
|
}
|
|
|
|
|
|
.page-create-txt {
|
|
|
- width: 34px;
|
|
|
- height: 34px;
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-text.png') center no-repeat;
|
|
|
+ width: 34px;
|
|
|
+ height: 34px;
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-text.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-text-hover.png")
|
|
|
+ center no-repeat;
|
|
|
background-size: 34px 34px;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-text-hover.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
-
|
|
|
- &.active {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-text-active.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
- .page-create-btn {
|
|
|
- width: 34px;
|
|
|
- height: 34px;
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-zhuangshi.png') center no-repeat;
|
|
|
+ &.active {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-text-active.png")
|
|
|
+ center no-repeat;
|
|
|
background-size: 34px 34px;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- &:hover {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-zhuangshi-hover.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
+.page-create-btn {
|
|
|
+ width: 34px;
|
|
|
+ height: 34px;
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-zhuangshi.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
|
|
|
- &.active {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-zhuangshi-active.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
+ &:hover {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-zhuangshi-hover.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
}
|
|
|
|
|
|
- .page-create-lunbo {
|
|
|
- width: 34px;
|
|
|
- height: 34px;
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-lunbo.png') center no-repeat;
|
|
|
+ &.active {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-zhuangshi-active.png")
|
|
|
+ center no-repeat;
|
|
|
background-size: 34px 34px;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- &:hover {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-lunbo-hover.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
+.page-create-lunbo {
|
|
|
+ width: 34px;
|
|
|
+ height: 34px;
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-lunbo.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
|
|
|
- &.active {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-lunbo-active.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
+ &:hover {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-lunbo-hover.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
}
|
|
|
|
|
|
- .page-create-jiaohuanniu {
|
|
|
- width: 34px;
|
|
|
- height: 34px;
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu.png') center no-repeat;
|
|
|
+ &.active {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-lunbo-active.png")
|
|
|
+ center no-repeat;
|
|
|
background-size: 34px 34px;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- &:hover {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu-hover.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
+.page-create-jiaohuanniu {
|
|
|
+ width: 34px;
|
|
|
+ height: 34px;
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
|
|
|
- &.active {
|
|
|
- background: url('http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu-active.png') center no-repeat;
|
|
|
- background-size: 34px 34px;
|
|
|
- }
|
|
|
+ &:hover {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu-hover.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ background: url("http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu-active.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 34px 34px;
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
.page-tag-btn-tip {
|
|
|
width: 80px;
|