优化
This commit is contained in:
@@ -2,6 +2,12 @@
|
|||||||
<div class="report">
|
<div class="report">
|
||||||
<components class="report-item" ref="reportItem" :config="currConfig" v-if="currConfig.length" :is="component"></components>
|
<components class="report-item" ref="reportItem" :config="currConfig" v-if="currConfig.length" :is="component"></components>
|
||||||
<div class="report-list" data-html2canvas-ignore>
|
<div class="report-list" data-html2canvas-ignore>
|
||||||
|
<div class="report-btns">
|
||||||
|
<span @click="back">返回</span>
|
||||||
|
<h2>拼图模板</h2>
|
||||||
|
<span @click="save">保存</span>
|
||||||
|
</div>
|
||||||
|
<div class="report-wrapper">
|
||||||
<div
|
<div
|
||||||
class="report-item"
|
class="report-item"
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -13,7 +19,7 @@
|
|||||||
<span @click="toEdit">编辑</span>
|
<span @click="toEdit">编辑</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="report-btn" data-html2canvas-ignore @click="save">完成</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -66,6 +72,12 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
back () {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toEdit () {
|
toEdit () {
|
||||||
this.$refs.reportItem.linkTo()
|
this.$refs.reportItem.linkTo()
|
||||||
},
|
},
|
||||||
@@ -124,25 +136,25 @@
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.report {
|
.report {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: 240px;
|
padding-bottom: 330px;
|
||||||
|
|
||||||
.report-btn {
|
.report-btns {
|
||||||
position: fixed;
|
display: flex;
|
||||||
bottom: 272px;
|
align-items: center;
|
||||||
left: 32px;
|
justify-content: space-between;
|
||||||
z-index: 11;
|
height: 96px;
|
||||||
width: 144px;
|
padding: 0 32px;
|
||||||
height: 64px;
|
|
||||||
line-height: 64px;
|
span {
|
||||||
text-align: center;
|
color: #222222;
|
||||||
background: #FFFFFF;
|
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
color: #408EF6;
|
font-weight: 600;
|
||||||
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
|
}
|
||||||
border-radius: 40px;
|
|
||||||
|
|
||||||
&:active {
|
h2 {
|
||||||
opacity: 0.7;
|
color: #333333;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,16 +169,19 @@
|
|||||||
|
|
||||||
.report-list {
|
.report-list {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 240px;
|
padding-bottom: 16px;
|
||||||
padding: 0 24px;
|
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
|
||||||
|
.report-wrapper {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.report-item {
|
.report-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 176px;
|
width: 176px;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="photo" :class="[isHide ? 'home-active' : '']" :style="{height: height + 'px'}" @click="isHide = true">
|
<div class="photo" :class="[isHide ? 'home-active' : '']" :style="{height: height + 'px'}">
|
||||||
<div class="photo-top" data-html2canvas-ignore>
|
<div class="photo-top" data-html2canvas-ignore>
|
||||||
<div class="photo-top__middle" @click="isShowAlbum = true">
|
<div class="photo-top__middle" @click="isShowAlbum = true">
|
||||||
<span>保存至:{{ albumName || '默认相册' }}</span>
|
<span>保存至:{{ albumName || '默认相册' }}</span>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="photo-bottom" data-html2canvas-ignore>
|
<div class="photo-bottom" data-html2canvas-ignore>
|
||||||
<div class="photo-bottom__top">
|
<div class="photo-bottom__top">
|
||||||
<span></span>
|
<span @click.stop="isHide = true">取消</span>
|
||||||
<!-- <image src="./images/clear.png" @click.stop="isHide = true, currIndex = -1" /> -->
|
<!-- <image src="./images/clear.png" @click.stop="isHide = true, currIndex = -1" /> -->
|
||||||
<h2>水印</h2>
|
<h2>水印</h2>
|
||||||
<span @click.stop="isHide = true">确定</span>
|
<span @click.stop="isHide = true">确定</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user