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