feat: 个人版本-我的-隐藏微信客服

This commit is contained in:
huxiaoshuang
2022-11-23 16:31:55 +08:00
parent 6f0ae57c14
commit 5b65c84a02
3 changed files with 26 additions and 20 deletions

View File

@@ -26,6 +26,7 @@ import {
phoneLogin,
updateTableid,
} from "../../utils/index";
import { type } from "../../../config";
const my = (props: any) => {
// const [active, setActive] = react.useState(props?.active ?? 0);
@@ -212,31 +213,34 @@ const my = (props: any) => {
Taro.navigateTo({
url: "/pages/my/components/CheckinDetail/index",
});
}else{
} else {
Toast.fail({
message: '请先登录',
selector: '#vanToast-demo2',
})
message: "请先登录",
selector: "#vanToast-demo2",
});
}
}}
/>
{/* <Cell icon="manager" title="个人资料" isLink /> */}
<Cell
title="微信客服"
icon="wechat"
isLink
value=""
onClick={() => {
Taro.openCustomerServiceChat({
corpId: "wwb04af9a97514271c", //企业id
extInfo: {
url: "https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5",
},
success: function (res) {},
});
}}
/>
{type !== "people" && (
<Cell
title="微信客服"
icon="wechat"
isLink
value=""
onClick={() => {
Taro.openCustomerServiceChat({
corpId: "wwb04af9a97514271c", //企业id
extInfo: {
url: "https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5",
},
success: function (res) {},
});
}}
/>
)}
<Cell
icon="friends"
title="关于我们"