feat: first commit

This commit is contained in:
eleanor.mao
2025-03-31 22:34:22 +08:00
commit d25187c9c8
390 changed files with 57031 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export default definePageConfig({
navigationBarTitleText: '模卡录屏',
});

View File

View File

@ -0,0 +1,26 @@
import { WebView } from '@tarojs/components';
import { getPageQuery } from '@/utils/route';
import React, { useState } from 'react';
import { useLoad } from '@tarojs/taro';
import Toast from '@/utils/toast';
import './index.less';
export default function MaterialWebview() {
const [src, setSrc] = useState('')
useLoad(() => {
const { source } = getPageQuery<{ source: string }>()
setSrc(`https://neighbourhood.cn/material-preview.html?source=${source}`)
})
if (src) {
return <WebView src={src} onError={() => Toast.error('加载失败请重试')} />;
}
return '加载中...'
}