Commit 1d6e001c by 李伟康

提交代码

1 parent 49753565
import miniprogramMixin from './miniprogramMixin'
export { export {
miniprogramMixin
} }
\ No newline at end of file \ No newline at end of file
import { wxConfig } from '@/api'
export default {
data () {
return {
}
},
mounted () {
},
methods: {
launchMiniprogram () {
const ISWXWORK = window.$ISWXWORK
const { appid } = window.$fetchConfig.miniprogramInfo
if (!ISWXWORK) return
let { path } = this
wxConfig.launchMiniprogram({
appid,
path
}).then(res => {
console.log(res)
})
}
}
}
\ No newline at end of file \ No newline at end of file
...@@ -66,12 +66,10 @@ ...@@ -66,12 +66,10 @@
import { shopmallApi, wxConfig } from '@/api' import { shopmallApi, wxConfig } from '@/api'
import { util } from '@/utils' import { util } from '@/utils'
import PayModal from './PayModal.vue' import PayModal from './PayModal.vue'
import { miniprogramMixin } from '@/mixins'
export default { export default {
name: 'Action', name: 'Action',
components: { PayModal }, components: { PayModal },
props: ['detail', 'updata'], props: ['detail', 'updata'],
mixins: [miniprogramMixin],
watch: { watch: {
'detail': function (n) { 'detail': function (n) {
this.show = true this.show = true
......
...@@ -299,7 +299,6 @@ export default { ...@@ -299,7 +299,6 @@ export default {
'openLocation', 'openLocation',
'getNetworkType', 'getNetworkType',
'onMenuShareAppMessage', 'onMenuShareAppMessage',
'launchMiniprogram',
'onMenuShareTimeline' 'onMenuShareTimeline'
] ]
wxConfig.init(jsApiList).then(() => { wxConfig.init(jsApiList).then(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!