| | |
| | | "use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js");function i(e={},t={}){return e.realName||e.name||e.username||t.realName||t.name||t.username||""}function n(e,t){return null!=e&&null!=t&&String(e)===String(t)}function r(e,t=[],i={}){if(!e)return null;const r=t.find(t=>n(t.id,e.scenicSpotId))||{},s=r.meetingPoints||[],o=s.find(t=>n(t.id,e.meetingPointId))||s[0]||{};return{...i,scenicId:e.scenicSpotId||r.id||"",scenicName:r.name||i.scenicName||"",meetingPointId:e.meetingPointId||o.id||"",meetingPointName:o.name||i.meetingPointName||"",meetingPointLatitude:o.latitude??i.meetingPointLatitude??i.latitude,meetingPointLongitude:o.longitude??i.meetingPointLongitude??i.longitude,latitude:o.latitude??i.latitude,longitude:o.longitude??i.longitude}}const s={components:{GuideDialog:()=>"../../components/guide-dialog/guide-dialog.js"},data:()=>({guide:{},accountState:"pending",auditRemark:"",customerServiceWechat:"",customerServicePhone:"",todayOrderCount:0,todayPeopleCount:0,orders:[],ordersSignature:"[]",guideSignature:"",receivingScenics:[],receivingScenicsLoaded:!1,unreadMessageCount:0,unreadMessageInitialized:!1,countdownSeconds:900,countdownTimer:null,refreshTimer:null,refreshing:!1,dialog:{visible:!1,title:"提示",content:"",confirmText:"确认",cancelText:"取消",action:""},pendingCustomer:null,drawerVisible:!1,drawerOpen:!1,statusBarHeight:e.getStatusBarHeight(),drawerMenus:[{text:"业绩明细",icon:"/static/icons/badge-dollar.svg",url:"/pages/earnings/index"},{text:"历史订单",icon:"/static/icons/clipboard-list.svg",url:"/pages/orders/index"},{text:"我的评分",icon:"/static/icons/star.svg",url:"/pages/rating/index"},{text:"服务协议",icon:"/static/icons/file-text.svg",url:"/pages/agreements/index"},{text:"意见反馈",icon:"/static/icons/message-warning.svg",url:"/pages/feedback/index"},{text:"设置",icon:"/static/icons/settings.svg",url:"/pages/settings/index"}]}),computed:{auditStatus(){return this.accountState},auditStatusText(){return"rejected"===this.auditStatus?"审核未通过":"pending"===this.auditStatus?"资质审核中":"disabled"===this.auditStatus?"账号已禁用":""},visibleDrawerMenus(){return"approved"===this.auditStatus?this.drawerMenus:this.drawerMenus.filter(e=>"设置"===e.text)},drawerRatingStars(){return e.formatRatingStars(this.guide.rating)},isReceiving(){return["online","serving"].includes(this.guide.onlineStatus)||this.receivingOrders.length>0},isServing(){return"serving"===this.guide.onlineStatus||"serving"===this.activeReceivingOrder.status},receivingStatusText(){return this.isServing?"讲解中":"接单中"},receivingActionText(){return this.isServing?"结束讲解":"开始讲解"},countdownText(){const e=Math.max(this.countdownSeconds,0);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`},receivingMeetingPoint(){return this.activeReceivingOrder.meetingPointName||this.currentMeetingPointDetail&&this.currentMeetingPointDetail.name||this.guide.receivingConfig&&this.guide.receivingConfig.meetingPointName||"未配置汇合点"},currentMeetingPointDetail(){return e.resolveMeetingPoint(this.guide.receivingConfig||{})},receivingOrders(){return this.orders.filter(e=>["pending","accepted","arrived","serving"].includes(e.status))},hasReceivingOrders(){return this.receivingOrders.length>0},activeReceivingOrder(){const t=this.receivingOrders[0]||{};return{...t,serviceNameShort:t.serviceName&&t.serviceName.replace("拼团 · ","").replace("包团 · ","")||"精讲",durationText:e.formatDuration(t.durationMinutes||30)}},receivingCustomers(){return this.receivingOrders.reduce((t,i)=>((i.customers&&i.customers.length?i.customers:[{phone:i.customerPhone,people:i.quantity}]).forEach(i=>{t.push({no:t.length+1,phone:e.maskPhone(i.phone||""),people:Number(i.people||0)})}),t),[])},pageVars(){const t=this.statusBarHeight+e.upxToPx(452);return{"--hero-height":`${t}px`,"--top-icons-top":`${this.statusBarHeight+e.upxToPx(28)}px`,"--stats-row-padding-top":`${this.statusBarHeight+e.upxToPx(228)}px`,"--drawer-hero-height":`${t}px`,"--drawer-hero-padding-top":`${this.statusBarHeight+e.upxToPx(70)}px`}}},onShow(){e.isLoggedIn()?(this.loadData(),this.startRefresh()):e.routeTo("/pages/login/index","reLaunch")},onHide(){this.stopRefresh(),this.clearCountdown()},onUnload(){this.stopRefresh(),this.clearCountdown()},methods:{loadData({silent:t=!1}={}){if(this.refreshing)return Promise.resolve();this.refreshing=!0;const n=this.activeReceivingOrder.id,s=this.guide.onlineStatus;return e.getWorkbenchData().then(t=>{const o=t.guide||{},a=(e.getLoginState()||{}).guide||{},c={...a,...o,name:i(o,a),phone:o.mobile||a.phone};this.accountState=t.accountState||"pending",this.auditRemark=t.auditRemark||"",this.customerServiceWechat=t.customerServiceWechat||"",this.customerServicePhone=t.customerServicePhone||"",this.todayOrderCount=Number(t.todayOrderCount||0),this.todayPeopleCount=Number(t.todayPeopleCount||0);const u=Number(t.unreadNotificationCount||0);return this.unreadMessageInitialized&&u>this.unreadMessageCount&&e.playNotificationAlert(),this.unreadMessageCount=u,this.unreadMessageInitialized=!0,"approved"!==this.accountState?(this.updateGuide(c),this.updateOrders([]),this.setupCountdown(),null):Promise.all([e.getGuideProfile(),e.getGuideOrders("all"),e.getCurrentGuideReceivingSession(),this.loadReceivingScenics()]).then(([e,t,o,a])=>{const u={...c,...e,name:i(e,c),phone:e.phone||c.phone,onlineStatus:o?"IN_SERVICE"===o.status?"serving":"online":"offline",receivingConfig:r(o,a,c.receivingConfig||{})};return this.updateGuide(u),this.updateOrders(t),n===this.activeReceivingOrder.id&&s===this.guide.onlineStatus&&this.countdownTimer||this.setupCountdown(),null})}).catch(i=>{t||e.index.showToast({title:i.message||"首页数据加载失败",icon:"none"})}).finally(()=>{this.refreshing=!1})},loadReceivingScenics(){return this.receivingScenicsLoaded?Promise.resolve(this.receivingScenics):e.getGuideReceivingOptions().then(e=>{const t=e.scenics||[];return this.receivingScenics=t,this.receivingScenicsLoaded=!0,t})},updateGuide(e){const t=JSON.stringify(e||{});t!==this.guideSignature&&(this.guide=e||{},this.guideSignature=t)},updateOrders(e){const t=e||[],i=JSON.stringify(t);i!==this.ordersSignature&&(this.orders=t,this.ordersSignature=i)},startRefresh(){this.stopRefresh(),this.refreshTimer=setInterval(()=>{this.loadData({silent:!0})},5e3)},stopRefresh(){this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)},setupCountdown(){this.clearCountdown(),this.isReceiving&&this.hasReceivingOrders&&(this.countdownSeconds=this.isServing?60*(this.activeReceivingOrder.durationMinutes||30):900,this.countdownTimer=setInterval(()=>{this.countdownSeconds<=0?this.clearCountdown():this.countdownSeconds-=1},1e3))},clearCountdown(){this.countdownTimer&&(clearInterval(this.countdownTimer),this.countdownTimer=null)},openDrawer(){this.drawerVisible=!0,this.$nextTick(()=>{this.drawerOpen=!0})},closeDrawer(){this.drawerOpen=!1,setTimeout(()=>{this.drawerVisible=!1},260)},showNotify(){e.routeTo("/pages/messages/index")},viewMeetingPoint(){e.openMeetingPointPage(this.currentMeetingPointDetail||this.guide.receivingConfig||{})},callCustomer(e){this.pendingCustomer=e,this.openDialog({title:"电话联系",content:`即将联系 ${e.phone}`,confirmText:"拨打",action:"callCustomer"})},startLecture(){e.updateGuideOnlineStatus("serving",this.guide.receivingConfig||{}).then(()=>{this.loadData(),e.index.showToast({title:"已开始讲解",icon:"none"})})},finishLecture(){this.openDialog({title:"结束讲解",content:"是否需要提前结束讲解",confirmText:"确认",cancelText:"取消",action:"finishLecture"})},goReceiving(){e.routeTo("/pages/receiving/index")},cancelReceiving(){this.openDialog({title:"取消接单",content:"确认停止当前接单状态?",confirmText:"确认",action:"cancelReceiving"})},resubmit(){e.routeTo("/pages/register-phone/index")},openPolicy(){e.routeTo("/pages/agreements/index")},goProfile(){"approved"===this.auditStatus&&(this.closeDrawer(),e.routeTo("/pages/profile/index"))},handleMenu(t){if(t.url)return this.closeDrawer(),void e.routeTo(t.url,t.type||"navigateTo");e.index.showToast({title:`${t.text}待接入`,icon:"none"})},openDialog(e){this.dialog={visible:!0,title:e.title||"提示",content:e.content||"",confirmText:e.confirmText||"确认",cancelText:e.cancelText||"取消",action:e.action||""}},confirmDialog(){"callCustomer"!==this.dialog.action?"finishLecture"!==this.dialog.action?"cancelReceiving"===this.dialog.action&&e.updateGuideOnlineStatus("offline").then(()=>{this.loadData(),e.index.showToast({title:"已取消接单",icon:"none"})}):e.finishGuideLecture().then(()=>{this.loadData(),e.index.showToast({title:"讲解已结束",icon:"none"})}):e.index.showToast({title:"电话能力待接真实号码",icon:"none"})}}};if(!Array){e.resolveComponent("guide-dialog")()}Math;const o=e._export_sfc(s,[["render",function(i,n,r,s,o,a){return e.e({a:t._imports_0$3,b:e.o((...e)=>a.openDrawer&&a.openDrawer(...e),"89"),c:t._imports_1$1,d:o.unreadMessageCount},o.unreadMessageCount?{e:e.t(o.unreadMessageCount)}:{},{f:e.o((...e)=>a.showNotify&&a.showNotify(...e),"a5"),g:e.t(o.todayOrderCount),h:e.t(o.todayPeopleCount),i:"disabled"===a.auditStatus},"disabled"===a.auditStatus?{j:e.o((...e)=>a.openPolicy&&a.openPolicy(...e),"35"),k:e.t(o.customerServiceWechat||"--"),l:e.t(o.customerServicePhone||"--")}:"approved"===a.auditStatus&&a.isReceiving?e.e({n:a.hasReceivingOrders},a.hasReceivingOrders?{o:e.t(a.activeReceivingOrder.serviceNameShort),p:e.t(a.activeReceivingOrder.durationText),q:e.t(a.receivingStatusText),r:e.t(a.countdownText),s:e.t(a.receivingActionText)}:{},{t:e.t(a.receivingMeetingPoint),v:e.o((...e)=>a.viewMeetingPoint&&a.viewMeetingPoint(...e),"20"),w:a.hasReceivingOrders?1:"",x:a.hasReceivingOrders},a.hasReceivingOrders?e.e({y:e.f(a.receivingCustomers,(t,i,n)=>({a:e.t(t.no),b:e.n(`no-${t.no}`),c:e.t(t.phone),d:e.t(t.people),e:e.o(e=>a.callCustomer(t),t.no),f:t.no})),z:t._imports_0,A:a.isServing},a.isServing?{B:e.o((...e)=>a.finishLecture&&a.finishLecture(...e),"72")}:{C:e.o((...e)=>a.startLecture&&a.startLecture(...e),"8c")}):{D:e.o((...e)=>a.cancelReceiving&&a.cancelReceiving(...e),"25")}):"approved"===a.auditStatus?{F:e.o((...e)=>a.goReceiving&&a.goReceiving(...e),"da")}:"rejected"===a.auditStatus?{H:e.o((...e)=>a.resubmit&&a.resubmit(...e),"04")}:{},{m:"approved"===a.auditStatus&&a.isReceiving,E:"approved"===a.auditStatus,G:"rejected"===a.auditStatus,I:o.drawerVisible},o.drawerVisible?e.e({J:e.t(o.guide.name||"赵四"),K:"approved"!==a.auditStatus},"approved"!==a.auditStatus?{L:e.t(a.auditStatusText)}:{},{M:"approved"===a.auditStatus},"approved"===a.auditStatus?{N:e.t(a.drawerRatingStars)}:{},{O:"approved"===a.auditStatus},"approved"===a.auditStatus?{P:t._imports_3}:{},{Q:e.o((...e)=>a.goProfile&&a.goProfile(...e),"9b"),R:e.f(a.visibleDrawerMenus,(t,i,n)=>({a:t.icon,b:e.t(t.text),c:t.text,d:e.o(e=>a.handleMenu(t),t.text)})),S:t._imports_0$2,T:o.drawerOpen?1:"",U:o.drawerOpen?1:"",V:e.o((...e)=>a.closeDrawer&&a.closeDrawer(...e),"52")}):{},{W:e.o(a.confirmDialog,"ec"),X:e.o(e=>o.dialog.visible=e,"72"),Y:e.p({title:o.dialog.title,content:o.dialog.content,"confirm-text":o.dialog.confirmText,"cancel-text":o.dialog.cancelText,visible:o.dialog.visible}),Z:e.s(a.pageVars)})}]]);wx.createPage(o); |
| | | "use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js");function i(e={},t={}){return e.realName||e.name||e.username||t.realName||t.name||t.username||""}function n(e,t){return null!=e&&null!=t&&String(e)===String(t)}function r(e,t=[],i={}){if(!e)return null;const r=t.find(t=>n(t.id,e.scenicSpotId))||{},s=r.meetingPoints||[],o=s.find(t=>n(t.id,e.meetingPointId))||s[0]||{};return{...i,scenicId:e.scenicSpotId||r.id||"",scenicName:r.name||i.scenicName||"",meetingPointId:e.meetingPointId||o.id||"",meetingPointName:o.name||i.meetingPointName||"",meetingPointLatitude:o.latitude??i.meetingPointLatitude??i.latitude,meetingPointLongitude:o.longitude??i.meetingPointLongitude??i.longitude,latitude:o.latitude??i.latitude,longitude:o.longitude??i.longitude}}const s={components:{GuideDialog:()=>"../../components/guide-dialog/guide-dialog.js"},data:()=>({guide:{},accountState:"pending",auditRemark:"",customerServiceWechat:"",customerServicePhone:"",todayOrderCount:0,todayPeopleCount:0,orders:[],ordersSignature:"[]",guideSignature:"",receivingScenics:[],receivingScenicsLoaded:!1,unreadMessageCount:0,unreadMessageInitialized:!1,countdownSeconds:900,countdownTimer:null,refreshTimer:null,refreshing:!1,startingLecture:!1,dialog:{visible:!1,title:"提示",content:"",confirmText:"确认",cancelText:"取消",action:""},pendingCustomer:null,drawerVisible:!1,drawerOpen:!1,statusBarHeight:e.getStatusBarHeight(),drawerMenus:[{text:"业绩明细",icon:"/static/icons/badge-dollar.svg",url:"/pages/earnings/index"},{text:"历史订单",icon:"/static/icons/clipboard-list.svg",url:"/pages/orders/index"},{text:"我的评分",icon:"/static/icons/star.svg",url:"/pages/rating/index"},{text:"服务协议",icon:"/static/icons/file-text.svg",url:"/pages/agreements/index"},{text:"意见反馈",icon:"/static/icons/message-warning.svg",url:"/pages/feedback/index"},{text:"设置",icon:"/static/icons/settings.svg",url:"/pages/settings/index"}]}),computed:{auditStatus(){return this.accountState},auditStatusText(){return"rejected"===this.auditStatus?"审核未通过":"pending"===this.auditStatus?"资质审核中":"disabled"===this.auditStatus?"账号已禁用":""},visibleDrawerMenus(){return"approved"===this.auditStatus?this.drawerMenus:this.drawerMenus.filter(e=>"设置"===e.text)},drawerRatingStars(){return e.formatRatingStars(this.guide.rating)},isReceiving(){return["online","serving"].includes(this.guide.onlineStatus)||this.receivingOrders.length>0},isServing(){return"serving"===this.guide.onlineStatus||"serving"===this.activeReceivingOrder.status},receivingStatusText(){return this.isServing?"讲解中":"接单中"},receivingActionText(){return this.isServing?"结束讲解":"开始讲解"},countdownText(){const e=Math.max(this.countdownSeconds,0);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`},receivingMeetingPoint(){return this.activeReceivingOrder.meetingPointName||this.currentMeetingPointDetail&&this.currentMeetingPointDetail.name||this.guide.receivingConfig&&this.guide.receivingConfig.meetingPointName||"未配置汇合点"},currentMeetingPointDetail(){return e.resolveMeetingPoint(this.guide.receivingConfig||{})},receivingOrders(){return this.orders.filter(e=>["pending","accepted","arrived","serving"].includes(e.status))},hasReceivingOrders(){return this.receivingOrders.length>0},activeReceivingOrder(){const t=this.receivingOrders[0]||{};return{...t,serviceNameShort:t.serviceName&&t.serviceName.replace("拼团 · ","").replace("包团 · ","")||"精讲",durationText:e.formatDuration(t.durationMinutes||30)}},receivingCustomers(){return this.receivingOrders.reduce((t,i)=>((i.customers&&i.customers.length?i.customers:[{phone:i.customerPhone,people:i.quantity}]).forEach(i=>{t.push({no:t.length+1,phone:e.maskPhone(i.phone||""),people:Number(i.people||0)})}),t),[])},pageVars(){const t=this.statusBarHeight+e.upxToPx(452);return{"--hero-height":`${t}px`,"--top-icons-top":`${this.statusBarHeight+e.upxToPx(28)}px`,"--stats-row-padding-top":`${this.statusBarHeight+e.upxToPx(228)}px`,"--drawer-hero-height":`${t}px`,"--drawer-hero-padding-top":`${this.statusBarHeight+e.upxToPx(70)}px`}}},onShow(){e.isLoggedIn()?(this.loadData(),this.startRefresh()):e.routeTo("/pages/login/index","reLaunch")},onHide(){this.stopRefresh(),this.clearCountdown()},onUnload(){this.stopRefresh(),this.clearCountdown()},methods:{loadData({silent:t=!1}={}){if(this.refreshing)return Promise.resolve();this.refreshing=!0;const n=this.activeReceivingOrder.id,s=this.guide.onlineStatus;return e.getWorkbenchData().then(t=>{const o=t.guide||{},a=(e.getLoginState()||{}).guide||{},c={...a,...o,name:i(o,a),phone:o.mobile||a.phone};this.accountState=t.accountState||"pending",this.auditRemark=t.auditRemark||"",this.customerServiceWechat=t.customerServiceWechat||"",this.customerServicePhone=t.customerServicePhone||"",this.todayOrderCount=Number(t.todayOrderCount||0),this.todayPeopleCount=Number(t.todayPeopleCount||0);const u=Number(t.unreadNotificationCount||0);return this.unreadMessageInitialized&&u>this.unreadMessageCount&&e.playNotificationAlert(),this.unreadMessageCount=u,this.unreadMessageInitialized=!0,"approved"!==this.accountState?(this.updateGuide(c),this.updateOrders([]),this.setupCountdown(),null):Promise.all([e.getGuideProfile(),e.getGuideOrders("all"),e.getCurrentGuideReceivingSession(),this.loadReceivingScenics()]).then(([e,t,o,a])=>{const u={...c,...e,name:i(e,c),phone:e.phone||c.phone,onlineStatus:o?"IN_SERVICE"===o.status?"serving":"online":"offline",receivingConfig:r(o,a,c.receivingConfig||{})};return this.updateGuide(u),this.updateOrders(t),n===this.activeReceivingOrder.id&&s===this.guide.onlineStatus&&this.countdownTimer||this.setupCountdown(),null})}).catch(i=>{t||e.index.showToast({title:i.message||"首页数据加载失败",icon:"none"})}).finally(()=>{this.refreshing=!1})},loadReceivingScenics(){return this.receivingScenicsLoaded?Promise.resolve(this.receivingScenics):e.getGuideReceivingOptions().then(e=>{const t=e.scenics||[];return this.receivingScenics=t,this.receivingScenicsLoaded=!0,t})},updateGuide(e){const t=JSON.stringify(e||{});t!==this.guideSignature&&(this.guide=e||{},this.guideSignature=t)},updateOrders(e){const t=e||[],i=JSON.stringify(t);i!==this.ordersSignature&&(this.orders=t,this.ordersSignature=i)},startRefresh(){this.stopRefresh(),this.refreshTimer=setInterval(()=>{this.loadData({silent:!0})},5e3)},stopRefresh(){this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)},setupCountdown(){this.clearCountdown(),this.isReceiving&&this.hasReceivingOrders&&(this.countdownSeconds=this.isServing?60*(this.activeReceivingOrder.durationMinutes||30):900,this.countdownTimer=setInterval(()=>{this.countdownSeconds<=0?this.clearCountdown():this.countdownSeconds-=1},1e3))},clearCountdown(){this.countdownTimer&&(clearInterval(this.countdownTimer),this.countdownTimer=null)},openDrawer(){this.drawerVisible=!0,this.$nextTick(()=>{this.drawerOpen=!0})},closeDrawer(){this.drawerOpen=!1,setTimeout(()=>{this.drawerVisible=!1},260)},showNotify(){e.routeTo("/pages/messages/index")},viewMeetingPoint(){e.openMeetingPointPage(this.currentMeetingPointDetail||this.guide.receivingConfig||{})},callCustomer(e){this.pendingCustomer=e,this.openDialog({title:"电话联系",content:`即将联系 ${e.phone}`,confirmText:"拨打",action:"callCustomer"})},startLecture(){const t=this.activeReceivingOrder.id;this.startingLecture||(t?(this.startingLecture=!0,e.startGuideLecture(t).then(t=>(this.updateGuide({...this.guide,onlineStatus:"serving"}),this.updateOrders(this.orders.map(e=>e.id===t.id?{...e,...t}:e)),this.setupCountdown(),e.index.showToast({title:"已开始讲解",icon:"none"}),this.loadData({silent:!0}))).catch(t=>{e.index.showToast({title:t.message||"开始讲解失败",icon:"none"})}).finally(()=>{this.startingLecture=!1})):e.index.showToast({title:"当前没有可开始的订单",icon:"none"}))},finishLecture(){this.openDialog({title:"结束讲解",content:"是否需要提前结束讲解",confirmText:"确认",cancelText:"取消",action:"finishLecture"})},goReceiving(){e.routeTo("/pages/receiving/index")},cancelReceiving(){this.openDialog({title:"取消接单",content:"确认停止当前接单状态?",confirmText:"确认",action:"cancelReceiving"})},resubmit(){e.routeTo("/pages/register-phone/index")},openPolicy(){e.routeTo("/pages/agreements/index")},goProfile(){"approved"===this.auditStatus&&(this.closeDrawer(),e.routeTo("/pages/profile/index"))},handleMenu(t){if(t.url)return this.closeDrawer(),void e.routeTo(t.url,t.type||"navigateTo");e.index.showToast({title:`${t.text}待接入`,icon:"none"})},openDialog(e){this.dialog={visible:!0,title:e.title||"提示",content:e.content||"",confirmText:e.confirmText||"确认",cancelText:e.cancelText||"取消",action:e.action||""}},confirmDialog(){"callCustomer"!==this.dialog.action?"finishLecture"!==this.dialog.action?"cancelReceiving"===this.dialog.action&&e.updateGuideOnlineStatus("offline").then(()=>{this.loadData(),e.index.showToast({title:"已取消接单",icon:"none"})}):e.finishGuideLecture().then(()=>{this.loadData(),e.index.showToast({title:"讲解已结束",icon:"none"})}):e.index.showToast({title:"电话能力待接真实号码",icon:"none"})}}};if(!Array){e.resolveComponent("guide-dialog")()}Math;const o=e._export_sfc(s,[["render",function(i,n,r,s,o,a){return e.e({a:t._imports_0$3,b:e.o((...e)=>a.openDrawer&&a.openDrawer(...e),"89"),c:t._imports_1$1,d:o.unreadMessageCount},o.unreadMessageCount?{e:e.t(o.unreadMessageCount)}:{},{f:e.o((...e)=>a.showNotify&&a.showNotify(...e),"a5"),g:e.t(o.todayOrderCount),h:e.t(o.todayPeopleCount),i:"disabled"===a.auditStatus},"disabled"===a.auditStatus?{j:e.o((...e)=>a.openPolicy&&a.openPolicy(...e),"35"),k:e.t(o.customerServiceWechat||"--"),l:e.t(o.customerServicePhone||"--")}:"approved"===a.auditStatus&&a.isReceiving?e.e({n:a.hasReceivingOrders},a.hasReceivingOrders?{o:e.t(a.activeReceivingOrder.serviceNameShort),p:e.t(a.activeReceivingOrder.durationText),q:e.t(a.receivingStatusText),r:e.t(a.countdownText),s:e.t(a.receivingActionText)}:{},{t:e.t(a.receivingMeetingPoint),v:e.o((...e)=>a.viewMeetingPoint&&a.viewMeetingPoint(...e),"20"),w:a.hasReceivingOrders?1:"",x:a.hasReceivingOrders},a.hasReceivingOrders?e.e({y:e.f(a.receivingCustomers,(t,i,n)=>({a:e.t(t.no),b:e.n(`no-${t.no}`),c:e.t(t.phone),d:e.t(t.people),e:e.o(e=>a.callCustomer(t),t.no),f:t.no})),z:t._imports_0,A:a.isServing},a.isServing?{B:e.o((...e)=>a.finishLecture&&a.finishLecture(...e),"72")}:{C:o.startingLecture,D:o.startingLecture,E:e.o((...e)=>a.startLecture&&a.startLecture(...e),"94")}):{F:e.o((...e)=>a.cancelReceiving&&a.cancelReceiving(...e),"cc")}):"approved"===a.auditStatus?{H:e.o((...e)=>a.goReceiving&&a.goReceiving(...e),"32")}:"rejected"===a.auditStatus?{J:e.o((...e)=>a.resubmit&&a.resubmit(...e),"ea")}:{},{m:"approved"===a.auditStatus&&a.isReceiving,G:"approved"===a.auditStatus,I:"rejected"===a.auditStatus,K:o.drawerVisible},o.drawerVisible?e.e({L:o.guide.avatar},o.guide.avatar?{M:o.guide.avatar}:{},{N:e.t(o.guide.name||"赵四"),O:"approved"!==a.auditStatus},"approved"!==a.auditStatus?{P:e.t(a.auditStatusText)}:{},{Q:"approved"===a.auditStatus},"approved"===a.auditStatus?{R:e.t(a.drawerRatingStars)}:{},{S:"approved"===a.auditStatus},"approved"===a.auditStatus?{T:t._imports_3}:{},{U:e.o((...e)=>a.goProfile&&a.goProfile(...e),"7c"),V:e.f(a.visibleDrawerMenus,(t,i,n)=>({a:t.icon,b:e.t(t.text),c:t.text,d:e.o(e=>a.handleMenu(t),t.text)})),W:t._imports_0$2,X:o.drawerOpen?1:"",Y:o.drawerOpen?1:"",Z:e.o((...e)=>a.closeDrawer&&a.closeDrawer(...e),"b4")}):{},{aa:e.o(a.confirmDialog,"27"),ab:e.o(e=>o.dialog.visible=e,"92"),ac:e.p({title:o.dialog.title,content:o.dialog.content,"confirm-text":o.dialog.confirmText,"cancel-text":o.dialog.cancelText,visible:o.dialog.visible}),ad:e.s(a.pageVars)})}]]);wx.createPage(o); |