[baozhangchao] před 3 roky
rodič
revize
8ba922b23d
1 změnil soubory, kde provedl 11 přidání a 5 odebrání
  1. 11
    5
      src/pages/index/index.jsx

+ 11
- 5
src/pages/index/index.jsx Zobrazit soubor

@@ -33,6 +33,12 @@ export default (props) => {
33 33
       url: '/pages/setDogInfo/index'
34 34
     })
35 35
   }
36
+  const goMain = (e) => {
37
+    Taro.navigateTo({
38
+      url: '/pages/main/index'
39
+    })
40
+  }
41
+  goMain
36 42
 
37 43
   return (
38 44
     <ScrollView scrollY style={{
@@ -43,7 +49,7 @@ export default (props) => {
43 49
         {/* 一部分 */}
44 50
         <View className='haderBox'>
45 51
           <Banner banner={banner} />
46
-          <Notice Notice={NoticeList} onChange={onChangeGoNotice} />
52
+          <Notice Notice={NoticeList} />
47 53
         </View>
48 54
         {/* 二部分 */}
49 55
         <View>
@@ -66,21 +72,21 @@ export default (props) => {
66 72
         <HomeCard text='便捷服务'>
67 73
           <View className='Operation-box'>
68 74
             <View className='Operation-box-header'>
69
-              <View className='Operation-box-header-centent'>
75
+              <View className='Operation-box-header-centent' onChange={onChangeGoNotice}>
70 76
                 <Image src={handle} style={{ width: '50px', height: '30px' }} />
71 77
                 <View>办证</View>
72 78
               </View>
73
-              <View className='Operation-box-header-centent'>
79
+              <View className='Operation-box-header-centent' onChange={onChangeGoNotice}>
74 80
                 <Image src={addTime} style={{ width: '28px', height: '24px', padding: '0 10px' }} />
75 81
                 <View>续期</View>
76 82
               </View>
77 83
             </View>
78
-            <View className='Operation-box-header'>
84
+            <View className='Operation-box-header' onChange={onChangeGoNotice}>
79 85
               <View className='Operation-box-header-centent'>
80 86
                 <Image src={lost} style={{ width: '35px', height: '30px', padding: '0 10px' }} />
81 87
                 <View>挂失</View>
82 88
               </View>
83
-              <View className='Operation-box-header-centent'>
89
+              <View className='Operation-box-header-centent' onChange={goMain}>
84 90
                 <Image src={main} style={{ width: '27px', height: '25px', padding: '0 10px' }} />
85 91
                 <View>我的</View>
86 92
               </View>