作者 杨育虎

iiii

@@ -13,6 +13,11 @@ return [ @@ -13,6 +13,11 @@ return [
13 'wanlshop', 13 'wanlshop',
14 ], 14 ],
15 ], 15 ],
16 - 'route' => [], 16 + 'route' => [
  17 + '/example$' => 'example/index/index',
  18 + '/example/d/[:name]' => 'example/demo/index',
  19 + '/example/d1/[:name]' => 'example/demo/demo1',
  20 + '/example/d2/[:name]' => 'example/demo/demo2',
  21 + ],
17 'priority' => [], 22 'priority' => [],
18 ]; 23 ];
1 define([], function () { 1 define([], function () {
2 require.config({ 2 require.config({
3 paths: { 3 paths: {
  4 + 'async': '../addons/example/js/async',
  5 + 'BMap': ['//api.map.baidu.com/api?v=2.0&ak=mXijumfojHnAaN2VxpBGoqHM'],
  6 + },
  7 + shim: {
  8 + 'BMap': {
  9 + deps: ['jquery'],
  10 + exports: 'BMap'
  11 + }
  12 + }
  13 +});
  14 +
  15 +require.config({
  16 + paths: {
4 'jquery-colorpicker': '../addons/wanlshop/js/jquery.colorpicker.min', 17 'jquery-colorpicker': '../addons/wanlshop/js/jquery.colorpicker.min',
5 'jquery-autocomplete': '../addons/wanlshop/js/jquery.autocomplete', 18 'jquery-autocomplete': '../addons/wanlshop/js/jquery.autocomplete',
6 'jquery-jqprint': '../addons/wanlshop/js/jquery.jqprint-0.3.min', 19 'jquery-jqprint': '../addons/wanlshop/js/jquery.jqprint-0.3.min',