Commit a371c696 authored by 何毅恒's avatar 何毅恒

c

parent 3dca1b68
...@@ -62,6 +62,7 @@ const downLoad = () => { ...@@ -62,6 +62,7 @@ const downLoad = () => {
}; };
// jssdk 微信分享 // jssdk 微信分享
const wxJssdk = () => { const wxJssdk = () => {
if (globalProperties.$wx.isWeixin()) {
let obj = { let obj = {
title: informationDetail.value.title, title: informationDetail.value.title,
link: "https://testhelp.gelifood.com/index.html#/articleDetails?id=" + id, link: "https://testhelp.gelifood.com/index.html#/articleDetails?id=" + id,
...@@ -69,6 +70,7 @@ const wxJssdk = () => { ...@@ -69,6 +70,7 @@ const wxJssdk = () => {
imgUrl: "../../assets/img/helpImg.png", imgUrl: "../../assets/img/helpImg.png",
}; };
globalProperties.$wx.wxShare(obj); globalProperties.$wx.wxShare(obj);
}
}; };
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
......
...@@ -123,7 +123,7 @@ let informationListParam = ref({ ...@@ -123,7 +123,7 @@ let informationListParam = ref({
category_id_1: "", // 1级分类id category_id_1: "", // 1级分类id
category_id_2: "", // 2级分类id category_id_2: "", // 2级分类id
title: "", // title: "", //
is_show:1 is_show: 1,
}); });
let informationList = ref([]); let informationList = ref([]);
const getInformationList = async () => { const getInformationList = async () => {
...@@ -143,6 +143,7 @@ const selectSecondClassifyItem = (row) => { ...@@ -143,6 +143,7 @@ const selectSecondClassifyItem = (row) => {
// jssdk 微信分享 // jssdk 微信分享
const wxJssdk = () => { const wxJssdk = () => {
if (globalProperties.$wx.isWeixin()) {
let obj = { let obj = {
title: "帮助中心", title: "帮助中心",
link: "https://testhelp.gelifood.com/index.html", link: "https://testhelp.gelifood.com/index.html",
...@@ -150,6 +151,7 @@ const wxJssdk = () => { ...@@ -150,6 +151,7 @@ const wxJssdk = () => {
imgUrl: "../../assets/img/helpImg.png", imgUrl: "../../assets/img/helpImg.png",
}; };
globalProperties.$wx.wxShare(obj); globalProperties.$wx.wxShare(obj);
}
}; };
const value = ref(""); const value = ref("");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment