微信小程序发布试用版本
This commit is contained in:
116
unpackage/dist/dev/mp-weixin/pages-subpackage/customer/components/CustomerProfileModal.js
vendored
Normal file
116
unpackage/dist/dev/mp-weixin/pages-subpackage/customer/components/CustomerProfileModal.js
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "CustomerProfileModal",
|
||||
props: {
|
||||
profile: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
collapsed: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
this.$refs.popup.open();
|
||||
},
|
||||
close() {
|
||||
this.$refs.popup.close();
|
||||
this.$emit("close");
|
||||
},
|
||||
toggleCollapse() {
|
||||
this.collapsed = !this.collapsed;
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
(_easycom_uni_icons2 + _easycom_uni_popup2)();
|
||||
}
|
||||
const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||
const _easycom_uni_popup = () => "../../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_icons + _easycom_uni_popup)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
type: "close",
|
||||
size: "24",
|
||||
color: "#333"
|
||||
}),
|
||||
b: common_vendor.o((...args) => $options.close && $options.close(...args)),
|
||||
c: common_vendor.t($props.profile.name),
|
||||
d: common_vendor.t($props.profile.intent),
|
||||
e: common_vendor.n($props.profile.intent === "高" ? "intent-high" : "intent-medium"),
|
||||
f: common_vendor.t($props.profile.serviceCount),
|
||||
g: common_vendor.t($props.profile.lastService),
|
||||
h: common_vendor.t($props.profile.phone),
|
||||
i: common_vendor.t($props.profile.serviceStaff),
|
||||
j: common_vendor.t($props.profile.wechatStatus),
|
||||
k: common_vendor.t($props.profile.address),
|
||||
l: common_vendor.t($props.profile.source),
|
||||
m: common_vendor.t($data.collapsed ? "展开" : "收起"),
|
||||
n: common_vendor.p({
|
||||
type: $data.collapsed ? "down" : "up",
|
||||
size: "14",
|
||||
color: "#666"
|
||||
}),
|
||||
o: common_vendor.o((...args) => $options.toggleCollapse && $options.toggleCollapse(...args)),
|
||||
p: !$data.collapsed
|
||||
}, !$data.collapsed ? {
|
||||
q: common_vendor.t($props.profile.followStage),
|
||||
r: common_vendor.p({
|
||||
type: "right",
|
||||
size: "16",
|
||||
color: "#999"
|
||||
})
|
||||
} : {}, {
|
||||
s: !$data.collapsed
|
||||
}, !$data.collapsed ? common_vendor.e({
|
||||
t: common_vendor.p({
|
||||
type: "person",
|
||||
size: "20",
|
||||
color: "#007AFF"
|
||||
}),
|
||||
v: common_vendor.f($props.profile.systemTags, (tag, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(tag),
|
||||
b: "system-" + index
|
||||
};
|
||||
}),
|
||||
w: $props.profile.customTags && $props.profile.customTags.length > 0
|
||||
}, $props.profile.customTags && $props.profile.customTags.length > 0 ? {} : {}, {
|
||||
x: $props.profile.customTags && $props.profile.customTags.length > 0
|
||||
}, $props.profile.customTags && $props.profile.customTags.length > 0 ? {
|
||||
y: common_vendor.f($props.profile.customTags, (tag, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(tag),
|
||||
b: "custom-" + index
|
||||
};
|
||||
})
|
||||
} : {}) : {}, {
|
||||
z: !$data.collapsed
|
||||
}, !$data.collapsed ? {
|
||||
A: common_vendor.p({
|
||||
type: "star",
|
||||
size: "20",
|
||||
color: "#007AFF"
|
||||
}),
|
||||
B: common_vendor.t($props.profile.intent),
|
||||
C: common_vendor.t($props.profile.intentDescription)
|
||||
} : {}, {
|
||||
D: common_vendor.sr("popup", "6dcbcf9c-0"),
|
||||
E: common_vendor.p({
|
||||
type: "bottom",
|
||||
["mask-click"]: false
|
||||
})
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6dcbcf9c"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages-subpackage/customer/components/CustomerProfileModal.js.map
|
||||
Reference in New Issue
Block a user