|
|
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js");
- const _sfc_main = {
- mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin],
- data() {
- return {
- statusBarHeight: 0,
- navBarHeight: 44,
- navBarTotalHeight: 44,
- userInfo: {
- avatar: "/static/avatar.png",
- name: "战斗世界"
- },
- qrcodeUrl: "/static/qrcode.png",
- inviteCode: "888888"
- };
- },
- onLoad() {
- const sysInfo = common_vendor.index.getSystemInfoSync();
- this.statusBarHeight = sysInfo.statusBarHeight;
- this.navBarHeight = 44;
- this.navBarTotalHeight = this.statusBarHeight + this.navBarHeight;
- },
- methods: {
- async onRefresh() {
- await new Promise((resolve) => setTimeout(resolve, 1e3));
- common_vendor.index.stopPullRefresh();
- },
- navigateBack() {
- common_vendor.index.navigateBack();
- }
- }
- };
- if (!Array) {
- const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
- _easycom_uni_icons2();
- }
- const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
- if (!Math) {
- _easycom_uni_icons();
- }
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return {
- a: common_vendor.p({
- type: "left",
- size: "22",
- color: "#222"
- }),
- b: common_vendor.o((...args) => $options.navigateBack && $options.navigateBack(...args)),
- c: common_vendor.p({
- type: "more-filled",
- size: "22",
- color: "#222"
- }),
- d: $data.navBarTotalHeight + "px",
- e: $data.statusBarHeight + "px",
- f: $data.userInfo.avatar,
- g: common_vendor.t($data.userInfo.name),
- h: $data.navBarTotalHeight + "px",
- i: $data.qrcodeUrl,
- j: common_vendor.t($data.inviteCode)
- };
- }
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-089fb45a"]]);
- wx.createPage(MiniProgramPage);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/promo-qrcode.js.map
|