|
@ -32,20 +32,26 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="8" v-for="t in themeList"> |
|
|
<el-col |
|
|
|
|
|
class="theme-img-view" |
|
|
|
|
|
:span="8" v-for="t in themeList" |
|
|
|
|
|
@click.native="activeThemeHandler(t)"> |
|
|
|
|
|
<p :class="{'head-list-view-select':activeTheme.id==t.id}"> |
|
|
<el-image |
|
|
<el-image |
|
|
|
|
|
:class="{'head-list-img-active':activeTheme.id==t.id}" |
|
|
class="head-list-img" |
|
|
class="head-list-img" |
|
|
style="width: 100px; height: 100px" |
|
|
style="width: 100px; height: 100px" |
|
|
:src="t.headImgUrl" |
|
|
:src="t.headImgUrl" |
|
|
fit="cover" |
|
|
fit="cover" |
|
|
></el-image> |
|
|
></el-image> |
|
|
|
|
|
</p> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
</el-scrollbar> |
|
|
</el-scrollbar> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :offset="0" :span="12"> |
|
|
<el-col :offset="0" :span="12"> |
|
|
<pre-view :projectKey="projectKey"/> |
|
|
<pre-view :project-key="projectKey"/> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<div class="right-container"></div> |
|
|
<div class="right-container"></div> |
|
@ -64,6 +70,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
projectKey: '', |
|
|
styleList: [ |
|
|
styleList: [ |
|
|
{'label': '全部', 'key': ''}, |
|
|
{'label': '全部', 'key': ''}, |
|
|
{'label': '节日', 'key': 'festival'}, |
|
|
{'label': '节日', 'key': 'festival'}, |
|
@ -88,12 +95,12 @@ export default { |
|
|
], |
|
|
], |
|
|
activeColor: '', |
|
|
activeColor: '', |
|
|
activeStyle: '', |
|
|
activeStyle: '', |
|
|
projectKey: '', |
|
|
activeTheme: '', |
|
|
themeList: [] |
|
|
themeList: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.projectKey = this.$route.query.key |
|
|
this.projectConfig.projectKey = this.$route.query.key |
|
|
this.queryProjectTheme() |
|
|
this.queryProjectTheme() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
@ -101,6 +108,19 @@ export default { |
|
|
this.activeStyle = item.key |
|
|
this.activeStyle = item.key |
|
|
this.queryProjectTheme() |
|
|
this.queryProjectTheme() |
|
|
}, |
|
|
}, |
|
|
|
|
|
activeThemeHandler(item) { |
|
|
|
|
|
if (item) { |
|
|
|
|
|
this.$confirm('切换主题,系统将不会保存您在上一主题所做的修改,请知悉。', '切换主题提醒', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消操作', |
|
|
|
|
|
type: 'info' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.activeTheme = item |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
activeColorHandler(item) { |
|
|
activeColorHandler(item) { |
|
|
this.activeColor = item |
|
|
this.activeColor = item |
|
|
this.queryProjectTheme() |
|
|
this.queryProjectTheme() |
|
@ -199,6 +219,21 @@ export default { |
|
|
border: 2px solid rgba(11, 141, 213, 100); |
|
|
border: 2px solid rgba(11, 141, 213, 100); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.head-list-img-active { |
|
|
|
|
|
border: 2px solid rgba(11, 141, 213, 100); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.theme-img-view .head-list-view-select ::after { |
|
|
|
|
|
content: ""; |
|
|
|
|
|
background: url('~@/assets/images/mobile_theme_active.png'); |
|
|
|
|
|
background-size: 18px; |
|
|
|
|
|
width: 18px; |
|
|
|
|
|
height: 18px; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: 4px; |
|
|
|
|
|
right: 4px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.right-container { |
|
|
.right-container { |
|
|
width: 456px; |
|
|
width: 456px; |
|
|
height: 600px; |
|
|
height: 600px; |
|
|