Merge branch 'feature/spread' into release/5.9
Showing
3 changed files
with
29 additions
and
7 deletions
@@ -31,6 +31,8 @@ module.exports = class extends global.yoho.BaseModel { | @@ -31,6 +31,8 @@ module.exports = class extends global.yoho.BaseModel { | ||
31 | if (resList.code === 200) { | 31 | if (resList.code === 200) { |
32 | let list = _.get(resList, 'data.data', []); | 32 | let list = _.get(resList, 'data.data', []); |
33 | 33 | ||
34 | + resData.rules = _.get(resList, 'data.activityRuleDesc', ''); | ||
35 | + | ||
34 | if (!_.isEmpty(list)) { | 36 | if (!_.isEmpty(list)) { |
35 | resData.list = list; | 37 | resData.list = list; |
36 | } | 38 | } |
@@ -44,7 +46,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -44,7 +46,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
44 | count: _.get(resList, 'data.total', 0), | 46 | count: _.get(resList, 'data.total', 0), |
45 | curPage: _.get(resList, 'data.currPage', 1), | 47 | curPage: _.get(resList, 'data.currPage', 1), |
46 | totalPages: totalPage | 48 | totalPages: totalPage |
47 | - }) | 49 | + }); |
48 | } | 50 | } |
49 | } | 51 | } |
50 | 52 |
@@ -7,21 +7,21 @@ | @@ -7,21 +7,21 @@ | ||
7 | {{# spread}} | 7 | {{# spread}} |
8 | <div class="spread-wrap clearfix"> | 8 | <div class="spread-wrap clearfix"> |
9 | <div class="item-card"> | 9 | <div class="item-card"> |
10 | - <span class="tag">邀请二维码</span> | 10 | + <span class="tag">方法一:扫描邀请二维码</span> |
11 | <div class="card-main"> | 11 | <div class="card-main"> |
12 | <div class="spread-code" data-url="{{url}}"></div> | 12 | <div class="spread-code" data-url="{{url}}"></div> |
13 | </div> | 13 | </div> |
14 | <p>{{{activityDescribe}}}</p> | 14 | <p>{{{activityDescribe}}}</p> |
15 | </div> | 15 | </div> |
16 | <div class="item-card"> | 16 | <div class="item-card"> |
17 | - <span class="tag">邀请码</span> | 17 | + <span class="tag">方法二:使用邀请码</span> |
18 | <div class="card-main"> | 18 | <div class="card-main"> |
19 | <p class="spread-id">{{inviteCode}}</p> | 19 | <p class="spread-id">{{inviteCode}}</p> |
20 | </div> | 20 | </div> |
21 | <p>1.复制您的邀请码<br>2.粘贴给您的朋友</p> | 21 | <p>1.复制您的邀请码<br>2.粘贴给您的朋友</p> |
22 | </div> | 22 | </div> |
23 | <div class="item-card"> | 23 | <div class="item-card"> |
24 | - <span class="tag">邀请链接</span> | 24 | + <span class="tag">方法二:使用邀请链接</span> |
25 | <div class="card-main"> | 25 | <div class="card-main"> |
26 | <div class="spread-url"> | 26 | <div class="spread-url"> |
27 | <input type="text" value="{{url}}" class | 27 | <input type="text" value="{{url}}" class |
@@ -32,6 +32,10 @@ | @@ -32,6 +32,10 @@ | ||
32 | <p>1.复制您的邀请链接<br>2.选择您的社交平台<br>3.粘贴给您的朋友</p> | 32 | <p>1.复制您的邀请链接<br>2.选择您的社交平台<br>3.粘贴给您的朋友</p> |
33 | </div> | 33 | </div> |
34 | </div> | 34 | </div> |
35 | + <div class="spread-wrap clearfix spread-rules"> | ||
36 | + <h2>活动细则</h2> | ||
37 | + <p>{{{rules}}}</p> | ||
38 | + </div> | ||
35 | <div class="my-spread-list"> | 39 | <div class="my-spread-list"> |
36 | <table> | 40 | <table> |
37 | <thead> | 41 | <thead> |
@@ -28,9 +28,9 @@ | @@ -28,9 +28,9 @@ | ||
28 | } | 28 | } |
29 | 29 | ||
30 | .tag { | 30 | .tag { |
31 | - width: 76px; | ||
32 | - height: 24px; | ||
33 | - line-height: 24px; | 31 | + width: 100%; |
32 | + height: 25px; | ||
33 | + line-height: 25px; | ||
34 | background-color: #000; | 34 | background-color: #000; |
35 | color: #fff; | 35 | color: #fff; |
36 | text-align: center; | 36 | text-align: center; |
@@ -113,4 +113,20 @@ | @@ -113,4 +113,20 @@ | ||
113 | text-align: center; | 113 | text-align: center; |
114 | } | 114 | } |
115 | } | 115 | } |
116 | + | ||
117 | + .spread-rules { | ||
118 | + border: 1px solid #dedede; | ||
119 | + padding: 10px 20px; | ||
120 | + width: 736px; | ||
121 | + margin: 0 auto; | ||
122 | + | ||
123 | + h2 { | ||
124 | + font-size: 14px; | ||
125 | + font-weight: 600; | ||
126 | + } | ||
127 | + | ||
128 | + p { | ||
129 | + line-height: 18px; | ||
130 | + } | ||
131 | + } | ||
116 | } | 132 | } |
-
Please register or login to post a comment