作者 杨育虎

iiii

... ... @@ -13,6 +13,11 @@ return [
'wanlshop',
],
],
'route' => [],
'route' => [
'/example$' => 'example/index/index',
'/example/d/[:name]' => 'example/demo/index',
'/example/d1/[:name]' => 'example/demo/demo1',
'/example/d2/[:name]' => 'example/demo/demo2',
],
'priority' => [],
];
... ...
define([], function () {
require.config({
paths: {
'async': '../addons/example/js/async',
'BMap': ['//api.map.baidu.com/api?v=2.0&ak=mXijumfojHnAaN2VxpBGoqHM'],
},
shim: {
'BMap': {
deps: ['jquery'],
exports: 'BMap'
}
}
});
require.config({
paths: {
'jquery-colorpicker': '../addons/wanlshop/js/jquery.colorpicker.min',
'jquery-autocomplete': '../addons/wanlshop/js/jquery.autocomplete',
'jquery-jqprint': '../addons/wanlshop/js/jquery.jqprint-0.3.min',
... ...