Commit cbe76028 authored by xiabin's avatar xiabin

编写假数据接口

parent cfdd70bd
<?php <?php
/* @var $this yii\web\View */ /* @var $this yii\web\View */
\frontend\assets\AppAsset::addScript($this, '@web/assets/home_index.js');
\frontend\assets\AppAsset::addCss($this, '@web/assets/css/home_index.css');
?> ?>
<h1>home/index</h1> <h1>home/index</h1>
......
/**
* Created by xiabin on 2016/9/29.
*/
require('expose?videojs!../libs/videojs/video.js');
require('../libs/videojs/video-js.css');
// console.log(videojs);
// layer.msg('home/index');
videojs.options.flash.swf ='';
\ No newline at end of file
$(function() {
var Accordion = function(el, multiple) {
this.el = el || {};
this.multiple = multiple || false;
// Variables privadas
var links = this.el.find('.link');
// Evento
links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
}
Accordion.prototype.dropdown = function(e) {
var $el = e.data.el;
$this = $(this),
$next = $this.next();
$next.slideToggle();
$this.parent().toggleClass('open');
if (!e.data.multiple) {
$el.find('.submenu').not($next).slideUp().parent().removeClass('open');
};
}
var accordion = new Accordion($('#accordion'), false);
});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -19,7 +19,7 @@ var entry = { ...@@ -19,7 +19,7 @@ var entry = {
user_favorite: [js_dir + '/user-center/favorite.js'], user_favorite: [js_dir + '/user-center/favorite.js'],
user_center_browse_record: [js_dir + '/user-center/browse_record.js'], user_center_browse_record: [js_dir + '/user-center/browse_record.js'],
user_center_purchased_course: [js_dir + '/user-center/purchased_course.js'], user_center_purchased_course: [js_dir + '/user-center/purchased_course.js'],
home_index: [js_dir + '/home_index.js'], home_index: [js_dir + '/home/index.js'],
course_publish: [js_dir + '/my-course/publish.js'] course_publish: [js_dir + '/my-course/publish.js']
}; };
...@@ -69,7 +69,7 @@ var config = { ...@@ -69,7 +69,7 @@ var config = {
// {from: __dirname + '/resource', to: 'resource'}, // {from: __dirname + '/resource', to: 'resource'},
{from: lib_dir + '/layer', to: 'layer'}, {from: lib_dir + '/layer', to: 'layer'},
{from: img_dir, to: 'img'}, {from: img_dir, to: 'img'},
{from: __dirname + '/lib', to: 'lib'}, {from: __dirname + '/libs', to: 'libs'},
// {from: manage_dir + '/dist', to: 'manage/dist'}, // {from: manage_dir + '/dist', to: 'manage/dist'},
// {from: manage_dir + '/plugins', to: 'manage/plugins'}, // {from: manage_dir + '/plugins', to: 'manage/plugins'},
// {from: manage_dir + '/bootstrap', to: 'manage/bootstrap'} // {from: manage_dir + '/bootstrap', to: 'manage/bootstrap'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment