Bläddra i källkod

perf test feat

[baozhangchao] 2 år sedan
förälder
incheckning
583f13037c

+ 4
- 4
src/components/LoginModel/index.jsx Visa fil

@@ -94,7 +94,6 @@ export default (props) => {
94 94
 
95 95
 
96 96
   const getUserLogin = () => {
97
-    Taro.navigateTo({ url: `/pages/index/index?tab=${tab}` });
98 97
 
99 98
     if (InputPhoneValue === '' || !(/^1[3456789]\d{9}$/.test(InputPhoneValue))) {
100 99
       console.log('提示')
@@ -116,6 +115,8 @@ export default (props) => {
116 115
 
117 116
           setPerson(e.person)
118 117
           // Taro.navigateTo({ url: path });
118
+          // Taro.navigateTo({ url: `/pages/index/index?tab=${tab}` });
119
+
119 120
           if (loginType) {
120 121
 
121 122
             Taro.navigateBack({
@@ -141,7 +142,7 @@ export default (props) => {
141 142
       {
142 143
         isLoginVisible !== myClosures ? myClosures : isLoginVisible ?
143 144
           <View className='page-index  ' style={{ position: 'absolute', zIndex: '29999' }
144
-          } >
145
+          }>
145 146
             <View className='index-navbar'>
146 147
               <CustomNav title='登陆' home />
147 148
             </View>
@@ -173,10 +174,9 @@ export default (props) => {
173 174
             <View className='bottom-agreement'>
174 175
               <Image src={!checkImage ? checkedImg : unselectedImg} onClick={() => { setCheckImage(!checkImage) }} />
175 176
               <View>
176
-                请认真查看<Text style={{ color: '#CE3800' }}>文本协议/隐私政策</Text>,确认之后选择此项!
177
+                请认真查看<Text style={{ color: '#CE3800' }} onClick={() => { Taro.navigateTo({ url: '/pages/PrivacyAgreement/index' }) }}>文本协议/隐私政策</Text>,确认之后选择此项!
177 178
               </View>
178 179
             </View>
179
-
180 180
           </View >
181 181
           : <></>
182 182
       }

src/pages/NewVersionUpdatePage/index.config.js → src/pages/PrivacyAgreement/index.config.js Visa fil

@@ -1,6 +1,6 @@
1 1
 
2 2
 export default {
3
-  navigationBarTitleText: '版本更新',
3
+  navigationBarTitleText: '用户协议及隐私政策',
4 4
   navigationStyle: 'custom',
5 5
   disableScroll: true,
6 6
   usingComponents: {

src/pages/NewVersionUpdatePage/index.jsx → src/pages/PrivacyAgreement/index.jsx Visa fil

@@ -13,7 +13,7 @@ export default withLayout((props) => {
13 13
   return (
14 14
     <View className='page-index'>
15 15
       <View className='index-navbar'>
16
-        <CustomNav title='版本更新' />
16
+        <CustomNav title='用户协议及隐私政策' />
17 17
       </View>
18 18
       <scroll-view scrollY style='height: 100%;' >
19 19
         <View>
@@ -24,7 +24,7 @@ export default withLayout((props) => {
24 24
           </View>
25 25
           <View className='new-Content-text'>
26 26
             版本更新了一次
27
-            <View>----解决了一些已知的问题-----</View>
27
+            <View>----增加了用户协议及隐私政策-----</View>
28 28
           </View>
29 29
         </View>
30 30
       </scroll-view>

src/pages/NewVersionUpdatePage/style.less → src/pages/PrivacyAgreement/style.less Visa fil


+ 2
- 2
src/pages/index/index.jsx Visa fil

@@ -41,7 +41,7 @@ export default withLayout((props) => {
41 41
 
42 42
 
43 43
 
44
-  const [isShow, setIsShow] = useState(false)
44
+  // const [isShow, setIsShow] = useState(false)
45 45
 
46 46
 
47 47
   useDidShow(() => {
@@ -78,7 +78,7 @@ export default withLayout((props) => {
78 78
 
79 79
   return (
80 80
     <view className='page-index'>
81
-      <LoginModel isLoginVisible={isShow} />
81
+      {/* <LoginModel isLoginVisible={isShow} /> */}
82 82
 
83 83
       <view className='index-navbar'>
84 84
 

+ 1
- 2
src/pages/index/tabs/Mine.jsx Visa fil

@@ -46,7 +46,6 @@ export default withLayout((props) => {
46 46
     })
47 47
     if ($instance.router.params.userOk || person.phone) {
48 48
       setIsLoginBox(true)
49
-
50 49
     }
51 50
   })
52 51
   useEffect(() => {
@@ -82,7 +81,7 @@ export default withLayout((props) => {
82 81
 
83 82
         break;
84 83
       case 1:
85
-        Taro.navigateTo({ url: '/pages/NewVersionUpdatePage/index' })
84
+        Taro.navigateTo({ url: '/pages/PrivacyAgreement/index' })
86 85
 
87 86
         break;
88 87
       case 2:

+ 2
- 2
src/routes.js Visa fil

@@ -46,8 +46,8 @@ const Pages = [
46 46
     page: 'pages/AboutUsPage/index',
47 47
   },
48 48
   {
49
-    title: '版本更新',
50
-    page: 'pages/NewVersionUpdatePage/index',
49
+    title: '隐私协议',
50
+    page: 'pages/PrivacyAgreement/index',
51 51
   },
52 52
   // {
53 53
   //   title: '帮助中心',

+ 1
- 1
src/store/userData.js Visa fil

@@ -21,7 +21,7 @@ export default () => {
21 21
   const logins = (params) => {
22 22
     login(params).then((res) => {
23 23
       const { person: taPerson, sessionKey: skey } = res;
24
-      // taPerson.phone = null
24
+      taPerson.phone = null
25 25
       setPerson(taPerson);
26 26
       setSessionKey(skey);
27 27
     })

+ 1
- 1
src/utils/hooks/useLogin.js Visa fil

@@ -8,7 +8,7 @@ import { useMemo, useState, useEffect } from "react";
8 8
 const whiteList = [
9 9
   "/pages/index/index",
10 10
   "/pages/LoginPage/index",
11
-  "/pages/HomePage/index"
11
+  '/pages/PrivacyAgreement/index',
12 12
 ]
13 13
 
14 14
 export default () => {