acdr-ui/dist/dev/mp-weixin/modules/mall/index/user.js

65 lines
2.4 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
2024-10-01 09:15:35 +08:00
const modules_mall_sheep_index = require("../sheep/index.js");
2024-09-19 07:20:14 +08:00
if (!Array) {
const _easycom_s_block_item2 = common_vendor.resolveComponent("s-block-item");
const _easycom_s_block2 = common_vendor.resolveComponent("s-block");
const _easycom_s_layout2 = common_vendor.resolveComponent("s-layout");
const _component_layout_default_uni = common_vendor.resolveComponent("layout-default-uni");
(_easycom_s_block_item2 + _easycom_s_block2 + _easycom_s_layout2 + _component_layout_default_uni)();
}
2024-10-01 09:15:35 +08:00
const _easycom_s_block_item = () => "../sheep/components/s-block-item/s-block-item.js";
const _easycom_s_block = () => "../sheep/components/s-block/s-block.js";
const _easycom_s_layout = () => "../sheep/components/s-layout/s-layout.js";
2024-09-19 07:20:14 +08:00
if (!Math) {
(_easycom_s_block_item + _easycom_s_block + _easycom_s_layout)();
}
const _sfc_main = {
__name: "user",
setup(__props) {
common_vendor.index.hideTabBar();
2024-10-01 09:15:35 +08:00
const template = common_vendor.computed(() => modules_mall_sheep_index.sheep.$store("app").template.user);
common_vendor.computed(() => modules_mall_sheep_index.sheep.$store("user").isLogin);
2024-09-19 07:20:14 +08:00
common_vendor.onShow(() => {
2024-10-01 09:15:35 +08:00
modules_mall_sheep_index.sheep.$store("user").updateUserData();
2024-09-19 07:20:14 +08:00
});
common_vendor.onPullDownRefresh(() => {
2024-10-01 09:15:35 +08:00
modules_mall_sheep_index.sheep.$store("user").updateUserData();
2024-09-19 07:20:14 +08:00
setTimeout(function() {
common_vendor.index.stopPullDownRefresh();
}, 800);
});
common_vendor.onPageScroll(() => {
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(template.value.components, (item, index, i0) => {
return {
a: "066f3c79-3-" + i0 + "," + ("066f3c79-2-" + i0),
b: common_vendor.p({
type: item.id,
data: item.property,
styles: item.property.style
}),
c: index,
d: "066f3c79-2-" + i0 + ",066f3c79-1",
e: common_vendor.p({
styles: item.property.style
})
};
}),
b: common_vendor.p({
title: "我的",
tabbar: "/modules/mall/index/user",
navbar: "custom",
bgStyle: template.value.page,
navbarStyle: template.value.navigationBar,
onShareAppMessage: true
})
};
};
}
};
_sfc_main.__runtimeHooks = 3;
wx.createPage(_sfc_main);