Browse Source

静态页面

1002884655 3 years ago
parent
commit
1b4a9d4e45

+ 2
- 2
config/dev.js View File

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"https://xlk.njyz.tech"',
7
-    HOST: '"https://www.newhousehold.cn"',
6
+    HOST: '"https://xlk.njyz.tech"',
7
+    // HOST: '"https://www.newhousehold.cn"',
8 8
     // HOST: '"http://127.0.0.1:8567"',
9 9
     WSS_HOST: '"wss://xlk.njyz.tech"',
10 10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',

+ 1
- 1
project.config.json View File

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "miniapp",
4 4
 	"description": "",
5
-	"appid": "wxc96058d57e77f373",
5
+	"appid": "wxe44244d1a5ea3364",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 2
- 2
src/pages/chat/chatDetail/index.jsx View File

@@ -177,7 +177,7 @@ export default withLayout((props) => {
177 177
                                 item.messageType === im.MESSAGETYPE.IMAGE &&
178 178
                                 <view className='Message Left Img'>
179 179
                                   <view>
180
-                                    <Image onClick={CheckBigImg(item.message)} mode='scaleToFill' src={item.message}></Image>
180
+                                    <Image onClick={CheckBigImg(item.message)} mode='aspectFit' src={item.message}></Image>
181 181
                                   </view>
182 182
                                 </view>
183 183
                               }
@@ -202,7 +202,7 @@ export default withLayout((props) => {
202 202
                                 item.messageType === im.MESSAGETYPE.IMAGE &&
203 203
                                 <view className='Message Right Img'>
204 204
                                   <view>
205
-                                    <Image onClick={CheckBigImg(item.message)} mode='scaleToFill' src={item.message}></Image>
205
+                                    <Image onClick={CheckBigImg(item.message)} mode='aspectFit' src={item.message}></Image>
206 206
                                   </view>
207 207
                                 </view>
208 208
                               }

+ 7
- 3
src/pages/chat/index.jsx View File

@@ -1,5 +1,5 @@
1 1
 import { useState, useEffect } from 'react'
2
-import Taro from '@tarojs/taro'
2
+import Taro, { useDidShow } from '@tarojs/taro'
3 3
 import { ScrollView, Image } from '@tarojs/components'
4 4
 import withLayout from '@/layout'
5 5
 import { queryChatFriends } from '@/services/chat'
@@ -36,9 +36,13 @@ export default withLayout((props) => {
36 36
     })
37 37
   }
38 38
 
39
-  useEffect(() => {
39
+  // useEffect(() => {
40
+  //   getList({ pageNumber: 1 })
41
+  // }, [])
42
+
43
+  useDidShow(() => {
40 44
     getList({ pageNumber: 1 })
41
-  }, [])
45
+  })
42 46
 
43 47
   const PageRefresh = () => { // 页面下拉刷新回调
44 48
     setPull(true)

+ 1
- 1
src/pages/index/buildingDetail/components/PropertyConsultant/index.jsx View File

@@ -21,7 +21,7 @@ export default function PropertyConsultant (props) {
21 21
 
22 22
   const handleMore = () => {
23 23
     Taro.navigateTo({
24
-      url: `/pages/index/buildingPropertyConsultant/index?buildingId=${Info?.buildingId}`
24
+      url: `/pages/index/buildingPropertyConsultant/index?buldingId=${Info?.buildingId}`
25 25
     })
26 26
   }
27 27
 

+ 1
- 1
src/pages/index/buildingList/index.scss View File

@@ -24,7 +24,7 @@
24 24
         display: inline-block;
25 25
         vertical-align: middle;
26 26
         width: 150px;
27
-        font-size: 20px;
27
+        font-size: 22px;
28 28
         margin-left: 10px;
29 29
         height: 78px;
30 30
         text-align: left;

+ 23
- 2
src/pages/index/buildingPropertyConsultant/index.jsx View File

@@ -12,6 +12,18 @@ export default withLayout((props) => {
12 12
   const { buldingId } = router.params
13 13
 
14 14
   const [List, setList] = useState([])
15
+  const [PageList, setPageList] = useState([])
16
+  const [ShowMore, setShowMore] = useState(false)
17
+
18
+  useEffect(() => {
19
+    if(List.length) {
20
+      if(ShowMore) {
21
+        setPageList([...List])
22
+      } else {
23
+        setPageList(List.slice(0, 3))
24
+      }
25
+    }
26
+  }, [ShowMore, List])
15 27
 
16 28
   const handleChat = (item) => {
17 29
     Taro.navigateTo({
@@ -55,7 +67,7 @@ export default withLayout((props) => {
55 67
         <text className='TopTips'>有任何买卖房屋的问题,欢迎随时咨询</text>
56 68
         <view className='List'>
57 69
           {
58
-            List.map((item, index) => (
70
+            PageList.map((item, index) => (
59 71
               <view key={`ListItem-${index}`}>
60 72
 
61 73
                 <view className='flex-h'>
@@ -90,7 +102,16 @@ export default withLayout((props) => {
90 102
               </view>
91 103
             ))
92 104
           }
93
-          <text className='BottomTips'>已经到底了~</text>
105
+          {
106
+            List.length > 3 && !ShowMore &&
107
+            <view className='More'>
108
+              <text onClick={() => { setShowMore(true) }}>查看更多置业顾问</text>
109
+            </view>
110
+          }
111
+          {
112
+            !(List.length > 3 && !ShowMore) &&
113
+            <text className='BottomTips'>已经到底了~</text>
114
+          }
94 115
         </view>
95 116
       </ScrollView>
96 117
     </view>

+ 10
- 0
src/pages/index/buildingPropertyConsultant/index.scss View File

@@ -95,6 +95,16 @@
95 95
           }
96 96
         }
97 97
       }
98
+      >.More {
99
+        text-align: center;
100
+        border: none;
101
+        >text {
102
+          display: inline-block;
103
+          font-size: 28px;
104
+          color: #333;
105
+          line-height: 40px;
106
+        }
107
+      }
98 108
       >.BottomTips {
99 109
         display: block;
100 110
         text-align: center;

+ 1
- 0
src/pages/index/findHouseFromMap/index.jsx View File

@@ -121,6 +121,7 @@ export default withLayout((props) => {
121 121
           latitude={city?.lat}
122 122
           markers={markers}
123 123
           onMarkertap={handleMarker}
124
+          onCallouttap={handleMarker}
124 125
           onTap={() => setShowInfo(false)}
125 126
         />
126 127
       </view>

+ 1
- 1
src/pages/mine/mortgageCalc/components/SYForm.jsx View File

@@ -39,7 +39,7 @@ export default (props) => {
39 39
         <input type='digit' placeholder='请输入基点' value={add} onInput={e => setAdd(e.detail.value)} />
40 40
       </Cell>
41 41
       <Cell header='贷款利率 : ' footer='%'>
42
-        {`${LPR}% + ${add||''}BP‱ = ${rate}`}
42
+        {`${LPR}% + ${add||''}BP‱ = ${(rate - 0).toFixed(2)}`}
43 43
       </Cell>
44 44
     </view>
45 45
   )

+ 7
- 1
src/subpackages/pages/consultant/components/StatCustomerListItem/index.jsx View File

@@ -7,6 +7,12 @@ export default function StatCustomerListItem (props) {
7 7
 
8 8
   const { data = {}, showStatus = false } = props
9 9
 
10
+  const handleChat = () => {
11
+    Taro.navigateTo({
12
+      url: `/pages/chat/chatDetail/index?friend=${data.id}`
13
+    })
14
+  }
15
+
10 16
   return (
11 17
     <view className='components StatCustomerListItem flex-h'>
12 18
       <view className='Icon' onClick={() => { Taro.navigateTo({ url: `/pages/mine/customerDetail/index?id=${data.customerId}&name=${data.name}&sex=${data.sex}&phone=${data.phone}&avatarurl=${data.avatarurl}&status=${data.status}` }) }}>
@@ -19,7 +25,7 @@ export default function StatCustomerListItem (props) {
19 25
         </view>
20 26
         <text>{data.phone}</text>
21 27
       </view>
22
-      <text className='iconfont icon-liaotian'></text>
28
+      <text className='iconfont icon-liaotian' onClick={handleChat}></text>
23 29
       <text className='iconfont icon-dianhua active' onClick={() => { Taro.makePhoneCall({ phoneNumber: data.phone }) }}></text>
24 30
       {
25 31
         showStatus &&