50 lines
1.4 KiB
JavaScript
50 lines
1.4 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../common/vendor.js");
|
|
const utils_commUtils = require("../utils/commUtils.js");
|
|
if (!Array) {
|
|
const _easycom_wd_icon2 = common_vendor.resolveComponent("wd-icon");
|
|
_easycom_wd_icon2();
|
|
}
|
|
const _easycom_wd_icon = () => "../node-modules/wot-design-uni/components/wd-icon/wd-icon.js";
|
|
if (!Math) {
|
|
_easycom_wd_icon();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "PetSitterCard",
|
|
props: {
|
|
petSitter: {
|
|
type: Object,
|
|
required: true
|
|
}
|
|
},
|
|
setup(__props) {
|
|
const props = __props;
|
|
const toServiceDetail = () => {
|
|
common_vendor.index.navigateTo({
|
|
url: "/modules/pet/service/detail?id=" + props.petSitter.id
|
|
});
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.unref(utils_commUtils.imgUrl)(__props.petSitter.url),
|
|
b: common_vendor.t(__props.petSitter.serviceName),
|
|
c: common_vendor.t(__props.petSitter.price),
|
|
d: common_vendor.f(5, (n, k0, i0) => {
|
|
return {
|
|
a: n,
|
|
b: "c2e6f208-0-" + i0
|
|
};
|
|
}),
|
|
e: common_vendor.p({
|
|
name: "star-on",
|
|
size: "20"
|
|
}),
|
|
f: common_vendor.t(__props.petSitter.description),
|
|
g: common_vendor.o(toServiceDetail)
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c2e6f208"]]);
|
|
wx.createComponent(Component);
|