首页 新闻 赞助 找找看

微信小程序这种代码是什么写法

0
[待解决问题]

(global.webpackJsonp = global.webpackJsonp || []).push([["u_pages/diy/index"], {
"0aea": function(e, t, n) { (function(e) {
function t(e) {
return e && e.__esModule ? e: {
default:
e
}
}
n("3c1e"),
t(n("66fd")),
e(t(n("ebf5")).default)
}).call(this, n("543d").createPage)
},
"102c": function(e, t, n) {
var a = n("7817");
n.n(a).a
},
"35d6": function(e, t, n) {
n.r(t);
var a = n("578b");
for (var r in a)"default" !== r &&
function(e) {
n.d(t, e,
function() {
return a[e]
})
} (r);
n("102c");
var o = n("f0c5"),
i = Object(o.a)(a.default, void 0, void 0, !1, null, null, null, !1, void 0, void 0);
t.default = i.exports
console.log(o);
},
5071 : function(e, r, c) { (function(t) {
Object.defineProperty(r, "__esModule", {
value: !0
}),
r.
default = void 0,
e(c("66fd"));
var o = e(c("e3ec"));
function e(e) {
return e && e.__esModule ? e: {
default:
e
}
}
function a(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(t);
e && (a = a.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})),
n.push.apply(n, a)
}
return n
}
function i(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? a(Object(n), !0).forEach(function(e) {
u(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : a(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
function u(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n,
e
}
var n = {
onLaunch: function(e) {
if (e.query.scene) {
for (var t = decodeURIComponent(e.query.scene).split("&"), n = {},
a = 0; a < t.length; a++) {
var r = t[a].split("=");
n = i({},
n, u({},
r[0], r[1]))
}
e.query = n
}
o.
default.commit("setData", {
page_query: u({},
e.path, e.query),
_pid: e.query && e.query.pid ? e.query.pid: 0,
_scene: e.scene
}),
wx.showShareMenu({
menus: ["shareAppMessage", "shareTimeline"]
})
},
onShow: function() {},
onHide: function() {
var e = t.getBackgroundAudioManager(); ! e.paused && o.
default.state.audio_is_stop && e.stop()
},
onUnload: function() {
var e = t.getBackgroundAudioManager(); ! e.paused && o.
default.state.audio_is_stop && e.stop()
}
};
r.
default = n
}).call(this, c("543d").
default)
},
"578b": function(e, t, n) {
n.r(t);
var a = n("5071"),
r = n.n(a);
for (var o in a)"default" !== o &&
function(e) {
n.d(t, e,
function() {
return a[e]
})
} (o);
t.
default = r.a
},
7817 : function(e, t, n) {},
"79cb": function(e, t, n) {
n.r(t);
var a = n("ab23"),
r = n.n(a);
for (var o in a)"default" !== o &&
function(e) {
n.d(t, e,
function() {
return a[e]
})
} (o);
t.
default = r.a
},
"9e7e": function(e, t, n) {},
ab23: function(e, f, l) { (function(o) {
Object.defineProperty(f, "__esModule", {
value: !0
}),
f.
default = void 0;
var e = n(l("8e6e")),
t = (n(l("7b8b")), l("2f62")),
i = l("f576");
function n(e) {
return e && e.__esModule ? e: {
default:
e
}
}
function a(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(t);
e && (a = a.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})),
n.push.apply(n, a)
}
return n
}
function r(r) {
for (var e = 1; e < arguments.length; e++) {
var o = null != arguments[e] ? arguments[e] : {};
e % 2 ? a(Object(o), !0).forEach(function(e) {
var t, n, a;
t = r,
a = o[n = e],
n in t ? Object.defineProperty(t, n, {
value: a,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[n] = a
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : a(Object(o)).forEach(function(e) {
Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(o, e))
})
}
return r
}
var u, c = {
data: function() {
return {
page_data: "",
items: "",
type: "",
page_num: getCurrentPages().length,
bounding: o.getSystemInfoSync().screenWidth - o.getMenuButtonBoundingClientRect().right + o.getMenuButtonBoundingClientRect().width / 2,
bounding_right: o.getSystemInfoSync().screenWidth - o.getMenuButtonBoundingClientRect().right
}
},
computed: r({},
(0, t.mapState)(["g_config", "user", "global_style", "titleHeight", "my_xcx"])),
components: {
vip: function() {
l.e("u_pages/components/vip/index").then(function() {
return resolve(l("1c32"))
}.bind(null, l)).
catch(l.oe)
},
"wx-live-list": function() {
l.e("components/wx_live_list/index").then(function() {
return resolve(l("a007"))
}.bind(null, l)).
catch(l.oe)
}
},
onLoad: function(e) {
u = this
},
onShow: function() {
u = this,
(0, e.
default)(this,
function() {
s((0, i.getPageQuery)(u))
})
},
onShareAppMessage: function() {
return {
title: "1" == this.page_data.share_state ? this.page_data.share_title: this.g_config.platform_name,
path: l("921b")("init") + "?pid=" + this.user.id,
imageUrl: "1" == this.page_data.share_state ? this.page_data.img: ""
}
},
onShareTimeline: function() {
return {
title: this.page_data.title,
query: "id=" + (0, i.getPageQuery)(this).id + "&pid=" + this.user.id
}
},
onPullDownRefresh: function(e) {
s((0, i.getPageQuery)(this))
},
onReady: function() {},
methods: {
close: function() {
this.my_xcx.add_xcx_state = !1,
o.setStorageSync("hide_my_xcx", !0)
},
getUser: function(e) {
u.$tools.login(r({},
e.detail.userInfo))
},
onAudioPlay: function(e) {
var t = e.index,
n = e.currentTime,
a = e.type;
if (u.items) {
var r = u.items;
if (u.items[t].params.currentTime = n, 2 != a) for (var o = 0; o < r.length; o++)"audio" == r[o].type && (r[o], u.items[o].params.isPlay = !1, o != t && (u.items[o].params.currentTime = "00:00"));
0 == a && (u.items[t].params.isPlay = !0),
0 == a && (u.items[t].params.isPlay = !0)
}
}
}
};
function s(e) {
var t = e.id;
u.items = "",
u.$store.state.audio.stop(),
u.$request({
url: "DiyInfo",
data: {
id: t
},
loading: [!1],
success: function(e) {
// console.log(e);
for (var t, n = e.items,a = 0; a < n.length; a++) for (var r in n[a].params)"number" == typeof n[a].params[r] && (t = n[a].params[r], n[a].params[r] = u.$px(t) + "px");

                    e.page_data.head.params.titleTextColor = "1" == e.page_data.head.params.titleTextColor ? "#000000": "#ffffff",
                    u.items = e.items,
                    u.page_data = e.page_data.head.params,
                    u.type = e.type,
                    o.setNavigationBarColor({
                        frontColor: u.page_data.titleTextColor,
                        backgroundColor: u.page_data.backgroundColor,
                        fail: console.log
                    }),
                    o.setNavigationBarTitle({
                        title: u.page_data.title
                    }),
                    u.$setData({
                        login_show: !1
                    }),
                    o.stopPullDownRefresh(),
                    "2" == e.type && (0, i.login)({},
                    "", [!1])
                }
            })
        }
        f.
    default = c
    }).call(this, l("543d").default)
},
d4a8: function(e, t, n) {
    var a = n("9e7e");
    n.n(a).a
},
ebf5: function(e, t, n) {
    n.r(t);
    var a = n("ef7b"),
    r = n("79cb");
    for (var o in r)"default" !== o &&
    function(e) {
        n.d(t, e,
        function() {
            return r[e]
        })
    } (o);
    n("d4a8");
    var i = n("f0c5"),
    u = Object(i.a)(r.default, a.b, a.c, !1, null, "54f1518e", null, !1, a.a, void 0);
    t.default = u.exports
},
ef7b: function(e, t, n) {
    var a = function() {
        this.$createElement;
        this._self._c
    },
    r = [];
    n.d(t, "b",
    function() {
        return a
    }),
    n.d(t, "c",
    function() {
        return r
    }),
    n.d(t, "a",
    function() {})
}

},
[["0aea", "common/runtime", "common/vendor"]]]);

zshNo1的主页 zshNo1 | 菜鸟二级 | 园豆:208
提问于:2020-09-05 09:57
< >
分享
所有回答(1)
0

很正常的写法,只不过对于方法名和变量名做了混淆而已

小小咸鱼YwY | 园豆:3210 (老鸟四级) | 2020-09-07 09:35
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册