Sfoglia il codice sorgente

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

周立森 5 anni fa
parent
commit
6e3ef85c31

BIN
chengjiaojinfang.zip Vedi File


+ 1
- 1
src/components/ListView/index.scss Vedi File

17
 .loading,
17
 .loading,
18
 .loaded {
18
 .loaded {
19
   text-align: center;
19
   text-align: center;
20
-  padding: 50px;
20
+  padding: 40px 0 90px 0;
21
   color: #999;
21
   color: #999;
22
   font-size:28px;
22
   font-size:28px;
23
   //animation: loading infinite 1000ms ease;
23
   //animation: loading infinite 1000ms ease;

+ 13
- 7
src/pages/activity/detail/index.js Vedi File

280
     }
280
     }
281
 
281
 
282
     signupActivity(payload).then(res => {
282
     signupActivity(payload).then(res => {
283
-      Taro.showToast({
284
-        title: '报名成功'
285
-      })
286
-      this.setState({
287
-        isSign: true,
288
-        canChoose: 'none'
289
-      })
283
+      if (res) {
284
+        Taro.showToast({
285
+          title: '报名成功'
286
+        })
287
+        this.setState({
288
+          isSign: true,
289
+          canChoose: 'none'
290
+        })
291
+      }else{
292
+        this.setState({
293
+          canChoose: 'none'
294
+        })
295
+      }
290
     })
296
     })
291
 
297
 
292
     savePoint({
298
     savePoint({

+ 9
- 5
src/pages/agent/recommend/index.js Vedi File

159
     })
159
     })
160
   }
160
   }
161
   BindInfo(e) {
161
   BindInfo(e) {
162
+    console.log(e, "8888888888")
162
     console.log(e.currentTarget.dataset.id)
163
     console.log(e.currentTarget.dataset.id)
163
     switch (e.currentTarget.dataset.id) {
164
     switch (e.currentTarget.dataset.id) {
164
       case 'name':
165
       case 'name':
270
       status: 1
271
       status: 1
271
     }
272
     }
272
     recommendClient(param).then(res => {
273
     recommendClient(param).then(res => {
273
-      Taro.showToast({
274
-        title: '提交成功'
275
-      })
274
+      if (res) {
275
+        Taro.showToast({
276
+          title: '提交成功'
277
+        })
278
+      }
276
       this.clearInputEvent()
279
       this.clearInputEvent()
277
-      Taro.navigateTo({ url: '/pages/agent/client/index' })//测试用
280
+      setTimeout(() => {
281
+        Taro.navigateTo({ url: '/pages/agent/client/index' })//测试用
282
+      }, 700)
278
     })
283
     })
279
-
280
   }
284
   }
281
   // 性别
285
   // 性别
