Browse Source

resultPage

1007395918@qq.com 5 years ago
parent
commit
6c642c92b9

+ 1
- 0
src/app.js View File

119
         pages: [
119
         pages: [
120
           'pages/houseList/index',
120
           'pages/houseList/index',
121
           'pages/detail/index',
121
           'pages/detail/index',
122
+          'pages/detail/resultPage',
122
         ],
123
         ],
123
       }
124
       }
124
     ],
125
     ],

BIN
src/onlineSelling/assets/fail2.png View File


BIN
src/onlineSelling/assets/going.png View File


BIN
src/onlineSelling/assets/location.png View File


BIN
src/onlineSelling/assets/success.png View File


+ 12
- 4
src/onlineSelling/pages/detail/index.js View File

61
     console.log(this.props.userInfo, "this.props")
61
     console.log(this.props.userInfo, "this.props")
62
     return true
62
     return true
63
   }
63
   }
64
+  chooseBtn() {
65
+    Taro.navigateTo({
66
+      url: '/onlineSelling/pages/detail/resultPage'
67
+    })
68
+  }
64
 
69
 
65
 
70
 
66
   render() {
71
   render() {
79
         }
84
         }
80
 
85
 
81
         <View className='detail'>
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
           <ScrollView
92
           <ScrollView
85
             enableBackToTop
93
             enableBackToTop
86
             className="wrap"
94
             className="wrap"
100
                   <Text style="margin-left:20rpx"> 套内<Text style="color:#FE1C1C">270</Text>m²</Text>
108
                   <Text style="margin-left:20rpx"> 套内<Text style="color:#FE1C1C">270</Text>m²</Text>
101
                 </View>
109
                 </View>
102
                 <View className="address">
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
               </View>
112
               </View>
105
                 <View className="date">
113
                 <View className="date">
106
                   预选时间:2/12 12:23:33--2/13 12:23:34
114
                   预选时间:2/12 12:23:33--2/13 12:23:34
113
                 已有12人预选此房源,快快预选认筹~
121
                 已有12人预选此房源,快快预选认筹~
114
               </View>
122
               </View>
115
               <View style="padding: 0 30rpx;">
123
               <View style="padding: 0 30rpx;">
116
-                <View className="choose-btn">
124
+                <View className="choose-btn" onClick={()=>this.chooseBtn()}>
117
                   预选此房源
125
                   预选此房源
118
               </View>
126
               </View>
119
                 <View className="close-btn">
127
                 <View className="close-btn">

+ 62
- 5
src/onlineSelling/pages/detail/index.scss View File

4
   position: relative;
4
   position: relative;
5
   width: 100%;
5
   width: 100%;
6
   font-weight: 300;
6
   font-weight: 300;
7
-  .cover-img{
7
+  background-color: #F8F8F8;
8
+  .detail-top{
8
     width:100%;
9
     width:100%;
9
     height:600px;
10
     height:600px;
10
     position: fixed;
11
     position: fixed;
11
     top: 0;
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
   .wrap {
29
   .wrap {
14
     padding-top: 570px;
30
     padding-top: 570px;
15
     background: transparent;
31
     background: transparent;
53
       color: #666;
69
       color: #666;
54
       font-weight: 300;
70
       font-weight: 300;
55
       margin-bottom: 10px;
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
     .date{
83
     .date{
58
       font-size: 22px;
84
       font-size: 22px;
59
       color: #999;
85
       color: #999;
60
-      line-height: 1.8;
86
+      line-height: 1.7;
61
     }
87
     }
62
     .num{
88
     .num{
63
       font-size: 26px;
89
       font-size: 26px;
76
       background-color: $primary-color;
102
       background-color: $primary-color;
77
       line-height: 94px;
103
       line-height: 94px;
78
       border-radius:10px;
104
       border-radius:10px;
79
-      text-align: center;
80
-      
105
+      text-align: center; 
81
     }
106
     }
82
     .close-btn{
107
     .close-btn{
83
       color: $primary-color;
108
       color: $primary-color;
86
       line-height: 94px;
111
       line-height: 94px;
87
       border-radius:10px;
112
       border-radius:10px;
88
       text-align: center;
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 View File

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
+}