瀏覽代碼

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

张延森 5 年之前
父節點
當前提交
d9edd37bac

+ 4
- 4
config/prod.js 查看文件

@@ -5,10 +5,10 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://192.168.2.54:8080"',
7 7
     // WSS_HOST: '"ws://192.168.2.54:8080"',
8
-    // HOST: '"https://dev.pawoma.cn"',// 新测试
9
-    // WSS_HOST: '"wss://dev.pawoma.cn"',
10
-    HOST: '"https://lt.pawoma.cn"',
11
-    WSS_HOST: '"wss://lt.pawoma.cn"',
8
+    HOST: '"https://dev.pawoma.cn"',// 新测试
9
+    WSS_HOST: '"wss://dev.pawoma.cn"',
10
+    // HOST: '"https://lt.pawoma.cn"',
11
+    // WSS_HOST: '"wss://lt.pawoma.cn"',
12 12
     Version: 'V3.5.12'
13 13
   },
14 14
   weapp: {},

+ 2
- 2
project.config.json 查看文件

@@ -1,8 +1,8 @@
1 1
 {
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4
-	"description": "知与行互动",
5
-	"appid": "wxd6f47a9bb3052175",
4
+	"description": "知与行联调",
5
+	"appid": "wxd9ee3a9480a4e544",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 1
- 1
src/app.js 查看文件

@@ -125,12 +125,12 @@ class App extends Component {
125 125
         root: "onlineSelling",
126 126
         pages: [
127 127
           'pages/houseList/index',
128
+          'pages/raiseMoney/index',
128 129
           'pages/live/index',
129 130
           'pages/help/index',
130 131
           'pages/records/index',
131 132
           'pages/detail/index',
132 133
           'pages/detail/resultPage',
133
-          'pages/selectionRecord/index',
134 134
           'pages/screenHouse/index',
135 135
         ],
136 136
       }

+ 1
- 1
src/onlineSelling/components/HouseGrid/Unit.js 查看文件

@@ -13,7 +13,7 @@ export default class Unit extends Component {
13 13
     } else {
14 14
       item.noshow = false
15 15
     }
16
-    this.setState({})
16
+    this.setState({})  // 强制页面刷新
17 17
   }
18 18
   render() {
19 19
     const { termName, blockName, unitName, noshow = false, floorList = [] } = this.props.dataset || {}

+ 46
- 0
src/onlineSelling/components/RaiseHouse/index.js 查看文件

@@ -0,0 +1,46 @@
1
+import { View, Image, Text } from "@tarojs/components";
2
+import { transferImage } from '@/utils/tools'
3
+import dayjs from 'dayjs'
4
+
5
+import './index.scss'
6
+
7
+export default function RaiseHouse(props) {
8
+  const {
9
+    buildingName,
10
+    termname,
11
+    blockName,
12
+    unitName,
13
+    roomName,
14
+    price,
15
+    createDate,
16
+    buildingImgList = [],
17
+  } = props.summary || {}
18
+
19
+  const title = `${buildingName} ${termname||''} ${blockName} ${unitName} ${roomName}`
20
+  const thumb = (buildingImgList || []).length
21
+  const showDT = dayjs(createDate).format('YYYY/MM/DD')
22
+  const wanY = Number(price)
23
+
24
+  return (
25
+    <View className="raisehouse">
26
+      <View className="head">
27
+        {thumb ? <Image className="thumb" src={transferImage((buildingImgList)[0].url)} mode="aspectFit" /> :
28
+          <Text style="font-size:26rpx;color:#666">暂无户型图</Text>
29
+        }
30
+      </View>
31
+      <View className="body">
32
+        <View className="apartment">A户型</View>
33
+        <View className="price">现价234万</View>
34
+        <View className="title">XX嘉苑 1号楼 2单元 3楼 303号</View>
35
+        <View className="subtitle">
36
+          <Text>建筑面积约</Text>
37
+          <Text className="red">{wanY + 'm²' || '待定'}</Text>
38
+        </View>
39
+        <View className="subtitle">
40
+          <Text>使用面积约</Text>
41
+          <Text className="red">{wanY + 'm²' || '待定'}</Text>
42
+        </View>
43
+      </View>
44
+    </View>
45
+  )
46
+}

+ 65
- 0
src/onlineSelling/components/RaiseHouse/index.scss 查看文件

@@ -0,0 +1,65 @@
1
+.raisehouse {
2
+  width: 690px;
3
+  height: 250px;
4
+  background:#fff;
5
+  border-radius: 8px;
6
+  display: flex;
7
+  margin: 16px 30px;
8
+  box-shadow: 0 4px 15px 1px rgba(0, 0, 0, 0.12);
9
+  font-weight: 400;
10
+
11
+  .head {
12
+    width: 250px;
13
+    flex: none;
14
+    border-right: 2px solid rgba(0, 0, 0, 0.04);
15
+    padding: 20px;
16
+    display: flex;
17
+    align-items: center;
18
+    justify-content: center;
19
+
20
+    .thumb {
21
+      width: 100%;
22
+      height: 100%;
23
+    }
24
+  }
25
+
26
+  .body {
27
+    width: 438px;
28
+    flex: none;
29
+    position: relative;
30
+    line-height: 40px;
31
+    padding: 20px 16px;
32
+
33
+    .apartment {
34
+      font-size: 26px;
35
+      color: #FE1C1C;
36
+      font-weight: 700;
37
+    }
38
+
39
+    .price {
40
+      font-size: 24px;
41
+      font-weight: 700;
42
+      color: #FE1C1C;
43
+      line-height: 1.8;
44
+    }
45
+    .title {
46
+      font-size: 26px;
47
+      font-weight: bold;
48
+      color: #333;
49
+      line-height: 1.8;
50
+    }
51
+
52
+    .subtitle {
53
+      font-size: 28px;
54
+      color:#333;
55
+      line-height: 1.6;
56
+
57
+    }
58
+  }
59
+
60
+  .red {
61
+    color: #FF3C3C;
62
+    margin: 0 6px;
63
+  }
64
+
65
+}

+ 5
- 8
src/onlineSelling/pages/detail/index.js 查看文件

@@ -136,7 +136,9 @@ export default class Index extends Component {
136 136
     }
137 137
 
138 138
   }
