acdr-ui/dist/dev/mp-weixin/pages/index/components/profileInfo.js

37 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
const utils_commUtils = require("../../../utils/commUtils.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "profileInfo",
props: {
profileIcon: {},
profileName: {},
gender: {},
profileTags: {}
},
setup(__props) {
const props = __props;
const genderIcon = common_vendor.computed(
() => props.gender === 1 ? "/static/icons/arrow-logo.png" : "/static/icons/female-logo.png"
// 使用绝对路径
);
return (_ctx, _cache) => {
return {
a: _ctx.profileIcon,
b: common_vendor.t(_ctx.profileName),
c: common_vendor.unref(utils_commUtils.imgUrl)(common_vendor.unref(genderIcon)),
d: common_vendor.f(_ctx.profileTags, (tag, index, i0) => {
return {
a: common_vendor.t(tag),
b: index
};
}),
e: common_vendor.unref(utils_commUtils.imgUrl)("@/static/icons/more.png")
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-920f38b7"]]);
wx.createComponent(Component);
//# sourceMappingURL=profileInfo.js.map