浏览代码

静态页面

1002884655 3 年前
父节点
当前提交
f09e410e69

+ 10
- 6
src/assets/css/iconfont.css
文件差异内容过多而无法显示
查看文件


二进制
src/assets/css/iconfont.eot 查看文件


+ 1
- 1
src/assets/css/iconfont.js
文件差异内容过多而无法显示
查看文件


+ 8
- 1
src/assets/css/iconfont.json 查看文件

@@ -1,10 +1,17 @@
1 1
 {
2 2
   "id": "2603904",
3
-  "name": "新联",
3
+  "name": "新联",
4 4
   "font_family": "iconfont",
5 5
   "css_prefix_text": "icon-",
6 6
   "description": "",
7 7
   "glyphs": [
8
+    {
9
+      "icon_id": "22219715",
10
+      "name": "电  话",
11
+      "font_class": "dianhua1",
12
+      "unicode": "e609",
13
+      "unicode_decimal": 58889
14
+    },
8 15
     {
9 16
       "icon_id": "834251",
10 17
       "name": "朋友圈",

+ 2
- 0
src/assets/css/iconfont.svg 查看文件

@@ -14,6 +14,8 @@
14 14
     />
15 15
       <missing-glyph />
16 16
       
17
+      <glyph glyph-name="dianhua1" unicode="&#58889;" d="M512 805.875a421.875 421.875 0 1 0 0-843.75A421.875 421.875 0 1 0 512 805.875zM422.46874982 636.84375027c-20.15624982 3.42187509-37.17187509-3.46875019-63.65624991-20.6249999l-7.59375-4.92187556-6.89062528-4.35937444c-52.50000037-32.43749991-30.32812491-166.12499982 55.3125001-291.46875074 85.35937527-125.06250037 204.14062491-198.18749981 255.93750054-166.21875l17.53124964 10.31250037c22.26562481 13.26562537 34.78125037 24.046875 41.24999982 39.60937491 8.71874973 20.85937537 2.01562482 44.24999991-20.53124973 70.64062536-36.46875037 42.65625009-64.07812491 52.68749991-95.34375 38.4375001a130.40625009 130.40625009 0 0 1-14.29687491-7.68750019l-13.82812482-8.57812527c-10.45312482-6.46875027-42.51562482 24.23437537-80.9531249 80.34375036-37.87499982 55.45312537-54.14062527 95.34375-44.53125046 101.34374936 0.93750018 0.56250027 10.96875 6.65624982 13.78124972 8.4375 39.28125009 24.70312463 45.93749991 51.93750009 15.46875056 109.265625-14.43750019 27.14062527-31.54687482 41.99999963-51.65625037 45.46875064z"  horiz-adv-x="1024" />
18
+      
17 19
       <glyph glyph-name="pengyouquan" unicode="&#58908;" d="M690.31560747 504.55256533L690.31560747 795.20317973c0 0-142.22810027 76.24640853-308.25584747 17.45678507L690.31560747 504.55256533zM717.24247787 333.56273812999996L717.24247787 783.20184427c0 0 168.13875947-76.1961984 215.5219296-261.2940064L717.24247787 333.56273812999996zM626.7887584 202.86770773l310.38978133 291.89168c0 0 54.92016107-89.28906027-26.97926293-291.89168L626.7887584 202.86770773zM468.2980032 165.85949867l419.21498453 0c0 0-50.60754027-137.16778347-231.73874026-193.8005504L468.2980032 165.85949867zM331.4522208 258.45806719999996l0-273.25822933c0 0 108.87650453-69.72344533 295.33653867-22.91005227L331.4522208 258.45806719999996zM88.9281056 244.32388906999995L301.274784 434.8520416l0-433.28694613C301.274784 1.5661866699999791 172.9843872 46.09829013000001 88.9281056 244.32388906999995zM83.54688 274.79821973c0 0-48.5740256 156.73121493 19.36477333 292.85768107l292.06523307 0L83.54688 274.79821973zM121.26130667 598.20445653c0 0 61.44312427 139.30062613 228.49035733 204.66123947l199.3531456-204.66123947L121.26130667 598.20445653z"  horiz-adv-x="1024" />
18 20
       
19 21
       <glyph glyph-name="weixin" unicode="&#58898;" d="M358.51538428 533.53846114c-15.57692315 0-31.18846113-10.38461572-31.18846113-25.96153799 0-15.64615372 15.57692315-26.03076943 31.18846112-26.03076944s26.03076943 10.38461572 26.03076945 25.99615371c0 16.26923057-10.38461572 26.03076943-26.03076945 26.03076943z m211.36153887-150.85384541c-10.38461572 0-20.14615371-11.04230742-20.14615372-20.76923146 0-11.07692315 10.38461572-20.83846113 20.14615372-20.83846112 15.57692315 0 25.99615371 10.38461572 25.9961537 20.80384628 0 10.38461572-10.38461572 20.80384628-25.9961537 20.80384629z m-66.98076944 98.86153798c15.57692315 0 25.99615371 11.07692315 25.99615371 25.99615371 0 15.61153886-10.38461572 26.03076943-25.9961537 26.03076943-15.57692315 0-31.22307685-10.38461572-31.22307687-26.03076943 0-15.57692315 15.61153886-25.99615371 31.22307687-25.99615371z m180.13846202-98.86153798c-10.38461572 0-20.18076943-11.04230742-20.18076945-20.76923146 0-11.07692315 10.41923057-20.83846113 20.18076945-20.83846112 15.57692315 0 25.99615371 10.38461572 25.9961537 20.80384628 0 10.38461572-10.38461572 20.80384628-25.9961537 20.80384629zM510.68461573 831.40384629C262.94230742 831.40384629 62 630.46153886 62 382.68461573 62 134.94230742000002 262.94230742-66 510.68461573-66c247.77692315 0 448.71923057 200.94230742 448.71923056 448.68461573C959.40384629 630.46153886 758.46153886 831.40384629 510.68461573 831.40384629z m-85.1538463-563.81538516c-26.03076943 0-46.83461572 5.19230742-71.55 11.07692315l-71.55-36.41538428 20.18076943 63.06923057c-51.36923057 36.41538428-82.59230742 83.87307685-82.59230829 140.46923056 0 99.48461572 92.97692315 177.50769258 205.47692314 177.50769258 100.8 0 189.9-62.41153887 207.45-146.31923056a196.51153886 196.51153886 0 0 1-19.48846113 1.31538427c-97.54615371-1.31538427-174.28846113-74.76923057-174.28846201-165.80769169 0-14.98846113 2.59615372-29.28461573 6.50769258-43.61538516a209.73461572 209.73461572 0 0 0-20.18076944-1.28076944z m304.30384629-72.83076855l15.611538-52.02692315-55.9038463 31.22307685c-20.18076943-5.19230742-40.98461573-10.38461572-61.78846113-10.38461571-98.20384629 0-175.56923057 67.60384629-175.56923057 151.51153886-0.69230742 83.21538428 76.70769258 150.85384628 174.25384542 150.8538463 93.01153887 0 174.94615372-68.26153887 174.94615458-151.51153888 0-46.83461572-30.56538427-88.44230742-71.55-119.66538427z"  horiz-adv-x="1024" />

二进制
src/assets/css/iconfont.ttf 查看文件


二进制
src/assets/css/iconfont.woff 查看文件


二进制
src/assets/css/iconfont.woff2 查看文件


+ 31
- 0
src/pages/index/buildingDetail/components/FixedCard/index.jsx 查看文件

@@ -0,0 +1,31 @@
1
+import { useState } from 'react'
2
+import { Image } from '@tarojs/components'
3
+import { getImgURL } from '@/utils/image'
4
+import './index.scss'
5
+
6
+export default function FixedCard () {
7
+
8
+  const [Show, setShow] = useState(false)
9
+
10
+  const TriggerShow = (bool) => {
11
+    return () => {
12
+      setShow(bool)
13
+    }
14
+  }
15
+
16
+  return (
17
+    <view className='components FixedCard'>
18
+      <view className='Icon' onClick={TriggerShow(true)}>
19
+        <Image mode='aspectFill' src={null}></Image>
20
+      </view>
21
+      <view className='Name'>
22
+        <text>李双舟</text>
23
+        <text style={{display: Show ? 'block' : 'none'}}>南京云致科技服务有限公司</text>
24
+      </view>
25
+      <text style={{display: Show ? 'inline-block' : 'none'}} className='iconfont icon-liaotian Btn'></text>
26
+      <text style={{display: Show ? 'inline-block' : 'none'}} className='iconfont icon-dianhua1 Btn'></text>
27
+      <text style={{display: Show ? 'inline-block' : 'none'}} className='iconfont icon-guanbi Btn' onClick={TriggerShow(false)}></text>
28
+      <text style={{display: Show ? 'none' : 'inline-block'}} className='iconfont icon-jiantouright'></text>
29
+    </view>
30
+  )
31
+}

+ 62
- 0
src/pages/index/buildingDetail/components/FixedCard/index.scss 查看文件

@@ -0,0 +1,62 @@
1
+.components.FixedCard {
2
+  transition: all .2s ease-out;
3
+  -webkit-transition: all .2s ease-out;
4
+  position: fixed;
5
+  right: 0;
6
+  background: #fff;
7
+  box-shadow: 0 0 6px 6px rgba(0, 0, 0, 0.03);
8
+  z-index: 200;
9
+  padding: 20px 30px;
10
+  bottom: 206px;
11
+  font-size: 0;
12
+  white-space: nowrap;
13
+  border-radius: 94px 0 0 94px;
14
+  >view {
15
+    display: inline-block;
16
+    vertical-align: middle;
17
+    &.Icon {
18
+      width: 54px;
19
+      height: 54px;
20
+      position: relative;
21
+      overflow: hidden;
22
+      border-radius: 100%;
23
+      background: #eee;
24
+      >image {
25
+        width: 100%;
26
+        height: 100%;
27
+      }
28
+    }
29
+    &.Name {
30
+      margin-left: 20px;
31
+      >text {
32
+        font-size: 28px;
33
+        font-weight: bold;
34
+        white-space: nowrap;
35
+        line-height: 32px;
36
+        display: block;
37
+        &:last-child {
38
+          font-weight: normal;
39
+          font-size: 20px;
40
+          line-height: 1;
41
+          color: #202020;
42
+        }
43
+      }
44
+    }
45
+  }
46
+  >text {
47
+    display: inline-block;
48
+    vertical-align: middle;
49
+    font-size: 32px;
50
+    &.Btn {
51
+      font-size: 48px;
52
+      margin-left: 30px;
53
+      color: #1A3B83;
54
+      &.icon-liaotian {
55
+        font-size: 52px;
56
+      }
57
+      &.icon-guanbi {
58
+        color: #333;
59
+      }
60
+    }
61
+  }
62
+}

+ 3
- 0
src/pages/index/buildingDetail/index.jsx 查看文件

@@ -20,6 +20,7 @@ import MarketingActivity from './components/MarketingActivity/index'
20 20
 import LivingActivity from './components/LivingActivity/index'
21 21
 import News from './components/News/index'
22 22
 import Pictures from './components/Pictures/index'
23
+import FixedCard from './components/FixedCard/index'
23 24
 
24 25
 import './index.scss'
25 26
 
@@ -152,6 +153,8 @@ export default withLayout((props) => {
152 153
         onClose={() => setShowPoster(false)}
153 154
         onSuccess={() => setShowPoster(false)}
154 155
       />
156
+
157
+      <FixedCard></FixedCard>
155 158
     </view>
156 159
   )
157 160
 })

+ 3
- 0
src/pages/mine/addCustomer/index.jsx 查看文件

@@ -49,6 +49,9 @@ export default withLayout(() => {
49 49
       fetch({ url: API_RECOMENT_CLIENT, method: 'post', payload: params }).then(() => {
50 50
         Taro.showToast({title: '添加成功', icon: 'none'})
51 51
         Taro.navigateBack({delta: 1})
52
+        setCanSubmit(false)
53
+      }).catch(() => {
54
+        setCanSubmit(false)
52 55
       })
53 56
     }
54 57
   }, [CanSubmit])

+ 26
- 14
src/pages/mine/components/FollowCustomer/index.jsx 查看文件

@@ -15,26 +15,38 @@ export default function FollowCustomer () {
15 15
   const [PullTimer, setPullTimer] = useState(null)
16 16
 
17 17
   const [StatusMenu] = useState([
18
-    { name: '全部状态', id: 1 },
18
+    { name: '全部状态', id: 0 },
19
+    { name: '报备', id: 1 },
19 20
     { name: '到访', id: 2 },
20
-    { name: '签约', id: 3 },
21
-    { name: '认筹', id: 4 }
21
+    { name: '认筹', id: 3 },
22
+    { name: '签约', id: 4 }
22 23
   ])
23
-  const [CurrentStatusId, setCurrentStatusId] = useState(1)
24 24
 
25 25
   const [TimeMenu] = useState([
26 26
     { name: '全部', id: 1 },
27
-    { name: '7天未成交', id: 2 },
28
-    { name: '15天未成交', id: 3 }
27
+    { name: '7天未成交', id: 7 },
28
+    { name: '15天未成交', id: 15 }
29 29
   ])
30
-  const [CurrentTimeId, setCurrentTimeId] = useState(1)
30
+  const [FormData, setFormData] = useState({name: '', status: 0, day: 1})
31 31
 
32 32
   useEffect(() => {
33
-    fetch({ url: `${API_CUSTOMER_LIST}/follow`, method: 'get', payload: { pageNumber, pageSize: 10 } }).then((res) => {
33
+    GetPageList()
34
+  }, [pageNumber])
35
+
36
+  useEffect(() => {
37
+    if(pageNumber === 1) {
38
+      GetPageList()
39
+    } else {
40
+      setPageNumber(1)
41
+    }
42
+  }, [FormData])
43
+
44
+  const GetPageList = () => {
45
+    fetch({ url: `${API_CUSTOMER_LIST}/follow`, method: 'get', payload: { pageNumber, pageSize: 10, ...FormData, day: FormData.day === 1 ? '' : FormData.day } }).then((res) => {
34 46
       setPageList(res.records || [])
35 47
       setHasNextPage(res.current >= res.pages)
36 48
     })
37
-  }, [pageNumber])
49
+  }
38 50
 
39 51
   const PageRefresh = () => { // 页面下拉刷新回调
40 52
     setPull(true)
@@ -42,13 +54,13 @@ export default function FollowCustomer () {
42 54
 
43 55
   const CutStatus = (item) => {
44 56
     return () => {
45
-      setCurrentStatusId(item.id === CurrentStatusId ? null : item.id)
57
+      setFormData({...FormData, status: item.id})
46 58
     }
47 59
   }
48 60
 
49 61
   const CutTime = (item) => {
50 62
     return () => {
51
-      setCurrentTimeId(item.id === CurrentTimeId ? null : item.id)
63
+      setFormData({...FormData, day: item.id})
52 64
     }
53 65
   }
54 66
 
@@ -80,7 +92,7 @@ export default function FollowCustomer () {
80 92
                 <view key={`StatusItem-${index}`} onClick={CutStatus(item)}>
81 93
                   <text>{item.name}</text>
82 94
                   {
83
-                    CurrentStatusId === item.id &&
95
+                    FormData.status === item.id &&
84 96
                     <Image mode='widthFix' src={require('../../../../assets/findHouse-icon1.png')}></Image>
85 97
                   }
86 98
                 </view>
@@ -95,8 +107,8 @@ export default function FollowCustomer () {
95 107
                 <view key={`TimeItem-${index}`} onClick={CutTime(item)}>
96 108
                   <text>{item.name}</text>
97 109
                   {
98
-                    CurrentTimeId === item.id &&
99
-                    <Image mode='widthFix' src={require('../../../../assets/findHouse-icon1.png')}></Image>
110
+                    FormData.day === item.id &&
111
+                    <Image mode='widthFix' src={require('@/assets/findHouse-icon1.png')}></Image>
100 112
                   }
101 113
                 </view>
102 114
               ))

+ 8
- 8
src/pages/mine/components/StatCustomerListItem/index.jsx 查看文件

@@ -1,27 +1,27 @@
1
-import React, { useState, useEffect } from 'react'
2
-import './index.scss'
1
+
3 2
 import Taro from '@tarojs/taro'
4 3
 import { Image } from '@tarojs/components'
4
+import './index.scss'
5 5
 
6 6
 export default function StatCustomerListItem (props) {
7 7
   const { data = {}, showStatus = false } = props
8 8
   return (
9 9
     <view className='components StatCustomerListItem flex-h'>
10
-      <view className='Icon' onClick={() => { Taro.navigateTo({url: `/pages/mine/customerDetail/index?id=${data.id}`}) }}>
11
-        <Image mode='scaleToFill' src={null}></Image>
10
+      <view className='Icon' onClick={() => { Taro.navigateTo({url: `/pages/mine/customerDetail/index?id=${data.customerId}`}) }}>
11
+        <Image mode='scaleToFill' src={data.avatarurl}></Image>
12 12
       </view>
13
-      <view className='flex-item' onClick={() => { Taro.navigateTo({url: `/pages/mine/customerDetail/index?id=${data.id}`}) }}>
13
+      <view className='flex-item' onClick={() => { Taro.navigateTo({url: `/pages/mine/customerDetail/index?id=${data.customerId}`}) }}>
14 14
         <view>
15
-          <text>范丞丞</text>
15
+          <text>{data.name}</text>
16 16
           <text className='iconfont icon-yonghu'></text>
17 17
         </view>
18
-        <text>136 1394 9434</text>
18
+        <text>{data.phone}</text>
19 19
       </view>
20 20
       <text className='iconfont icon-liaotian'></text>
21 21
       <text className='iconfont icon-dianhua active'></text>
22 22
       {
23 23
         showStatus &&
24
-        <text className='Status' onClick={() => { Taro.navigateTo({url: `/pages/mine/customerDetail/index?id=${data.id}`}) }}>报备</text>
24
+        <text className='Status' onClick={() => { Taro.navigateTo({url: `/pages/mine/customerDetail/index?id=${data.customerId}`}) }}>报备</text>
25 25
       }
26 26
     </view>
27 27
   )

+ 20
- 3
src/pages/mine/index.jsx 查看文件

@@ -3,9 +3,13 @@ import { useSelector } from 'react-redux'
3 3
 import withLayout from '@/layout'
4 4
 import { ScrollView, Image } from '@tarojs/components'
5 5
 import Taro from '@tarojs/taro'
6
+import '@/assets/css/iconfont.css'
7
+import { fetch } from '@/utils/request'
8
+import { API_PUT_REGISTERCONSULTANT } from '@/constants/api'
9
+import login from '@/utils/login'
10
+import { getImgURL } from '@/utils/image'
6 11
 import './index.scss'
7 12
 import NeedLogin from './components/NeedLogin'
8
-import '@/assets/css/iconfont.css'
9 13
 import MineMenuList from './tabData'
10 14
 
11 15
 const defaultRuleImage = 'https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/index-icon18.jpg'
@@ -48,7 +52,20 @@ export default withLayout(() => {
48 52
 
49 53
   const MenuClick = (router) => {
50 54
     return () => {
51
-      if (router) {
55
+      if(router === 'propertyConsultant') {
56
+        fetch({ url: API_PUT_REGISTERCONSULTANT, method: 'put' }).then(() => {
57
+          Taro.showToast({
58
+            title: '匹配成功',
59
+            icon: 'none'
60
+          })
61
+          login({path: '', scene: ''})
62
+        }).catch(() => {
63
+          Taro.showToast({
64
+            title: '匹配失败,请联系相关管理人员',
65
+            icon: 'none'
66
+          })
67
+        })
68
+      } else if (router) {
52 69
         Taro.navigateTo({ url: router })
53 70
       }
54 71
     }
@@ -74,7 +91,7 @@ export default withLayout(() => {
74 91
               {/* 用户信息 */}
75 92
               <view className='UserInfo'>
76 93
                 <view className='UserIcon'>
77
-                  <Image mode='aspectFill' className='centerLabel' src={user?.userInfo?.person?.avatarurl || defaultRuleImage } />
94
+                  <Image mode='aspectFill' className='centerLabel' src={getImgURL(user?.userInfo?.person?.avatarurl) || defaultRuleImage} />
78 95
                 </view>
79 96
                 <view className='OtherInfo'>
80 97
                   <view className='Name'>

+ 2
- 1
src/pages/mine/myHomepage/index.jsx 查看文件

@@ -6,6 +6,7 @@ import '@/assets/css/iconfont.css'
6 6
 import { useSelector } from 'react-redux'
7 7
 import { fetch } from '@/utils/request'
8 8
 import { API_AGENT_CURRENT, API_ITEMS_DETAIL } from '@/constants/api'
9
+import { getImgURL } from '@/utils/image'
9 10
 import './index.scss'
10 11
 import ProjectListItem from '../../../components/ProjectListItem/index'
11 12
 
@@ -72,7 +73,7 @@ export default withLayout(() => {
72 73
           <view className='Card UserInfo'>
73 74
             <view className='flex-h Top'>
74 75
               <view className='Icon'>
75
-                <Image mode='aspectFill' src={UserInfo.avatarurl}></Image>
76
+                <Image mode='aspectFill' src={getImgURL(UserInfo.avatarurl)}></Image>
76 77
               </view>
77 78
               <view className='flex-item'>
78 79
                 <view className='flex-h'>

+ 4
- 0
src/pages/mine/tabData.js 查看文件

@@ -12,6 +12,10 @@ const MineMenuList = {
12 12
       { name: '房贷计算器', icon: require('../../assets/mine-icon4.png'), router: '/pages/mine/mortgageCalc/index' },
13 13
       { name: '购房百科', icon: require('../../assets/mine-icon2.png'), router: '/pages/index/encyclopediasOfBuyHouse/index' },
14 14
       { name: '意见反馈', icon: require('../../assets/mine-icon16.png'), router: '/pages/mine/feedBack/index' }
15
+    ],
16
+    [
17
+      { name: '成为置业顾问', icon: require('../../assets/mine-icon4.png'), router: 'propertyConsultant' },
18
+      { name: '成为专业经纪人', icon: require('../../assets/mine-icon2.png'), router: null }
15 19
     ]
16 20
   ],
17 21
   Broker: [ // 经纪人