Commit 3b78a4ad by 李伟康

修改样式

1 parent 25eb131e
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
} }
if (shareType == 'h5') { if (shareType == 'h5') {
console.log(h5Params) console.log(h5Params)
if (entryType) this.sendH5(h5Params) if (entryType) this.sendChatMessage(h5Params, 'news')
else wxConfig else wxConfig
.shareAppMessage(h5Params) .shareAppMessage(h5Params)
.then(() => { .then(() => {
...@@ -157,26 +157,11 @@ export default { ...@@ -157,26 +157,11 @@ export default {
}) })
} }
}, },
sendH5 (params) { sendChatMessage (params, msgtype = 'miniprogram') {
wxConfig wxConfig
.sendChatMessage({ .sendChatMessage({
msgtype: 'news', msgtype,
news: params, [msgtype]: params,
enterChat: false
})
.then(() => {
this.hideLoading()
})
.catch(err => {
console.log('当前会话', err)
this.hideLoading()
})
},
sendChatMessage (params) {
wxConfig
.sendChatMessage({
msgtype: 'miniprogram',
miniprogram: params,
enterChat: false enterChat: false
}) })
.then(() => { .then(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!