Commit 3b78a4ad by 李伟康

修改样式

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