282
   bindSexChange(e) {
286
   bindSexChange(e) {

+ 0
- 4
src/pages/person/customerAnalysis/index.scss Vedi File

132
 
132
 
133
 
133
 
134
 .user_con{
134
 .user_con{
135
-  margin: 0 20px 40px 20px;
136
-  height:256px;
137
-  box-shadow:0px 4px 12px 0px rgba(0,0,0,0.12);
138
-  border-radius:12px;
139
   position: relative;
135
   position: relative;
140
  
136
  
141
   .bg{
137
   .bg{

+ 2
- 1
src/pages/person/customerAnalysis/item/index.scss Vedi File

12
   border-radius:  12px;
12
   border-radius:  12px;
13
   overflow: hidden;
13
   overflow: hidden;
14
   margin-bottom: 20px;
14
   margin-bottom: 20px;
15
-  width: 100%;
15
+  width: 98%;
16
+  margin: 0 1%;
16
   position: relative;
17
   position: relative;
17
   .type{
18
   .type{
18
     position: absolute;
19
     position: absolute;

+ 5
- 13
src/pages/person/customerAnalysis/myCustomer.js Vedi File

277
       this.setState({
277
       this.setState({
278
         customerDetail: res || {}
278
         customerDetail: res || {}
279
       })
279
       })
280
-      const params = {
281
-        recordType: '添加跟进',
282
-        customerSex: this.state.customerDetail.sex,
283
-        customerId,
284
-      }
285
       Taro.showToast({
280
       Taro.showToast({
286
         title: '完善信息成功',
281
         title: '完善信息成功',
287
         icon: 'none'
282
         icon: 'none'
288
       })
283
       })
289
-      addFollowRecord(params).then(res => {
290
-        this.queryFollowRecord(1)
291
-      })
292
     })
284
     })
293
     this.setState({
285
     this.setState({
294
       baseVisible: false,
286
       baseVisible: false,
455
       <View>
447
       <View>
456
         {followVisible && this.renderFollowBox()}
448
         {followVisible && this.renderFollowBox()}
457
         {baseVisible && this.renderBaseBox()}
449
         {baseVisible && this.renderBaseBox()}
458
-        <View className="user_con">
450
+        <View className="user_con" style=" margin: 0 20rpx 40rpx 20rpx; height:256rpx;box-shadow:0rpx 4rpx 12rpx 0rpx rgba(0,0,0,0.12); border-radius:12rpx;">
459
           <Image className="bg" src={getThumbnail('https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/shop/background.jpg')} ></Image>
451
           <Image className="bg" src={getThumbnail('https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/shop/background.jpg')} ></Image>
460
           <Image className="user__left__headimg" src={customerDetail.picture || require('@assets/default-avatar.png')} />
452
           <Image className="user__left__headimg" src={customerDetail.picture || require('@assets/default-avatar.png')} />
461
           <View className='user__left__name'>
453
           <View className='user__left__name'>
469
           </View>
461
           </View>
470
           <View onClick={this.handleTelClick.bind(this, customerDetail)} className='user__left__phone'>{customerDetail.phone}<Image style="width:36rpx;height:36rpx;margin-left:20rpx;" src={phoneImg} /></View>
462
           <View onClick={this.handleTelClick.bind(this, customerDetail)} className='user__left__phone'>{customerDetail.phone}<Image style="width:36rpx;height:36rpx;margin-left:20rpx;" src={phoneImg} /></View>
471
         </View>
463
         </View>
472
-        <AtTabs height="calc(100vh - 400rpx)" className="my-tab" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
464
+        <AtTabs height="calc(100vh - 320rpx)" className="my-tab" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
473
           <AtTabsPane current={this.state.current} index={0} >
465
           <AtTabsPane current={this.state.current} index={0} >
474
             <View className="tab-pane1 pane">
466
             <View className="tab-pane1 pane">
475
               <View className="status">{customerDetail.status == 1 ? '报备' : customerDetail.status == 2 ? '到访' : customerDetail.status == 3 ? '认筹' : '签约'}</View>
467
               <View className="status">{customerDetail.status == 1 ? '报备' : customerDetail.status == 2 ? '到访' : customerDetail.status == 3 ? '认筹' : '签约'}</View>
485
             <View className="tab-pane2 pane">
477
             <View className="tab-pane2 pane">
486
               <ListView
478
               <ListView
487
                 className="wrap"
479
                 className="wrap"
488
-                style="height:calc(100vh - 400rpx)"
480
+                style="height:calc(100vh - 320rpx)"
489
                 needInit
481
                 needInit
490
                 isEmpty={isEmpty}
482
                 isEmpty={isEmpty}
491
                 emptyText="暂无访问记录~"
483
                 emptyText="暂无访问记录~"
521
             <View className="tab-pane3 pane">
513
             <View className="tab-pane3 pane">
522
               <ListView
514
               <ListView
523
                 className="wrap"
515
                 className="wrap"
524
-                style="height:calc(100vh - 400rpx)"
516
+                style="height:calc(100vh - 320rpx)"
525
                 needInit
517
                 needInit
526
                 isEmpty={isEmpty2}
518
                 isEmpty={isEmpty2}
527
                 emptyText="暂无活动信息~"
519
                 emptyText="暂无活动信息~"
553
               <ListView
545
               <ListView
554
                 className="wrap"
546
                 className="wrap"
555
                 needInit
547
                 needInit
556
-                style="height:calc(100vh - 600rpx)"
548
+                style="height:calc(100vh - 560rpx)"
557
                 isEmpty={isEmpty3}
549
                 isEmpty={isEmpty3}
558
                 emptyText="暂无跟进记录~"
550
                 emptyText="暂无跟进记录~"
559
                 hasMore={hasMore3}
551
                 hasMore={hasMore3}