Kaynağa Gözat

feat: 还原日历

huangzhichao 1 yıl önce
ebeveyn
işleme
03bd47d354
2 değiştirilmiş dosya ile 1 ekleme ve 16 silme
  1. 0 1
      src/pages/index/index.less
  2. 1 15
      src/pages/index/index.tsx

+ 0 - 1
src/pages/index/index.less

@@ -1,5 +1,4 @@
 .index {
-  background: #000;
   width: 100vw;
   height: 100vh;
   display: flex;

+ 1 - 15
src/pages/index/index.tsx

@@ -1,26 +1,12 @@
-import Taro, { useLoad } from '@tarojs/taro'
 import React from 'react'
 import { View } from '@tarojs/components'
 import './index.less'
 
-const myPluginInterface = Taro.requirePlugin('myPlugin')
 
 const Index: React.FC = () => {
-  useLoad(() => {
-  })
-
-  function onEmitOpenMiniProgram(appId, path) {
-    Taro.openEmbeddedMiniProgram({
-      appId,
-      path,
-      envVersion: 'trial'
-    })
-  }
-  // 测试 ADY_17097254415021673
-  // 正式 ADY_17103126327291030
   return (
     <View className='index'>
-      <custom props={{ onEmitOpenMiniProgram, adpId: 'ADY_17103126327291030', width:250 }}/>
+      <calendar />
     </View>
   )
 }