Authored by htoooth

fix bug

... ... @@ -407,8 +407,9 @@ class YoLuckService extends global.yoho.BaseModel {
async getCode({shareUid, uid, actPrizeId}) {
try {
let userInfo = await this.api._getUsreInfo(uid);
let userThumb = userInfo.nickname || '';
let userName = userInfo.head_ico || '';
let userThumb = userInfo.data.nickname || '';
let userName = userInfo.data.head_ico || '';
const result = await this.api.fetchCode({
shareUid,
... ...
... ... @@ -21,7 +21,9 @@
{{/ifcond}}
{{#ifcond floor_type '===' 3}}
<video class="desc-video" src="{{content}}"></video>
<video class="desc-video" controls="controls">
<source src="{{content}}" type="video/mp4" />
</video>
{{/ifcond}}
{{/each}}
</div>
... ...
... ... @@ -30,7 +30,7 @@ let store = {
footText: '',
running: false,
countDown: [],
countDown: $(),
};
let api = new Api();
... ... @@ -118,7 +118,10 @@ function fetchPage(page, index) {
} else {
let $node = tabpanelStore.nodes.eq(index);
let $products = result.data.map(r => {
return productTpl(r);
const p = productTpl(r);
store.countDown = store.countDown.add($(p).find('.product_countdown'));
return p;
});
store.list[index].page = page;
... ...