This commit is contained in:
yanran200730
2022-06-17 17:56:36 +08:00
parent 6d613abef2
commit f5f15af45f
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
<div
class="watermark"
v-if="currIndex > -1 && currWatermarkConfig.length"
:style="{left: x + 'px', top: y + 'px', transform: 'scale(' + watermarkScale + ')' }"
:style="{left: x + 'px', top: y + 'px', transform: 'scale(' + watermarkScale + ')', transformOrigin: 'left' }"
@touchstart="onTouchstart"
@touchmove="onTouchmove">
<component ref="WatermarkItem" :is="'Watermark' + (currIndex + 1)" :config="currWatermarkConfig"></component>
@@ -141,7 +141,7 @@
data () {
return {
img: '',
currIndex: -1,
currIndex: 0,
isHide: true,
height: '100%',
waterSrc: '',

View File

@@ -102,7 +102,7 @@
if (v.length) {
const title = v.filter(v => v.type === '17')[0]
const hoster = v.filter(v => v.type === '26')[0]
const date = v.filter(v => v.type === '0')[0]
const date = v.filter(v => v.type === '1')[0]
const address = v.filter(v => v.type === '29')[0]
const remark = v.filter(v => v.type === '31')[0]
const theme = v.filter(v => v.type === '30')[0]