149 lines
4.6 KiB
JavaScript
149 lines
4.6 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
const common_vendor = require("./common/vendor.js");
|
|
const common_js_util = require("./common/js/util.js");
|
|
const store_index = require("./store/index.js");
|
|
if (!Math) {
|
|
"./pages/index/index.js";
|
|
"./pages/news/ce.js";
|
|
"./pages/login/open.js";
|
|
"./pages/login/loginPhone.js";
|
|
"./pages/shop/shop.js";
|
|
"./pages/merchant/business-operator/index.js";
|
|
"./pages/merchant/order/index.js";
|
|
"./pages/merchant/commodity-release/index.js";
|
|
"./pages/merchant/specifications/index.js";
|
|
"./pages/shop/search/index.js";
|
|
"./pages/shop/commodity/index.js";
|
|
"./pages/shop/continue-pay/index.js";
|
|
"./pages/shop/store/index.js";
|
|
"./pages/shop/order/index.js";
|
|
"./pages/shop/sales/index.js";
|
|
"./pages/shop/refund/index.js";
|
|
"./pages/shop/money-whereabouts/index.js";
|
|
"./pages/shop/after-sales/index.js";
|
|
"./pages/shop/transaction-completed/index.js";
|
|
"./pages/shop/waiting-delivery/index.js";
|
|
"./pages/shop/logistics-state/index.js";
|
|
"./pages/news/news.js";
|
|
"./pages/news/group-chat-list/index.js";
|
|
"./pages/news/group-chat/index.js";
|
|
"./pages/news/question-answer/index.js";
|
|
"./pages/news/red-envelope/index.js";
|
|
"./pages/mine/mine.js";
|
|
"./pages/mine/set-up/index.js";
|
|
"./pages/mine/userinfo.js";
|
|
"./pages/mine/switch-accounts/index.js";
|
|
"./pages/mine/pay-use/index.js";
|
|
"./pages/mine/real-name-authentication/index.js";
|
|
"./pages/mine/delivery-address/index.js";
|
|
"./pages/mine/balance/index.js";
|
|
"./pages/mine/balance-details/index.js";
|
|
"./pages/mine/historical-browsing/index.js";
|
|
"./pages/mine/browsed/index.js";
|
|
"./pages/mine/collection/index.js";
|
|
"./pages/mine/target-store/index.js";
|
|
"./pages/mine/coupon/index.js";
|
|
"./pages/mine/homepage.js";
|
|
"./pages/release/video.js";
|
|
"./pages/index/wallet.js";
|
|
"./pages/index/myTeam.js";
|
|
"./pages/index/search.js";
|
|
"./pages/index/videoHome.js";
|
|
"./pages/index/report.js";
|
|
"./pages/mine/collectsVideo.js";
|
|
"./pages/index/promotion.js";
|
|
"./pages/index/myQrCode.js";
|
|
"./pages/index/deal.js";
|
|
"./pages/index/durian.js";
|
|
"./pages/index/durainActivation.js";
|
|
"./pages/index/trade.js";
|
|
"./pages/index/orchard.js";
|
|
"./pages/index/extend.js";
|
|
"./pages/login/register.js";
|
|
"./pages/login/forget.js";
|
|
"./pages/login/retrieve.js";
|
|
"./pages/shop/settle.js";
|
|
"./pages/index/integral.js";
|
|
"./pages/index/integralLog.js";
|
|
"./pages/index/integralMall.js";
|
|
"./pages/index/appeal.js";
|
|
"./pages/index/beInvited.js";
|
|
"./pages/index/videoDetail.js";
|
|
"./pages/news/newFriend.js";
|
|
"./pages/news/newAttention.js";
|
|
"./pages/news/newFans.js";
|
|
"./pages/news/message.js";
|
|
"./pages/index/article.js";
|
|
"./pages/index/topUp.js";
|
|
"./TUIKit/components/TUIConversation/index.js";
|
|
"./TUIKit/components/TUIChat/index.js";
|
|
"./TUIKit/components/TUIChat/video-play.js";
|
|
"./TUIKit/components/TUIChat/web-view.js";
|
|
"./TUIKit/components/TUIContact/index.js";
|
|
"./TUIKit/components/TUIGroup/index.js";
|
|
"./TUIKit/components/TUISearch/index2.js";
|
|
}
|
|
common_vendor.index.$SDKAppID = "1600057275";
|
|
common_vendor.index.$secretKey = "7d016821bf27a846739e209534abe4c4bba131559b3318e19f8ccf9294e08b29";
|
|
common_vendor.index.$userSig = "";
|
|
TUIChatKit.init();
|
|
const _sfc_main = {
|
|
// mixins: [Mixins],
|
|
onLaunch() {
|
|
console.warn(123);
|
|
this.getUserinfo();
|
|
},
|
|
methods: {
|
|
getUserinfo() {
|
|
const token = common_vendor.index.getStorageSync("token");
|
|
const userinfo = common_vendor.index.getStorageSync("userinfo");
|
|
if (token) {
|
|
if (userinfo)
|
|
store_index.store.commit("setState", {
|
|
key: "userinfo",
|
|
value: userinfo
|
|
});
|
|
common_js_util.util.getUserinfo();
|
|
}
|
|
}
|
|
}
|
|
};
|
|
common_vendor.index.$store = store_index.store;
|
|
function createApp() {
|
|
const app = common_vendor.createSSRApp(_sfc_main);
|
|
app.provide("util", common_js_util.util);
|
|
app.use(store_index.store);
|
|
app.mixin({
|
|
methods: {
|
|
setData: function(obj, callback) {
|
|
let that = this;
|
|
let keys = [];
|
|
let val, data;
|
|
Object.keys(obj).forEach(function(key) {
|
|
keys = key.split(".");
|
|
val = obj[key];
|
|
data = that.$data;
|
|
keys.forEach(function(key2, index) {
|
|
if (index + 1 == keys.length) {
|
|
that.$set(data, key2, val);
|
|
} else {
|
|
if (!data[key2]) {
|
|
that.$set(data, key2, {});
|
|
}
|
|
}
|
|
data = data[key2];
|
|
});
|
|
});
|
|
callback && callback();
|
|
}
|
|
}
|
|
});
|
|
return {
|
|
app,
|
|
Vuex: common_vendor.index$1
|
|
};
|
|
}
|
|
createApp().app.mount("#app");
|
|
exports.createApp = createApp;
|