Quellcode durchsuchen

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

张延森 vor 5 Jahren
Ursprung
Commit
c03626da7b

+ 1
- 0
src/app.js Datei anzeigen

@@ -132,6 +132,7 @@ class App extends Component {
132 132
           'pages/detail/index',
133 133
           'pages/detail/resultPage',
134 134
           'pages/screenHouse/index',
135
+          'pages/chooseConsultant/index',
135 136
           'pages/protocol/index',
136 137
           'pages/raiseProfile/index',
137 138
         ],

+ 1
- 1
src/onlineSelling/components/Picker/index.js Datei anzeigen

@@ -23,7 +23,7 @@ export default function HouseCard(props) {
23 23
             </View>
24 24
           </Picker>
25 25
         </View>
26
-        <View className="right-icon"></View>
26
+        <View className="choose">请选择</View>
27 27
       </View>
28 28
     </View>
29 29
   )

+ 3
- 7
src/onlineSelling/components/Picker/index.scss Datei anzeigen

@@ -21,13 +21,9 @@
21 21
       width: 400px;
22 22
     }
23 23
   }
24
-  .right-icon{
25
-    width:18px;
26
-    height:18px;
27
-    border-top: 2px solid #999;
28
-    border-right: 2px solid #999;
29
-    transform:rotate(45deg);
30
-    float: right;
24
+  .choose{
25
+   font-size: 24px;
26
+   color: #E4A938;
31 27
   }
32 28
 }
33 29
 

+ 35
- 0
src/onlineSelling/pages/chooseConsultant/index.js Datei anzeigen

@@ -0,0 +1,35 @@
1
+import Taro, { Component } from '@tarojs/taro'
2
+import { View } from '@tarojs/components'
3
+import ConsultantItem from './item'
4
+import './index.scss'
5
+
6
+
7
+export default class ConsultantList extends Component {
8
+  config = {
9
+    navigationBarTitleText: '选择置业顾问'
10
+  }
11
+ 
12
+  render() {
13
+    const list = [
14
+      {name:'哈哈哈1',phone:'138541369741',avatar:'http://img5.imgtn.bdimg.com/it/u=3299138037,391931528&fm=26&gp=0.jpg'},
15
+      {name:'哈哈哈2',phone:'131600514722',avatar:'http://pic1.zhimg.com/50/v2-03d53b468e27ddc99f1ffcd17eec9700_hd.jpg'},
16
+      {name:'哈哈哈3',phone:'131600514722',avatar:'http://img0.imgtn.bdimg.com/it/u=3024308660,1355431406&fm=26&gp=0.jpg'},
17
+    ]
18
+    return (
19
+      <View className="consultantList">
20
+          {
21
+            list.map((item,index) => (
22
+              <ConsultantItem
23
+                data={item}
24
+                key={index+'card'}
25
+                onClick={this.handleItemClick}>
26
+              </ConsultantItem>
27
+            ))
28
+          }
29
+        {/* <ConsultantItem consultantList={list}/> */}
30
+    
31
+      </View>
32
+    )
33
+  }
34
+
35
+}

+ 49
- 0
src/onlineSelling/pages/chooseConsultant/index.scss Datei anzeigen

@@ -0,0 +1,49 @@
1
+.consultantList{
2
+  background-color: #F8F8F8;
3
+  min-height: 100vh;
4
+  padding-top: 20px;
5
+}
6
+.card-item{
7
+  width: 100vw;
8
+  height:156px;
9
+  background-color: #fff;
10
+  padding: 30px;
11
+  margin-bottom: 20px;
12
+  display: flex;
13
+  align-items: center;
14
+  justify-content: space-between;
15
+  position: relative;
16
+  .avatar{
17
+    width:92px;
18
+    height:92px;
19
+    border-radius:50%;
20
+  }
21
+  .name{
22
+    font-size: 32px;
23
+    color: #333;
24
+    display: flex;
25
+    align-items: center;
26
+    position: absolute;
27
+    left: 134px;
28
+    top:30px;
29
+    .card{
30
+      width:48px;
31
+      height:35px;
32
+      margin-left: 18px;
33
+      border-radius: 6px;
34
+    }
35
+  }
36
+  .phone{
37
+    font-size: 28px;
38
+    color: #666;
39
+    position: absolute;
40
+    left: 134px;
41
+    bottom:30px;
42
+    font-weight:300;
43
+  }
44
+  .home{
45
+    font-size: 28px;
46
+    color: #333;
47
+  }
48
+ 
49
+}

