Esempio n. 1
0
var tpl = __inline('index.tpl');
var header = require('widgets/header');
var footer = require('widgets/footer');

/**
 * 首页模块
 *
 * @class index
 * @constructor
 */
var index = Vue.extend({
    template: tpl,
    components:{
        "c-head":header(),
        "c-foot":footer()
    },
    ready: function () {
    }
});


/**
 * My method description.  Like other pieces of your comment blocks,
 * this can span multiple lines.
 *
 * @method init
 * @return {Object} Returns index page component
 */
var init = function () {
    var indexDom = new index({
Esempio n. 2
0
var footer = require('widgets/footer');
var port = require('util/port');

var about = Vue.extend({
    template: tpl,
    data: function () {
        return {
            data: {
                crumbdata: {},
                list: []
            }
        }
    },
    components: {
        "c-head": head(),
        "c-footer": footer()
    },
    ready: function () {
        plugins();
        $('.testimonails-slider').flexslider({
            animation: 'slide',
            slideshowSpeed: 5000,
            prevText: '',
            nextText: '',
            controlNav: false
        });

    },
    method: function () {

    }