Merge branch 'feature/shareBuy' into 'release/5.7'
返利状态 See merge request !568
Showing
3 changed files
with
13 additions
and
7 deletions
@@ -229,6 +229,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -229,6 +229,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
229 | _.forEach(result.data.detail, function(val) { | 229 | _.forEach(result.data.detail, function(val) { |
230 | 230 | ||
231 | val.cancel = parseInt(val.status, 10) === 0 ? true : false; | 231 | val.cancel = parseInt(val.status, 10) === 0 ? true : false; |
232 | + val.already = parseInt(val.status, 10) === 2 ? true : false; | ||
232 | 233 | ||
233 | dateTime = new Date(val.createTime); | 234 | dateTime = new Date(val.createTime); |
234 | 235 |
@@ -26,8 +26,8 @@ | @@ -26,8 +26,8 @@ | ||
26 | {{# detail}} | 26 | {{# detail}} |
27 | <li> | 27 | <li> |
28 | <p class="earnings-info"> | 28 | <p class="earnings-info"> |
29 | - <span class="num">{{#if cancel}}-{{else}}+{{/if}}{{coinNum}}</span> | ||
30 | - <span>{{nickName}} <i {{#if cancel}}class="cancel"{{/if}}>{{statusStr}}</i></span> | 29 | + <span class="num">{{#if cancel}}-{{/if}}{{#if already}}+{{/if}}{{coinNum}}</span> |
30 | + <span class="user">{{nickName}} <i {{#if cancel}}class="cancel"{{/if}}>{{statusStr}}</i></span> | ||
31 | 31 | ||
32 | </p> | 32 | </p> |
33 | <p class="order-info"> | 33 | <p class="order-info"> |
@@ -56,15 +56,15 @@ | @@ -56,15 +56,15 @@ | ||
56 | } | 56 | } |
57 | 57 | ||
58 | i { | 58 | i { |
59 | - display: inline-block; | ||
60 | - width: 90px; | ||
61 | - height: 29px; | 59 | + display: block; |
60 | + height: 28px; | ||
62 | background-color: #b0b0b0; | 61 | background-color: #b0b0b0; |
63 | color: #fff; | 62 | color: #fff; |
64 | font-size: 18px; | 63 | font-size: 18px; |
65 | border-radius: 10px; | 64 | border-radius: 10px; |
66 | - line-height: 29px; | ||
67 | - text-align: center; | 65 | + margin-left: 5px; |
66 | + padding: 0 10px; | ||
67 | + line-height: 32px; | ||
68 | } | 68 | } |
69 | 69 | ||
70 | .cancel { | 70 | .cancel { |
@@ -76,6 +76,11 @@ | @@ -76,6 +76,11 @@ | ||
76 | float: right; | 76 | float: right; |
77 | text-align: right; | 77 | text-align: right; |
78 | } | 78 | } |
79 | + | ||
80 | + .user { | ||
81 | + display: flex; | ||
82 | + align-items: center; | ||
83 | + } | ||
79 | } | 84 | } |
80 | 85 | ||
81 | .order-info { | 86 | .order-info { |
-
Please register or login to post a comment