feat: 接入客服

This commit is contained in:
eric
2022-11-13 20:32:07 +08:00
parent c9a21330bd
commit ecb1fed94c
9 changed files with 34 additions and 20 deletions

View File

@@ -30,15 +30,22 @@ const Home = () => {
];
useEffect(() => {
let objParams = {
tableName: "test",
id: "80516fb66370bcf300b8f43c5f4dd52b",
okFun: (res) => {
console.log("res", res);
},
};
Taro.showShareMenu({
withShareTicket: true
})
Taro.updateShareMenu({
withShareTicket: true,
success () { }
})
// let objParams = {
// tableName: "test",
// id: "80516fb66370bcf300b8f43c5f4dd52b",
// okFun: (res) => {
// console.log("res", res);
// },
// };
getTableid(objParams);
// getTableid(objParams);
}, []);
return (

View File

@@ -6,6 +6,7 @@ import { Image } from "@antmjs/vantui";
// import styles from './index.module.scss'
import './index.module.scss'
import { Tab, Tabs } from '@antmjs/vantui'
import Taro from "@tarojs/taro";
@@ -47,8 +48,14 @@ const my = (props: any) => {
<View>
<Cell title="个人资料" isLink />
<Cell title="收藏" isLink />
<Cell title="客服" isLink value="" />
{/* <Cell title="收藏" isLink /> */}
<Cell title="微信客服" isLink value="" onClick={()=>{
Taro.openCustomerServiceChat({
corpId:'wwb04af9a97514271c', //企业id
extInfo: {url: 'https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5'},
success: function (res) { }
})
}}/>
{/* <Cell title="单元格" isLink value="内容" arrowDirection="down" /> */}
</View>