xujing 5 years ago
parent
commit
293215519a
2 changed files with 80 additions and 29 deletions
  1. 27
    12
      src/pages/person/accessRecord.js
  2. 53
    17
      src/pages/person/index.scss

+ 27
- 12
src/pages/person/accessRecord.js View File

@@ -7,47 +7,62 @@ export default class Person extends Component {
7 7
   }
8 8
 
9 9
   state = {
10
-
10
+    popVisible: false,
11 11
   }
12 12
 
13 13
   componentDidShow() {
14 14
     // Taro.showLoading()
15 15
   }
16
+  handleMaskClose() {
17
+    this.setState({
18
+      popVisible: false,
19
+    })
20
+  }
21
+  activityList(){
22
+    this.setState({
23
+      popVisible: true,
24
+    })
25
+  }
16 26
   renderPop() {
17 27
     return (
18 28
       <View className="pop-box">
19 29
 
20 30
 
21 31
         <View className="content">
22
-
32
+          <Icon className="iconfont close icon-buoumaotubiao20" onClick={this.handleMaskClose}></Icon>
33
+          <View className="activity-item">
34
+            <View className="name">
35
+              活动名称展示处活动名称展示处活动名么的事借款部分手机电脑热风
36
+            </View>
37
+            <View className="time">
38
+              2019-12-06 12:23:54
39
+            </View>
40
+          </View>
23 41
         </View>
24
-
25
-
26
-
27 42
       </View>
28 43
     )
29 44
   }
30 45
 
31 46
   render() {
32
-
47
+    const {popVisible} = this.state
33 48
     return (
34 49
       <Block>
35
-        {this.renderPop()}
50
+        {popVisible&&this.renderPop()}
36 51
         <View className='access-page'>
37 52
           <View className='item'>
38 53
             <View className="tag">我的客户</View>
39 54
             <Image className="touxiang" src={require('@assets/default-avatar.png')}></Image>
40 55
             <View className="info-top">
41 56
               <View className="name">曹建芳</View>
42
-              <Image className="goutong-icon" src={require('@assets/person/zixun.png')}></Image>
43
-              <View className="goutong">在线沟通</View>
57
+              <View style="display: flex;align-items: center;"><Image className="goutong-icon" src={require('@assets/person/zixun.png')}></Image><Text className="goutong">在线沟通</Text></View>
44 58
             </View>
45
-            <View className="activity-name">
59
+            <View className="activity-name" onClick={this.activityList}>
46 60
               活动名称展示处活动名称展示处活动名么的事借款部分手机电脑热风
47
-        </View>
61
+            </View>
62
+            <Text className="right-icon"></Text>
48 63
             <View className="activity-time">
49 64
               2019-12-06 12:23:54
50
-        </View>
65
+            </View>
51 66
           </View>
52 67
         </View>
53 68
       </Block>

+ 53
- 17
src/pages/person/index.scss View File

@@ -340,12 +340,15 @@
340 340
     position: relative;
341 341
     .tag{
342 342
       position: absolute;
343
-      right: 0;
344
-      top: 0;
345
-      background-color: $primary-color;
346
-      padding: 10px 18px 10px 24px;
347
-      border-radius:0px 12px 0px 36px;
348
-      font-size: 26px;
343
+      left: 26px;
344
+      top: 102px;
345
+      width:96px;
346
+      height:32px;
347
+      line-height: 32px;
348
+      text-align: center;
349
+      background:rgba(237,202,115,1);
350
+      border-radius:2px;
351
+      font-size: 22px;
349 352
       color: #fff;
350 353
     }
351 354
     .touxiang{
@@ -359,6 +362,8 @@
359 362
       top: 46px;
360 363
       left:140px;
361 364
       align-items: center;
365
+      justify-content: space-between;
366
+      width: 520px;
362 367
       .name{
363 368
         font-size: 40px;
364 369
         color: #000;
@@ -367,16 +372,29 @@
367 372
         @include text-ellipsis;
368 373
       }
369 374
       .goutong-icon{
370
-        width:40px;
371
-        height:40px;
375
+        width:44px;
376
+        height:44px;
372 377
         background:rgba(255,219,179,0.2);
373
-        border-radius: 20px;
374
-        margin: 0 20px 0 30px;
378
+        border-radius: 22px;
379
+        margin: 0 10px;
375 380
       }
376 381
       .goutong{
377
-        font-size: 30px;
382
+        font-size: 38px;
378 383
         color: $primary-color;
384
+        border-bottom: 4px solid #EDCA73;
385
+        line-height: 28px;
379 386
       }
387
+      
388
+    }
389
+    .right-icon{
390
+      position: absolute;
391
+      right: 30px;
392
+      top: 150px;
393
+      width:20px;
394
+      height:20px;
395
+      border-top: 3px solid #888888;
396
+      border-right: 3px solid #888888;
397
+      transform:rotate(45deg);
380 398
     }
381 399
     .activity-name{
382 400
       font-size: 32px;
@@ -409,13 +427,31 @@
409 427
       width: 92vw;
410 428
       height: 600px;
411 429
       position: absolute;
412
-      left: 50%;
413
-      top: 44%;
414
-      margin-left: -46vw;
415
-      transform: translateY(-50%);
430
+      left: 4vw;
431
+      top: 12vh;
416 432
       background-color: #fff;
417 433
       border-radius: 12px;
418
-      padding: 30px;
419
-      text-align: center;
434
+      padding: 20px 20px;
435
+      .activity-item{
436
+        padding: 16px 30px;
437
+        border-bottom: 2px solid rgba(0,0,0,0.08);
438
+        .name{
439
+          font-size: 32px;
440
+          color: #353535;
441
+          width: 600px;
442
+          @include text-ellipsis;
443
+        }
444
+        .time{
445
+          font-size: 26px;
446
+          color:rgba(0,0,0,0.33);
447
+          text-align: right;
448
+          margin-top: 20px;
449
+        }
450
+      }
451
+    }
452
+    .close{
453
+      font-size: 48px;
454
+      color: rgba(0,0,0,0.3);
455
+      float: right;
420 456
     }
421 457
 }