feat: 新用户注册飞书通知

This commit is contained in:
eric
2022-12-14 15:16:00 +08:00
parent 208c530dda
commit 91baccc9cb
5 changed files with 14 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -2,8 +2,6 @@
/*! ../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./index.tsx */ /*! ../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./index.tsx */
/*! ../../utils/index */
/*! ../common/utils */ /*! ../common/utils */
/*! ../common/validator */ /*! ../common/validator */
@@ -38,6 +36,8 @@
/*! ./wxs */ /*! ./wxs */
/*! @/utils/index */
/*! @antmjs/vantui/es/button */ /*! @antmjs/vantui/es/button */
/*! @antmjs/vantui/es/cell */ /*! @antmjs/vantui/es/cell */

View File

@@ -94,15 +94,16 @@ const Home = () => {
}; };
}); });
const testCloud = async () => {
// 云托管测试
const testCloud = async () => {
const res = await cloudcall({ const res = await cloudcall({
path:'/' path:'/feishu'
}) })
console.log('业务返回结果',res) console.log('业务返回结果',res)
}; };
useEffect(() => { useEffect(() => {
testCloud(); // testCloud();
}, []); }, []);
useEffect(() => { useEffect(() => {

View File

@@ -21,13 +21,14 @@ import Taro from "@tarojs/taro";
import ActiveCard from "../components/ActiveCard"; import ActiveCard from "../components/ActiveCard";
import { import {
addTable, addTable,
cloudcall,
getOpenid, getOpenid,
getTable, getTable,
getTableid, getTableid,
isLogin, isLogin,
phoneLogin, phoneLogin,
updateTableid, updateTableid,
} from "../../utils/index"; } from "@/utils/index";
import { type } from "../../../config"; import { type } from "../../../config";
import { Divider } from "@antmjs/vantui"; import { Divider } from "@antmjs/vantui";
@@ -198,8 +199,11 @@ const my = (props: any) => {
onClick={async () => { onClick={async () => {
// 获取收获地址 // 获取收获地址
Taro.chooseAddress({ Taro.chooseAddress({
success: function (AddressRes) { success: async (AddressRes) =>{
console.log("AddressRes", AddressRes); console.log("AddressRes", AddressRes);
await cloudcall({
path:'/feishu'
})
Taro.cloud.callFunction({ Taro.cloud.callFunction({
name: "getOpenid", name: "getOpenid",
complete: async (opemRes: any) => { complete: async (opemRes: any) => {