周立森 vor 5 Jahren
Ursprung
Commit
2b08270519

+ 1
- 1
project.config.json Datei anzeigen

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "dev环境",
5
-	"appid": "wxd9ee3a9480a4e544",
5
+	"appid": "wxda1f84b79b3edeb3",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 1
- 1
src/app.js Datei anzeigen

@@ -40,10 +40,10 @@ class App extends Component {
40 40
       }
41 41
     },
42 42
     pages: [
43
+      'pages/project/index',
43 44
       'pages/shop/index',
44 45
       'pages/activity/activity',
45 46
       'pages/activity/myActivity',
46
-      'pages/project/index',
47 47
       'pages/person/index',
48 48
       'pages/person/profile/index',
49 49
       'pages/person/profile/detail/index',

BIN
src/assets/map.png Datei anzeigen


BIN
src/assets/search.png Datei anzeigen


+ 2
- 2
src/pages/activity/activity.js Datei anzeigen

@@ -34,9 +34,9 @@ export default class active extends Component {
34 34
   }
35 35
 
36 36
   render() {
37
-    const { person: { phone } } = this.props.user.userInfo
37
+    const { person: { phone, tel } } = this.props.user.userInfo
38 38
 
39
-    return !phone ? this.renderLogin() : (
39
+    return !phone && !tel ? this.renderLogin() : (
40 40
       <View style="height:100vh">
41 41
         <AtTabs className="tab-box" scroll current={this.state.current} tabList={[{ title: '热门活动' }, { title: '最新资讯' }]} onClick={this.handleClick.bind(this)}>
42 42
           <AtTabsPane current={this.state.current} index={0} >

+ 3
- 3
src/pages/activity/detail/assemble.js Datei anzeigen

@@ -106,8 +106,8 @@ export default class Detail extends Component {
106 106
 
107 107
   // 调起授权电话
108 108
   toggleGrantPhone = () => {
109
-    const { userInfo: { person: { phone } } } = this.props
110
-    if (!phone) {
109
+    const { userInfo: { person: { phone, tel } } } = this.props
110
+    if (!phone && !tel) {
111 111
       this.setState({ grantPhoneVisible: true })
112 112
       return false
113 113
     }
@@ -183,7 +183,7 @@ export default class Detail extends Component {
183 183
       const recordDetail = res.taShareRecord || {}
184 184
       let [actState, leftTime] = this.compActState(res.taShareActivity.startTime, res.taShareActivity.endTime)
185 185
 
186
-      if (res.taShareActivity.status != 1) {
186
+      if (res.taShareActivity.activityStatus === 2) {
187 187
         actState = ActFinished
188 188
       }
189 189
 

+ 7
- 6
src/pages/activity/detail/assistance.js Datei anzeigen

@@ -105,8 +105,8 @@ export default class Detail extends Component {
105 105
 
106 106
   // 调起授权电话
107 107
   toggleGrantPhone = () => {
108
-    const { userInfo: { person: { phone } } } = this.props
109
-    if (!phone) {
108
+    const { userInfo: { person: { phone, tel } } } = this.props
109
+    if (!phone && !tel) {
110 110
       this.setState({ grantPhoneVisible: true })
111 111
       return false
112 112
     }
@@ -173,7 +173,7 @@ export default class Detail extends Component {
173 173
 
174 174
   // 请求详情
175 175
   loadDetail() {
176
-    debugger
176
+    // debugger
177 177
     const { id, initiateId } = this.state
178 178
     const { userInfo } = this.props
179 179
 
@@ -184,7 +184,7 @@ export default class Detail extends Component {
184 184
       const initiateDetail = res.helpInitiateRecord || {}
185 185
       let [actState, leftTime] = this.compActState(res.helpActivity.startDate, res.helpActivity.endDate)
186 186
 
187
-      if (res.helpActivity.status != 1) {
187
+      if (res.helpActivity.activityStatus === 2) {
188 188
         actState = ActFinished
189 189
       }
190 190
 
@@ -339,7 +339,8 @@ export default class Detail extends Component {
339 339
           this.setState({
340 340
             initiateDetail: res,
341 341
             initiateId: res.helpRecordInitiateId,
342
-            helpList: res.helpRecordList,
342
+            // helpList: res.helpRecordList,  // bug #5282
343
+            helpList: [],
343 344
             isStarter: true,
344 345
             helpState: HelpInProcess,
345 346
           }, resolve)
@@ -362,7 +363,7 @@ export default class Detail extends Component {
362 363
     // 必须授权头像
363 364
     if (this.toggleGrantAvatar()) {
364 365
       const initiateDetail = this.state.initiateDetail
365
-      debugger
366
+      // debugger
366 367
       if (!initiateDetail.helpRecordInitiateId) {
367 368
         // 如果是未发起的助力, 先以当前人身份发起
368 369
         this.startMine().then(() => {

+ 30
- 30
src/pages/activity/detail/index.js Datei anzeigen

@@ -69,7 +69,7 @@ export default class Detail extends Component {
69 69
         isSaved,
70 70
         isSign,
71 71
         loaded: true,
72
-        selector: times(res.maxEnlistByPerson || 1).map((_, i) => `${i+1}`),
72
+        selector: times(res.maxEnlistByPerson || 1).map((_, i) => `${i + 1}`),
73 73
       }, () => {
74 74
 
75 75
         const { detail } = this.state
@@ -192,7 +192,7 @@ export default class Detail extends Component {
192 192
         "scene": `id=${dynamicId}&from=dynamic_share&recommender=${personId}`,
193 193
         "page": 'pages/activity/detail/index',
194 194
       }
195
-      debugger
195
+      // debugger
196 196
       const _avatarurl = getDownloadURL(avatarurl, 'avatar');
197 197
       getMiniQrcode(payload).then(qrcode => {
198 198
         let data = {
@@ -317,37 +317,37 @@ export default class Detail extends Component {
317 317
               <ScrollView
318 318
                 scrollY
319 319
                 className="detail-wrap">
320
-                <View className="detail">
321
-                  {(detail.enlisted == 0 || !detail.enlisted) &&
322
-                    <View className="detail-sign__num">不需要报名</View>
323
-                  }
324
-                  {detail.enlisted > 0 &&
325
-                    <View className="detail-sign__num">{detail.enlisted || 0}人已报名</View>
326
-                  }
327
-                  <View class="detail-title">{detail.title}</View>
328
-                  <View className="detail-top">
329
-                    <View className="detail-top__row">
330
-                      <Text className="row-label">活动时间:</Text>
331
-                      <Text className="row-content">{dayjs(detail.startDate).format('YYYY-MM-DD HH:mm:ss')}</Text>
332
-                    </View>
333
-                    <View className="detail-top__row">
334
-                      <Text className="row-label">活动地址:</Text>
335
-                      <Text className="row-content">{detail.address}</Text>
336
-                    </View>
337
-                    <View className="detail-top__row">
338
-                      <Text className="row-label">报名截止:</Text>
339
-                      {detail.enlistEnd &&
340
-                        <Text className="row-content">{dayjs(detail.enlistEnd).format('YYYY-MM-DD HH:mm:ss')}</Text>
341
-                      }
342
-
343
-                    </View>
320
+              <View className="detail">
321
+                {detail.isEnlist == 0 &&
322
+                  <View className="detail-sign__num">不需要报名</View>
323
+                }
324
+                {detail.isEnlist != 0 &&
325
+                  <View className="detail-sign__num">{detail.enlisted || 0}人已报名</View>
326
+                }
327
+                <View class="detail-title">{detail.title}</View>
328
+                <View className="detail-top">
329
+                  <View className="detail-top__row">
330
+                    <Text className="row-label">活动时间:</Text>
331
+                    <Text className="row-content">{dayjs(detail.startDate).format('YYYY-MM-DD HH:mm:ss')}</Text>
332
+                  </View>
333
+                  <View className="detail-top__row">
334
+                    <Text className="row-label">活动地址:</Text>
335
+                    <Text className="row-content">{detail.address}</Text>
344 336
                   </View>
345
-                  <View className="detail-con">
346
-                    <View className="detail-con__title">活动详情</View>
347
-                    <import src='../../../components/wxParse/wxParse.wxml' />
348
-                    <template is='wxParse' data='{{wxParseData:article.nodes}}' />
337
+                  <View className="detail-top__row">
338
+                    <Text className="row-label">报名截止:</Text>
339
+                    {detail.enlistEnd &&
340
+                      <Text className="row-content">{dayjs(detail.enlistEnd).format('YYYY-MM-DD HH:mm:ss')}</Text>
341
+                    }
342
+
349 343
                   </View>
350 344
                 </View>
345
+                <View className="detail-con">
346
+                  <View className="detail-con__title">活动详情</View>
347
+                  <import src='../../../components/wxParse/wxParse.wxml' />
348
+                  <template is='wxParse' data='{{wxParseData:article.nodes}}' />
349
+                </View>
350
+              </View>
351 351
               </ScrollView>
352 352
 
353 353
               <View className="chat-entrance" onClick={this.handleMoreClick}>

+ 1
- 0
src/pages/activity/detail/index.scss Datei anzeigen

@@ -93,6 +93,7 @@
93 93
   padding: 30px 40px 0 40px;
94 94
   position: relative;
95 95
   overflow: hidden;
96
+  padding-bottom:120px; 
96 97
   .status__img{
97 98
     width: 176px;
98 99
     height: 176px;

+ 1
- 1
src/pages/agent/become/index.js Datei anzeigen

@@ -33,7 +33,7 @@ export default class Index extends Component {
33 33
       channelCode: channelCode
34 34
     }
35 35
     registerAgent(payload).then(res => {
36
-      debugger
36
+      // debugger
37 37
       this.props.dispatchUpdateUserInfoNew(res.personId)
38 38
       Taro.navigateTo({
39 39
         url: '/pages/agent/index'

+ 2
- 2
src/pages/card/index.js Datei anzeigen

@@ -472,7 +472,7 @@ export default class Index extends Component {
472 472
                 <View className='mycard__work'>
473 473
                   <View className='row mycard__work-department'>{cardInfo.department}<Text className='txt'>部门</Text></View>
474 474
                   <View className='row mycard__work-position'>{cardInfo.post}<Text className='txt'>职位</Text></View>
475
-                  <View className='row mycard__work-company'>{cardInfo.company}<Text className='txt'>楼盘</Text></View>
475
+                  <View className='row mycard__work-company'>{projectDetail.buildingName}<Text className='txt'>楼盘</Text></View>
476 476
                 </View>
477 477
 
478 478
                 {/* 人气 */}
@@ -549,4 +549,4 @@ export default class Index extends Component {
549 549
       </Block>
550 550
     )
551 551
   }
552
-}
552
+}

+ 7
- 4
src/pages/im/index.js Datei anzeigen

@@ -89,7 +89,7 @@ export default class Chat extends Component {
89 89
       let receivePersonId = fromTempleteMsg ? sendPersonId : receiverId
90 90
       let receivePersonName = fromTempleteMsg ? sendName : receiverName
91 91
 
92
-      debugger
92
+      // debugger
93 93
       // if (!receivePersonId) {
94 94
       //   Taro.showToast({ title: 'receivePersonId不存在' })
95 95
       //   this.redirectTo()
@@ -125,7 +125,7 @@ export default class Chat extends Component {
125 125
 
126 126
       socket.wss.onMessage(res => {
127 127
         const data = JSON.parse(res.data)
128
-        debugger
128
+        // debugger
129 129
         this.handlerRecive(data)
130 130
       })
131 131
     })
@@ -139,7 +139,7 @@ export default class Chat extends Component {
139 139
     const { userInfo: { person: { personType: sendPersonType } } } = this.props
140 140
     const { receivePersonId, receivePersonName, sendPersonId } = this.state
141 141
     this.props.dispatchCardInfo(receivePersonId).then(res => {
142
-      debugger
142
+      // debugger
143 143
       // 本人不是置业顾问且对方是置业顾问 则对方向我发送消息
144 144
       const { personType: receivePersonType } = res
145 145
       const hasSend = (sendPersonType != ROLE_CODE['CONSULTANT'] && receivePersonType == ROLE_CODE['CONSULTANT'])
@@ -224,7 +224,7 @@ export default class Chat extends Component {
224 224
   // }
225 225
 
226 226
   handlerRecive(data) {
227
-    debugger
227
+    // debugger
228 228
     this.appendData(data)
229 229
   }
230 230
 
@@ -375,6 +375,9 @@ export default class Chat extends Component {
375 375
     // 发送消息
376 376
     socket.sendNotice(payload, res => {
377 377
       console.log('发送成功')
378
+      this.setState({
379
+        inputText:'',
380
+      })
378 381
       this.appendData(payload)
379 382
     })
380 383
   }

+ 1
- 1
src/pages/im/list/index.js Datei anzeigen

@@ -55,7 +55,7 @@ export default class Index extends Component {
55 55
   toChat(person) {
56 56
     const { userInfo: { person: { personId, nickname, name } } } = this.props
57 57
     const { friendId: receivePersonId, name: receivePersonName } = person
58
-    debugger
58
+    // debugger
59 59
     Taro.navigateTo({
60 60
       url: `/pages/im/index?sendId=${personId}&sendName=${encodeURIComponent(name || nickname)}&receiverId=${receivePersonId}&receiverName=${encodeURIComponent(receivePersonName)}`
61 61
     })

+ 3
- 3
src/pages/person/index.js Datei anzeigen

@@ -206,11 +206,11 @@ export default class Person extends Component {
206 206
   }
207 207
 
208 208
   render() {
209
-    const { phone } = this.state.user
209
+    const { phone, tel } = this.state.user
210 210
     return (
211 211
       <View className='wrap'>
212
-        {phone && this.renderDetail()}
213
-        {!phone && this.renderLogin()}
212
+        {(phone || tel) && this.renderDetail()}
213
+        {!phone && !tel  && this.renderLogin()}
214 214
       </View>
215 215
     )
216 216
   }

+ 2
- 0
src/pages/person/login/index.js Datei anzeigen

@@ -85,6 +85,8 @@ export default class Index extends Component {
85 85
       code:code
86 86
     }
87 87
     putRegister(payload).then(res => {
88
+      console.log('---bind-->', res)
89
+
88 90
       this.props.dispatchUpdateUserInfoNew(res.personId)
89 91
         Taro.showLoading({
90 92
           title: '登录中...',

+ 4
- 3
src/pages/person/menus.js Datei anzeigen

@@ -1,6 +1,6 @@
1 1
 import { ROLE_CODE } from '@constants/user'
2 2
 
3
-export const icons = {
3
+const icons = {
4 4
   homepage: require('@assets/mine/homepage.png'),
5 5
   recommend: require('@assets/mine/recommend.png'),
6 6
   development: require('@assets/mine/development.png'),
@@ -21,7 +21,7 @@ const CONSULTANT = ROLE_CODE['CONSULTANT']
21 21
 const ESTATE_AGENT = ROLE_CODE['ESTATE_AGENT']
22 22
 const CHANNEL_AGENT = ROLE_CODE['CHANNEL_AGENT']
23 23
 
24
-export const menus = [
24
+const menus = [
25 25
   [
26 26
     {
27 27
       name: '我的主页',
@@ -55,7 +55,7 @@ export const menus = [
55 55
   [
56 56
     {
57 57
       name: '我的活动',
58
-      url: '/pages/activity/index?from=mine',
58
+      url: '/pages/activity/myActivity?from=mine',
59 59
       icon: icons.activities,
60 60
       extends: undefined,
61 61
       userTypes: [CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
@@ -121,3 +121,4 @@ export const menus = [
121 121
   ],
122 122
 ]
123 123
 
124
+export { icons, menus }

+ 2
- 2
src/pages/project/floor/index.js Datei anzeigen

@@ -39,7 +39,7 @@ export default class Index extends Component {
39 39
           </View>
40 40
           <View className='item'>
41 41
             <Text className='txt left-txt'>销售状态</Text>
42
-            <Text className='txt right-txt'>{this.state.statusOpts[projectDetail.status - 1]}</Text>
42
+            <Text className='txt right-txt'>{projectDetail.marketStatus ? projectDetail.marketStatus :'待定'}</Text>
43 43
           </View>
44 44
           <View className='item'>
45 45
             <Text className='txt left-txt'>开盘日期</Text>
@@ -89,4 +89,4 @@ export default class Index extends Component {
89 89
       </View >
90 90
     );
91 91
   }
92
-}
92
+}

+ 17
- 13
src/pages/project/index.js Datei anzeigen

@@ -210,12 +210,16 @@ export default class Index extends Component {
210 210
     Taro.showLoading()
211 211
     this.props.dispatchProjectList(payload).then(res => {
212 212
       if (!this.state.loaded && res.records.length <= 0) {
213
-        let city = {
214
-          name: '南京市',
215
-          id: 320100
216
-        }
217
-        this.updateCity(city)
218
-        return
213
+        // let city = {
214
+        //   name: '南京市',
215
+        //   id: 320100
216
+        // }
217
+        // this.updateCity(city)
218
+        // return
219
+        Taro.showToast({
220
+          title: '当前城市暂无楼盘',
221
+          icon: 'none'
222
+        })
219 223
       }
220 224
       Taro.hideLoading()
221 225
       this.setState({
@@ -255,7 +259,7 @@ export default class Index extends Component {
255 259
     this.redirectTo(item)
256 260
   }
257 261
 
258
-  redirectTo({contentId, contentType, buildingId} = {}) {
262
+  redirectTo({ contentId, contentType, buildingId } = {}) {
259 263
     switch (contentType) {
260 264
       // 项目
261 265
       case 'project':
@@ -277,21 +281,21 @@ export default class Index extends Component {
277 281
           url: '/pages/activity/detail/assistance?id=' + contentId
278 282
         })
279 283
         return;
280
-      
284
+
281 285
       // 拼团
282 286
       case 'group':
283 287
         Taro.navigateTo({
284 288
           url: '/pages/activity/detail/assemble?id=' + contentId
285 289
         })
286 290
         return;
287
-      
291
+
288 292
       // 资讯
289 293
       case 'news':
290 294
         Taro.navigateTo({
291 295
           url: 'pages/news/detail/index?id=' + contentId
292 296
         })
293 297
         return;
294
-      
298
+
295 299
       // 其他
296 300
       case 'others':
297 301
       default:
@@ -487,11 +491,11 @@ export default class Index extends Component {
487 491
                 </View>
488 492
                 <View className="top-box">
489 493
                   <View className="search" onClick={this.handleToHouseList}>
490
-                    <Text className="search-icon icon-sousuo iconfont"></Text>
491
-                    <Input className="search-input" placeholder="输入你想查询的楼盘"></Input>
494
+                    <Image className="search-icon" src={require('@assets/search.png')} />
495
+                    <Input className="search-input" placeholder-style="color:#fff" placeholder="输入你想查询的楼盘"></Input>
492 496
                   </View>
493 497
                   <View className="location" onClick={this.handleLocationClick}>
494
-                    <Text className="location-icon iconfont icon-daohangdizhi"></Text>
498
+                    <Image className="location-icon" src={require('@assets/map.png')} />
495 499
                     <Text className="location-text">{curCity.id ? curCity.name : '正在定位'}</Text>
496 500
                   </View>
497 501
                 </View>

+ 15
- 17
src/pages/project/index.scss Datei anzeigen

@@ -24,25 +24,24 @@
24 24
   .location {
25 25
     @extend .flex;
26 26
     justify-content: center;
27
-    padding: 13px 14px;
28
-    background:rgba(161,161,161,0.2);
27
+    padding: 0 12px;
28
+    background:rgba(0,0,0,0.2);
29 29
     border-radius:12px;
30
+    height: 60px;
31
+    line-height: 60px;
30 32
     
31
-  
32 33
     &-text {
33 34
       font-size: 25px;
34 35
       padding-left: 13px;
35
-      color: rgba(255, 255, 255, 1);
36
+      color: #fff;
36 37
       @include text-ellipsis; 
37 38
       width: 100px;
39
+      text-align: center;
38 40
     }
39 41
   
40 42
     &-icon {
41
-      color: rgb(209, 204, 204);
42
-      font-size: 16px;
43
-      font-weight: bold;
44
-      display: block;
45
-      margin-top: 10px;
43
+      width: 14px;
44
+      height: 20px;
46 45
       animation: bigger 1s ease 3 both;
47 46
     }
48 47
   }
@@ -50,7 +49,8 @@
50 49
   .search {
51 50
 
52 51
     height: 60px;
53
-    background:rgba(161,161,161,0.2);
52
+    line-height: 60px;
53
+    background:rgba(0,0,0,0.2);
54 54
     -webkit-box-pack: start;
55 55
     -webkit-justify-content: flex-start;
56 56
     -ms-flex-pack: start;
@@ -60,17 +60,15 @@
60 60
     width: 440px;
61 61
   
62 62
     &-icon {
63
-      font-size: 24px;
64
-      color: rgb(209, 204, 204);
65
-      font-weight: bold;
66
-      margin: 0 10px 0 10px;
63
+    width: 26px;
64
+    height: 26px;
65
+    margin: 0 16px 0 20px ;
67 66
     }
68
-  
69 67
     &-input {
70 68
       font-size: 24px;
71
-      line-height: 60px;
72
-      color: #A2A2A2;
69
+      color: #fff;
73 70
     }
71
+
74 72
   }
75 73
 }
76 74
 

+ 11
- 44
src/pages/shop/index.js Datei anzeigen

@@ -50,35 +50,6 @@ export default class Shop extends Component {
50 50
     Taro.hideLoading()
51 51
   }
52 52
 
53
-  // loadUserInfo() {
54
-  //   queryUserInfo().then(user => {
55
-  //     this.setState({
56
-  //       user
57
-  //     })
58
-  //   })
59
-  // }
60
-
61
-
62
-  //loadCity(){
63
-  //  const {cityName}=this.state
64
-  //  if(!cityName){
65
-  //    const lat=Taro.getStorageSync('lat')
66
-  //    const lon=Taro.getStorageSync('lon')
67
-  //    const params={
68
-  //      lat,
69
-  //      lon
70
-  //    }
71
-  //    const payload=params
72
-  //    this.props.dispatchPointsAddress(payload).then(res => {
73
-  //      const city=res.cityName
74
-  //      this.setState({
75
-  //        cityName:city
76
-  //      })
77
-  //    })
78
-  //  }
79
-  //}
80
-
81
-
82 53
   loadBannerList() {
83 54
     const payload = {
84 55
       showPosition: 'mall'
@@ -90,15 +61,6 @@ export default class Shop extends Component {
90 61
     })
91 62
   }
92 63
 
93
-  // onSearch(val) {
94
-  //   // App.zhuge.track('搜索商品', {
95
-  //   //   '商品名称': val
96
-  //   // })
97
-  //   this.setState({
98
-  //     keywords: val,
99
-  //   }, this.loadList)
100
-  // }
101
-
102 64
   loadList() {
103 65
 
104 66
     Taro.showLoading()
@@ -107,26 +69,31 @@ export default class Shop extends Component {
107 69
       pageSize: '9999',
108 70
       buildingId: this.state.goodsBuilding[0].buildingId
109 71
     }
72
+
110 73
     console.log(params, "params")
111 74
     getGoodsList(params).then(res => {
112 75
       this.setState({
113 76
         goodsList: res.records || []
114 77
       })
115 78
       Taro.hideLoading()
79
+    }).catch(err => {
80
+      console.error(err)
81
+      Taro.hideLoading()
116 82
     })
117 83
   }
84
+
118 85
   loadGoodsBuilding() {
119 86
     getGoodsBuilding().then(res => {
120
-
121 87
       res.map(item => {
122 88
         item.title = item.buildingName
123
-
124 89
       })
90
+
125 91
       this.setState({
126 92
         goodsBuilding: res || []
127
-
128 93
       }, () => {
129
-        this.loadList()
94
+        if (res && res.length) {
95
+          this.loadList()
96
+        }
130 97
       }
131 98
       )
132 99
     })
@@ -328,11 +295,11 @@ export default class Shop extends Component {
328 295
   }
329 296
 
330 297
   render() {
331
-    const { person: { phone } } = this.props.userInfo
298
+    const { person: { phone, tel } } = this.props.userInfo
332 299
 
333 300
     return (
334 301
       <View className='wrap'>
335
-        {!phone ? this.renderLogin() : this.renderDetail()}
302
+        {!phone && !tel ? this.renderLogin() : this.renderDetail()}
336 303
       </View>
337 304
     )
338 305
   }

+ 3
- 4
src/pages/toolKit/index.js Datei anzeigen

@@ -10,7 +10,7 @@ export default class Index extends Component {
10 10
 		selector: ['10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'],
11 11
 		selectorChecked: '10%',
12 12
 		firstPay: 0,
13
-		rateList: ['基准利率(4.85%)', '基准利率7折(3.395%)', '基准利率75折(‭3.6375‬%)', '基准利率8折(3.88%)', '基准利率85折(4.1225%)', '基准利率9折(4.365%)', '基准利率95折(4.6075%)', '基准利率1.05倍(5.0925%)', '基准利率1.1倍(5.335%)', '基准利率1.2倍(5.82%)', '基准利率1.3倍(6.305%)'],
13
+		rateList: ['基准利率(4.85%)', '基准利率7折(3.40%)', '基准利率75折(3.64%)', '基准利率8折(3.88%)', '基准利率85折(4.12%)', '基准利率9折(4.37%)', '基准利率95折(4.61%)', '基准利率1.05倍(5.09%)', '基准利率1.1倍(5.33%)', '基准利率1.2倍(5.82%)', '基准利率1.3倍(6.31%)'],
14 14
 		rate: '基准利率(4.85%)',
15 15
 		accumulationRateList: ['基准利率(3.25%)', '基准利率1.1倍(3.58%)', '基准利率1.2倍(3.90%)', '基准利率1.3倍(4.23%)'],
16 16
 		accumulationRate: '基准利率(3.25%)',
@@ -177,11 +177,10 @@ export default class Index extends Component {
177 177
     }
178 178
 
179 179
     
180
-		
181
-		var rate = (this.state.rate.slice(-6, -2)) / 100
180
+		var rate = (((this.state.rate).match(/\((.*)\%/))[1])/100
182 181
 		//			var lixi=calcute.singleDk(1,this.state.accumulation,this.state.time2,rate)
183 182
 
184
-    var shuju2 = this.state.shangPay + ',' + this.state.time1 + ',' + rate  //商贷数据
183
+    	var shuju2 = this.state.shangPay + ',' + this.state.time1 + ',' + rate  //商贷数据
185 184
 
186 185
 		console.log(shuju1 + '=' + shuju2)
187 186
 		

+ 1
- 1
src/reducers/user.js Datei anzeigen

@@ -41,7 +41,7 @@ export default function user(state = INITIAL_STATE, action) {
41 41
     // }
42 42
     case UPDATE_USER_INFO: {
43 43
       const { person, extraInfo } = state.userInfo
44
-      debugger
44
+      // debugger
45 45
       return {
46 46
         ...state,
47 47
         userInfo: {

+ 1
- 1
src/utils/request.js Datei anzeigen

@@ -87,7 +87,7 @@ export const uploadFiles = async (files) => {
87 87
         },
88 88
         name: 'file',
89 89
         success: function (res) {
90
-          debugger
90
+          // debugger
91 91
           const _data = JSON.parse(res.data)
92 92
           if (_data.code !== CODE_SUCCESS) {
93 93
             reject(new Error(_data.message))