first commit
This commit is contained in:
31
dist/resources/static/js/app/index.js
vendored
Executable file
31
dist/resources/static/js/app/index.js
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
define(['jquery','swiper','utils', 'zui'],function ($,swiper,utils) {
|
||||
function Index() {
|
||||
|
||||
}
|
||||
|
||||
Index.prototype = {
|
||||
init () {
|
||||
new $.zui.Messager('zui弹窗。', {
|
||||
icon: 'heart',
|
||||
placement: 'center'
|
||||
}).show();
|
||||
},
|
||||
|
||||
|
||||
//初始化 swiper 轮播图
|
||||
newSwiper () {
|
||||
// new swiper ('.swiper-container', {
|
||||
// direction: 'horizontal',
|
||||
// loop: true,
|
||||
// autoplay: true,
|
||||
// pagination: {
|
||||
// el: '.swiper-pagination',
|
||||
// clickable :true,
|
||||
// }
|
||||
// });
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
return new Index();
|
||||
})
|
||||
Reference in New Issue
Block a user