49 lines
1.7 KiB
JavaScript
49 lines
1.7 KiB
JavaScript
|
"use strict";
|
||
|
var __async = (__this, __arguments, generator) => {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
var fulfilled = (value) => {
|
||
|
try {
|
||
|
step(generator.next(value));
|
||
|
} catch (e) {
|
||
|
reject(e);
|
||
|
}
|
||
|
};
|
||
|
var rejected = (value) => {
|
||
|
try {
|
||
|
step(generator.throw(value));
|
||
|
} catch (e) {
|
||
|
reject(e);
|
||
|
}
|
||
|
};
|
||
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
||
|
step((generator = generator.apply(__this, __arguments)).next());
|
||
|
});
|
||
|
};
|
||
|
const modules_mall_sheep_url_index = require("./url/index.js");
|
||
|
const modules_mall_sheep_router_index = require("./router/index.js");
|
||
|
const modules_mall_sheep_platform_index = require("./platform/index.js");
|
||
|
const modules_mall_sheep_helper_index = require("./helper/index.js");
|
||
|
const modules_mall_sheep_config_zIndex = require("./config/zIndex.js");
|
||
|
const modules_mall_sheep_store_index = require("./store/index.js");
|
||
|
const common_vendor = require("../../../common/vendor.js");
|
||
|
common_vendor.dayjs.locale("zh-cn");
|
||
|
common_vendor.dayjs.extend(common_vendor.relativeTime);
|
||
|
common_vendor.dayjs.extend(common_vendor.duration);
|
||
|
const sheep = {
|
||
|
$store: modules_mall_sheep_store_index.$store,
|
||
|
$url: modules_mall_sheep_url_index.$url,
|
||
|
$router: modules_mall_sheep_router_index.$router,
|
||
|
$platform: modules_mall_sheep_platform_index._platform,
|
||
|
$helper: modules_mall_sheep_helper_index.$helper,
|
||
|
$zIndex: modules_mall_sheep_config_zIndex.zIndex
|
||
|
};
|
||
|
function ShoproInit() {
|
||
|
return __async(this, null, function* () {
|
||
|
yield modules_mall_sheep_store_index.$store("app").init();
|
||
|
modules_mall_sheep_platform_index._platform.load();
|
||
|
});
|
||
|
}
|
||
|
const sheep$1 = sheep;
|
||
|
exports.ShoproInit = ShoproInit;
|
||
|
exports.sheep = sheep$1;
|