You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.9 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
cdnBaseImg: this.G.store().cdnBaseImg
};
},
props: {
info: {
type: Object,
default: () => {
return {
avatar: "",
title: "-",
num: "-"
};
}
},
isShowMore: {
default: () => {
return 1;
}
},
radius: {
default: () => {
return 50;
}
},
rightType: {
type: String,
default: () => {
return "more";
}
},
rightImage: {
type: String,
default: () => {
return "";
}
}
},
methods: {
handleClick() {
this.$emit("clickCard");
},
goMore() {
this.$emit("clickMore");
},
goForm() {
common_vendor.index.navigateTo({
url: "/root/bind/applyForm?code=" + this.info.agencyCode + "&form=1"
});
}
}
};
if (!Array) {
const _component_g_panel_image = common_vendor.resolveComponent("g-panel-image");
_component_g_panel_image();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
radius: $props.radius,
size: $props.info.imgSize ? $props.info.imgSize : 112,
url: $props.info.avatar
}),
b: common_vendor.t($props.info.title ? $props.info.title : "-"),
c: $props.info.titleFS ? $props.info.titleFS : 20,
d: $props.info.titleFW ? $props.info.titleFW : "bold",
e: $props.info.recordStatus ? "260rpx" : "90%",
f: $props.info.num != "slot"
}, $props.info.num != "slot" ? {
g: common_vendor.t($props.info.num == "slot" ? "" : $props.info.num),
h: $props.info.numFS ? $props.info.numFS : "16px"
} : {}, {
i: $props.info.num == "slot"
}, $props.info.num == "slot" ? {
j: common_vendor.f($props.info.slot, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.num),
c: index
};
})
} : {}, {
k: $props.isShowMore == 1 && $props.rightType == "more"
}, $props.isShowMore == 1 && $props.rightType == "more" ? {} : {}, {
l: $props.isShowMore == 1 && $props.rightType == "image" && $props.rightImage
}, $props.isShowMore == 1 && $props.rightType == "image" && $props.rightImage ? {
m: common_vendor.p({
radius: $props.radius,
size: "56",
url: $props.rightImage
})
} : {}, {
n: $props.isShowMore == 1 && $props.rightType == "button"
}, $props.isShowMore == 1 && $props.rightType == "button" ? {
o: common_vendor.o((...args) => $options.goForm && $options.goForm(...args))
} : {}, {
p: common_vendor.o((...args) => $options.handleClick && $options.handleClick(...args))
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/panel/infoCard.js.map