first commit
This commit is contained in:
95
unpackage/dist/dev/mp-alipay/app.js
vendored
Normal file
95
unpackage/dist/dev/mp-alipay/app.js
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const common_vendor = require("./common/vendor.js");
|
||||
const store_index = require("./store/index.js");
|
||||
const uni_modules_uviewPlus_index = require("./uni_modules/uview-plus/index.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpShare = require("./uni_modules/uview-plus/libs/mixin/mpShare.js");
|
||||
if (!Math) {
|
||||
"./pages/index/index.js";
|
||||
"./pages/market/market.js";
|
||||
"./pages/mine/mine.js";
|
||||
"./pages/piles/piles.js";
|
||||
"./pages/wallet/wallet.js";
|
||||
"./pages/login/login.js";
|
||||
"./pages/shop/shop.js";
|
||||
"./pages/mine/earnings.js";
|
||||
"./pages/wallet/withdraw.js";
|
||||
"./pages/wallet/bankCard.js";
|
||||
"./pages/wallet/addBankCard.js";
|
||||
"./pages/login/register.js";
|
||||
"./pages/order/order.js";
|
||||
"./pages/shop/affirm.js";
|
||||
"./pages/order/pay.js";
|
||||
"./pages/setMeal/setMeal.js";
|
||||
"./pages/setMeal/affirm.js";
|
||||
"./pages/setMealList/setMealList.js";
|
||||
"./pages/order/success.js";
|
||||
"./pages/agreement/agreement.js";
|
||||
"./pages/login/getBack.js";
|
||||
"./pages/mine/topUp.js";
|
||||
"./pages/mine/transferBalance.js";
|
||||
"./pages/market/detail.js";
|
||||
"./pages/mine/setting.js";
|
||||
"./pages/mine/phone.js";
|
||||
"./pages/wallet/withdrawList.js";
|
||||
"./pages/wallet/incomeList.js";
|
||||
"./pages/mine/balanceIncome.js";
|
||||
"./pages/shareList/shareList.js";
|
||||
"./pages/mine/share.js";
|
||||
"./pages/protocol/buy.js";
|
||||
"./pages/protocol/trusteeship.js";
|
||||
"./pages/activity/index.js";
|
||||
"./pages/activity/detail813.js";
|
||||
"./pages/activity/detail513.js";
|
||||
"./pages/activity/shop/index.js";
|
||||
"./pages/order/details.js";
|
||||
"./pages/mine/toUser.js";
|
||||
"./pages/mine/toUser2.js";
|
||||
"./pages/wallet/freezeMoney.js";
|
||||
"./pages/wallet/freezeEarnings.js";
|
||||
"./pages/shareList/detail.js";
|
||||
"./pages/login/getBackAccout.js";
|
||||
"./pages/webView/webView.js";
|
||||
}
|
||||
const _sfc_main = {
|
||||
onLaunch: function(options) {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
if (token) {
|
||||
store_index.store.commit("setToken", token);
|
||||
}
|
||||
if (options.query) {
|
||||
let search = options.query.qrCode;
|
||||
search = search.split("?")[1];
|
||||
const pairs = search ? search.split("&") : [];
|
||||
const query = {};
|
||||
for (let i = 0; i < pairs.length; ++i) {
|
||||
const [key, value] = pairs[i].split("=");
|
||||
query[key] = query[key] || decodeURIComponent(value);
|
||||
}
|
||||
if (query.num) {
|
||||
common_vendor.index.setStorageSync("invite_code", query.num);
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow: function(e) {
|
||||
console.log(e);
|
||||
if (e.path == "pages/order/pay" && e.query.amount) {
|
||||
common_vendor.index.redirectTo({
|
||||
url: `/pages/order/success?amount=${e.query.amount}&id=${e.query.id}&type=2`
|
||||
});
|
||||
}
|
||||
},
|
||||
onHide: function() {
|
||||
}
|
||||
};
|
||||
function createApp() {
|
||||
const app = common_vendor.createSSRApp(_sfc_main);
|
||||
app.mixin(uni_modules_uviewPlus_libs_mixin_mpShare.mpShare);
|
||||
app.use(uni_modules_uviewPlus_index.uviewPlus);
|
||||
app.use(store_index.store);
|
||||
return {
|
||||
app
|
||||
};
|
||||
}
|
||||
createApp().app.mount("#app");
|
||||
exports.createApp = createApp;
|
||||
Reference in New Issue
Block a user