139
-
139
+  toRaiseMoney(){
140
+    Taro.navigateTo({ url: `/onlineSelling/pages/raiseMoney/index` })
141
+  }
140 142
 
141 143
 
142 144
   render() {
@@ -213,17 +215,12 @@ export default class Index extends Component {
213 215
                     取消预选
214 216
                   </View>
215 217
                 }
216
-                <View className="close-btn">
217
-                  认筹功能未开放
218
+                <View className="close-btn" onClick={() => this.toRaiseMoney()}>
219
+                  认筹此房源
218 220
               </View>
219 221
               </View>
220
-
221
-
222 222
             </View>
223 223
           </ScrollView>
224
-
225
-
226
-
227 224
         </View>
228 225
 
229 226
       </Block >

+ 32
- 0
src/onlineSelling/pages/raiseMoney/index.js 查看文件

@@ -0,0 +1,32 @@
1
+import Taro, { Component } from '@tarojs/taro'
2
+import { View } from '@tarojs/components'
3
+import './index.scss'
4
+
5
+export default class raiseMoney extends Component {
6
+  config = {
7
+    navigationBarTitleText: '认筹确认'
8
+  }
9
+
10
+  render() {
11
+
12
+    return (
13
+      <View className="raiseMoney">
14
+        <View className="top-con">
15
+          <View>确认房源</View>
16
+          <View className="right-icon1" ></View>
17
+          <View>阅读协议</View>
18
+          <View className="right-icon1" ></View>
19
+          <View>填写资料</View>
20
+          <View className="right-icon1" ></View>
21
+          <View>缴纳定金</View>
22
+          <View className="right-icon1" ></View>
23
+          <View>认筹结果</View>
24
+          
25
+       
26
+        </View>
27
+
28
+      </View>
29
+    )
30
+  }
31
+
32
+}

+ 35
- 0
src/onlineSelling/pages/raiseMoney/index.scss 查看文件

@@ -0,0 +1,35 @@
1
+.raiseMoney{
2
+  .top-con{
3
+    display: flex;
4
+    align-items: center;
5
+    padding: 30px;
6
+    .right-icon1{
7
+      width:11px;
8
+      height:11px;
9
+      border-top: 1px solid rgba(0,0,0,0.4);
10
+      border-right: 1px solid rgba(0,0,0,0.4);
11
+      transform:rotate(45deg);
12
+      display: inline-block;
13
+    }
14
+    .right-icon2{
15
+      width:14px;
16
+      height:14px;
17
+      border-top: 1px solid rgba(0,0,0,0.7);
18
+      border-right: 1px solid rgba(0,0,0,0.4);
19
+      transform:rotate(45deg);
20
+      display: inline-block;
21
+      margin-left: -2px;
22
+    }
23
+    .right-icon3{
24
+      width:17px;
25
+      height:17px;
26
+      border-top: 1px solid rgba(0,0,0,7);
27
+      border-right: 1px solid rgba(0,0,0,1);
28
+      transform:rotate(45deg);
29
+      display: inline-block;
30
+      margin-left: -2px;
31
+    }
32
+    
33
+  }
34
+  
35
+}

+ 0
- 105
src/onlineSelling/pages/selectionRecord/index.js 查看文件

@@ -1,105 +0,0 @@
1
-import Taro, { Component } from '@tarojs/taro';
2
-import './index.scss'
3
-import HouseCard from '../../components/HouseCard'
4
-import Blank from '../../components/Blank'
5
-import { AtTabs, AtTabsPane } from 'taro-ui'
6
-import "taro-ui/dist/style/components/tabs.scss"
7
-import { connect } from '@tarojs/redux'
8
-
9
-
10
-@connect(({ user, city }) => ({ user, city }))
11
-export default class selectionRecord extends Component {
12
-
13
-  config = {
14
-    navigationBarTitleText: '选房记录'
15
-  }
16
-
17
-  state = {
18
-    current: 0,
19
-    recordId: undefined, // 埋点ID
20
-    testData: [
21
-      {
22
-        preselectionRecordId: 1,
23
-        buildingName: '艾菲国际二期',
24
-        blockName: '6栋',
25
-        unitName: '一单元',
26
-        roomName: '1502',
27
-        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
28
-        price: '234万',
29
-        createDate: '2020-02-8',
30
-        status: 1
31
-      },
32
-      {
33
-        preselectionRecordId: 2,
34
-        buildingName: '艾菲国际二期',
35
-        blockName: '6栋',
36
-        unitName: '一单元',
37
-        roomName: '1502',
38
-        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
39
-        price: '234万',
40
-        createDate: '2020-02-9',
41
-        status: 0
42
-      },
43
-      {
44
-        preselectionRecordId: 3,
45
-        buildingName: '艾菲国际二期',
46
-        blockName: '6栋',
47
-        unitName: '二单元',
48
-        roomName: '1503',
49
-        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
50
-        price: '234万',
51
-        createDate: '2020-02-10',
52
-        status: 1
53
-      },
54
-      {
55
-        preselectionRecordId: 4,
56
-        buildingName: '艾菲国际二期',
57
-        blockName: '6栋',
58
-        unitName: '二单元',
59
-        roomName: '1504',
60
-        aerialViewImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1573738541467-25667811-b020-4c1f-b57d-e65a410d6fbd3103856559286073565.jpg',
61
-        price: '234万',
62
-        createDate: '2020-02-11',
63
-        status: 0
64
-      },
65
-    ]
66
-  }
67
-
68
-  componentWillMount() {
69
-
70
-  }
71
-
72
-
73
-  handleClick(value) {
74
-    this.setState({
75
-      current: value
76
-    })
77
-  }
78
-
79
-
80
-  render() {
81
-    const { testData } = this.state
82
-    return (
83
-      <View style="height:100vh">
84
-        <AtTabs className="selectionRecord" scroll current={this.state.current} tabList={[{ title: '预选记录' }, { title: '认筹记录' }]} onClick={this.handleClick.bind(this)}>
85
-          <AtTabsPane current={this.state.current} index={0} >
86
-            {
87
-              testData.map((item) => {
88
-                return (
89
-                  <View className="carditem" key={item.preselectionRecordId}>
90
-                    <HouseCard summary={item} />
91
-                  </View>
92
-                )
93
-              })
94
-            }
95
-          </AtTabsPane>
96
-          <AtTabsPane current={this.state.current} index={1}>
97
-            <View>
98
-              <Blank tips="暂无认筹记录" />
99
-            </View>
100
-          </AtTabsPane>
101
-        </AtTabs>
102
-      </View>
103
-    )
104
-  }
105
-}

+ 0
- 28
src/onlineSelling/pages/selectionRecord/index.scss 查看文件

@@ -1,28 +0,0 @@
1
-@import "@/styles/mixins.scss";
2
-@import "@/styles/theme.scss";
3
-.selectionRecord{
4
-    .at-tabs__header{
5
-      width: 86%;
6
-      background-color: #fff;
7
-      box-shadow:0px 4px 12px 0px rgba(0,0,0,0.12);
8
-      margin: 20px auto 10px auto;
9
-      border-radius: 44px;
10
-    }
11
-    .at-tabs__item{
12
-      width:50%;
13
-      flex: none;
14
-      color: #333;
15
-      font-size: 28px;
16
-    }
17
-    .at-tabs__item--active{
18
-      color: $primary-color;
19
-      background-color: #f4f4f4;
20
-    }
21
-    .at-tabs__item-underline{
22
-      height: 0;
23
-    }
24
-    .at-tabs__underline{
25
-      display: none;
26
-    }
27
-  
28
-}