0
点赞
收藏
分享

微信扫一扫

2022最新盲盒小程序源码

大雁f 2022-03-10 阅读 85

(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/index/index" ], {

    "0f4a": function(e, t, n) {

        n.r(t);

        var i = n("55b0"), a = n.n(i);

        for (var r in i) "default" !== r && function(e) {

            n.d(t, e, function() {

                return i[e];

            });

        }(r);

        t.default = a.a;

    },

    1036: function(e, t, n) {

        (function(e) {

            function t(e) {

                return e && e.__esModule ? e : {

                    default: e

                };

            }

            n("a1e2"), t(n("66fd")), e(t(n("de6a")).default);

        }).call(this, n("543d").createPage);

    },

    "55b0": function(e, t, n) {

        (function(e) {

            Object.defineProperty(t, "__esModule", {

                value: !0

            }), t.default = void 0;

            var i = n("2f62");

            function a(e, t) {

                var n = Object.keys(e);

                if (Object.getOwnPropertySymbols) {

                    var i = Object.getOwnPropertySymbols(e);

                    t && (i = i.filter(function(t) {

                        return Object.getOwnPropertyDescriptor(e, t).enumerable;

                    })), n.push.apply(n, i);

                }

                return n;

            }

            function r(e) {

                for (var t = 1; t < arguments.length; t++) {

                    var n = null != arguments[t] ? arguments[t] : {};

                    t % 2 ? a(Object(n), !0).forEach(function(t) {

                        o(e, t, n[t]);

                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a(Object(n)).forEach(function(t) {

                        Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));

                    });

                }

                return e;

            }

            function o(e, t, n) {

                return t in e ? Object.defineProperty(e, t, {

                    value: n,

                    enumerable: !0,

                    configurable: !0,

                    writable: !0

                }) : e[t] = n, e;

            }

            var s = {

                data: function() {

                    return {

                        route: "/pages/index/index",

                        topBanners: [],

                        centerBanners: [],

                        exclusiveList: [],

                        dayList: [],

                        recommendList: [],

                        cateList: [],

                        old: {

                            scrollTop: 0

                        },

                        queryParams: {

                            pid: 0,

                            page: 1,

                            limit: 100,

                            where: {

                                name: ""

                            }

                        },

                        current: 0,

                        barStyle: {

                            background: "#5433FE"

                        },

                        tabList: [],

                        tabParams: {

                            where: {},

                            page: 1,

                            limit: 10

                        },

                        newList: "",

                        loading: !1

                    };

                },

                computed: r(r({}, (0, i.mapGetters)([ "userInfo", "tabbars", "config" ])), {}, {

                    recommendWidth: function() {

                        return 276 * this.recommendList.length + 10;

                    },

                    inTabbar: function() {

                        var e = this;

                        return this.tabbars.length > 0 && this.tabbars.filter(function(t) {

                            return t.target_value === e.route;

                        }).length > 0;

                    },

                    shareParams: function() {

                        return console.log("shareParams", this.userInfo), {

                            title: (this.userInfo.nickName || "").slice(0, 10) + "邀请您参与拆盲盒活动",

                            path: "/pages/index/index?share_user=" + (this.userInfo.id || ""),

                            imageUrl: this.config.box_share

                        };

                    }

                }),

                onLoad: function(t) {

                    console.log("query params", t), t.share_user && (this.shareInfo(t.share_user), e.setStorageSync("share_user", t.share_user));

                },

学习参考用

 

举报

相关推荐

0 条评论