周杰伦 4 năm trước cách đây
mục cha
commit
63f11dfb47

+ 6 - 0
project.config.json

@@ -73,6 +73,12 @@
         {
           "name": "pages/My/index",
           "pathName": "pages/My/index",
+          "query": "",
+          "scene": null
+        },
+        {
+          "name": "pages/Evaluation/index",
+          "pathName": "pages/Evaluation/index",
           "scene": null
         }
       ]

+ 1 - 0
src/app.config.ts

@@ -3,6 +3,7 @@ export default {
     'pages/index/index',
     'pages/Entrance/index',
     'pages/My/index',
+    'pages/Evaluation/index',
   ],
   window: {
     backgroundTextStyle: 'light',

BIN
src/assets/Evaluation/topic-bg.png


+ 11 - 2
src/pages/Entrance/index.tsx

@@ -2,6 +2,8 @@ import React, {useState} from 'react'
 
 import { View, Image } from '@tarojs/components'
 
+import Taro from '@tarojs/taro'
+
 import './index.scss'
 
 const entranceList = [
@@ -50,12 +52,19 @@ const entranceList = [
 const Enteance: React.FC = () => {
 
     const [visible, setVisible] = useState<boolean>(false)
-    
+
+    // 去我的页面
+
+    const goMypage = () => {
+        Taro.navigateTo({
+             url: '/pages/My/index'
+        });
+    }
 
     return (
         <View className='Enteance'>
             <View className='game-box'>
-                <Image className='my' src={require('../../assets/Entrance/my.png')} />
+                <Image className='my' onClick={() => goMypage()} src={require('../../assets/Entrance/my.png')} />
                 <Image className='game-report' src={require('../../assets/Entrance/game-report.png')} />
             </View>
 

+ 4 - 0
src/pages/Evaluation/index.config.ts

@@ -0,0 +1,4 @@
+export default {
+    navigationBarTitleText: '测评报告'
+}
+  

+ 35 - 0
src/pages/Evaluation/index.scss

@@ -0,0 +1,35 @@
+.Evaluation {
+    width: 100vw;
+    min-height: 100vh;
+    background: #F2F6F9;
+    overflow: hidden;
+}
+
+
+.rate {
+    width: 702px;
+    height: 484px;
+    background: #FFFFFF;
+    box-shadow: 0px 4px 20px 0px #E9E9EA;
+    border-radius: 20px;
+    position: relative;
+    margin: 0 auto;
+    margin-top: 54px;
+    .topic-bg-box {
+        position: relative;
+        .topic-bg {
+            width: 416px;
+            height: 100px;
+            position: absolute;
+            top: 0;
+            left: 50%;
+            transform: translate(-50%, -30%);
+        }
+        Text {
+            position: absolute;
+            top: 0;
+            left: 50%;
+            transform: translate(-50%, -30%);
+        }
+    }
+}

+ 28 - 0
src/pages/Evaluation/index.tsx

@@ -0,0 +1,28 @@
+import React from 'react'
+
+import { View, Image, Text} from '@tarojs/components'
+
+import './index.scss'
+
+const Rate: React.FC = () => {
+    return (
+        <View className='rate'>
+            <View className='topic-bg-box'>
+                <Image className='topic-bg' src={require('../../assets/Evaluation/topic-bg.png')} />
+                <Text>答对3题,共18题</Text>
+            </View>
+            
+        </View>
+    )
+}
+
+
+const Evaluation: React.FC = () => {
+    return (
+        <View className='Evaluation'>
+            {/* 正确率 */}
+            <Rate />
+        </View>
+    )
+}
+export default Evaluation