This commit is contained in:
yanran200730
2022-07-28 16:23:32 +08:00
parent bcb87f4356
commit 3fd6a284c7

View File

@@ -120,7 +120,7 @@
import Watermark6 from './components/watermark/Watermark6'
import Watermark7 from './components/watermark/Watermark7'
import Watermark8 from './components/watermark/Watermark8'
import { mapActions } from 'vuex'
import { mapActions, mapState } from 'vuex'
export default {
name: 'Watermark',
@@ -174,7 +174,8 @@
if (this.currIndex < 0 || !this.watermarkList.length) return []
return this.watermarkList[this.currIndex].itemList
}
},
...mapState(['wxwork'])
},
onLoad (query) {
@@ -215,7 +216,7 @@
},
methods: {
...mapActions(['injectJWeixin']),
...mapActions(['injectJWeixin', 'agentSign']),
toClipping () {
uni.navigateTo({
@@ -325,6 +326,10 @@
},
getLocation () {
this.agentSign({
corpId: this.wxwork.config.corpId,
suiteId: this.wxwork.config.suiteId
}).then(() => {
this.injectJWeixin(['getLocation']).then(() => {
wx.getLocation({
type: 'wgs84',
@@ -359,6 +364,7 @@
}).catch(e => {
alert(JOSN.stringify(e))
})
})
},
dataURLtoFile (dataurl, filename) {