周立森 5 lat temu
rodzic
commit
0438270997

+ 4
- 4
config/prod.js Wyświetl plik

@@ -3,10 +3,10 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"http://192.168.0.218:8080"',
7
-    // WSS_HOST: '"ws://192.168.0.218:8080"',
8
-    HOST:  '"https://dev.jinchengjiaye.com"',
9
-    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
6
+    HOST: '"http://192.168.0.218:8080"',
7
+    WSS_HOST: '"ws://192.168.0.218:8080"',
8
+    // HOST:  '"https://dev.jinchengjiaye.com"',
9
+    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     //   HOST: '"https://lt.pawoma.cn"',
11 11
     //   WSS_HOST: '"wss://lt.pawoma.cn"',
12 12
   },

BIN
src/assets/tuijiankehu.png Wyświetl plik


+ 21
- 10
src/pages/agent/client/index.js Wyświetl plik

@@ -20,7 +20,7 @@ export default class Index extends Component {
20 20
     floor: '',
21 21
     recordId: null
22 22
   }
23
-  componentWillMount() {
23
+  componentWillMount () {
24 24
     savePoint({
25 25
       event: 'list',
26 26
       eventType: 'agent',
@@ -35,15 +35,15 @@ export default class Index extends Component {
35 35
   }
36 36
 
37 37
 
38
-  componentWillUnmount() {
38
+  componentWillUnmount () {
39 39
     const { recordId } = this.state
40 40
     recordId && updatePoint(recordId)
41 41
   }
42
-  componentDidMount() {
42
+  componentDidMount () {
43 43
     this.loadList()
44 44
   }
45 45
   //获取楼盘列表
46
-  loadGetFloor() {
46
+  loadGetFloor () {
47 47
     const params = {
48 48
       pageNumber: 1,
49 49
       pageSize: 50,
@@ -55,7 +55,7 @@ export default class Index extends Component {
55 55
       })
56 56
     })
57 57
   }
58
-  loadList() {
58
+  loadList () {
59 59
     var that = this;
60 60
     const params = {
61 61
       pageNumber: 1,
@@ -71,19 +71,25 @@ export default class Index extends Component {
71 71
     })
72 72
   }
73 73
 
74
-  formatDate(value) {
74
+  formatDate (value) {
75 75
     return dayjs(value).format('YYYY-MM-DD')
76 76
   }
77
-  navigateTo(id) {
77
+  navigateTo (id) {
78 78
     Taro.navigateTo({ url: `/pages/agent/progress/index?customerId=${id}` })
79 79
   }
80
-  getName(dict, id) {
80
+  getName (dict, id) {
81 81
     dict = dict.records || []
82 82
     // let floorName = (dict.filter(({ buildingId: target }) => id === target)[0] || {}).name
83 83
     return (dict.filter(({ buildingId: target }) => id === target)[0] || {}).buildingName
84 84
 
85 85
   }
86
-  render() {
86
+
87
+  toRecomonedPage () {
88
+    Taro.navigateTo({
89
+      url: `/pages/agent/recommend/index`
90
+    })
91
+  }
92
+  render () {
87 93
     const { list, status, floorList } = this.state
88 94
     return (
89 95
       <View className='myClient'>
@@ -113,7 +119,7 @@ export default class Index extends Component {
113 119
               {
114 120
                 list.map((item, index) => {
115 121
                   return (
116
-                    <View className='client__list' key={index+'client'} onClick={this.navigateTo.bind(this, item.customerId)}>
122
+                    <View className='client__list' key={index + 'client'} onClick={this.navigateTo.bind(this, item.customerId)}>
117 123
                       <Image className='bg' src={item.verifyStatus == 2 ? require('@assets/person/card1.png') : require('@assets/person/card2.png')}></Image>
118 124
                       <View className='client'>
119 125
                         <View className='client__status2'>
@@ -145,6 +151,11 @@ export default class Index extends Component {
145 151
           </View>
146 152
         }
147 153
 
154
+        {/* <View className='recommend' onClick={this.toRecomonedPage}>123</View> */}
155
+        <View className="recommend"  onClick={this.toRecomonedPage}  >
156
+        <Image src={require('@assets/tuijiankehu.png')} className='home-img'></Image>
157
+        <Text className="text">推荐</Text>
158
+      </View>
148 159
       </View>
149 160
     );
150 161
   }

+ 37
- 0
src/pages/agent/client/index.scss Wyświetl plik

@@ -151,4 +151,41 @@
151 151
   left:0;
152 152
   tpop:0;
153 153
   padding:50px;
154
+}
155
+
156
+// .recommend{
157
+//   position:absolute;
158
+//   right: 0;
159
+//   bottom: 60px;
160
+//   k
161
+// }
162
+.recommend {
163
+  position: fixed;
164
+  bottom: 16%;
165
+  right: 5%;
166
+  width: 104px;
167
+  height: 104px;
168
+  border-radius: 50%;
169
+  background-color: $primary-color;
170
+  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.25);
171
+  z-index: 99;
172
+  display: flex;
173
+  flex-direction: column;
174
+  justify-content: center;
175
+  align-items: center;
176
+
177
+  .iconfont {
178
+    color: white;
179
+    font-size: 40px;
180
+  }
181
+  .home-img{
182
+    width: 38px;
183
+    height: 34px;
184
+    margin: 3px 0;
185
+  }
186
+  .text {
187
+    color: white;
188
+    font-size: 22px;
189
+  }
190
+
154 191
 }

+ 5
- 4
src/pages/person/index.js Wyświetl plik

@@ -95,7 +95,8 @@ export default class Person extends Component {
95 95
       putRegisterConsultant().then(res => {
96 96
         // console.log("匹配成功,请退出小程序重新登录即可")
97 97
         Taro.showToast({
98
-          title: "匹配成功,请退出小程序重新登录即可"
98
+          title: "匹配成功,请退出小程序重新登录即可",
99
+          icon: "none"
99 100
         })
100 101
       }).catch(err => {
101 102
         console.error(err)
@@ -170,14 +171,14 @@ export default class Person extends Component {
170 171
                 <View className="info-text__name">{user.name ? user.name : user.nickname}</View>
171 172
                 <View className="info-text__intro">积分 {user.points || 0}</View>
172 173
               </View>
173
-              {/* {
174
-                user.personType != 'customer' && (
174
+              {
175
+                user.personType == 'consultant' && (
175 176
                   <Navigator url={`/pages/person/spread/index`} className="tuiguang">
176 177
                     <Image style="width:40px;height:36px" src={require('@assets/mine/tuiguangma.png')} ></Image>
177 178
                     <View className="info-text__intro" style="margin:4px 0 0 4px">推广码</View>
178 179
                   </Navigator>
179 180
                 )
180
-              } */}
181
+              }
181 182
             </View>
182 183
             {/* <View
183 184
               className={`sign__btn ${user.havaSigned && 'signed'}`}

+ 7
- 7
src/pages/person/menus.js Wyświetl plik

@@ -72,13 +72,13 @@ const menus = [
72 72
     // },
73 73
   ],
74 74
   [
75
-    {
76
-      name: '我的客户',
77
-      url: '/pages/person/myGuest/index',
78
-      icon: icons.client,
79
-      extends: undefined,
80
-      userTypes: [CONSULTANT],
81
-    },
75
+    // {
76
+    //   name: '我的客户',
77
+    //   url: '/pages/person/myGuest/index',
78
+    //   icon: icons.client,
79
+    //   extends: undefined,
80
+    //   userTypes: [CONSULTANT],
81
+    // },
82 82
     {
83 83
       name: '我的活动',
84 84
       url: '/pages/activity/myActivity?from=mine',

+ 6
- 5
src/pages/project/detail/index.js Wyświetl plik

@@ -47,7 +47,7 @@ export default class Index extends Component {
47 47
     activityList: [],
48 48
     helpList: [],
49 49
     groupList: [],
50
-    statusOpts: ['待定', '在建', '在售'],
50
+    statusOpts: ['待定', '售罄', '在售'],
51 51
     // circumOpts: [],
52 52
     curTab: 'Transport',
53 53
     recordId: null,
@@ -375,8 +375,8 @@ export default class Index extends Component {
375 375
     const {
376 376
       userInfo: { person: { personType } }
377 377
     } = this.props
378
-    if (personType === ROLE_CODE['DRIFT'] || personType === ROLE_CODE['CUSTOMER']) {
379
-      // 游客或者客户 区别是否有电话
378
+    if (personType === ROLE_CODE['DRIFT'] ) {
379
+      // 游客或者客户 区别是否有电话|| personType === ROLE_CODE['CUSTOMER']
380 380
       Taro.navigateTo({
381 381
         url: `/pages/agent/become/index`
382 382
       })
@@ -790,13 +790,14 @@ export default class Index extends Component {
790 790
                       {
791 791
                         item && (
792 792
                           <View className='house__img-info'>
793
+                            {console.log(list,'-------')}
793 794
                             <Image className='house__img' src={getThumbnail(item.buildingImgList[0].url)} mode="widthFix" onClick={this.handlePreviewHxImage.bind(this, item.buildingImgList[0].url, imgUrls)}></Image>
794 795
                             <View className='house-type__state'>{statusOpts[item.marketStatus - 1]}</View>
795 796
                           </View>
796 797
                         )
797 798
                       }
798 799
                       <View className="rest-info">
799
-                        <View className='house-type__name'><Text style="color:#FA5431;margin-right:10px">{item.buildingArea || ''}</Text>{item.apartmentName || ''}</View>
800
+                        <View className='house-type__name'><Text style="color:#FA5431;margin-right:10px">{item.buildingArea || ''}</Text>{item.apartmentName || ''}</View>
800 801
                         <View className='construction__area'>
801 802
                           <Text>建面{item.buildingArea || ''}m²</Text>
802 803
                           {
@@ -963,7 +964,7 @@ export default class Index extends Component {
963 964
           // controls={false}
964 965
           // autoplay={false}
965 966
           // initialTime='0'
966
-          // loop={false}
967
+          loop={true}
967 968
           // muted={false}
968 969
 
969 970
           show-mute-btn='true'