feat: 签到打卡

This commit is contained in:
eric
2022-11-20 14:18:19 +08:00
parent b812ece697
commit e307431687
3 changed files with 44 additions and 9 deletions

View File

@@ -9,11 +9,18 @@ import {
Icon,
} from "@antmjs/vantui";
import { Input, View } from "@tarojs/components";
import { getCurrentInstance } from "@tarojs/taro";
import React, { useCallback, useEffect } from "react";
import './index.scss'
const CheckIn = () => {
const formIt = Form.useForm();
let $instance:any = getCurrentInstance()
const {fileID}=$instance?.router?.params
console.log('fileID---',fileID)
useEffect(() => {
// 设置标题
definePageConfig({
@@ -38,7 +45,7 @@ const CheckIn = () => {
width="100%"
height="180px"
fit="cover"
src="https://img.yzcdn.cn/vant/cat.jpeg"
src={fileID}
/>
</View>
<FormItem