吃个甘蔗嚼一年 3 years ago
parent
commit
f71727c076

+ 2
- 2
src/components/Popup/index.jsx View File

@@ -3,11 +3,11 @@ import './style.less'
3 3
 
4 4
 export default (props) => {
5 5
   const { show, mask = true, onClose, maskClosable } = props
6
-  const onClose3=()=>{
6
+  const onClose3 = () => {
7 7
     console.log('3333333333333333333333')
8 8
   }
9 9
   return (
10
-    <mp-dialog extClass='x-popup' buttons={[]} show={show} mask={mask} maskClosable={maskClosable} onClose={onClose3}>
10
+    <mp-dialog extClass='x-popup' buttons={[]} show={show} mask={mask} maskClosable={maskClosable} onClose={onClose}>
11 11
       {props.children}
12 12
     </mp-dialog>
13 13
   )

+ 2
- 2
src/components/toggleRole/ToggleRole.jsx View File

@@ -13,7 +13,7 @@ import { useModel } from '@/store'
13 13
 
14 14
 
15 15
 export default (props) => {
16
-  const { showCutover, onClose, role } = props
16
+  const { showCutover, onClose, maskClosable, role } = props
17 17
   const { getRole } = useModel('person')
18 18
   const goToPerson = () => {
19 19
     getRole('normal')
@@ -29,7 +29,7 @@ export default (props) => {
29 29
     // console.log('2222222222222222222')
30 30
   }
31 31
   return (
32
-    <Popup show={showCutover} onClose={onClose2}>
32
+    <Popup show={showCutover} maskClosable={maskClosable} onClose={onClose}>
33 33
       <view className='User-box-sths' >
34 34
         <view className='User-box-selectUser'>请选择身份:</view>
35 35
         <view className='User-box-tourist' onClick={goToPerson}>

+ 0
- 6
src/pages/MineUserAll/Collect/index.jsx View File

@@ -15,7 +15,6 @@ import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
15 15
 import position from '@/assets/icons/GuideCheck/position_logo.png'
16 16
 import starOn from '@/assets/icons/GuideCheck/starOn.png'
17 17
 import starOff from '@/assets/icons/GuideCheck/starOff.png'
18
-import AttractionsCollect from '@/components/CollectList/AttractionsCollect'
19 18
 import FoodCollect from '@/components/CollectList/FoodCollect'
20 19
 
21 20
 
@@ -57,12 +56,7 @@ export default withLayout((props) => {
57 56
 
58 57
 
59 58
       </view>
60
-      {/* {
61
-        collectContent.map((item, index) => {
62
-          return <AttractionsCollect key={(index)} item={item} />
63
-        })
64 59
 
65
-      } */}
66 60
       <view className='foot'>
67 61
         已经到底了~
68 62
       </view>

+ 1
- 1
src/pages/index/tabs/Mine.jsx View File

@@ -113,7 +113,7 @@ export default (props) => {
113 113
 
114 114
       <view className='User-box'>
115 115
         {/* 身份切换 */}
116
-        <ToggleRole showCutover={showCutover} onClose={onClose} role='normal' />
116
+        <ToggleRole showCutover={showCutover} maskClosable={showCutover} onClose={onClose} role='normal' />
117 117
         <view className='User-info'>
118 118
           <view className='User-photos-box'>
119 119
             <image src={person.avatar || DefaultImage} className='User-photos' />