xujing 5 years ago
parent
commit
dbcfa5d486

BIN
src/assets/market/bargain.png View File


BIN
src/assets/market/card.png View File


BIN
src/assets/market/collage.png View File


BIN
src/assets/market/draw.png View File


BIN
src/assets/market/guess.png View File


BIN
src/assets/market/lottery.png View File


BIN
src/assets/market/seckill.png View File


BIN
src/assets/market/shake.png View File


BIN
src/assets/market/test.png View File


+ 38
- 4
src/pages/marketingTools/index.jsx View File

2
 import { Row, Col } from 'antd';
2
 import { Row, Col } from 'antd';
3
 import router from 'umi/router';
3
 import router from 'umi/router';
4
 import Styles from './style.less';
4
 import Styles from './style.less';
5
+import bargain from '../../assets/market/bargain.png'
6
+import card from '../../assets/market/card.png'
7
+import collage from '../../assets/market/collage.png'
8
+import draw from '../../assets/market/draw.png'
9
+import guess from '../../assets/market/guess.png'
10
+import lottery from '../../assets/market/lottery.png'
11
+import seckill from '../../assets/market/seckill.png'
12
+import shake from '../../assets/market/shake.png'
13
+import test from '../../assets/market/test.png'
5
 
14
 
6
 
15
 
7
 const Market = props => {
16
 const Market = props => {
8
 
17
 
9
     const list = [
18
     const list = [
10
         {
19
         {
11
-            img: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591876471373&di=ceb7710067a87ee0fb182c4e7e753c04&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F14%2F75%2F01300000164186121366756803686.jpg',
20
+            img: draw,
12
             title: '幸运大抽奖',
21
             title: '幸运大抽奖',
13
             desc: '常见的转盘式抽奖方法',
22
             desc: '常见的转盘式抽奖方法',
14
             url: '/marketingTools/lottery/index'
23
             url: '/marketingTools/lottery/index'
15
         },
24
         },
16
         {
25
         {
17
-            img: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591876471373&di=ceb7710067a87ee0fb182c4e7e753c04&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F14%2F75%2F01300000164186121366756803686.jpg',
26
+            img: seckill,
18
             title: '秒杀',
27
             title: '秒杀',
19
             desc: '快速抢购引导顾客更多消费'
28
             desc: '快速抢购引导顾客更多消费'
20
         },
29
         },
21
         {
30
         {
22
-            img: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591876471373&di=ceb7710067a87ee0fb182c4e7e753c04&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F14%2F75%2F01300000164186121366756803686.jpg',
31
+            img: card,
23
             title: '刮刮卡',
32
             title: '刮刮卡',
24
             desc: '通过刮开卡片的方式进行抽奖的玩法'
33
             desc: '通过刮开卡片的方式进行抽奖的玩法'
25
         },
34
         },
26
         {
35
         {
27
-            img: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591876471373&di=ceb7710067a87ee0fb182c4e7e753c04&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F14%2F75%2F01300000164186121366756803686.jpg',
36
+            img: test,
28
             title: '趣味测试',
37
             title: '趣味测试',
29
             desc: '趣味小测试,互动吸粉'
38
             desc: '趣味小测试,互动吸粉'
30
         },
39
         },
40
+        {
41
+            img: shake,
42
+            title: '摇一摇',
43
+            desc: '让客户摇一摇进行抽奖'
44
+        },
45
+        {
46
+            img: lottery,
47
+            title: '0元抽奖',
48
+            desc: '拼团成功即可获得抽奖机会'
49
+        },
50
+        {
51
+            img: guess,
52
+            title: '疯狂猜猜猜',
53
+            desc: '回答问题,按答题情况给奖励'
54
+        },
55
+        {
56
+            img: collage,
57
+            title: '多人拼团',
58
+            desc: '引导用户邀请好友参加'
59
+        },
60
+        {
61
+            img: bargain,
62
+            title: '砍价0元购',
63
+            desc: '邀请好友砍价后购买'
64
+        },
31
     ]
65
     ]
32
 
66
 
33
     const handleItem = (url) => {
67
     const handleItem = (url) => {

+ 2
- 3
src/pages/marketingTools/lottery/style.less View File

23
 }
23
 }
24
 .content{
24
 .content{
25
     display: flex;
25
     display: flex;
26
-    // align-items: center;
27
-    margin-top: 30px;
26
+    padding: 60px 10%;
28
   
27
   
29
 }
28
 }
30
 .title{
29
 .title{
35
     margin-bottom: 20px;
34
     margin-bottom: 20px;
36
 }
35
 }
37
 .img{
36
 .img{
38
-    margin-right: 50px;
37
+    margin-right: 80px;
39
 }
38
 }

+ 5
- 7
src/pages/marketingTools/style.less View File

1
 
1
 
2
 .itemBox{
2
 .itemBox{
3
-    flex: 0 0 30%;
4
     height: 132px;
3
     height: 132px;
5
     box-sizing: border-box;
4
     box-sizing: border-box;
6
     border-radius: 8px;
5
     border-radius: 8px;
7
     border:1px solid #eee;
6
     border:1px solid #eee;
8
-    padding: 16px;
9
-    margin: 20px 20px 20px 30px;
7
+    margin: 15px;
10
     display: flex;
8
     display: flex;
11
     align-items: center;
9
     align-items: center;
12
-    min-width: 360px;
10
+    min-width: 460px;
13
     box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 16px 2px;
11
     box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 16px 2px;
14
-
12
+    background-color: #fff;
15
 
13
 
16
     .img{
14
     .img{
17
-        height: 100px;
18
-        width: 100px;
15
+        height: 100%;
19
         margin-right: 16px;
16
         margin-right: 16px;
17
+        border-radius: 8px 0 0 8px;
20
     }
18
     }
21
 }
19
 }