2 lines
1.9 KiB
JavaScript
2 lines
1.9 KiB
JavaScript
"use strict";const e=require("../../../common/vendor.js"),o={name:"CustomerProfileModal",props:{profile:{type:Object,default:()=>({})}},data:()=>({collapsed:!1}),methods:{open(){this.$refs.popup.open()},close(){this.$refs.popup.close(),this.$emit("close")},toggleCollapse(){this.collapsed=!this.collapsed}}};if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("uni-popup"))()}Math||((()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const t=e._export_sfc(o,[["render",function(o,t,s,p,l,i){return e.e({a:e.p({type:"close",size:"24",color:"#333"}),b:e.o(((...e)=>i.close&&i.close(...e)),"da"),c:e.t(s.profile.name),d:e.t(s.profile.intent),e:e.n("高"===s.profile.intent?"intent-high":"intent-medium"),f:e.t(s.profile.serviceCount),g:e.t(s.profile.lastService),h:e.t(s.profile.phone),i:e.t(s.profile.serviceStaff),j:e.t(s.profile.wechatStatus),k:e.t(s.profile.address),l:e.t(s.profile.source),m:e.t(l.collapsed?"展开":"收起"),n:e.p({type:l.collapsed?"down":"up",size:"14",color:"#666"}),o:e.o(((...e)=>i.toggleCollapse&&i.toggleCollapse(...e)),"71"),p:!l.collapsed},l.collapsed?{}:{q:e.t(s.profile.followStage),r:e.p({type:"right",size:"16",color:"#999"})},{s:!l.collapsed},l.collapsed?{}:e.e({t:e.p({type:"person",size:"20",color:"#007AFF"}),v:e.f(s.profile.systemTags,((o,t,s)=>({a:e.t(o),b:"system-"+t}))),w:s.profile.customTags&&s.profile.customTags.length>0},(s.profile.customTags&&s.profile.customTags.length,{}),{x:s.profile.customTags&&s.profile.customTags.length>0},s.profile.customTags&&s.profile.customTags.length>0?{y:e.f(s.profile.customTags,((o,t,s)=>({a:e.t(o),b:"custom-"+t})))}:{}),{z:!l.collapsed},l.collapsed?{}:{A:e.p({type:"star",size:"20",color:"#007AFF"}),B:e.t(s.profile.intent),C:e.t(s.profile.intentDescription)},{D:e.sr("popup","88901f46-0"),E:e.p({type:"bottom","mask-click":!1})})}],["__scopeId","data-v-88901f46"]]);wx.createComponent(t);
|