xujing 5 年前
父节点
当前提交
293215519a
共有 2 个文件被更改,包括 80 次插入29 次删除
  1. 27
    12
      src/pages/person/accessRecord.js
  2. 53
    17
      src/pages/person/index.scss

+ 27
- 12
src/pages/person/accessRecord.js 查看文件

7
   }
7
   }
8
 
8
 
9
   state = {
9
   state = {
10
-
10
+    popVisible: false,
11
   }
11
   }
12
 
12
 
13
   componentDidShow() {
13
   componentDidShow() {
14
     // Taro.showLoading()
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
   renderPop() {
26
   renderPop() {
17
     return (
27
     return (
18
       <View className="pop-box">
28
       <View className="pop-box">
19
 
29
 
20
 
30
 
21
         <View className="content">
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
         </View>
41
         </View>
24
-
25
-
26
-
27
       </View>
42
       </View>
28
     )
43
     )
29
   }
44
   }
30
 
45
 
31
   render() {
46
   render() {
32
-
47
+    const {popVisible} = this.state
33
     return (
48
     return (
34
       <Block>
49
       <Block>
35
-        {this.renderPop()}
50
+        {popVisible&&this.renderPop()}
36
         <View className='access-page'>
51
         <View className='access-page'>
37
           <View className='item'>
52
           <View className='item'>
38
             <View className="tag">我的客户</View>
53
             <View className="tag">我的客户</View>
39
             <Image className="touxiang" src={require('@assets/default-avatar.png')}></Image>
54
             <Image className="touxiang" src={require('@assets/default-avatar.png')}></Image>
40
             <View className="info-top">
55
             <View className="info-top">
41
               <View className="name">曹建芳</View>
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
             </View>
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
             <View className="activity-time">
63
             <View className="activity-time">
49
               2019-12-06 12:23:54
64
               2019-12-06 12:23:54
50
-        </View>
65
+            </View>
51
           </View>
66
           </View>
52
         </View>
67
         </View>
53
       </Block>
68
       </Block>

+ 53
- 17
src/pages/person/index.scss 查看文件

340
     position: relative;
340
     position: relative;
341
     .tag{
341
     .tag{
342
       position: absolute;
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
       color: #fff;
352
       color: #fff;
350
     }
353
     }
351
     .touxiang{
354
     .touxiang{
359
       top: 46px;
362
       top: 46px;
360
       left:140px;
363
       left:140px;
361
       align-items: center;
364
       align-items: center;
365
+      justify-content: space-between;
366
+      width: 520px;
362
       .name{
367
       .name{
363
         font-size: 40px;
368
         font-size: 40px;
364
         color: #000;
369
         color: #000;
367
         @include text-ellipsis;
372
         @include text-ellipsis;
368
       }
373
       }
369
       .goutong-icon{
374
       .goutong-icon{
370
-        width:40px;
371
-        height:40px;
375
+        width:44px;
376
+        height:44px;
372
         background:rgba(255,219,179,0.2);
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
       .goutong{
381
       .goutong{
377
-        font-size: 30px;
382
+        font-size: 38px;
378
         color: $primary-color;
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
     .activity-name{
399
     .activity-name{
382
       font-size: 32px;
400
       font-size: 32px;
409
       width: 92vw;
427
       width: 92vw;
410
       height: 600px;
428
       height: 600px;
411
       position: absolute;
429
       position: absolute;
412
-      left: 50%;
413
-      top: 44%;
414
-      margin-left: -46vw;
415
-      transform: translateY(-50%);
430
+      left: 4vw;
431
+      top: 12vh;
416
       background-color: #fff;
432
       background-color: #fff;
417
       border-radius: 12px;
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
 }