初始化项目
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export default {
|
||||
pages: [
|
||||
'pages/index/index'
|
||||
],
|
||||
window: {
|
||||
backgroundTextStyle: 'light',
|
||||
navigationBarBackgroundColor: '#fff',
|
||||
navigationBarTitleText: 'WeChat',
|
||||
navigationBarTextStyle: 'black'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
@import './styles/common.scss'
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import './app.scss'
|
||||
|
||||
|
||||
const App = ({ children }) => {
|
||||
return (
|
||||
<>
|
||||
{children}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
@@ -0,0 +1,11 @@
|
||||
import { View } from "@tarojs/components"
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<>
|
||||
<View>
|
||||
abc
|
||||
</View>
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
<meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-touch-fullscreen" content="yes">
|
||||
<meta name="format-detection" content="telephone=no,address=no">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="white">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
|
||||
<title></title>
|
||||
<script>
|
||||
!function(n){function e(){var e=n.document.documentElement,t=e.getBoundingClientRect().width;e.style.fontSize=t>=640?"40px":t<=320?"20px":t/320*20+"px"}n.addEventListener("resize",(function(){e()})),e()}(window);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
navigationBarTitleText: '首页'
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.index{
|
||||
color: $color;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { View, Text } from '@tarojs/components'
|
||||
import Test from '@/components/test'
|
||||
import styles from './index.module.scss'
|
||||
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<View className={styles.index}>
|
||||
<Text>Hello world123!</Text>
|
||||
<Test/>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
$color: #ccc;
|
||||
Reference in New Issue
Block a user