bug
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapActions} from 'vuex'
|
||||
import {mapActions, mapState} from 'vuex'
|
||||
import qs from "query-string"
|
||||
|
||||
export default {
|
||||
@@ -37,13 +37,27 @@ export default {
|
||||
computed: {
|
||||
params() {
|
||||
return qs.parse(decodeURIComponent(location.search))
|
||||
}
|
||||
},
|
||||
...mapState(['wxwork'])
|
||||
},
|
||||
mounted() {
|
||||
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact'])
|
||||
computed: {
|
||||
defaultValue () {
|
||||
if (!this.albumList.length) {
|
||||
return [0]
|
||||
}
|
||||
|
||||
return [this.albumList.map(v => v.value).indexOf(this.albumId)]
|
||||
},
|
||||
|
||||
currWatermarkConfig () {
|
||||
if (this.currIndex < 0 || !this.watermarkList.length) return []
|
||||
|
||||
return this.watermarkList[this.currIndex].itemList
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin', 'wxInvoke']),
|
||||
...mapActions(['injectJWeixin', 'wxInvoke', 'agentSign']),
|
||||
|
||||
copy() {
|
||||
let oInput = document.createElement('input')
|
||||
oInput.value = this.params.linkUrl
|
||||
@@ -54,23 +68,31 @@ export default {
|
||||
oInput.remove()
|
||||
},
|
||||
share() {
|
||||
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
|
||||
this.wxInvoke(['shareAppMessage', {
|
||||
title: this.params.title,
|
||||
desc: this.params.tableExplain,
|
||||
link: this.params.linkUrl,
|
||||
imgUrl: this.params.headPicture
|
||||
}])
|
||||
this.agentSign({
|
||||
corpId: this.wxwork.config.corpId
|
||||
}).then(() => {
|
||||
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
|
||||
this.wxInvoke(['shareAppMessage', {
|
||||
title: this.params.title,
|
||||
desc: this.params.tableExplain,
|
||||
link: this.params.linkUrl,
|
||||
imgUrl: this.params.headPicture
|
||||
}])
|
||||
})
|
||||
})
|
||||
},
|
||||
shareWechat() {
|
||||
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
|
||||
this.wxInvoke(['shareWechatMessage', {
|
||||
title: this.params.title,
|
||||
desc: this.params.tableExplain,
|
||||
link: this.params.linkUrl,
|
||||
imgUrl: this.params.headPicture
|
||||
}])
|
||||
this.agentSign({
|
||||
corpId: this.wxwork.config.corpId
|
||||
}).then(() => {
|
||||
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
|
||||
this.wxInvoke(['shareWechatMessage', {
|
||||
title: this.params.title,
|
||||
desc: this.params.tableExplain,
|
||||
link: this.params.linkUrl,
|
||||
imgUrl: this.params.headPicture
|
||||
}])
|
||||
})
|
||||
})
|
||||
},
|
||||
confirm() {
|
||||
|
||||
Reference in New Issue
Block a user