BUG 25368

This commit is contained in:
aixianling
2021-12-13 14:04:12 +08:00
parent 6651ee8529
commit 378e765e83

View File

@@ -28,17 +28,16 @@
</template> </template>
<script> <script>
import {mapActions} from 'vuex' import {mapActions} from 'vuex'
export default { export default {
name: 'Result', name: 'Result',
props: ['params'], props: ['params'],
mounted () { mounted() {
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact']) this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact'])
}, },
methods: { methods: {
...mapActions(['injectJWeixin', 'wxInvoke']), ...mapActions(['injectJWeixin', 'wxInvoke']),
@@ -52,7 +51,7 @@
oInput.remove() oInput.remove()
}, },
share () { share() {
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => { this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
this.wxInvoke(['shareAppMessage', { this.wxInvoke(['shareAppMessage', {
title: this.params.title, title: this.params.title,
@@ -63,7 +62,7 @@
}) })
}, },
shareWechat () { shareWechat() {
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => { this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
this.wxInvoke(['shareWechatMessage', { this.wxInvoke(['shareWechatMessage', {
title: this.params.title, title: this.params.title,
@@ -74,17 +73,20 @@
}) })
}, },
confirm () { confirm() {
this.$emit('change', { this.$emit('change', {
type: 'Tabbar' type: 'Tabbar'
}) })
} }
},
onShow() {
wx.hideOptionMenu();
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.result { .result {
min-height: 100vh; min-height: 100vh;
padding: 96px 96px 0; padding: 96px 96px 0;
text-align: center; text-align: center;
@@ -146,7 +148,7 @@
font-size: 36px; font-size: 36px;
color: #fff; color: #fff;
background: #197DF0; background: #197DF0;
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.02); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.02);
border-radius: 4px; border-radius: 4px;
&:active { &:active {
@@ -159,5 +161,5 @@
font-size: 36px; font-size: 36px;
font-weight: 700; font-weight: 700;
} }
} }
</style> </style>