feat: 接入客服
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user