This commit is contained in:
yanran200730
2022-06-30 09:35:37 +08:00
parent 6259f915e5
commit cccaae51c2
2 changed files with 10 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
: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>
<component ref="WatermarkItem" :address="address" :is="'Watermark' + (currIndex + 1)" :config="currWatermarkConfig"></component>
<div v-if="!isHide" @click.stop="currIndex = -1" class="watermark-close" data-html2canvas-ignore>
<image src="./images/close-b.png" />
</div>

View File

@@ -73,6 +73,15 @@
},
deep: true
},
address: {
handler: function (v) {
if (v.address) {
this.address = uni.getStorageSync('address').address || ''
this.weather = uni.getStorageSync('address').weather || ''
}
}
}
},
created () {