202 lines
8.5 KiB
JavaScript
202 lines
8.5 KiB
JavaScript
(window['webpackJsonp'] = window['webpackJsonp'] || [])['push']([['chunk-19c920f8'], {
|
|
'5a19': function(_0x1588d2, _0x49ff45, _0x493500) {},
|
|
'c6bf': function(_0x1ff78d, _0x1a7aa3, _0x6392a5) {},
|
|
'ca9c': function(_0x34ea17, _0x1d01c8, _0x1a974c) {
|
|
'use strict';
|
|
var _0x116bc9 = _0x1a974c('5a19')
|
|
, _0x14ee23 = _0x1a974c['n'](_0x116bc9);
|
|
_0x14ee23['a'];
|
|
},
|
|
'd504': function(_0x4c4705, _0x3c93b9, _0x4c22a6) {
|
|
'use strict';
|
|
_0x4c22a6['r'](_0x3c93b9);
|
|
var _0x4b4f78 = function() {
|
|
var _0x1dc0eb = this
|
|
, _0x559ed0 = _0x1dc0eb['$createElement']
|
|
, _0x28c6bc = _0x1dc0eb['_self']['_c'] || _0x559ed0;
|
|
return _0x28c6bc('div', {
|
|
'attrs': {
|
|
'id': 'index'
|
|
}
|
|
}, [_0x28c6bc('el-row', {
|
|
'directives': [{
|
|
'name': 'loading',
|
|
'rawName': 'v-loading',
|
|
'value': _0x1dc0eb['loading'],
|
|
'expression': 'loading'
|
|
}]
|
|
}, [_0x28c6bc('el-col', {
|
|
'attrs': {
|
|
'span': 0x12,
|
|
'offset': 0x3
|
|
}
|
|
}, _0x1dc0eb['_l'](_0x1dc0eb['movies'], function(_0x1355ed) {
|
|
return _0x28c6bc('el-card', {
|
|
'key': _0x1355ed['name'],
|
|
'staticClass': 'item\x20m-t',
|
|
'attrs': {
|
|
'shadow': 'hover'
|
|
}
|
|
}, [_0x28c6bc('el-row', [_0x28c6bc('el-col', {
|
|
'attrs': {
|
|
'xs': 0x8,
|
|
'sm': 0x6,
|
|
'md': 0x4
|
|
}
|
|
}, [_0x28c6bc('router-link', {
|
|
'attrs': {
|
|
'to': {
|
|
'name': 'detail',
|
|
'params': {
|
|
'key': _0x1dc0eb['transfer'](_0x1355ed['id'])
|
|
}
|
|
}
|
|
}
|
|
}, [_0x28c6bc('img', {
|
|
'staticClass': 'cover',
|
|
'attrs': {
|
|
'src': _0x1355ed['cover']
|
|
}
|
|
})])], 0x1), _0x28c6bc('el-col', {
|
|
'staticClass': 'p-h',
|
|
'attrs': {
|
|
'xs': 0x9,
|
|
'sm': 0xd,
|
|
'md': 0x10
|
|
}
|
|
}, [_0x28c6bc('router-link', {
|
|
'staticClass': 'name',
|
|
'attrs': {
|
|
'to': {
|
|
'name': 'detail',
|
|
'params': {
|
|
'key': _0x1dc0eb['transfer'](_0x1355ed['id'])
|
|
}
|
|
}
|
|
}
|
|
}, [_0x28c6bc('h2', {
|
|
'staticClass': 'm-b-sm'
|
|
}, [_0x1dc0eb['_v'](_0x1dc0eb['_s'](_0x1355ed['name']) + '\x20-\x20' + _0x1dc0eb['_s'](_0x1355ed['alias']))])]), _0x28c6bc('div', {
|
|
'staticClass': 'categories'
|
|
}, _0x1dc0eb['_l'](_0x1355ed['categories'], function(_0x3f20be) {
|
|
return _0x28c6bc('el-button', {
|
|
'key': _0x3f20be,
|
|
'staticClass': 'category',
|
|
'attrs': {
|
|
'size': 'mini',
|
|
'type': 'primary'
|
|
}
|
|
}, [_0x1dc0eb['_v'](_0x1dc0eb['_s'](_0x3f20be) + '\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20')]);
|
|
}), 0x1), _0x28c6bc('div', {
|
|
'staticClass': 'm-v-sm\x20info'
|
|
}, [_0x28c6bc('span', [_0x1dc0eb['_v'](_0x1dc0eb['_s'](_0x1355ed['regions']['join']('、')))]), _0x28c6bc('span', [_0x1dc0eb['_v']('\x20/\x20')]), _0x28c6bc('span', [_0x1dc0eb['_v'](_0x1dc0eb['_s'](_0x1355ed['minute']) + '\x20分钟')])]), _0x28c6bc('div', {
|
|
'staticClass': 'm-v-sm\x20info'
|
|
}, [_0x28c6bc('span', [_0x1dc0eb['_v'](_0x1dc0eb['_s'](_0x1355ed['published_at']) + '\x20上映')])])], 0x1), _0x28c6bc('el-col', {
|
|
'attrs': {
|
|
'xs': 0x5,
|
|
'sm': 0x5,
|
|
'md': 0x4
|
|
}
|
|
}, [_0x28c6bc('p', {
|
|
'staticClass': 'score\x20m-t-md\x20m-b-n-sm'
|
|
}, [_0x1dc0eb['_v'](_0x1dc0eb['_s'](_0x1355ed['score']['toFixed'](0x1)))]), _0x28c6bc('p', [_0x28c6bc('el-rate', {
|
|
'attrs': {
|
|
'value': _0x1355ed['score'] / 0x2,
|
|
'disabled': '',
|
|
'max': 0x5,
|
|
'text-color': '#ff9900'
|
|
}
|
|
})], 0x1)])], 0x1)], 0x1);
|
|
}), 0x1)], 0x1), _0x28c6bc('el-row', [_0x28c6bc('el-col', {
|
|
'attrs': {
|
|
'span': 0xa,
|
|
'offset': 0xb
|
|
}
|
|
}, [_0x28c6bc('div', {
|
|
'staticClass': 'pagination\x20m-v-lg'
|
|
}, [_0x28c6bc('el-pagination', {
|
|
'attrs': {
|
|
'background': '',
|
|
'current-page': _0x1dc0eb['page'],
|
|
'page-size': _0x1dc0eb['limit'],
|
|
'layout': 'total,\x20prev,\x20pager,\x20next',
|
|
'total': _0x1dc0eb['total']
|
|
},
|
|
'on': {
|
|
'current-change': _0x1dc0eb['onPageChange'],
|
|
'update:currentPage': function(_0x241449) {
|
|
_0x1dc0eb['page'] = _0x241449;
|
|
},
|
|
'update:current-page': function(_0x240a84) {
|
|
_0x1dc0eb['page'] = _0x240a84;
|
|
}
|
|
}
|
|
})], 0x1)])], 0x1)], 0x1);
|
|
}
|
|
, _0x33c195 = []
|
|
, _0x2fa7bd = _0x4c22a6('7d92')
|
|
, _0x49ecf1 = _0x4c22a6('3e22')
|
|
, _0x4d1fd7 = {
|
|
'name': 'Index',
|
|
'components': {},
|
|
'data': function() {
|
|
return {
|
|
'loading': !0x1,
|
|
'total': null,
|
|
'page': parseInt(this['$route']['params']['page'] || 0x1),
|
|
'limit': 0xa,
|
|
'movies': null
|
|
};
|
|
},
|
|
'mounted': function() {
|
|
this['onFetchData']();
|
|
},
|
|
'methods': {
|
|
'transfer': _0x49ecf1['a'],
|
|
'onPageChange': function(_0x12422f) {
|
|
this['$router']['push']({
|
|
'name': 'indexPage',
|
|
'params': {
|
|
'page': _0x12422f
|
|
}
|
|
}),
|
|
this['onFetchData']();
|
|
},
|
|
'onFetchData': function() {
|
|
var _0xd5d754 = this;
|
|
this['loading'] = !0x0;
|
|
var _0x422986 = (this['page'] - 0x1) * this['limit']
|
|
, _0x263439 = Object(_0x2fa7bd['a'])(this['$store']['state']['url']['index']);
|
|
window.encrypt=Object(_0x2fa7bd['a']);
|
|
this['$axios']['get'](this['$store']['state']['url']['index'], {
|
|
'params': {
|
|
'limit': this['limit'],
|
|
'offset': _0x422986,
|
|
'token': _0x263439
|
|
}
|
|
})['then'](function(_0x464186) {
|
|
var _0x148e87 = _0x464186['data']
|
|
, _0x2f29ad = _0x148e87['results']
|
|
, _0x4829b0 = _0x148e87['count'];
|
|
_0xd5d754['loading'] = !0x1,
|
|
_0xd5d754['movies'] = _0x2f29ad,
|
|
_0xd5d754['total'] = _0x4829b0;
|
|
});
|
|
}
|
|
}
|
|
}
|
|
, _0x15f73f = _0x4d1fd7
|
|
, _0x3a0944 = (_0x4c22a6('ca9c'),
|
|
_0x4c22a6('eb45'),
|
|
_0x4c22a6('2877'))
|
|
, _0x5b3502 = Object(_0x3a0944['a'])(_0x15f73f, _0x4b4f78, _0x33c195, !0x1, null, '724ecf3b', null);
|
|
_0x3c93b9['default'] = _0x5b3502['exports'];
|
|
},
|
|
'eb45': function(_0x5e6316, _0x331917, _0x1ca927) {
|
|
'use strict';
|
|
var _0x26eff7 = _0x1ca927('c6bf')
|
|
, _0x3af8d4 = _0x1ca927['n'](_0x26eff7);
|
|
_0x3af8d4['a'];
|
|
}
|
|
}]);
|