Showing
3 changed files
with
11 additions
and
5 deletions
@@ -407,8 +407,9 @@ class YoLuckService extends global.yoho.BaseModel { | @@ -407,8 +407,9 @@ class YoLuckService extends global.yoho.BaseModel { | ||
407 | async getCode({shareUid, uid, actPrizeId}) { | 407 | async getCode({shareUid, uid, actPrizeId}) { |
408 | try { | 408 | try { |
409 | let userInfo = await this.api._getUsreInfo(uid); | 409 | let userInfo = await this.api._getUsreInfo(uid); |
410 | - let userThumb = userInfo.nickname || ''; | ||
411 | - let userName = userInfo.head_ico || ''; | 410 | + |
411 | + let userThumb = userInfo.data.nickname || ''; | ||
412 | + let userName = userInfo.data.head_ico || ''; | ||
412 | 413 | ||
413 | const result = await this.api.fetchCode({ | 414 | const result = await this.api.fetchCode({ |
414 | shareUid, | 415 | shareUid, |
@@ -21,7 +21,9 @@ | @@ -21,7 +21,9 @@ | ||
21 | {{/ifcond}} | 21 | {{/ifcond}} |
22 | 22 | ||
23 | {{#ifcond floor_type '===' 3}} | 23 | {{#ifcond floor_type '===' 3}} |
24 | - <video class="desc-video" src="{{content}}"></video> | 24 | + <video class="desc-video" controls="controls"> |
25 | + <source src="{{content}}" type="video/mp4" /> | ||
26 | + </video> | ||
25 | {{/ifcond}} | 27 | {{/ifcond}} |
26 | {{/each}} | 28 | {{/each}} |
27 | </div> | 29 | </div> |
@@ -30,7 +30,7 @@ let store = { | @@ -30,7 +30,7 @@ let store = { | ||
30 | 30 | ||
31 | footText: '', | 31 | footText: '', |
32 | running: false, | 32 | running: false, |
33 | - countDown: [], | 33 | + countDown: $(), |
34 | }; | 34 | }; |
35 | 35 | ||
36 | let api = new Api(); | 36 | let api = new Api(); |
@@ -118,7 +118,10 @@ function fetchPage(page, index) { | @@ -118,7 +118,10 @@ function fetchPage(page, index) { | ||
118 | } else { | 118 | } else { |
119 | let $node = tabpanelStore.nodes.eq(index); | 119 | let $node = tabpanelStore.nodes.eq(index); |
120 | let $products = result.data.map(r => { | 120 | let $products = result.data.map(r => { |
121 | - return productTpl(r); | 121 | + const p = productTpl(r); |
122 | + | ||
123 | + store.countDown = store.countDown.add($(p).find('.product_countdown')); | ||
124 | + return p; | ||
122 | }); | 125 | }); |
123 | 126 | ||
124 | store.list[index].page = page; | 127 | store.list[index].page = page; |
-
Please register or login to post a comment