+ 19
- 0
src/onlineSelling/pages/chooseConsultant/item.js Datei anzeigen

@@ -0,0 +1,19 @@
1
+import Taro, { Component } from '@tarojs/taro';
2
+import './index.scss'
3
+
4
+
5
+export default class Item extends Component {
6
+
7
+
8
+  render() {
9
+    const { data } = this.props
10
+    return (
11
+      <View className="card-item">
12
+        <Image src={data.photo || data.avatar} className='avatar' ></Image>
13
+        <View className="name">{data.name}<Image src={require('@/assets/person/card.png')} className='card' ></Image></View>
14
+        <View className="phone">{data.phone}</View>
15
+        <View className="home">主页</View>
16
+      </View >
17
+    );
18
+  }
19
+}

+ 13
- 12
src/onlineSelling/pages/records/index.js Datei anzeigen

@@ -68,10 +68,11 @@ export default class Records extends Component {
68 68
     const { recordList, noRecord } = this.state
69 69
     return (
70 70
       <Block>
71
-        <CheckboxGroup onChange={this.CheckboxChange}>
72
-          {
73
-            noRecord ? <Blank style="margin:14vh 0 32vh 0" tips="暂无预选记录" /> :
74
-              <ScrollView scrollY>
71
+        <ScrollView scrollY className="container">
72
+          <CheckboxGroup onChange={this.CheckboxChange}>
73
+            {
74
+              noRecord ? <Blank style="margin:14vh 0 32vh 0" tips="暂无预选记录" /> :
75
+                <View>
75 76
                 {
76 77
                   recordList.map((item) => {
77 78
                     return (
@@ -86,13 +87,13 @@ export default class Records extends Component {
86 87
                     )
87 88
                   })
88 89
                 }
89
-              </ScrollView >
90
+                </View>
91
+            }
92
+          </CheckboxGroup>
93
+          <Statement />
94
+        </ScrollView >
90 95
 
91
-          }
92
-        </CheckboxGroup>
93
-        <Statement />
94
-
95
-        {/* <View className="raise-btn">认筹房源</View> */}
96
+        <View className="raise-box"> <View className="raise-btn">认筹房源</View></View>
96 97
 
97 98
       </Block>
98 99
     )
@@ -235,9 +236,9 @@ export default class Records extends Component {
235 236
 
236 237
     return (
237 238
       <View className="records" >
238
-        {this.renderBar()}
239
+        {/* {this.renderBar()} */}
239 240
         {/* {this.renderRaiseScreen()} */}
240
-        {/* {this.renderPreselectScreen()} */}
241
+        {this.renderPreselectScreen()}
241 242
 
242 243
 
243 244
       </View >

+ 18
- 11
src/onlineSelling/pages/records/index.scss Datei anzeigen

@@ -44,17 +44,24 @@
44 44
     padding-left: 30px;
45 45
     margin-bottom: 20px;
46 46
   }
47
-  .raise-btn{
48
-    width: 690px;
49
-    height:94px;
50
-    line-height: 94px;
51
-    background:rgba(187,156,121,1);
52
-    border-radius:10px;
53
-    color: #fff;
54
-    font-size: 36px;
55
-    text-align: center;
56
-    margin-bottom: 20px;
57
-  }  
47
+  .container {
48
+    height: calc(100vh - 254px);
49
+  }
50
+  .raise-box{
51
+    position: fixed;
52
+    width: 100vw;
53
+    padding: 30px;
54
+    .raise-btn{
55
+     
56
+      height:94px;
57
+      line-height: 94px;
58
+      background:rgba(187,156,121,1);
59
+      border-radius:10px;
60
+      color: #fff;
61
+      font-size: 36px;
62
+      text-align: center;
63
+    }  
64
+  }
58 65
 }
59 66
 
60 67
 .base-con{