1007395918@qq.com 5 år sedan
förälder
incheckning
6c642c92b9

+ 1
- 0
src/app.js Visa fil

@@ -119,6 +119,7 @@ class App extends Component {
119 119
         pages: [
120 120
           'pages/houseList/index',
121 121
           'pages/detail/index',
122
+          'pages/detail/resultPage',
122 123
         ],
123 124
       }
124 125
     ],

Binär
src/onlineSelling/assets/fail2.png Visa fil


Binär
src/onlineSelling/assets/going.png Visa fil


Binär
src/onlineSelling/assets/location.png Visa fil


Binär
src/onlineSelling/assets/success.png Visa fil


+ 12
- 4
src/onlineSelling/pages/detail/index.js Visa fil

@@ -61,6 +61,11 @@ export default class Index extends Component {
61 61
     console.log(this.props.userInfo, "this.props")
62 62
     return true
63 63
   }
64
+  chooseBtn() {
65
+    Taro.navigateTo({
66
+      url: '/onlineSelling/pages/detail/resultPage'
67
+    })
68
+  }
64 69
 
65 70
 
66 71
   render() {
@@ -79,8 +84,11 @@ export default class Index extends Component {
79 84
         }
80 85
 
81 86
         <View className='detail'>
82
-          <Image className="cover-img" mode="aspectFill" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1581369637322&di=6065c2aee90f790b00d0c815f465ebc5&imgtype=0&src=http%3A%2F%2Fcyzs97.com%2FUploads%2FEditor%2FPicture%2F2018-10-18%2F5bc8330f2d06f.jpg"></Image>
83
-
87
+          <View className='detail-top'>
88
+            <Image className="norecord-img" mode="aspectFill" src={require('../../assets/norecord.png')}></Image>
89
+            <View className="norecord-text">暂无户型信息</View>
90
+            {/* <Image className="cover-img" mode="aspectFill" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1581369637322&di=6065c2aee90f790b00d0c815f465ebc5&imgtype=0&src=http%3A%2F%2Fcyzs97.com%2FUploads%2FEditor%2FPicture%2F2018-10-18%2F5bc8330f2d06f.jpg"></Image> */}
91
+          </View>
84 92
           <ScrollView
85 93
             enableBackToTop
86 94
             className="wrap"
@@ -100,7 +108,7 @@ export default class Index extends Component {
100 108
                   <Text style="margin-left:20rpx"> 套内<Text style="color:#FE1C1C">270</Text>m²</Text>
101 109
                 </View>
102 110
                 <View className="address">
103
-                  XX嘉园1号楼2单元3楼303号
111
+                  <Image className="location-icon" src={require('../../assets/location.png')}></Image> XX嘉园1号楼2单元3楼303号
104 112
               </View>
105 113
                 <View className="date">
106 114
                   预选时间:2/12 12:23:33--2/13 12:23:34
@@ -113,7 +121,7 @@ export default class Index extends Component {
113 121
                 已有12人预选此房源,快快预选认筹~
114 122
               </View>
115 123
               <View style="padding: 0 30rpx;">
116
-                <View className="choose-btn">
124
+                <View className="choose-btn" onClick={()=>this.chooseBtn()}>
117 125
                   预选此房源
118 126
               </View>
119 127
                 <View className="close-btn">

+ 62
- 5
src/onlineSelling/pages/detail/index.scss Visa fil

@@ -4,12 +4,28 @@
4 4
   position: relative;
5 5
   width: 100%;
6 6
   font-weight: 300;
7
-  .cover-img{
7
+  background-color: #F8F8F8;
8
+  .detail-top{
8 9
     width:100%;
9 10
     height:600px;
10 11
     position: fixed;
11 12
     top: 0;
13
+    text-align: center;
14
+    .cover-img{
15
+      width:100%;
16
+      height:100%;
17
+    }
18
+    .norecord-img{
19
+      width:280px;
20
+      height:220px;
21
+      margin: 140px auto 4px auto;
22
+    }
23
+    .norecord-text{
24
+     font-size: 28px;
25
+     color: #999;
26
+    }
12 27
   }
28
+ 
13 29
   .wrap {
14 30
     padding-top: 570px;
15 31
     background: transparent;
@@ -53,11 +69,21 @@
53 69
       color: #666;
54 70
       font-weight: 300;
55 71
       margin-bottom: 10px;
72
+      display: flex;
73
+      align-items: center;
74
+      margin: 0;
75
+      line-height: 60px;
76
+      .location-icon{
77
+        width:40px;
78
+        height:40px;
79
+        margin-left: -6px;
80
+        margin-right: 6px;
81
+      }
56 82
     }
57 83
     .date{
58 84
       font-size: 22px;
59 85
       color: #999;
60
-      line-height: 1.8;
86
+      line-height: 1.7;
61 87
     }
62 88
     .num{
63 89
       font-size: 26px;
@@ -76,8 +102,7 @@
76 102
       background-color: $primary-color;
77 103
       line-height: 94px;
78 104
       border-radius:10px;
79
-      text-align: center;
80
-      
105
+      text-align: center; 
81 106
     }
82 107
     .close-btn{
83 108
       color: $primary-color;
@@ -86,7 +111,39 @@
86 111
       line-height: 94px;
87 112
       border-radius:10px;
88 113
       text-align: center;
89
-      margin: 40px 0 80px 0;
114
+      margin: 40px 0;
90 115
     }
91 116
   }
92 117
 }
118
+
119
+
120
+.result{
121
+  background-color: #fff;
122
+  height: 100vh;
123
+  width: 100vw;
124
+  position: relative;
125
+  text-align: center;
126
+  padding-top: 20vh;
127
+  font-weight: 300;
128
+  .result-img{
129
+    width:168px;
130
+    height:168px;
131
+  }
132
+  .status{
133
+    font-size: 36px;
134
+    color: #333;
135
+    line-height: 1.8;
136
+  }
137
+  .tip{
138
+    font-size: 34px;
139
+    color: #999;
140
+  }
141
+  .contact{
142
+    position: absolute;
143
+    bottom: 8vh;
144
+    font-size: 36px;
145
+    color: #3DE344;
146
+    left: 50%;
147
+    margin-left: -108px;
148
+  }
149
+}

+ 43
- 0
src/onlineSelling/pages/detail/resultPage.js Visa fil

@@ -0,0 +1,43 @@
1
+import Taro, { Component } from '@tarojs/taro';
2
+import './index.scss'
3
+import { connect } from '@tarojs/redux'
4
+import ready from '@/utils/ready'
5
+
6
+@connect(
7
+  ({ user }) => ({ ...user })
8
+)
9
+
10
+export default class Index extends Component {
11
+  config = {
12
+    navigationBarTitleText: '预选结果',
13
+  }
14
+
15
+  state = {
16
+    status: 2,
17
+  }
18
+
19
+  componentWillMount() {
20
+
21
+    ready.queue(() => {
22
+
23
+
24
+    })
25
+  }
26
+
27
+
28
+  render() {
29
+    const { status } = this.state
30
+    return (
31
+      <View className="result">
32
+        {status == 1 && <Image className="result-img" src={require('../../assets/success.png')}></Image>}
33
+        {status == 2 && <Image className="result-img" src={require('../../assets/going.png')}></Image>}
34
+        {status == 3 && <Image className="result-img" src={require('../../assets/fail2.png')}></Image>}
35
+        <View className="status">{status == 1 ? '预选成功' : status == 2 ? '正在处理' : '预选失败'}</View>
36
+        <View className="tip">已提交申请,等待系统处理</View>
37
+
38
+        <View className="contact">联系置业顾问</View>
39
+      </View>
40
+
41
+    );
42
+  }
43
+}