Commit 6812d96b by 张权

修改入口

1 parent bf36de35
...@@ -67,21 +67,22 @@ export default { ...@@ -67,21 +67,22 @@ export default {
desc: description || '', desc: description || '',
imgUrl: titleUrl || imgUrl imgUrl: titleUrl || imgUrl
} }
wxConfig.getContext().then((res) => {
// if (entry != 'normal'){ if (res.entry != 'normal'){
let pdfParam = { let pdfParam = {
msgtype: 'news', msgtype: 'news',
news: params, news: params,
enterChat: false enterChat: false
} }
if(i.materialType==1){ if(i.materialType==1){
this.sendChatMessage(pdfParam, { id, merchantId, uuid }) this.sendChatMessage(pdfParam, { id, merchantId, uuid })
}else{
this.getParam(i, { id, merchantId, uuid })
}
}else{ }else{
this.getParam(i, { id, merchantId, uuid }) this.shareAppMessage(params, { id, merchantId, uuid })
} }
// }else{ })
// this.shareAppMessage(params, { id, merchantId, uuid })
// }
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!