Procházet zdrojové kódy

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

周立森 před 5 roky
rodič
revize
6e3ef85c31

binární
chengjiaojinfang.zip Zobrazit soubor


+ 1
- 1
src/components/ListView/index.scss Zobrazit soubor

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

+ 13
- 7
src/pages/activity/detail/index.js Zobrazit soubor

@@ -280,13 +280,19 @@ export default class Detail extends Component {
280 280
     }
281 281
 
282 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 298
     savePoint({

+ 9
- 5
src/pages/agent/recommend/index.js Zobrazit soubor

@@ -159,6 +159,7 @@ export default class Index extends Component {
159 159
     })
160 160
   }
161 161
   BindInfo(e) {
162
+    console.log(e, "8888888888")
162 163
     console.log(e.currentTarget.dataset.id)
163 164
     switch (e.currentTarget.dataset.id) {
164 165
       case 'name':
@@ -270,13 +271,16 @@ export default class Index extends Component {
270 271
       status: 1
271 272
     }
272 273
     recommendClient(param).then(res => {
273
-      Taro.showToast({
274
-        title: '提交成功'
275
-      })
274
+      if (res) {
275
+        Taro.showToast({
276
+          title: '提交成功'
277
+        })
278
+      }
276 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 286
   bindSexChange(e) {

+ 0
- 4
src/pages/person/customerAnalysis/index.scss Zobrazit soubor

@@ -132,10 +132,6 @@
132 132
 
133 133
 
134 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 135
   position: relative;
140 136
  
141 137
   .bg{

+ 2
- 1
src/pages/person/customerAnalysis/item/index.scss Zobrazit soubor

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

+ 5
- 13
src/pages/person/customerAnalysis/myCustomer.js Zobrazit soubor

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