7 lines
208 KiB
JavaScript
7 lines
208 KiB
JavaScript
var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,a)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,__spreadValues=(e,t)=>{for(var a in t||(t={}))__hasOwnProp.call(t,a)&&__defNormalProp(e,a,t[a]);if(__getOwnPropSymbols)for(var a of __getOwnPropSymbols(t))__propIsEnum.call(t,a)&&__defNormalProp(e,a,t[a]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e,t){"use strict";var a=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a};var n=a({name:"StarPage",setup:t=>(e.onMounted((()=>{const e=setTimeout((()=>{uni.redirectTo({url:"/pages/login/user"}),clearTimeout(e)}),3e3)})),{})},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"starPage"},[e.createElementVNode("view",{class:"page"},[e.createElementVNode("view",{class:"tit"},[e.createTextVNode(" 快递千万里 "),e.createElementVNode("text",null,"."),e.createTextVNode(" 神领零距离 ")]),e.createElementVNode("view",{class:"map"})]),e.createElementVNode("view",{class:"logo"})])}],["__scopeId","data-v-09e33f6d"]]),o={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};var l=a({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:o.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle({color:n.color,"font-size":i.iconSize}),class:e.normalizeClass(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:a[0]||(a[0]=(...e)=>i._onClick&&i._onClick(...e))},null,6)}],["__scopeId","data-v-a0895554"]]);function i(e,a){return"Function"===t.toRawType(a)?"function() { [native code] }":a}function r(e,a,n){if("string"==typeof __channelId__&&__channelId__)return n.push(a.replace("at ","uni-app:///")),console[e].apply(console,n);return n.map((function(e){const a=t.toTypeString(e).toLowerCase();if(-1!==["[object object]","[object array]","[object module]"].indexOf(a))try{e="---BEGIN:JSON---"+JSON.stringify(e,i)+"---END:JSON---"}catch(n){e=a}else if(null===e)e="---NULL---";else if(void 0===e)e="---UNDEFINED---";else{const a=t.toRawType(e).toUpperCase();e="NUMBER"===a||"BOOLEAN"===a?"---BEGIN:"+a+"---"+e+"---END:"+a+"---":String(e)}return e})).join("---COMMA---")+" "+a}function s(e,t,...a){const n=r(e,t,a);n&&console[e](n)}function c(e,a){return t.isString(e)?a:e}const d=(t=>(a,n=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,n)})("onReachBottom");var u=a({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm"],model:{prop:"modelValue",event:"update:modelValue"},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:String,placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:15},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!0},passwordIcon:{type:Boolean,default:!0},styles:{type:Object,default:()=>({color:"#333",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,errMsg:"",val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1}),computed:{msg(){return this.errorMessage||this.errMsg},inputMaxlength(){return Number(this.maxlength)}},watch:{value(e){this.errMsg&&(this.errMsg=""),this.val=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(e))},modelValue(e){this.errMsg&&(this.errMsg=""),this.val=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(e))},focus(e){this.$nextTick((()=>{this.focused=this.focus}))}},created(){this.value||0===this.value||(this.val=this.modelValue),this.modelValue||0===this.modelValue||(this.val=this.value),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.is_reset||(this.is_reset=!1,this.formItem.setValue(this.val)),this.rename=this.formItem.name,this.form.inputChildrens.push(this))},mounted(){this.$nextTick((()=>{this.focused=this.focus}))},methods:{init(){},onClickIcon(e){this.$emit("iconClick",e)},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},onEyes(){this.showPassword=!this.showPassword},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(e){this.$emit("focus",e)},onBlur(e){e.detail.value,this.$emit("blur",e)},onConfirm(e){this.$emit("confirm",e.detail.value)},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue","")},fieldClick(){this.$emit("click")},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,a,n,o,i,r){const s=c(e.resolveDynamicComponent("uni-icons"),l);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":r.msg}]),style:e.normalizeStyle({color:n.inputBorder&&r.msg?"#e43d33":n.styles.color})},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",{"is-input-border":n.inputBorder,"is-input-error-border":n.inputBorder&&r.msg,"is-textarea":"textarea"===n.type,"is-disabled":n.disabled}]),style:e.normalizeStyle({"border-color":n.inputBorder&&r.msg?"#dd524d":n.styles.borderColor,"background-color":n.disabled?n.styles.disableColor:""})},[n.prefixIcon?(e.openBlock(),e.createBlock(s,{key:0,class:"content-clear-icon",type:n.prefixIcon,color:"#c0c4cc",onClick:a[0]||(a[0]=e=>r.onClickIcon("prefix"))},null,8,["type"])):e.createCommentVNode("",!0),"textarea"===n.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":n.inputBorder}]),name:n.name,value:i.val,placeholder:n.placeholder,placeholderStyle:n.placeholderStyle,disabled:n.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:r.inputMaxlength,focus:i.focused,autoHeight:n.autoHeight,onInput:a[1]||(a[1]=(...e)=>r.onInput&&r.onInput(...e)),onBlur:a[2]||(a[2]=(...e)=>r.onBlur&&r.onBlur(...e)),onFocus:a[3]||(a[3]=(...e)=>r.onFocus&&r.onFocus(...e)),onConfirm:a[4]||(a[4]=(...e)=>r.onConfirm&&r.onConfirm(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===n.type?"text":n.type,class:"uni-easyinput__content-input",style:e.normalizeStyle({"padding-right":"password"===n.type||n.clearable||n.prefixIcon?"":"10px","padding-left":n.prefixIcon?"":"10px"}),name:n.name,value:i.val,password:!i.showPassword&&"password"===n.type,placeholder:n.placeholder,placeholderStyle:n.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:n.disabled,maxlength:r.inputMaxlength,focus:i.focused,confirmType:n.confirmType,onFocus:a[5]||(a[5]=(...e)=>r.onFocus&&r.onFocus(...e)),onBlur:a[6]||(a[6]=(...e)=>r.onBlur&&r.onBlur(...e)),onInput:a[7]||(a[7]=(...e)=>r.onInput&&r.onInput(...e)),onConfirm:a[8]||(a[8]=(...e)=>r.onConfirm&&r.onConfirm(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType"])),"password"===n.type&&n.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[i.val?(e.openBlock(),e.createBlock(s,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===n.type}]),type:i.showPassword?"eye-slash-filled":"eye-filled",size:18,color:"#c0c4cc",onClick:r.onEyes},null,8,["class","type","onClick"])):e.createCommentVNode("",!0)],64)):n.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[n.suffixIcon?(e.openBlock(),e.createBlock(s,{key:0,class:"content-clear-icon",type:n.suffixIcon,color:"#c0c4cc",onClick:a[9]||(a[9]=e=>r.onClickIcon("suffix"))},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[n.clearable&&i.val&&!n.disabled?(e.openBlock(),e.createBlock(s,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===n.type}]),type:"clear",size:n.clearSize,color:"#c0c4cc",onClick:r.onClear},null,8,["class","size","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-7a1731ea"]]);var m=a({name:"uniFormsItem",props:{custom:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},name:String,required:Boolean,validateTrigger:{type:String,default:""},leftIcon:String,iconColor:{type:String,default:"#606266"},label:String,labelWidth:{type:[Number,String],default:""},labelAlign:{type:String,default:""},labelPosition:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},rules:{type:Array,default:()=>[]}},data:()=>({errorTop:!1,errorBottom:!1,labelMarginBottom:"",errorWidth:"",errMsg:"",val:"",labelPos:"",labelWid:"",labelAli:"",showMsg:"undertext",border:!1,isFirstBorder:!1,isArray:!1,arrayField:""}),computed:{msg(){return this.errorMessage||this.errMsg},fieldStyle(){let e={};return"top"==this.labelPos&&(e.padding="0 0",this.labelMarginBottom="6px"),"left"==this.labelPos&&!1!==this.msg&&""!=this.msg?(e.paddingBottom="0px",this.errorBottom=!0,this.errorTop=!1):"top"==this.labelPos&&!1!==this.msg&&""!=this.msg?(this.errorBottom=!1,this.errorTop=!0):(this.errorTop=!1,this.errorBottom=!1),e},justifyContent(){return"left"===this.labelAli?"flex-start":"center"===this.labelAli?"center":"right"===this.labelAli?"flex-end":void 0},labelLeft(){return("left"===this.labelPos?parseInt(this.labelWid):0)+"px"}},watch:{validateTrigger(e){this.formTrigger=e}},created(){this.form=this.getForm(),this.group=this.getForm("uniGroup"),this.formRules=[],this.formTrigger=this.validateTrigger,this.name&&-1!==this.name.indexOf("[")&&-1!==this.name.indexOf("]")&&(this.isArray=!0,this.arrayField=this.name,this.form.formData[this.name]=this.form._getValue(this.name,""))},mounted(){this.form&&this.form.childrens.push(this),this.init()},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{init(){if(this.form){let{formRules:e,validator:t,formData:a,value:n,labelPosition:o,labelWidth:l,labelAlign:i,errShowType:r}=this.form;this.labelPos=this.labelPosition?this.labelPosition:o,this.label?this.labelWid=this.labelWidth?this.labelWidth:l||70:this.labelWid=this.labelWidth?this.labelWidth:l||"auto",this.labelWid&&"auto"!==this.labelWid&&(this.labelWid+="px"),this.labelAli=this.labelAlign?this.labelAlign:i,this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border,this.showMsg=r;let s=this.isArray?this.arrayField:this.name;if(!s)return;e&&this.rules.length>0&&(e[s]||(e[s]={rules:this.rules}),t.updateSchema(e)),this.formRules=e[s]||{},this.validator=t}else this.labelPos=this.labelPosition||"left",this.labelWid=this.labelWidth||65,this.labelAli=this.labelAlign||"left"},unInit(){this.form&&this.form.childrens.forEach(((e,t)=>{e===this&&(this.form.childrens.splice(t,1),delete this.form.formData[e.name])}))},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},clearValidate(){this.errMsg=""},setValue(e){let t=this.isArray?this.arrayField:this.name;if(t){if(this.errMsg&&(this.errMsg=""),this.form.formData[t]=this.form._getValue(t,e),!this.formRules||(this.formRules,"{}"===JSON.stringify(this.formRules)))return;this.triggerCheck(this.form._getValue(this.name,e))}},async triggerCheck(e,t){if(this.errMsg="",!this.validator||0===Object.keys(this.formRules).length)return;const a=this.isRequired(this.formRules.rules||[]);let n=this.isTrigger(this.formRules.validateTrigger,this.validateTrigger,this.form.validateTrigger),o=null;if(n||t){let t=this.isArray?this.arrayField:this.name;o=await this.validator.validateUpdate({[t]:e},this.form.formData)}a||void 0!==e&&""!==e||(o=null);const l=this.form.inputChildrens.find((e=>e.rename===this.name));return(n||t)&&o&&o.errorMessage?(l&&(l.errMsg=o.errorMessage),"toast"===this.form.errShowType&&uni.showToast({title:o.errorMessage||"校验错误",icon:"none"}),"modal"===this.form.errShowType&&uni.showModal({title:"提示",content:o.errorMessage||"校验错误"})):l&&(l.errMsg=""),this.errMsg=o?o.errorMessage:"",this.form.validateCheck(o||null),o||null},isTrigger:(e,t,a)=>!("submit"===e||!e)||void 0===e&&("bind"===t||!t&&"bind"===a),isRequired(e){let t=!1;for(let a=0;a<e.length;a++){if(e[a].required){t=!0;break}}return t}}},[["render",function(t,a,n,o,i,r){const s=c(e.resolveDynamicComponent("uni-icons"),l);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-forms-item",{"uni-forms-item--border":i.border,"is-first-border":i.border&&i.isFirstBorder,"uni-forms-item-error":r.msg}])},[e.createElementVNode("view",{class:"uni-forms-item__box"},[e.createElementVNode("view",{class:e.normalizeClass(["uni-forms-item__inner",["is-direction-"+i.labelPos]])},[e.createElementVNode("view",{class:"uni-forms-item__label",style:e.normalizeStyle({width:i.labelWid,justifyContent:r.justifyContent})},[e.renderSlot(t.$slots,"label",{},(()=>[n.required?(e.openBlock(),e.createElementBlock("text",{key:0,class:"is-required"},"*")):e.createCommentVNode("",!0),n.leftIcon?(e.openBlock(),e.createBlock(s,{key:1,class:"label-icon",size:"16",type:n.leftIcon,color:n.iconColor},null,8,["type","color"])):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"label-text"},e.toDisplayString(n.label),1),n.label?(e.openBlock(),e.createElementBlock("view",{key:2,class:"label-seat"})):e.createCommentVNode("",!0)]),!0)],4),e.createElementVNode("view",{class:e.normalizeClass(["uni-forms-item__content",{"is-input-error-border":r.msg}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2),r.msg?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-error-message",{"uni-error-msg--boeder":i.border}]),style:e.normalizeStyle({paddingLeft:r.labelLeft})},[e.createElementVNode("text",{class:"uni-error-message-text"},e.toDisplayString("undertext"===i.showMsg?r.msg:""),1)],6)):e.createCommentVNode("",!0)])],2)}],["__scopeId","data-v-30762ac2"]]),p={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const f={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function h(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let a=t;for(let n in e){let t=new RegExp("{"+n+"}");a=a.replace(t,e[n])}return a}const v={integer:e=>v.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return v.number(e)&&!v.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!v.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(p.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(p.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(a){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(p.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};const g={required:(e,t,a)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?h(e,e.errorMessage||a.required):null,range(e,t,a){const{range:n,errorMessage:o}=e;let l=new Array(n.length);for(let r=0;r<n.length;r++){const e=n[r];v.object(e)&&void 0!==e.value?l[r]=e.value:l[r]=e}let i=!1;return Array.isArray(t)?i=new Set(t.concat(l)).size===l.length:l.indexOf(t)>-1&&(i=!0),i?null:h(e,o||a.enum)},rangeNumber(e,t,a){if(!v.number(t))return h(e,e.errorMessage||a.pattern.mismatch);let{minimum:n,maximum:o,exclusiveMinimum:l,exclusiveMaximum:i}=e,r=l?t<=n:t<n,s=i?t>=o:t>o;return void 0!==n&&r?h(e,e.errorMessage||a.number[l?"exclusiveMinimum":"minimum"]):void 0!==o&&s?h(e,e.errorMessage||a.number[i?"exclusiveMaximum":"maximum"]):void 0!==n&&void 0!==o&&(r||s)?h(e,e.errorMessage||a.number.range):null},rangeLength(e,t,a){if(!v.string(t)&&!v.array(t))return h(e,e.errorMessage||a.pattern.mismatch);let n=e.minLength,o=e.maxLength,l=t.length;return void 0!==n&&l<n?h(e,e.errorMessage||a.length.minLength):void 0!==o&&l>o?h(e,e.errorMessage||a.length.maxLength):void 0!==n&&void 0!==o&&(l<n||l>o)?h(e,e.errorMessage||a.length.range):null},pattern:(e,t,a)=>v.pattern(e.pattern,t)?null:h(e,e.errorMessage||a.pattern.mismatch),format(e,t,a){var n=Object.keys(v),o=f[e.format]?f[e.format]:e.format||e.arrayType;return n.indexOf(o)>-1&&!v[o](t)?h(e,e.errorMessage||a.typeError):null},arrayTypeFormat(e,t,a){if(!Array.isArray(t))return h(e,e.errorMessage||a.typeError);for(let n=0;n<t.length;n++){const o=t[n];let l=this.format(e,o,a);if(null!==l)return l}return null}};class y extends class{constructor(e){this._message=e}async validateRule(e,t,a,n,o){var l=null;let i=t.rules;if(i.findIndex((e=>e.required))<0){if(null==a)return l;if("string"==typeof a&&!a.length)return l}var r=this._message;if(void 0===i)return r.default;for(var s=0;s<i.length;s++){let c=i[s],d=this._getValidateType(c);if(Object.assign(c,{label:t.label||`["${e}"]`}),g[d]&&null!=(l=g[d](c,a,r)))break;if(c.validateExpr){let e=Date.now();if(!1===c.validateExpr(a,o,e)){l=this._getMessage(c,c.errorMessage||this._message.default);break}}if(c.validateFunction&&null!==(l=await this.validateFunction(c,a,n,o,d)))break}return null!==l&&(l=r.TAG+l),l}async validateFunction(e,t,a,n,o){let l=null;try{let i=null;const r=await e.validateFunction(e,t,n||a,(e=>{i=e}));(i||"string"==typeof r&&r||!1===r)&&(l=this._getMessage(e,i||r,o))}catch(i){l=this._getMessage(e,i.message,o)}return l}_getMessage(e,t,a){return h(e,t||e.errorMessage||this._message[a]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}{constructor(e,t){super(y.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!1,t)),a.length?a[0]:null}async validateAll(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!0,t)),a}async validateUpdate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidateUpdate(e,!1,t)),a.length?a[0]:null}async invokeValidate(e,t,a){let n=[],o=this._schema;for(let l in o){let i=o[l],r=await this.validateRule(l,i,e[l],e,a);if(null!=r&&(n.push({key:l,errorMessage:r}),!t))break}return n}async invokeValidateUpdate(e,t,a){let n=[];for(let o in e){let l=await this.validateRule(o,this._schema[o],e[o],e,a);if(null!=l&&(n.push({key:o,errorMessage:l}),!t))break}return n}_checkFieldInSchema(e){var t=Object.keys(e),a=Object.keys(this._schema);if(new Set(t.concat(a)).size===a.length)return"";var n=t.filter((e=>a.indexOf(e)<0));return[{key:"invalid",errorMessage:h({field:JSON.stringify(n)},y.message.TAG+y.message.defaultInvalid)}]}}y.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};var k=a({name:"uniForms",components:{},emits:["input","reset","validate","submit"],props:{value:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},validateTrigger:{type:String,default:""},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},errShowType:{type:String,default:"undertext"},border:{type:Boolean,default:!1}},data:()=>({formData:{}}),computed:{dataValue(){return"{}"===JSON.stringify(this.modelValue)?this.value:this.modelValue}},watch:{rules(e){this.init(e)},labelPosition(){this.childrens.forEach((e=>{e.init()}))}},created(){getApp().$vm.$.appContext.config.globalProperties.binddata||(getApp().$vm.$.appContext.config.globalProperties.binddata=function(e,t,a){if(a)this.$refs[a].setValue(e,t);else{let a;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){a=t;break}}if(!a)return s("error","at uni_modules/uni-forms/components/uni-forms/uni-forms.vue:152","当前 uni-froms 组件缺少 ref 属性");a.setValue(e,t)}}),this.unwatchs=[],this.childrens=[],this.inputChildrens=[],this.checkboxChildrens=[],this.formRules=[],this.init(this.rules)},methods:{init(e){if(0!==Object.keys(e).length)this.formRules=e,this.validator=new y(e),this.registerWatch();else try{this.formData=JSON.parse(JSON.stringify(this.dataValue))}catch(t){this.formData={}}},registerWatch(){this.unwatchs.forEach((e=>e())),this.childrens.forEach((e=>{e.init()})),Object.keys(this.dataValue).forEach((e=>{let t=this.$watch("dataValue."+e,(t=>{if(t)if("[object Object]"===t.toString())for(let a in t){let n=`${e}[${a}]`;this.formData[n]=this._getValue(n,t[a])}else this.formData[e]=this._getValue(e,t)}),{deep:!0,immediate:!0});this.unwatchs.push(t)}))},setRules(e){this.init(e)},setValue(e,t,a){let n=this.childrens.find((t=>t.name===e));return n?(t=this._getValue(n.name,t),this.formData[e]=t,n.val=t,n.triggerCheck(t,a)):null},resetForm(e){this.childrens.forEach((e=>{e.errMsg="";const t=this.inputChildrens.find((t=>t.rename===e.name));t&&(t.errMsg="",t.is_reset=!0,t.$emit("input",t.multiple?[]:""),t.$emit("update:modelValue",t.multiple?[]:""))})),this.childrens.forEach((e=>{e.name&&(this.formData[e.name]=this._getValue(e.name,""))})),this.$emit("reset",e)},validateCheck(e){null===e&&(e=null),this.$emit("validate",e)},async validateAll(e,t,a,n){let o,l=[];for(let s in e){const e=this.childrens.find((e=>e.name===s));e&&l.push(e)}n||"function"!=typeof a||(n=a),!n&&"function"!=typeof n&&Promise&&(o=new Promise(((e,t)=>{n=function(a,n){a?t(a):e(n)}})));let i=[],r={};if(this.validator)for(let s in l){const t=l[s];let a=t.isArray?t.arrayField:t.name;if(t.isArray){if(-1!==t.name.indexOf("[")&&-1!==t.name.indexOf("]")){const n=t.name.split("["),o=n[0],l=n[1].replace("]","");r[o]||(r[o]={}),r[o][l]=this._getValue(a,e[a])}}else r[a]=this._getValue(a,e[a]);const n=await t.triggerCheck(e[a],!0);if(n&&(i.push(n),"toast"===this.errShowType||"modal"===this.errShowType))break}else r=e;return Array.isArray(i)&&0===i.length&&(i=null),Array.isArray(a)&&a.forEach((e=>{r[e]=this.dataValue[e]})),"submit"===t?this.$emit("submit",{detail:{value:r,errors:i}}):this.$emit("validate",i),n&&"function"==typeof n&&n(i,r),o&&n?o:null},submitForm(){},submit(e,t,a){for(let n in this.dataValue){this.childrens.find((e=>e.name===n))&&void 0===this.formData[n]&&(this.formData[n]=this._getValue(n,this.dataValue[n]))}return a||s("warn","at uni_modules/uni-forms/components/uni-forms/uni-forms.vue:377","submit 方法即将废弃,请使用validate方法代替!"),this.validateAll(this.formData,"submit",e,t)},validate(e,t){return this.submit(e,t,!0)},validateField(e,t){e=[].concat(e);let a={};return this.childrens.forEach((t=>{-1!==e.indexOf(t.name)&&(a=Object.assign({},a,{[t.name]:this.formData[t.name]}))})),this.validateAll(a,"submit",[],t)},resetFields(){this.resetForm()},clearValidate(e){e=[].concat(e),this.childrens.forEach((t=>{const a=this.inputChildrens.find((e=>e.rename===t.name));(0===e.length||-1!==e.indexOf(t.name))&&(t.errMsg="",a&&(a.errMsg=""))}))},_getValue(e,t){const a=this.formRules[e]&&this.formRules[e].rules||[],n=a.find((e=>e.format&&this.type_filter(e.format))),o=a.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return n&&(t=isNaN(t)?t:""===t||null===t?null:Number(t)),o&&(t=!!t),t},type_filter:e=>"int"===e||"double"===e||"number"===e||"timestamp"===e}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-forms",{"uni-forms--top":!n.border}])},[e.createElementVNode("form",{onSubmit:a[0]||(a[0]=e.withModifiers(((...e)=>i.submitForm&&i.submitForm(...e)),["stop"])),onReset:a[1]||(a[1]=(...e)=>i.resetForm&&i.resetForm(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],32)],2)}],["__scopeId","data-v-f5853d9c"]]);function w(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const _="function"==typeof Proxy;class N{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const a={};if(e.settings)for(const i in e.settings){const t=e.settings[i];a[i]=t.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let o=__spreadValues({},a);try{const e=localStorage.getItem(n),t=JSON.parse(e);Object.assign(o,t)}catch(l){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(l){}o=e}},t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((a=>{this.targetQueue.push({method:t,args:e,resolve:a})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function b(e,t){const a=w(),n=w().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=_&&e.enableEarlyProxy;if(!n||!a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){const l=o?new N(e,n):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}else n.emit("devtools-plugin:setup",e,t)}
|
||
/*!
|
||
* vuex v4.0.2
|
||
* (c) 2021 Evan You
|
||
* @license MIT
|
||
*/var V="store";function E(t){return void 0===t&&(t=null),e.inject(null!==t?t:V)}function x(e,t){Object.keys(e).forEach((function(a){return t(e[a],a)}))}function B(e,t,a){return t.indexOf(e)<0&&(a&&a.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function C(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var a=e.state;S(e,a,[],e._modules.root,!0),D(e,a,t)}function D(t,a,n){var o=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var l=t._wrappedGetters,i={};x(l,(function(e,a){i[a]=function(e,t){return function(){return e(t)}}(e,t),Object.defineProperty(t.getters,a,{get:function(){return i[a]()},enumerable:!0})})),t._state=e.reactive({data:a}),t.strict&&function(t){e.watch((function(){return t._state.data}),(function(){}),{deep:!0,flush:"sync"})}(t),o&&n&&t._withCommit((function(){o.data=null}))}function S(e,t,a,n,o){var l=!a.length,i=e._modules.getNamespace(a);if(n.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=n),!l&&!o){var r=I(t,a.slice(0,-1)),s=a[a.length-1];e._withCommit((function(){r[s]=n.state}))}var c=n.context=function(e,t,a){var n=""===t,o={dispatch:n?e.dispatch:function(a,n,o){var l=M(a,n,o),i=l.payload,r=l.options,s=l.type;return r&&r.root||(s=t+s),e.dispatch(s,i)},commit:n?e.commit:function(a,n,o){var l=M(a,n,o),i=l.payload,r=l.options,s=l.type;r&&r.root||(s=t+s),e.commit(s,i,r)}};return Object.defineProperties(o,{getters:{get:n?function(){return e.getters}:function(){return T(e,t)}},state:{get:function(){return I(e.state,a)}}}),o}(e,i,a);n.forEachMutation((function(t,a){!function(e,t,a,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){a.call(e,n.state,t)}))}(e,i+a,t,c)})),n.forEachAction((function(t,a){var n=t.root?a:i+a,o=t.handler||t;!function(e,t,a,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,l=a.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(o=l)&&"function"==typeof o.then||(l=Promise.resolve(l)),e._devtoolHook?l.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):l}))}(e,n,o,c)})),n.forEachGetter((function(t,a){!function(e,t,a,n){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return a(n.state,n.getters,e.state,e.getters)}}(e,i+a,t,c)})),n.forEachChild((function(n,l){S(e,t,a.concat(l),n,o)}))}function T(e,t){if(!e._makeLocalGettersCache[t]){var a={},n=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,n)===t){var l=o.slice(n);Object.defineProperty(a,l,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=a}return e._makeLocalGettersCache[t]}function I(e,t){return t.reduce((function(e,t){return e[t]}),e)}function M(e,t,a){var n;return null!==(n=e)&&"object"==typeof n&&e.type&&(a=t,t=e,e=e.type),{type:e,payload:t,options:a}}var A="vuex:mutations",P="vuex:actions",F="vuex",O=0;function L(e,t){b({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(a){a.addTimelineLayer({id:A,label:"Vuex Mutations",color:z}),a.addTimelineLayer({id:P,label:"Vuex Actions",color:z}),a.addInspector({id:F,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),a.on.getInspectorTree((function(a){if(a.app===e&&a.inspectorId===F)if(a.filter){var n=[];H(n,t._modules.root,a.filter,""),a.rootNodes=n}else a.rootNodes=[G(t._modules.root,"")]})),a.on.getInspectorState((function(a){if(a.app===e&&a.inspectorId===F){var n=a.nodeId;T(t,n),a.state=function(e,t,a){t="root"===a?t:t[a];var n=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(n.length){var l=function(e){var t={};return Object.keys(e).forEach((function(a){var n=a.split("/");if(n.length>1){var o=t,l=n.pop();n.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[l]=U((function(){return e[a]}))}else t[a]=U((function(){return e[a]}))})),t}(t);o.getters=Object.keys(l).map((function(e){return{key:e.endsWith("/")?j(e):e,editable:!1,value:U((function(){return l[e]}))}}))}return o}((o=t._modules,(i=(l=n).split("/").filter((function(e){return e}))).reduce((function(e,t,a){var n=e[t];if(!n)throw new Error('Missing module "'+t+'" for path "'+l+'".');return a===i.length-1?n:n._children}),"root"===l?o:o.root._children)),"root"===n?t.getters:t._makeLocalGettersCache,n)}var o,l,i})),a.on.editInspectorState((function(a){if(a.app===e&&a.inspectorId===F){var n=a.nodeId,o=a.path;"root"!==n&&(o=n.split("/").filter(Boolean).concat(o)),t._withCommit((function(){a.set(t._state.data,o,a.state.value)}))}})),t.subscribe((function(e,t){var n={};e.payload&&(n.payload=e.payload),n.state=t,a.notifyComponentUpdate(),a.sendInspectorTree(F),a.sendInspectorState(F),a.addTimelineEvent({layerId:A,event:{time:Date.now(),title:e.type,data:n}})})),t.subscribeAction({before:function(e,t){var n={};e.payload&&(n.payload=e.payload),e._id=O++,e._time=Date.now(),n.state=t,a.addTimelineEvent({layerId:P,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:n}})},after:function(e,t){var n={},o=Date.now()-e._time;n.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(n.payload=e.payload),n.state=t,a.addTimelineEvent({layerId:P,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:n}})}})}))}var z=8702998,R={label:"namespaced",textColor:16777215,backgroundColor:6710886};function j(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function G(e,t){return{id:t||"root",label:j(t),tags:e.namespaced?[R]:[],children:Object.keys(e._children).map((function(a){return G(e._children[a],t+a+"/")}))}}function H(e,t,a,n){n.includes(a)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[R]:[]}),Object.keys(t._children).forEach((function(o){H(e,t._children[o],a,n+o+"/")}))}function U(e){try{return e()}catch(t){return t}}var W=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var a=e.state;this.state=("function"==typeof a?a():a)||{}},J={namespaced:{configurable:!0}};J.namespaced.get=function(){return!!this._rawModule.namespaced},W.prototype.addChild=function(e,t){this._children[e]=t},W.prototype.removeChild=function(e){delete this._children[e]},W.prototype.getChild=function(e){return this._children[e]},W.prototype.hasChild=function(e){return e in this._children},W.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},W.prototype.forEachChild=function(e){x(this._children,e)},W.prototype.forEachGetter=function(e){this._rawModule.getters&&x(this._rawModule.getters,e)},W.prototype.forEachAction=function(e){this._rawModule.actions&&x(this._rawModule.actions,e)},W.prototype.forEachMutation=function(e){this._rawModule.mutations&&x(this._rawModule.mutations,e)},Object.defineProperties(W.prototype,J);var $=function(e){this.register([],e,!1)};function Y(e,t,a){if(t.update(a),a.modules)for(var n in a.modules){if(!t.getChild(n))return;Y(e.concat(n),t.getChild(n),a.modules[n])}}$.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},$.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,a){return e+((t=t.getChild(a)).namespaced?a+"/":"")}),"")},$.prototype.update=function(e){Y([],this.root,e)},$.prototype.register=function(e,t,a){var n=this;void 0===a&&(a=!0);var o=new W(t,a);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&x(t.modules,(function(t,o){n.register(e.concat(o),t,a)}))},$.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1],n=t.getChild(a);n&&n.runtime&&t.removeChild(a)},$.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1];return!!t&&t.hasChild(a)};var Z=function(e){var t=this;void 0===e&&(e={});var a=e.plugins;void 0===a&&(a=[]);var n=e.strict;void 0===n&&(n=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new $(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;var l=this,i=this.dispatch,r=this.commit;this.dispatch=function(e,t){return i.call(l,e,t)},this.commit=function(e,t,a){return r.call(l,e,t,a)},this.strict=n;var s=this._modules.root.state;S(this,s,[],this._modules.root),D(this,s),a.forEach((function(e){return e(t)}))},Q={state:{configurable:!0}};Z.prototype.install=function(e,t){e.provide(t||V,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&L(e,this)},Q.state.get=function(){return this._state.data},Q.state.set=function(e){},Z.prototype.commit=function(e,t,a){var n=this,o=M(e,t,a),l=o.type,i=o.payload,r={type:l,payload:i},s=this._mutations[l];s&&(this._withCommit((function(){s.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(r,n.state)})))},Z.prototype.dispatch=function(e,t){var a=this,n=M(e,t),o=n.type,l=n.payload,i={type:o,payload:l},r=this._actions[o];if(r){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,a.state)}))}catch(c){}var s=r.length>1?Promise.all(r.map((function(e){return e(l)}))):r[0](l);return new Promise((function(e,t){s.then((function(t){try{a._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,a.state)}))}catch(c){}e(t)}),(function(e){try{a._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,a.state,e)}))}catch(c){}t(e)}))}))}},Z.prototype.subscribe=function(e,t){return B(e,this._subscribers,t)},Z.prototype.subscribeAction=function(e,t){return B("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},Z.prototype.watch=function(t,a,n){var o=this;return e.watch((function(){return t(o.state,o.getters)}),a,Object.assign({},n))},Z.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Z.prototype.registerModule=function(e,t,a){void 0===a&&(a={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),a.preserveState),D(this,this.state)},Z.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete I(t.state,e.slice(0,-1))[e[e.length-1]]})),C(this)},Z.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},Z.prototype.hotUpdate=function(e){this._modules.update(e),C(this,!0)},Z.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Z.prototype,Q);function X({url:e="",params:t={},method:a="GET"}){let n={"Access-Control-Allow-Origin":"*","Content-Type":"application/json;charset=UTF-8",Authorization:uni.getStorageSync("token")};return new Promise(((o,l)=>{uni.request({url:"http://172.16.43.24:9527/courier"+e,data:t,header:n,method:a,success:e=>{const{data:t}=e;0==t.code||200==t.code?o(e.data):l(e.data)},fail:e=>{const t={data:{msg:e.data}};l(t)}})}))}var q=a({__name:"user",setup(t){const a=E();let n=e.ref(!1);const o=e.ref();let l=e.reactive({account:"courier",password:"123456"});const i=e.reactive({account:{rules:[{required:!0,errorMessage:"请输入手机号"}]},password:{rules:[{required:!0,errorMessage:"请输入验证码"}]}});e.onMounted((()=>{}));const r=async()=>{var e;await o.value.validate()&&await(e=l,X({url:"/login/account",method:"post",params:e})).then((e=>{200===e.code?(uni.setStorageSync("token",e.data.token),a.commit("user/setToken",e.data.token),a.dispatch("user/GetUsersInfo"),uni.redirectTo({url:"/pages/index/index"})):uni.showToast({title:e.msg,duration:1e3,icon:"none"})})).catch((e=>{}))};return(t,a)=>{const s=c(e.resolveDynamicComponent("uni-easyinput"),u),d=c(e.resolveDynamicComponent("uni-forms-item"),m),p=c(e.resolveDynamicComponent("uni-forms"),k);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"logo"},"神领物流"),e.createElementVNode("view",{class:"loginBox"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,"账号登录")]),e.createElementVNode("view",{class:"loginMain"},[e.createVNode(p,{ref_key:"customForm",ref:o,rules:i,modelValue:e.unref(l)},{default:e.withCtx((()=>[e.createVNode(d,{name:"account"},{default:e.withCtx((()=>[e.createVNode(s,{class:"item",modelValue:e.unref(l).account,"onUpdate:modelValue":a[0]||(a[0]=t=>e.unref(l).account=t),placeholder:"请输入账号"},null,8,["modelValue"])])),_:1}),e.createVNode(d,{name:"password"},{default:e.withCtx((()=>[e.createVNode(s,{class:"item",type:e.unref(n)?"text":"password",modelValue:e.unref(l).password,"onUpdate:modelValue":a[1]||(a[1]=t=>e.unref(l).password=t),placeholder:"请输入密码"},null,8,["type","modelValue"])])),_:1})])),_:1},8,["rules","modelValue"]),e.createElementVNode("view",{class:"btnBox"},[e.createElementVNode("button",{class:e.normalizeClass(["btn-default",0===e.unref(l).account.length||0===e.unref(l).password.length?"disabled":""]),disabled:0===e.unref(l).account.length||0===e.unref(l).password.length,type:"primary",onClick:r}," 登录 ",10,["disabled"])])])])],64)}}},[["__scopeId","data-v-15f7f7d6"]]);function K(e,t,a,n){const o=/^[1][3-9][0-9]{9}$/;""===t||null==t?e.required?n("请输入电话号码"):n():Number.isInteger(t)?t.trim().length<11?n("电话号码长度必须是11位"):o.test(t)||""===t?n():n("请输入正确的电话号码"):n("电话号码必须全为数字")}var ee=a({__name:"index",setup(t){const a=E(),n=e.ref();let o=e.ref(!1),l=e.reactive({phone:"",verifyCode:""}),i=e.reactive({show:!0,timer:null,times:60});const r=e.reactive({phone:{rules:[{required:!0,validateFunction:K,errorMessage:"请输入手机号"}]},verifyCode:{rules:[{required:!0,errorMessage:"请输入验证码"}]}});e.onMounted((()=>{}));const s=async()=>{let e=l.phone;var t,a;if(o.value=!(!/^[1][3-9][0-9]{9}$/.test(t=e)||""===t),!o.value)return uni.showToast({title:"手机号输入错误!请重新输入",duration:1e3,icon:"none"});(a=i).timer||(a.times=60,a.show=!1,a.timer=setInterval((()=>{a.times>0&&a.times<=60?a.times--:(a.show=!0,clearInterval(a.timer),a.timer=null)}),1e3)),a.timer,a.show,a.times,phone.value},d=async()=>{var e;await n.value.validate()&&await(e=l,X({url:"/logins/phone",method:"post",params:e})).then((e=>{if(0!==e.code)return uni.showToast({title:e.msg,duration:1e3,icon:"none"});a.commit("user/setToken",e.token),a.dispatch("user/GetUsersInfo"),uni.redirectTo({url:"/pages/index/index"})})).catch((e=>{}))},p=()=>{uni.redirectTo({url:"/pages/login/user"})};return(t,a)=>{const o=c(e.resolveDynamicComponent("uni-easyinput"),u),f=c(e.resolveDynamicComponent("uni-forms-item"),m),h=c(e.resolveDynamicComponent("uni-forms"),k);return e.openBlock(),e.createElementBlock("view",{class:"loginBox"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,"手机号登录"),e.createElementVNode("text",{class:"text",onClick:p},[e.createTextVNode(" 账号登录 "),e.createElementVNode("icon")])]),e.createElementVNode("view",{class:"loginMain"},[e.createVNode(h,{ref_key:"customForm",ref:n,rules:r,modelValue:e.unref(l)},{default:e.withCtx((()=>[e.createVNode(f,{name:"phone"},{default:e.withCtx((()=>[e.createVNode(o,{class:"item",modelValue:e.unref(l).phone,"onUpdate:modelValue":a[0]||(a[0]=t=>e.unref(l).phone=t),placeholder:"请输入手机号"},null,8,["modelValue"])])),_:1}),e.createVNode(f,{name:"verifyCode"},{default:e.withCtx((()=>[e.createVNode(o,{class:"item inputW",modelValue:e.unref(l).verifyCode,"onUpdate:modelValue":a[1]||(a[1]=t=>e.unref(l).verifyCode=t),placeholder:"请输入验证码"},null,8,["modelValue"]),e.createElementVNode("view",{class:"codeBox"},[e.withDirectives(e.createElementVNode("text",{class:"code",onClick:s},"获取验证码",512),[[e.vShow,e.unref(i).show]]),e.withDirectives(e.createElementVNode("text",{class:"code fontCol"},e.toDisplayString(e.unref(i).times)+"s后重新获取",513),[[e.vShow,!e.unref(i).show]])])])),_:1})])),_:1},8,["rules","modelValue"]),e.createElementVNode("view",{class:"btnBox"},[e.createElementVNode("button",{class:e.normalizeClass(["btn-default",0===e.unref(l).phone.length||0===e.unref(l).verifyCode.length?"disabled":""]),disabled:0===e.unref(l).phone.length||0===e.unref(l).verifyCode.length,type:"primary",onClick:d}," 登录 ",10,["disabled"])])])])}}},[["__scopeId","data-v-03d99416"]]);const te=e=>X({url:"/tasks/page",method:"get",params:e}),ae=e=>X({url:`/tasks/${e}`,method:"delete"}),ne=e=>X({url:"/tasks/batch",method:"delete",params:e}),oe=e=>X({url:`/tasks/get/${e}`,method:"get"});var le=a({name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:()=>[0,0]},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:()=>({})}},data:()=>({}),computed:{width(){return 8*String(this.text).length+12},classNames(){const{inverted:e,type:t,size:a,absolute:n}=this;return[e?"uni-badge--"+t+"-inverted":"","uni-badge--"+t,"uni-badge--"+a,n?"uni-badge--absolute":""].join(" ")},positionStyle(){if(!this.absolute)return{};let e=this.width/2,t=10;this.isDot&&(e=5,t=5);const a=`${-e+this.offset[0]}px`,n=`${-t+this.offset[1]}px`,o={rightTop:{right:a,top:n},rightBottom:{right:a,bottom:n},leftBottom:{left:a,bottom:n},leftTop:{left:a,top:n}},l=o[this.absolute];return l||o.rightTop},badgeWidth(){return{width:`${this.width}px`}},dotStyle(){return this.isDot?{width:"10px",height:"10px",borderRadius:"10px"}:{}},displayValue(){const{isDot:e,text:t,maxNum:a}=this;return e?"":Number(t)>a?`${a}+`:t}},methods:{onClick(){this.$emit("click")}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"uni-badge--x"},[e.renderSlot(t.$slots,"default",{},void 0,!0),n.text?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass([i.classNames,"uni-badge"]),style:e.normalizeStyle([i.badgeWidth,i.positionStyle,n.customStyle,i.dotStyle]),onClick:a[0]||(a[0]=e=>i.onClick())},e.toDisplayString(i.displayValue),7)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-d4f4e10e"]]);const ie=e=>"number"==typeof e?e+"px":e;var re=a({name:"UniNavBar",components:{statusBar:a({name:"UniStatusBar",data:()=>({statusBarHeight:20}),mounted(){this.statusBarHeight=uni.getSystemInfoSync().statusBarHeight+"px"}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{style:e.normalizeStyle({height:l.statusBarHeight}),class:"uni-status-bar"},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4)}],["__scopeId","data-v-4fab0372"]])},emits:["clickLeft","clickRight","clickTitle"],props:{dark:{type:Boolean,default:!1},title:{type:String,default:""},leftText:{type:String,default:""},rightText:{type:String,default:""},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},fixed:{type:[Boolean,String],default:!1},color:{type:String,default:""},backgroundColor:{type:String,default:""},statusBar:{type:[Boolean,String],default:!1},shadow:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},height:{type:[Number,String],default:44},leftWidth:{type:[Number,String],default:60},rightWidth:{type:[Number,String],default:60},stat:{type:[Boolean,String],default:""}},computed:{themeBgColor(){return this.dark?this.backgroundColor?this.backgroundColor:this.dark?"#333":"#FFF":this.backgroundColor||"#FFF"},themeColor(){return this.dark?this.color?this.color:this.dark?"#fff":"#333":this.color||"#333"},navbarHeight(){return ie(this.height)},leftIconWidth(){return ie(this.leftWidth)},rightIconWidth(){return ie(this.rightWidth)}},mounted(){uni.report&&this.stat&&""!==this.title&&uni.report("title",this.title)},methods:{onClickLeft(){this.$emit("clickLeft")},onClickRight(){this.$emit("clickRight")},onClickTitle(){this.$emit("clickTitle")}}},[["render",function(t,a,n,o,i,r){const s=e.resolveComponent("status-bar"),d=c(e.resolveDynamicComponent("uni-icons"),l);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-navbar",{"uni-dark":n.dark}])},[e.createElementVNode("view",{class:e.normalizeClass([{"uni-navbar--fixed":n.fixed,"uni-navbar--shadow":n.shadow,"uni-navbar--border":n.border},"uni-navbar__content"]),style:e.normalizeStyle({"background-color":r.themeBgColor})},[n.statusBar?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),e.createElementVNode("view",{style:e.normalizeStyle({color:r.themeColor,backgroundColor:r.themeBgColor,height:r.navbarHeight}),class:"uni-navbar__header"},[e.createElementVNode("view",{onClick:a[0]||(a[0]=(...e)=>r.onClickLeft&&r.onClickLeft(...e)),class:"uni-navbar__header-btns uni-navbar__header-btns-left",style:e.normalizeStyle({width:r.leftIconWidth})},[e.renderSlot(t.$slots,"left",{},(()=>[n.leftIcon.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-navbar__content_view"},[e.createVNode(d,{color:r.themeColor,type:n.leftIcon,size:"20"},null,8,["color","type"])])):e.createCommentVNode("",!0),n.leftText.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass([{"uni-navbar-btn-icon-left":!n.leftIcon.length>0},"uni-navbar-btn-text"])},[e.createElementVNode("text",{style:e.normalizeStyle({color:r.themeColor,fontSize:"12px"})},e.toDisplayString(n.leftText),5)],2)):e.createCommentVNode("",!0)]),!0)],4),e.createElementVNode("view",{class:"uni-navbar__header-container",onClick:a[1]||(a[1]=(...e)=>r.onClickTitle&&r.onClickTitle(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[n.title.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-navbar__header-container-inner"},[e.createElementVNode("text",{class:"uni-nav-bar-text uni-ellipsis-1",style:e.normalizeStyle({color:r.themeColor})},e.toDisplayString(n.title),5)])):e.createCommentVNode("",!0)]),!0)]),e.createElementVNode("view",{onClick:a[2]||(a[2]=(...e)=>r.onClickRight&&r.onClickRight(...e)),class:"uni-navbar__header-btns uni-navbar__header-btns-right",style:e.normalizeStyle({width:r.rightIconWidth})},[e.renderSlot(t.$slots,"right",{},(()=>[n.rightIcon.length?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createVNode(d,{color:r.themeColor,type:n.rightIcon,size:"22"},null,8,["color","type"])])):e.createCommentVNode("",!0),n.rightText.length&&!n.rightIcon.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-navbar-btn-text"},[e.createElementVNode("text",{class:"uni-nav-bar-right-text",style:e.normalizeStyle({color:r.themeColor})},e.toDisplayString(n.rightText),5)])):e.createCommentVNode("",!0)]),!0)],4)],4)],6),n.fixed?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-navbar__placeholder"},[n.statusBar?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-navbar__placeholder-view",style:e.normalizeStyle({height:r.navbarHeight})},null,4)])):e.createCommentVNode("",!0)],2)}],["__scopeId","data-v-4b9b58be"]]);var se=a({__name:"index",props:{newVal:{type:String,default:""}},setup(t){const a=e.ref(""),n=e=>{uni.redirectTo({url:"/pages/search/index"})};return(o,i)=>{const r=c(e.resolveDynamicComponent("uni-icons"),l),s=c(e.resolveDynamicComponent("uni-badge"),le),d=c(e.resolveDynamicComponent("uni-nav-bar"),re);return e.openBlock(),e.createElementBlock("view",{class:"navBox"},[e.createElementVNode("view",{class:"nav-bg"},[e.createElementVNode("view",{class:"headBg"}),e.createVNode(d,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"input-view"},[e.createVNode(r,{class:"input-uni-icon",type:"search",size:"18",color:"#999"}),e.withDirectives(e.createElementVNode("input",{"confirm-type":"search",class:"nav-bar-input",type:"text","onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),placeholder:"输入运单号/手机号/姓名查询",onConfirm:n},null,544),[[e.vModelText,a.value]])]),e.createElementVNode("view",{slot:"right"},[e.createElementVNode("view",{class:"rightText"},[e.createElementVNode("navigator",{url:"/pages/news/index","open-type":"redirect"},[e.createElementVNode("view",null,[e.createVNode(s,{class:e.normalizeClass(["uni-badge-left-margin",t.newVal>9?"big":""]),text:t.newVal,absolute:"rightTop",size:"small"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"box"},[e.createElementVNode("text",{class:"box-text"})])])),_:1},8,["class","text"]),e.createElementVNode("view",{class:"newInfo"},"消息")])])])])])),_:1})])])}}},[["__scopeId","data-v-27b3619e"]]);const ce={__name:"index",props:{pagePath:{type:String,default:""}},setup(t){const a=E(),n=e.ref(a.state.footStatus);let o=e.ref([{pagePath:"/pages/index/index",iconPath:"static/home.png",selectedIconPath:"static/homeActive.png",text:"首页"},{pagePath:"/pages/pickup/index",iconPath:"static/collect.png",selectedIconPath:"static/collectActive.png",text:"取件"},{pagePath:"",iconPath:"static/qrcode.png",selectedIconPath:"static/qrcode.png",text:""},{pagePath:"/pages/delivery/index",iconPath:"static/delivery.png",selectedIconPath:"static/deliveryActive.png",text:"派件"},{pagePath:"/pages/my/index",iconPath:"static/user.png",selectedIconPath:"static/userActive.png",text:"我的"}]);return(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"footBox"},[e.createElementVNode("view",{class:"uni-tabbar"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),((t,o)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["tabbar-item",n.value===o?"active":""]),key:o,onClick:e=>((e,t)=>{""!==e.text&&(n.value=t,a.commit("setFootStatus",t),a.commit("user/setDeliveryData",[]),uni.redirectTo({url:e.pagePath,success:e=>{},fail:()=>{}}))})(t,o)},[(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-tabbar__bd"},[""!==t.pagePath?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-tabbar__icon"},[n.value===o?(e.openBlock(),e.createElementBlock("img",{key:0,class:"item-img",src:t.selectedIconPath},null,8,["src"])):(e.openBlock(),e.createElementBlock("img",{key:1,class:"item-img",src:t.iconPath},null,8,["src"]))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"qrCode"},[e.createElementVNode("img",{src:t.iconPath},null,8,["src"])]))])),""!==t.text?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-tabbar__label"},e.toDisplayString(t.text),1)):e.createCommentVNode("",!0)],10,["onClick"])))),128))])]))}};var de=a({__name:"orderInfo",props:{baseData:{type:Object,default:()=>({})}},setup:t=>(a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"infoBox"},[e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",null,[e.createElementVNode("view",{class:"num"},e.toDisplayString(t.baseData.pickupNum),1),e.createElementVNode("view",null,"取件任务")]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"num"},e.toDisplayString(t.baseData.dispatchNum),1),e.createElementVNode("view",null,"派件任务")]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"num"},e.toDisplayString(t.baseData.rightTimeoutNum),1),e.createElementVNode("view",null,"超时任务")])])]))},[["__scopeId","data-v-b62e5050"]]);var ue=a({__name:"orderTip",props:{orderData:Object,default:()=>({})},setup(t){const a=t,n=()=>{const e=a.orderData.contentType;300===e?uni.redirectTo({url:"/pages/news/index"}):301===e?uni.redirectTo({url:"/pages/news/system?title=寄件相关&type=301"}):302===e?uni.redirectTo({url:"/pages/news/system?title=签收提醒&type=302"}):uni.redirectTo({url:"/pages/news/system?title=快件取消&type=303"})};return(a,o)=>t.orderData?(e.openBlock(),e.createElementBlock("view",{key:0,class:"orderTip",onClick:n},[e.createElementVNode("view",{class:"btn"},"消息通知"),e.createElementVNode("view",null,e.toDisplayString(t.orderData.recentMsg),1),e.createElementVNode("view",null,[e.createTextVNode(e.toDisplayString(t.orderData.minutes)+"分钟前 ",1),e.createElementVNode("icon",{class:"iconNext"})])])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-6a4980b5"]]);var me=a({__name:"commonUse",props:{},setup:t=>(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"commonUse"},[e.createElementVNode("view",{class:"hometit"},"常用功能"),e.createElementVNode("view",{class:"commonList"},[e.createElementVNode("view",null,[e.createElementVNode("icon",{class:"icon delivery"}),e.createElementVNode("text",null,"派件扫描")]),e.createElementVNode("view",null,[e.createElementVNode("icon",{class:"icon sign"}),e.createElementVNode("text",null,"签收扫描")]),e.createElementVNode("view",null,[e.createElementVNode("navigator",{url:"/pages/history/index","open-type":"redirect"},[e.createElementVNode("icon",{class:"icon history"}),e.createElementVNode("text",null,"历史取派")])]),e.createElementVNode("view",null,[e.createElementVNode("icon",{class:"icon new"}),e.createElementVNode("text",null,"消息通知")]),e.createElementVNode("view",null,[e.createElementVNode("navigator",{url:"/pages/freight/index","open-type":"redirect"},[e.createElementVNode("icon",{class:"icon freight"}),e.createElementVNode("text",null,"运费查询")])]),e.createElementVNode("view",null,[e.createElementVNode("icon",{class:"icon tip"}),e.createElementVNode("text",null,"签收提醒")]),e.createElementVNode("view",null,[e.createElementVNode("icon",{class:"icon exclusive"}),e.createElementVNode("text",null,"专属取寄")])])]))},[["__scopeId","data-v-463e99ee"]]);var pe=a({__name:"dataPresent",props:{baseData:{type:Object,default:()=>({})}},setup:t=>(a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"commonData"},[e.createElementVNode("view",{class:"hometit"},"数据展示"),e.createElementVNode("view",{class:"dataList"},[e.createElementVNode("view",{class:"todayGet"},[e.createElementVNode("view",null,"今日已取"),e.createElementVNode("view",{class:"num"},e.toDisplayString(t.baseData.pickupedNum),1),e.createElementVNode("view",{class:"rightIcon"})]),e.createElementVNode("view",{class:"todaySign"},[e.createElementVNode("view",null,"今日已签"),e.createElementVNode("view",{class:"num"},e.toDisplayString(t.baseData.signedNum),1),e.createElementVNode("view",{class:"rightIcon"})])])]))},[["__scopeId","data-v-bb13ef94"]]);const fe=e=>ve(e).date,he=e=>ve(e).times,ve=e=>{const t=new Date(e);t.setTime(t.getTime()+36e5);const a=t.getFullYear(),n=t.getMonth()+1,o=t.getDate(),l=t.getHours(),i=t.getMinutes();t.getSeconds();const r={date:ge(n)+"-"+ge(o)+" "+ge(l)+":"+ge(i),times:ge(l)+":"+ge(i),veryDayDate:ge(a)+"-"+ge(n)+"-"+ge(o)+" 00:00:00"};return s("log","at utils/index.js:33",r),r};function ge(e){return e<10?"0"+e:e}const ye=e=>{let t=new Date(e);const a=t.getFullYear(),n=t.getMonth()+1,o=t.getDate();return ge(a)+"-"+ge(n)+"-"+ge(o)+" 00:00:00"},ke=e=>{let t=new Date(e);return t.getFullYear(),t.getMonth()+1+"月"+t.getDate()+"日"},we=e=>{const t=Ne();return{timeNow:Date.parse(e),timeStar:Date.parse(t[0]),timeEnd:Date.parse(t[t.length-1])}},_e=e=>{if(s("log","at utils/index.js:100",e),null!=e){let t,a=/([\u4e00-\u9fa5]|[\u3000-\u303F]|[\uFF00-\uFF60])/g,n=e.match(a);return n?(t=n.length+.5*(e.length-n.length),t):.5*e.length}},Ne=()=>{for(var e=[],t=0;t<30;t++)e.unshift(new Date((new Date).setDate((new Date).getDate()-t)).toLocaleDateString());return e},be=e=>{uni.makePhoneCall({phoneNumber:e,success(e){},fail(e){}})};var Ve=a({__name:"index",props:{emptyInfo:{type:String,default:""},emptyData:{type:String,default:""}},setup:t=>(a,n)=>""!==t.emptyInfo?(e.openBlock(),e.createElementBlock("view",{key:0,class:"emptyBox"},e.toDisplayString(t.emptyInfo),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty"},[e.createElementVNode("view",{class:"image"}),e.createTextVNode(e.toDisplayString(t.emptyData),1)]))},[["__scopeId","data-v-1570f10d"]]);var Ee=a({__name:"expressageInfo",props:{itemData:{type:Array,default:()=>[]},tabBars:{type:Array,default:()=>[]}},emits:"getTabIndex",setup(t,{emit:a}){const n=E();let o=e.ref("tab0"),l=e.ref(0);e.ref(0);const i=e.ref("- 空空如也,无运单记录 -");e.onMounted((()=>{}));const r=()=>{0===l.value?uni.redirectTo({url:"/pages/pickup/index"}):uni.redirectTo({url:"/pages/delivery/index"})};return(s,c)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-x":"true",class:"tabScroll","scroll-into-view":e.unref(o),"scroll-with-animation":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabBars,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,id:"tab"+n,class:"scroll-row-item",onClick:e=>(e=>{l.value!=e&&(l.value=e,a("getTabIndex",e),o.value="tab"+e)})(n)},[e.createElementVNode("view",{class:e.normalizeClass(e.unref(l)==n?"scroll-row-item-act":"")},[e.createElementVNode("text",{class:"line"}),e.createTextVNode(" "+e.toDisplayString(t.name)+" ",1),e.createElementVNode("text",{class:"num"},e.toDisplayString(t.num),1)],2)],8,["id","onClick"])))),128))],8,["scroll-into-view"]),e.createElementVNode("view",{class:"homeSwiper"},[0===e.unref(l)||1===e.unref(l)?(e.openBlock(),e.createElementBlock("view",{key:0},[t.itemData.length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.itemData.slice(0,3),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"boxBg",key:a},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"item",onClick:e=>{return a=t.id,n.commit("user/setTaskId",a),void(0===l.value?(n.commit("user/setTaskType",1),uni.redirectTo({url:"/pages/details/index"})):(n.commit("user/setTaskType",2),uni.redirectTo({url:"/pages/details/waybill"})));var a}},[e.createElementVNode("view",{class:"titInfo"},[e.createTextVNode(e.toDisplayString(t.senderName)+" ",1),e.createElementVNode("text",null,e.toDisplayString(t.phone),1)]),e.createElementVNode("view",{class:"address"},e.toDisplayString(t.addressDetail),1),e.createElementVNode("view",{class:"distance"},e.toDisplayString(t.distance)+"公里",1),e.createElementVNode("view",{class:"time"},"预约取件时间:"+e.toDisplayString(e.unref(fe)(t.taskTime))+" 至 "+e.toDisplayString(e.unref(he)(t.overTime)),1)],8,["onClick"])])])))),128))])):e.createCommentVNode("",!0),t.itemData.length>3?(e.openBlock(),e.createElementBlock("view",{key:1,class:"moreInfo",onClick:r},[e.createTextVNode(" 查看更多 "),e.createElementVNode("icon")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),0===t.itemData.length?(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyInfo:i.value},null,8,["emptyInfo"])])):e.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-05ec7ad8"]]);var xe=a({__name:"index",setup(t){const a=E(),n=e.ref(null),o=e.reactive({}),l=e.reactive([]),i=e.reactive([]),r=e.reactive([]),c=e.ref(null),d=e.ref(null),u=e.ref({}),m=e.reactive([]);let p=e.ref({});e.onMounted((()=>{uni.getLocation({type:"gcj02",isHighAccuracy:!0,success:function(e){c.value=e.longitude,d.value=e.latitude,u={longitude:e.longitude,latitude:e.latitude},a.commit("user/setlLacation",u)}}),f()}));const f=()=>{h(),v()},h=async()=>{var e;await X({url:"/messages/home/get",method:"get",params:e}).then((e=>{200===e.code&&(o.value=e.data,n.value=e.data.newsNum)})).catch((e=>{}))},v=async()=>{var e;await(e={longitude:116.344015,latitude:40.060607},X({url:"/tasks/home/get",method:"get",params:e})).then((e=>{200===e.code&&(p.value=e.data,l.value=e.data.noPickupTaskList,s("log","at pages/index/index.vue:120",l.value),i.value=e.data.noPickupTaskList,r.value=e.data.noDispatchTaskList,m.value=[{num:i.value.length,name:"待取件"},{numm:r.value.length,name:"待派件"}])})).catch((e=>{}))},g=e=>{l.value=0===e?i.value:r.value},y=()=>{uni.redirectTo({url:"/pages/index/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"navFrame"},[e.createVNode(se,{newVal:n.value,onGoBack:y},null,8,["newVal"]),e.createVNode(de,{baseData:e.unref(p)},null,8,["baseData"])]),e.createElementVNode("view",{class:"homePageBox"},[e.createElementVNode("view",{class:"boxPad"},[e.createVNode(ue,{orderData:o.value},null,8,["orderData"]),e.createVNode(me),e.createVNode(pe,{baseData:e.unref(p)},null,8,["baseData"])]),e.createVNode(Ee,{itemData:l.value,tabBars:m.value,onGetTabIndex:g},null,8,["itemData","tabBars"])]),e.createVNode(ce,{pagePath:"pages/index/index"})],64))}},[["__scopeId","data-v-78fc169c"]]);const Be={__name:"index",props:{isShowCancel:{type:Boolean,default:!1}},emits:"handleSearch",setup(t,{emit:a}){const n=e.ref(""),o=()=>{n.value="",a("goBack")},i=()=>{a("handleSearch",n)},r=()=>{};return(a,s)=>{const d=c(e.resolveDynamicComponent("uni-icons"),l);return e.openBlock(),e.createElementBlock("view",{class:"navBox"},[e.createElementVNode("view",{class:"search"},[e.createElementVNode("view",{class:"uni-navbar"},[e.createElementVNode("view",{class:"input-view"},[e.createVNode(d,{class:"input-uni-icon",type:"search",size:"18",color:"#999"}),e.withDirectives(e.createElementVNode("input",{"confirm-type":"search",class:"nav-bar-input",type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>n.value=e),placeholder:"输入运单号/手机号/姓名查询",onConfirm:i,onInput:i},null,544),[[e.vModelText,n.value]]),e.createElementVNode("view",{class:"scanIcon",onClick:r})]),t.isShowCancel?(e.openBlock(),e.createElementBlock("view",{key:0,class:"concelBox",onClick:o},"取消")):e.createCommentVNode("",!0)])])])}}};var Ce={data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(e="uniPopup"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}};const De=["{","}"];const Se=/^(?:\d)+/,Te=/^(?:\w)+/;const Ie="zh-Hans",Me="zh-Hant",Ae="en",Pe=Object.prototype.hasOwnProperty,Fe=(e,t)=>Pe.call(e,t),Oe=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,a=De){if(!t)return[e];let n=this._caches[e];return n||(n=function(e,[t,a]){const n=[];let o=0,l="";for(;o<e.length;){let i=e[o++];if(i===t){l&&n.push({type:"text",value:l}),l="";let t="";for(i=e[o++];void 0!==i&&i!==a;)t+=i,i=e[o++];const r=i===a,s=Se.test(t)?"list":r&&Te.test(t)?"named":"unknown";n.push({value:t,type:s})}else l+=i}return l&&n.push({type:"text",value:l}),n}(e,a),this._caches[e]=n),function(e,t){const a=[];let n=0;const o=Array.isArray(t)?"list":(l=t,null!==l&&"object"==typeof l?"named":"unknown");var l;if("unknown"===o)return a;for(;n<e.length;){const l=e[n];switch(l.type){case"text":a.push(l.value);break;case"list":a.push(t[parseInt(l.value,10)]);break;case"named":"named"===o&&a.push(t[l.value])}n++}return a}(n,t)}};function Le(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return Ie;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Ie:e.indexOf("-hant")>-1?Me:(a=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==a.indexOf(e)))?Me:Ie);var a;const n=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,[Ae,"fr","es"]);return n||void 0}class ze{constructor({locale:e,fallbackLocale:t,messages:a,watcher:n,formater:o}){this.locale=Ae,this.fallbackLocale=Ae,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||Oe,this.messages=a||{},this.setLocale(e||Ae),n&&this.watchLocale(n)}setLocale(e){const t=this.locale;this.locale=Le(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,a=!0){const n=this.messages[e];n?a?Object.assign(n,t):Object.keys(t).forEach((e=>{Fe(n,e)||(n[e]=t[e])})):this.messages[e]=t}f(e,t,a){return this.formater.interpolate(e,t,a).join("")}t(e,t,a){let n=this.message;return"string"==typeof t?(t=Le(t,this.messages))&&(n=this.messages[t]):a=t,Fe(n,e)?this.formater.interpolate(n[e],a).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Re(e,t={},a,n){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():Ae),"string"!=typeof a&&(a="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Ae);const o=new ze({locale:e,fallbackLocale:a,messages:t,watcher:n});let l=(e,t)=>{if("function"!=typeof getApp)l=function(e,t){return o.t(e,t)};else{let e=!1;l=function(t,a){const n=getApp().$vm;return n&&(n.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(n,o))),o.t(t,a)}}return l(e,t)};return{i18n:o,f:(e,t,a)=>o.f(e,t,a),t:(e,t)=>l(e,t),add:(e,t,a=!0)=>o.add(e,t,a),watch:e=>o.watchLocale(e),getLocale:()=>o.getLocale(),setLocale:e=>o.setLocale(e)}}var je={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}};const{t:Ge}=Re(je);var He=a({name:"uniPopupDialog",mixins:[Ce],emits:["confirm","close"],props:{value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""}},data:()=>({dialogType:"error",focus:!1,val:""}),computed:{okText(){return this.confirmText||Ge("uni-popup.ok")},closeText(){return this.cancelText||Ge("uni-popup.cancel")},placeholderText(){return this.placeholder||Ge("uni-popup.placeholder")},titleText(){return this.title||Ge("uni-popup.title")}},watch:{type(e){this.dialogType=e},mode(e){"input"===e&&(this.dialogType="info")},value(e){this.val=e}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted(){this.focus=!0},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-dialog"},[e.createElementVNode("view",{class:"uni-dialog-title"},[e.createElementVNode("text",{class:e.normalizeClass(["uni-dialog-title-text",["uni-popup__"+l.dialogType]])},e.toDisplayString(i.titleText),3)]),"base"===n.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:"uni-dialog-content-text"},e.toDisplayString(n.content),1)]),!0)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-dialog-input","onUpdate:modelValue":a[0]||(a[0]=e=>l.val=e),type:"text",placeholder:i.placeholderText,focus:l.focus},null,8,["placeholder","focus"]),[[e.vModelText,l.val]])]),!0)])),e.createElementVNode("view",{class:"uni-dialog-button-group"},[e.createElementVNode("view",{class:"uni-dialog-button",onClick:a[1]||(a[1]=(...e)=>i.closeDialog&&i.closeDialog(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text"},e.toDisplayString(i.closeText),1)]),e.createElementVNode("view",{class:"uni-dialog-button uni-border-left",onClick:a[2]||(a[2]=(...e)=>i.onOk&&i.onOk(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text uni-button-color"},e.toDisplayString(i.okText),1)])])])}],["__scopeId","data-v-53d80307"]]);class Ue{constructor(e,t){this.options=e,this.animation=uni.createAnimation(e),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let a=this.currentStepAnimates[this.next],n={};if(n=a||{styles:{},config:{}},We.includes(e)){n.styles.transform||(n.styles.transform="");let a="";"rotate"===e&&(a="deg"),n.styles.transform+=`${e}(${t+a}) `}else n.styles[e]=`${t}`;this.currentStepAnimates[this.next]=n}_animateRun(e={},t={}){let a=this.$.$refs.ani.ref;if(a)return new Promise(((n,o)=>{nvueAnimation.transition(a,__spreadValues({styles:e},t),(e=>{n()}))}))}_nvueNextAnimate(e,t=0,a){let n=e[t];if(n){let{styles:o,config:l}=n;this._animateRun(o,l).then((()=>{t+=1,this._nvueNextAnimate(e,t,a)}))}else this.currentStepAnimates={},"function"==typeof a&&a(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const We=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Je(e,t){if(t)return clearTimeout(t.timer),new Ue(e,t)}We.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{Ue.prototype[e]=function(...t){return this.animation[e](...t),this}}));var $e=a({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e=__spreadProps(__spreadValues({},this.styles),{"transition-duration":this.duration/1e3+"s"}),t="";for(let a in e){t+=this.toLine(a)+":"+e[a]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=Je(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(a){s("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:139",`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=Je(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},a=(e,a)=>{"fade"===a?t.opacity=this.animationType(e)[a]:t.transform+=this.animationType(e)[a]+" "};return"string"==typeof this.modeClass?a(e,this.modeClass):this.modeClass.forEach((t=>{a(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let a=null;"fade"===t?a=e?0:1:(a=e?"-100%":"0","zoom-in"===t&&(a=e?.8:1),"zoom-out"===t&&(a=e?1.2:1),"slide-right"===t&&(a=e?"100%":"0"),"slide-bottom"===t&&(a=e?"100%":"0")),this.animation[this.animationMode()[t]](a)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((a=>{t(e,a)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,a,n,o,l,i){return l.isShow?(e.openBlock(),e.createElementBlock("view",{key:0,ref:"ani",animation:l.animationData,class:e.normalizeClass(n.customClass),style:e.normalizeStyle(i.transformStyles),onClick:a[0]||(a[0]=(...e)=>i.onClick&&i.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])):e.createCommentVNode("",!0)}]]);var Ye=a({name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:a,safeArea:n,screenHeight:o,safeAreaInsets:l}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(a||0),n&&this.safeArea?this.safeAreaInsets=l.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){this.showPopup&&(clearTimeout(this.timer),this.showPopup=!1);e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):s("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:280","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}},[["render",function(t,a,n,o,l,i){const r=c(e.resolveDynamicComponent("uni-transition"),$e);return l.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[l.popupstyle,i.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:a[1]||(a[1]=(...e)=>i.touchstart&&i.touchstart(...e))},[l.maskShow?(e.openBlock(),e.createBlock(r,{key:"1",name:"mask","mode-class":"fade",styles:l.maskClass,duration:l.duration,show:l.showTrans,onClick:i.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(r,{key:"2","mode-class":l.ani,name:"content",styles:l.transClass,duration:l.duration,show:l.showTrans,onClick:i.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[l.popupstyle]]),style:e.normalizeStyle({backgroundColor:i.bg}),onClick:a[0]||(a[0]=(...e)=>i.clear&&i.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-02b8a82d"]]);const Ze={__name:"index",props:{tipInfo:{type:String,default:""}},setup(t,{expose:a,emit:n}){const o=e.ref(),l=()=>{n("handleClick",!0)},i=()=>{o.value.close()};return a({dialogOpen:()=>{o.value.open()}}),(a,n)=>{const r=c(e.resolveDynamicComponent("uni-popup-dialog"),He),s=c(e.resolveDynamicComponent("uni-popup"),Ye);return e.openBlock(),e.createBlock(s,{ref_key:"message",ref:o,type:"dialog",class:"commDialog"},{default:e.withCtx((()=>[e.createVNode(r,{type:a.msgType,cancelText:"取消",confirmText:"确认",title:" ",content:t.tipInfo,onConfirm:l,onClose:i},null,8,["type","content"])])),_:1},512)}}};var Qe=a({__name:"index",setup(t){const a=e.ref("- 没有找到相关内容 -");let n=e.ref(!1),o=e.ref(!1);const l=e.ref("确定要全部清空吗?");let i=e.ref(),r=e.reactive(["SL1355602562877"]),s=e.ref(!0);const c=e.computed((()=>{let e=[];if(!1===n.value){if(r.length>10)for(var t=0;t<10;t++)e.push(r[t]);else e=r;return e}return r}));e.onMounted((()=>{d()}));const d=()=>{},u=()=>{},m=()=>{i.value.dialogOpen()},p=()=>{},f=e=>{o.value=e},h=()=>{uni.redirectTo({url:"/pages/index/index"})};return(t,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Be,{onHandleSearch:u,onGoBack:h,isShowCancel:e.unref(s)},null,8,["isShowCancel"]),e.createElementVNode("view",{class:"searchTop"},[e.createElementVNode("view",{class:"pageBox"},[e.unref(o)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"recentBox"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,"最近查找"),e.createElementVNode("icon",{onClick:m})]),e.unref(r).length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"recentList"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},e.toDisplayString(t),1)))),128)),e.unref(n)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"iconUp"},[e.unref(r).length>10?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:d[0]||(d[0]=t=>e.isRef(n)?n.value=!e.unref(n):n=!e.unref(n))},[e.createElementVNode("image",{class:"icon_img",src:"/static/open.png",mode:""})])):e.createCommentVNode("",!0)]))])):(e.openBlock(),e.createBlock(Ve,{key:1,emptyInfo:a.value},null,8,["emptyInfo"]))])),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"swiperH"},[e.createElementVNode("view",{class:"serachList"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"boxBg item"},[e.createElementVNode("view",{class:"iconTip"},[e.createElementVNode("icon",{class:"send"})]),e.createElementVNode("view",{class:"titInfo"},[e.createTextVNode(" 周** "),e.createElementVNode("text",null,"185****7663"),e.createElementVNode("icon",{class:"phone"}),e.createElementVNode("icon",{class:"note"})]),e.createElementVNode("view",{class:"address"},"北京市昌平区回龙观街道西三旗桥东金燕龙写字楼"),e.createElementVNode("view",{class:"distance"},"0.3公里"),e.createElementVNode("view",{class:"time"},"预约取件时间:05-03 13:00 至 14:00"),e.createElementVNode("text",{onClick:p,class:"concel"},[e.createElementVNode("button",{class:"uni-btn concelBtn"},"取消")])])])])])])]),e.createVNode(Ze,{ref_key:"popups",ref:i,tipInfo:l.value,onClearData:f},null,8,["tipInfo"])])],64))}},[["__scopeId","data-v-a9bb2a76"]]);const Xe={__name:"index",props:{title:{type:String,default:""},rithtText:{type:String,default:""},isLeftText:{type:Boolean}},setup(t,{emit:a}){const n=()=>{a("goBack")},o=()=>{a("handleAll")};return(a,l)=>{const i=c(e.resolveDynamicComponent("uni-nav-bar"),re);return t.isLeftText?(e.openBlock(),e.createBlock(i,{key:0,title:t.title,statusBar:"true",fixed:"true"},null,8,["title"])):(e.openBlock(),e.createBlock(i,{key:1,onClickLeft:n,"left-icon":"back",leftIcon:"arrowleft",title:t.title,statusBar:"true",fixed:"true","right-text":t.rithtText,onClickRight:o},null,8,["title","right-text"]))}}},qe={__name:"date",setup(t,{emit:a}){const n=e.ref();let o=e.ref(),l=e.ref(!1),i=e.ref(!1);e.ref(1),e.ref(1);const r=e.reactive([]),s=e.ref("height: 50px;");let d=e.ref([0]),u=e.ref(null);e.ref(null),e.watch(o,((e,t)=>{const n=we(e);n.timeNow===n.timeStar&&(l.value=!0),n.timeNow===n.timeEnd&&(i.value=!0),a("getDateTime",ye(n.timeNow))})),e.onMounted((()=>{o.value=ye(new Date),r.value=(()=>{const e=Ne();let t=[];return e.forEach((e=>{const a=ye(e);t.push(a)})),t})()}));const m=()=>{const e=we(o.value);e.timeNow!==e.timeStar&&(o.value=(e=>{let t=new Date(new Date(e).getTime()-864e5);return ye(t)})(o.value),i.value=!1)},p=()=>{const e=we(o.value);e.timeNow!==e.timeEnd&&(o.value=(e=>{let t=new Date(new Date(e).getTime()+864e5);return ye(t)})(o.value),l.value=!1)},f=e=>{u.value=r.value[e.detail.value[0]]},h=()=>{null!==u.value?(o.value=u.value,v()):uni.showToast({title:"请选择日期",icon:"none"})},v=()=>{n.value.close()};return(t,a)=>{const u=c(e.resolveDynamicComponent("uni-popup"),Ye);return e.openBlock(),e.createElementBlock("view",{class:"dateBox uniPopup"},[e.createElementVNode("view",{class:e.normalizeClass(["item",e.unref(l)?"fontCol":""]),onClick:m},"前一天",2),e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"date",onClick:a[0]||(a[0]=e=>{return t="bottom",void n.value.open(t);var t})},[e.createElementVNode("icon",{class:"dateIcon"}),e.createElementVNode("text",null,e.toDisplayString(e.unref(ke)(e.unref(o))),1),e.createElementVNode("icon",{class:"next"})])]),e.createElementVNode("view",{class:e.normalizeClass(["item",e.unref(i)?"fontCol":""]),onClick:p},"后一天",2),e.createElementVNode("view",{class:"datePopupBox"},[e.createVNode(u,{ref_key:"popup",ref:n,type:"bottom","background-color":"#fff"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("view",{onClick:a[1]||(a[1]=e=>v())},"取消"),e.createElementVNode("view",null,"选择开始日期"),e.createElementVNode("view",{onClick:h},"完成")]),e.createElementVNode("view",{class:"date-select"},[e.createElementVNode("picker-view",{class:"picker-view",value:e.unref(d),"indicator-style":s.value,onChange:f},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},[e.createElementVNode("text",null,e.toDisplayString(e.unref(ke)(t)),1)])))),128))])],40,["value","indicator-style"])])])])),_:1},512)])])}}},Ke=[{value:1,label:"用户恶意下单"},{value:2,label:"用户取消投递"},{value:3,label:"违禁品"},{value:4,label:"重复下单"},{value:5,label:"无法联系上客户(空号、停机等)"},{value:6,label:"虚假地址"},{value:7,label:"实际发货地址与下单地址不符"},{value:8,label:"因个人无法取件,退回到网点"}],et=[{value:1,label:"本人"},{value:2,label:"代收"}],tt=[{value:1,label:"寄付"},{value:2,label:"到付"}],at=[{value:1,label:"生活用品"},{value:2,label:"文件"},{value:3,label:"数码产品"},{value:4,label:"食品"},{value:5,label:"服饰"},{value:6,label:"其他"}],nt=[{value:1,label:"微信支付"},{value:2,label:"支付宝支付"}],ot=[{value:1,label:"待取件"},{value:2,label:"已取件"},{value:3,label:"已取消"}],lt=[{value:1,label:"待派件"},{value:2,label:"已签收"}],it=[{value:1,label:"取件"},{value:2,label:"派件"}],rt={__name:"index",props:{tabBars:{type:Object,default:()=>({})}},emits:"",setup(t,{expose:a,emit:n}){const o=e.ref("tab0");let l=e.ref(0);const i=e=>{l.value!=e&&(l.value=e,n("getTabIndex",e),o.value="tab"+e)};return a({changeTab:i}),(a,n)=>(e.openBlock(),e.createElementBlock("scroll-view",{"scroll-x":"true",class:"tabScroll","scroll-into-view":o.value,"scroll-with-animation":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabBars,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,id:"tab"+a,class:"scroll-row-item",onClick:e=>i(a)},[e.createElementVNode("view",{class:e.normalizeClass(e.unref(l)==a?"scroll-row-item-act":"")},[e.createElementVNode("text",{class:"line"}),e.createTextVNode(" "+e.toDisplayString(t.label),1)],2)],8,["id","onClick"])))),128))],8,["scroll-into-view"]))}};var st={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let ct;setTimeout((()=>{ct=uni.getSystemInfoSync().platform}),16);const{t:dt}=Re(st);var ut=a({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:ct,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||dt("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||dt("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||dt("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:a[0]||(a[0]=(...e)=>i.onClick&&i.onClick(...e))},[!l.webviewHide&&("circle"===n.iconType||"auto"===n.iconType&&"android"===l.platform)&&"loading"===n.status&&n.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4)],4)):!l.webviewHide&&"loading"===n.status&&n.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:l.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),n.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:n.color})},e.toDisplayString("more"===n.status?i.contentdownText:"loading"===n.status?i.contentrefreshText:i.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-5298def7"]]);const mt={__name:"index",setup(t,{expose:a}){let n=e.ref("noMore");const o=e.ref({contentdown:"上拉加载更多",contentrefresh:"加载中...",contentnomore:"没有更多"});return a({status:n,contentText:o}),(t,a)=>{const l=c(e.resolveDynamicComponent("uni-load-more"),ut);return e.openBlock(),e.createBlock(l,{status:e.unref(n),"content-text":o.value},null,8,["status","content-text"])}}},pt={__name:"pickup",props:{itemData:{type:Array,default:()=>[]},tabIndex:{type:Number,default:0}},emits:"",setup(t,{emit:a}){const n=E();n.state.user,e.onMounted((()=>{}));return(o,l)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.itemData,((t,o)=>(e.openBlock(),e.createElementBlock("view",{key:o,class:"expressage"},[e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"item",onClick:e=>{return a=e,o=t.id,a.stopPropagation(),n.commit("user/setTaskId",o),n.commit("user/setTaskType",2),n.commit("user/setTaskStatus",4),void uni.redirectTo({url:"/pages/details/waybill"});var a,o}},[e.createElementVNode("view",{class:"titInfo"},"运单号:"+e.toDisplayString(t.transportOrderId),1),e.createElementVNode("view",{class:"address"},"寄件人:"+e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"address"},"取件地址:"+e.toDisplayString(t.address),1),e.createElementVNode("view",{class:"address"},"取件时间:"+e.toDisplayString(t.estimatedStartTime),1),e.createElementVNode("text",{onClick:e=>{return n=e,o=t.id,n.stopPropagation(),void a("handleOpen",o);var n,o},class:"delete"},[e.createElementVNode("button",{class:"uni-btn concelBtn"},"删除")],8,["onClick"])],8,["onClick"])])])])))),128))}},ft={__name:"delivery",props:{itemData:{type:Array,default:()=>[]},tabIndex:{type:Number,default:0}},emits:"",setup(t,{emit:a}){const n=E();n.state.user,e.onMounted((()=>{}));return(o,l)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.itemData,((t,o)=>(e.openBlock(),e.createElementBlock("view",{key:o,class:"expressage"},[e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"item",onClick:e=>{return a=e,o=t.id,a.stopPropagation(),n.commit("user/setTaskId",o),n.commit("user/setTaskType",2),n.commit("user/setTaskStatus",4),void uni.redirectTo({url:"/pages/details/waybill"});var a,o}},[e.createElementVNode("view",{class:"titInfo"},"运单号:"+e.toDisplayString(t.transportOrderId),1),e.createElementVNode("view",{class:"address"},"收件人:"+e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"address"},"派件地址:"+e.toDisplayString(t.address),1),e.createElementVNode("view",{class:"address"},"签收时间:"+e.toDisplayString(t.estimatedStartTime),1),t.amount>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},"运费:"+e.toDisplayString(t.amount)+"元",1)):e.createCommentVNode("",!0),e.createElementVNode("text",{onClick:e=>{return n=e,o=t.id,n.stopPropagation(),void a("handleOpen",o);var n,o},class:"delete"},[e.createElementVNode("button",{class:"uni-btn concelBtn"},"删除")],8,["onClick"])],8,["onClick"])])])])))),128))}},ht={__name:"index",props:{dateTime:{type:String,default:""}},emits:"",setup(t,{expose:a,emit:n}){const o=t,l=E(),i=l.state.user;let r=e.ref();e.ref("- 没有找到相关内容 -");const s=e.ref("确认删除该订单吗?"),c=it;let u=e.ref("");e.ref("tab0");let m=e.ref(0);const p=e.ref();let f=e.ref([]),h=e.ref(!1),v=e.ref(0),g=i.isFiltrate?1:e.ref(1);const y=e.ref("暂无数据");let k=e.reactive({latitude:40.062595,longitude:116.372809,page:1,pageSize:10,taskStatus:2});e.watch(o,((e,t)=>{l.commit("user/setDeliveryData",[]),w(e.dateTime)})),e.watch(m,((e,t)=>{k.taskStatus=0===e?2:5,l.commit("user/setDeliveryData",[]),w(k.dateTime)})),e.onMounted((()=>{})),d((()=>{if(g.value>=Number(v.value))return p.value.status="noMore",!1;p.value.status="loading",setTimeout((()=>{g.value++,w()}),1e3)}));const w=async e=>{h.value=!0,k=__spreadProps(__spreadValues({},k),{dateTime:e,page:g.value}),await te(k).then((e=>{200===e.code&&(e.data?(h.value=!1,0===i.deliveryData.length&&(f.value=[]),f.value=f.value.concat(e.data.items),v.value=e.data.pages,l.commit("user/setDeliveryData",f.value),Number(e.data.pages)===g.value&&(p.value.status="noMore")):f.value=[])})).catch((e=>{}))},_=e=>{m.value=e},N=async()=>{await taskDelete(u.value).then((e=>{if(200===e.code)return dealparcel.value.getList(),uni.showToast({title:"删除成功!",duration:1e3,icon:"none"})})).catch((e=>{}))},b=e=>{r.value.dialogOpen(),u.value=e};return a({getList:w}),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"pageBox"},[e.createVNode(rt,{tabBars:e.unref(c),ref:"tab",onGetTabIndex:_},null,8,["tabBars"]),e.createElementVNode("view",{class:"homeSwiper"},[e.unref(f).length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[0===e.unref(m)?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createVNode(pt,{itemData:e.unref(f),onHandleOpen:b},null,8,["itemData"])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(ft,{itemData:e.unref(f),onHandleOpen:b},null,8,["itemData"])])),e.createVNode(mt,{ref_key:"loadMore",ref:p},null,512)])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:y.value},null,8,["emptyData"])]))])]),e.createVNode(Ze,{ref_key:"popup",ref:r,tipInfo:s.value,onHandleClick:N},null,8,["tipInfo"])],64))}};var vt=a({__name:"index",setup(t){let a=e.ref();e.reactive([]);const n=e.ref("历史取派");let o=e.ref("");e.onMounted((()=>{}));const l=e=>{o.value=e},i=()=>{uni.redirectTo({url:"/pages/index/index"})};return(t,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:n.value,onGoBack:i},null,8,["title"]),e.createElementVNode("view",{class:"history"},[e.createVNode(Be,{onHandleSearch:t.handleSearch},null,8,["onHandleSearch"])]),e.createElementVNode("view",{class:"historyboxTop"},[e.createVNode(qe,{onGetDateTime:l}),e.createVNode(ht,{dateTime:e.unref(o),ref_key:"list",ref:a},null,8,["dateTime"])])],64))}},[["__scopeId","data-v-7af83b43"]]);const gt=e=>X({url:`/messages/list?bussinessType=3&contentType=${e}`,method:"get"}),yt=e=>X({url:`/messages/${e}`,method:"put"}),kt={__name:"announcement",props:{tabIndex:{type:Number,default:0}},emits:"handleSearch",setup(t,{expose:a,emit:n}){e.ref(""),e.ref(!1);let o=e.ref([]);e.onMounted((()=>{l()}));const l=()=>{i()},i=async()=>{await gt("").then((e=>{200===e.code&&(o.value=e.data)})).catch((e=>uni.showToast({title:e.msg,duration:1e3,icon:"none"})))};return a({getList:i}),(a,n)=>0===t.tabIndex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[e.unref(o).length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("view",{class:"boxCon"},[e.createElementVNode("view",{class:"tabConList"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},[e.createElementVNode("view",{onClick:e=>(async e=>{await yt(e.id).then((e=>{})).catch((e=>{})),uni.navigateTo({url:"/pages/news/detail?obj="+JSON.stringify(e)})})(t)},[e.createElementVNode("text",{class:e.normalizeClass(["text",0===t.isRead?"active":""])},[e.createElementVNode("icon"),e.createTextVNode(" "+e.toDisplayString(t.title),1)],2),e.createElementVNode("text",{class:"time"},e.toDisplayString(e.unref(fe)(t.created)),1)],8,["onClick"])])))),128))])])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:a.emptyData},null,8,["emptyData"])]))])])):e.createCommentVNode("",!0)}},wt={__name:"notification",props:{tabIndex:{type:Number,default:1}},emits:"getTabIndex",setup(t,{expose:a,emit:n}){const o=getCurrentPages();o[o.length-1];let l=e.ref({});e.onMounted((()=>{i()}));const i=async()=>{var e;await X({url:"/messages/notice/new/get",method:"get",params:e}).then((e=>{200===e.code&&(l.value=e.data)})).catch((e=>uni.showToast({title:e.msg,duration:1e3,icon:"none"})))};return a({getOjb:i}),(a,n)=>1===t.tabIndex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[e.createElementVNode("view",null,[e.createElementVNode("view",{class:"boxCon"},[e.createElementVNode("view",{class:"newConBox"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("navigator",{url:"/pages/news/system?title=寄件相关&type=301","open-type":"redirect"},[e.createElementVNode("view",{class:e.normalizeClass(["icon send",e.unref(l).haveNewSendNotice?"active":""])},[e.createElementVNode("icon")],2),e.createElementVNode("view",{class:"text"},[e.createElementVNode("view",null,"寄件相关"),e.createElementVNode("view",null,e.toDisplayString(e.unref(l).haveNewSendNotice?"您有一个新的取件订单":"暂无消息"),1)]),e.createElementVNode("text",{class:"time"},e.toDisplayString(e.unref(fe)(e.unref(l).newSendNoticeTime)),1)])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("navigator",{url:"/pages/news/system?title=签收提醒&type=302","open-type":"redirect"},[e.createElementVNode("view",{class:e.normalizeClass(["icon income",e.unref(l).haveNewReceiveNotice?"active":""])},[e.createElementVNode("icon")],2),e.createElementVNode("view",{class:"text"},[e.createElementVNode("view",null,"签收提醒"),e.createElementVNode("view",null,e.toDisplayString(e.unref(l).haveNewReceiveNotice?"您有一个新的取件订单":"暂无消息"),1)]),e.createElementVNode("text",{class:"time"},e.toDisplayString(e.unref(fe)(e.unref(l).newReceiveNoticeTime)),1)])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("navigator",{url:"/pages/news/system?title=快件取消&type=303","open-type":"redirect"},[e.createElementVNode("view",{class:e.normalizeClass(["icon cancel",e.unref(l).haveNewCancelNotice?"active":""])},[e.createElementVNode("icon")],2),e.createElementVNode("view",{class:"text"},[e.createElementVNode("view",null,"快件取消"),e.createElementVNode("view",null,e.toDisplayString(e.unref(l).haveNewCancelNotice?"您有一个新的取件订单":"暂无消息"),1)]),e.createElementVNode("text",{class:"time"},e.toDisplayString(e.unref(fe)(e.unref(l).newCancelNoticeTime)),1)])])])])])])])):e.createCommentVNode("",!0)}};var _t=a({__name:"index",setup(t){const a=E(),n=a.state.user,o=e.ref(),l=e.ref(),i=e.ref("消息");e.ref("- 没有找到相关内容 -");const r=e.reactive(["公告","系统通知"]);let s=e.ref("tab0"),c=1===n.tabIndex?e.ref(1):e.ref(0);e.onMounted((()=>{}));const d=e=>{c.value=e},u=()=>{uni.redirectTo({url:"/pages/index/index"})};return(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"navHead"},[e.createVNode(Xe,{title:i.value,onGoBack:u},null,8,["title"])]),e.createElementVNode("view",{class:"pageBox newBox"},[e.createElementVNode("scroll-view",{"scroll-x":"true",class:"tabScroll","scroll-into-view":e.unref(s),"scroll-with-animation":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,id:"tab"+n,class:"scroll-row-item",onClick:e=>(e=>{c.value!=e&&(0===e?o.value.getList():l.value.getOjb(),c.value=e,a.commit("user/setTabIndex",e),s.value="tab"+e)})(n)},[e.createElementVNode("view",{class:e.normalizeClass(e.unref(c)==n?"scroll-row-item-act":"")},[e.createElementVNode("text",{class:"line"}),e.createTextVNode(" "+e.toDisplayString(t),1)],2)],8,["id","onClick"])))),128))],8,["scroll-into-view"]),e.createElementVNode("view",{class:"homeSwiper"},[e.createVNode(kt,{ref_key:"announcement",ref:o,tabIndex:e.unref(c)},null,8,["tabIndex"]),e.createVNode(wt,{ref_key:"notificat",ref:l,onGetTabIndex:d,tabIndex:e.unref(c)},null,8,["tabIndex"])])])],64))}},[["__scopeId","data-v-de404d80"]]);var Nt=a({__name:"detail",setup(t){const a=e.ref("详情"),n=getCurrentPages(),o=n[n.length-1];let l=e.ref(JSON.parse(o.$page.options.obj));e.onMounted((e=>{}));const i=()=>{uni.redirectTo({url:"/pages/news/index"})};return(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"navHead"},[e.createVNode(Xe,{title:a.value,onGoBack:i},null,8,["title"])]),e.createElementVNode("view",{class:"pageBox newDetail"},[e.createElementVNode("view",{class:"tit"},e.toDisplayString(e.unref(l).title),1),e.createElementVNode("view",{class:"time"},e.toDisplayString(e.unref(fe)(e.unref(l).created)),1),e.createElementVNode("view",null,e.toDisplayString(e.unref(l).content),1)])],64))}},[["__scopeId","data-v-ccd360bc"]]);var bt=a({__name:"system",setup(t){const a=getCurrentPages(),n=a[a.length-1].$page.options,o=n.title,l=n.type,i=e.ref(),r=e.ref("暂无消息"),s=e.ref("全部已读");let c=e.ref(1),u=e.ref(10),m=e.ref(0),p=e.ref(!1),f=e.ref(null),h=e.ref([]),v=e.ref([]),g=e.ref([]);d((()=>{if(m.value=Math.ceil(v.value.length/u.value),m.value=0==m.value?1:m.value,c.value>=m.value)return i.value.status="noMore",!1;i.value.status="loading",setTimeout((()=>{c.value++;let e=(c.value-1)*u.value,t=c.value*u.value;h.value=[...h.value,...v.value.slice(e,t)]}),1e3)})),e.onMounted((()=>{y(l),uni.getSystemInfo({success:e=>{f.value=e.windowHeight-uni.upx2px()}})}));const y=async e=>{await gt(e).then((e=>{200===e.code&&(v.value=e.data,h.value=v.value.slice(0,10),p.value=!1)})).catch((e=>uni.showToast({title:e.msg,duration:1e3,icon:"none"})))},k=async()=>{var e;v.value.map((e=>{0===e.isRead&&g.value.push(e.id)})),await(e=g.value,X({url:`/messages/readAll?ids=${e}`,method:"put",params:e})).then((e=>{y(l)})).catch((e=>uni.showToast({title:e.msg,duration:1e3,icon:"none"})))},w=()=>{uni.redirectTo({url:"/pages/news/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"navHead"},[e.createVNode(Xe,{title:e.unref(o),onGoBack:w,onHandleAll:k,rithtText:e.unref(v).length>0&&e.unref(g).length>0?s.value:""},null,8,["title","rithtText"])]),e.createElementVNode("view",{class:"pageBox newBox"},[e.unref(v).length>0?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",style:e.normalizeStyle({height:e.unref(f)+"px"})},[e.createElementVNode("view",{class:"systemList"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"boxBg item",key:a},[e.createElementVNode("view",{class:e.normalizeClass(["tit",0===t.isRead?"active":""])},[e.createElementVNode("icon"),e.createTextVNode(" 您有一个新的取件订单 ")],2),e.createElementVNode("view",{class:"address"},e.toDisplayString(t.content),1),e.createElementVNode("view",{class:"time"},[e.createElementVNode("text",null,e.toDisplayString(e.unref(fe)(t.created)),1),e.createElementVNode("button",{class:"uni-btn redBtn",onClick:e=>(async e=>{uni.navigateTo({url:"/pages/details/waybill?id="+e}),await yt(e).then((e=>{})).catch((e=>uni.showToast({title:e.msg,duration:1e3,icon:"none"})))})(t.id)},"查看详情",8,["onClick"])])])))),128))]),e.createVNode(mt,{ref_key:"loadMore",ref:i},null,512)],4)):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:r.value},null,8,["emptyData"])]))])],64))}},[["__scopeId","data-v-9472a71e"]]);const Vt=e=>X({url:"/tasks/calculate",method:"post",params:e}),Et=e=>X({url:"/areas/children",method:"get",params:e}),xt={__name:"index",props:{type:{type:Number,default:null}},emits:"getCity",setup(t,{expose:a,emit:n}){const o=e.ref(),l=e.ref("height: 50px;");let i=e.ref([0,0,0]);const r=e.reactive([]),s=e.reactive([]),d=e.reactive([]);let u=e.ref({});e.onMounted((()=>{m()}));const m=async e=>{let t=await Et();if(200!==t.code)return uni.showToast({title:t.msg,duration:1e3,icon:"none"});{r.value=t.data;let a=null;e?(i.value=e.detail.value,a=r.value[e.detail.value[0]].id):a=r.value[0].id,p(a)}},p=async e=>{let t=await Et({parentId:e});if(200!==t.code)return uni.showToast({title:t.msg,duration:1e3,icon:"none"});{s.value=t.data;const e=s.value[i.value[1]].id;f(e)}},f=async e=>{let t=await Et({parentId:e});if(200!==t.code)return uni.showToast({title:t.msg,duration:1e3,icon:"none"});d.value=t.data,u.value={province:r.value[i.value[0]].name,city:s.value[i.value[1]].name,area:d.value[i.value[2]].name,areaId:d.value[i.value[2]].id}},h=()=>{o.value.close("bottom")},v=()=>{h(),n("getCity",u.value)};return a({handleOpen:()=>{o.value.open("bottom")}}),(t,a)=>{const n=c(e.resolveDynamicComponent("uni-popup"),Ye);return e.openBlock(),e.createElementBlock("view",{class:"uniPopup"},[e.createVNode(n,{ref_key:"popup",ref:o,type:"bottom","background-color":"#fff"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("view",{onClick:a[0]||(a[0]=e=>h())},"取消"),e.createElementVNode("view",null,"选择城市"),e.createElementVNode("view",{onClick:v},"完成")]),e.createElementVNode("view",{class:"date-select address"},[e.createElementVNode("view",null,[e.createElementVNode("picker-view",{class:"picker-view",value:e.unref(i),"indicator-style":l.value,onChange:m},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},[e.createElementVNode("text",null,e.toDisplayString(t.name),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},[e.createElementVNode("text",null,e.toDisplayString(t.name),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},[e.createElementVNode("text",null,e.toDisplayString(t.name),1)])))),128))])],40,["value","indicator-style"])])])])])),_:1},512)])}}},Bt={__name:"address",setup(t,{expose:a}){const n=e.ref();let o=e.ref(null),l=e.ref({}),i=e.ref({});e.onMounted((()=>{}));const r=e=>{o.value=e,n.value.handleOpen()},s=e=>{1===o.value?l.value=e:i.value=e};return a({mailCity:l,consigneeCity:i}),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"boxBg"},[e.createElementVNode("view",{class:"addressCon"},[e.createElementVNode("view",{class:"item",onClick:a[0]||(a[0]=e=>r(1))},[e.createElementVNode("view",{class:"sendIcon"},"寄"),e.createElementVNode("view",{class:"address"},[e.createElementVNode("view",{class:e.normalizeClass(e.unref(l).province?"active":"")},[e.unref(l).province?(e.openBlock(),e.createElementBlock("view",{key:1},[e.createElementVNode("text",null,e.toDisplayString(e.unref(l).province),1),e.createElementVNode("text",null,e.toDisplayString(e.unref(l).city),1),e.createElementVNode("text",null,e.toDisplayString(e.unref(l).area),1)])):(e.openBlock(),e.createElementBlock("view",{key:0},"请选择寄件城市"))],2),e.createElementVNode("icon",{class:"nextIcon"})])]),e.createElementVNode("view",{class:"item",onClick:a[1]||(a[1]=e=>r(2))},[e.createElementVNode("view",{class:"receiveIcon"},"收"),e.createElementVNode("view",{class:"address"},[e.createElementVNode("view",{class:e.normalizeClass(e.unref(i).province?"active":"")},[e.unref(i).province?(e.openBlock(),e.createElementBlock("view",{key:1},[e.createElementVNode("text",null,e.toDisplayString(e.unref(i).province),1),e.createElementVNode("text",null,e.toDisplayString(e.unref(i).city),1),e.createElementVNode("text",null,e.toDisplayString(e.unref(i).area),1)])):(e.openBlock(),e.createElementBlock("view",{key:0},"请选择收件城市"))],2),e.createElementVNode("icon",{class:"nextIcon"})])])]),e.createVNode(xt,{ref_key:"city",ref:n,type:e.unref(o),onGetCity:s},null,8,["type"])]))}},Ct={__name:"index",props:{detailsData:{type:Object,default:()=>({})}},setup(t,{expose:a,emit:n}){const o=t;let l=e.ref(1),i=e.ref(0),r=e.ref(null),s=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.ref(!1),m=e.ref(!0),p=e.ref(!1),f=e.ref(null);a({weight:l,volume:i,measureLong:r,measureWidth:s,measureHigh:c,freightData:f}),e.onMounted((()=>{})),e.watch(o,((e,t)=>{l.value=Number(e.detailsData.weight),i.value=Number(e.detailsData.volume)?Number(e.detailsData.volume):0})),e.watch(l,((t,a)=>{const n=Number(t);e.nextTick((()=>{n<.1&&n>0&&(l.value=1),n>.1&&(l.value=parseInt(10*n)/10),n<=1?d.value=!0:(d.value=!1,n>=9999?(l.value=9999,u.value=!0):u.value=!1)}))})),e.watch(r,((t,a)=>{const n=Number(t);e.nextTick((()=>{r.value=Math.floor(n),t<=0&&(r.value=null)}))})),e.watch(s,((t,a)=>{const n=Number(t);e.nextTick((()=>{s.value=Math.floor(n),t<=0&&(s.value=null)}))})),e.watch(c,((t,a)=>{const n=Number(t);e.nextTick((()=>{c.value=Math.floor(n),t<=0&&(c.value=null)}))}));const h=async()=>{const e=o.detailsData.value;let t={senderCountyId:e.senderCountyId,receiverCountyId:e.receiverCountyId,volume:i.value,weight:l.value};await Vt(t).then((e=>{n("getFreight",e.data.freight)}))},v=e=>{const t=e.detail.value;t<.1?(l.value=1,d.value=!0):(d.value=t>.1&&t<=1,h(),t>=9999?(u.value=!0,l.value=9999):(u.value=!1,h()))},g=()=>{l.value>1&&(l.value--,u.value=!1,l.value=l.value.toFixed(1)),l.value<=0&&(l.value=1,d.value=!0),h()},y=()=>{l.value<9999&&(++l.value,d.value=!1),9999===l.value&&(u.value=!0),h()},k=e=>{const t=Number(e.detail.value);if(t<1e-4)i.value=0;else{if(t>99)return i.value=99,uni.showToast({title:"体积最大可不能超过99m³",duration:1e3,icon:"none"});h()}},w=()=>{i.value>1&&(i.value--,i.value=parseInt(1e4*i.value)/1e4),(i.value<=0||1===i.value)&&(i.value=0),h()},_=()=>{i.value<99&&(++i.value,m.value=!1),99===i.value&&(p.value=!0),h()},N=()=>{const t=r.value,a=s.value,n=c.value;t>=1&&a>=1&&n>=1&&e.nextTick((()=>{let e=t/100*(a/100)*(n/100);if(e<1e-4)i.value=0;else{if(e>99)return p.value=!0,i.value=99,uni.showToast({title:"体积最大可不能超过99m³",duration:1e3,icon:"none"});i.value=parseInt(1e4*e)/1e4,m.value=!(e>1),p.value=!1}}))};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"goodsCon"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"预估重量"),e.createElementVNode("view",{class:"bg goodInfo"},[e.createElementVNode("view",{class:e.normalizeClass(["symbol",e.unref(d)?"active":""]),onClick:g},"-",2),e.createElementVNode("view",{class:"num"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",type:"number",maxlength:"6","onUpdate:modelValue":a[0]||(a[0]=t=>e.isRef(l)?l.value=t:l=t),onBlur:v},null,544),[[e.vModelText,e.unref(l)]]),e.createElementVNode("text",null,"kg")]),e.createElementVNode("view",{class:e.normalizeClass(["symbol",e.unref(u)?"active":""]),onClick:y},"+",2)])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"总体积"),e.createElementVNode("view",{class:"bg goodInfo"},[e.createElementVNode("view",{class:"symbol",onClick:w},"-"),e.createElementVNode("view",{class:"num"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",type:"number",maxlength:"6","onUpdate:modelValue":a[1]||(a[1]=t=>e.isRef(i)?i.value=t:i=t),onBlur:k},null,544),[[e.vModelText,e.unref(i)]]),e.createElementVNode("text",null,"m³")]),e.createElementVNode("view",{class:"symbol",onClick:_},"+")])]),e.createElementVNode("view",{class:"item calculate"},[e.createElementVNode("view",{class:"bg"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",type:"number",maxlength:"3","onUpdate:modelValue":a[2]||(a[2]=t=>e.isRef(r)?r.value=t:r=t),placeholder:"长",onInput:N},null,544),[[e.vModelText,e.unref(r)]]),e.createElementVNode("text",{class:e.normalizeClass(e.unref(r)?"active":"")},"cm",2)]),e.createElementVNode("text",null,"*"),e.createElementVNode("view",{class:"bg"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",type:"number",maxlength:"3","onUpdate:modelValue":a[3]||(a[3]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"宽",onInput:N},null,544),[[e.vModelText,e.unref(s)]]),e.createElementVNode("text",{class:e.normalizeClass(e.unref(s)?"active":"")},"cm",2)]),e.createElementVNode("text",null,"*"),e.createElementVNode("view",{class:"bg"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",type:"number",maxlength:"3","onUpdate:modelValue":a[4]||(a[4]=t=>e.isRef(c)?c.value=t:c=t),placeholder:"高",onInput:N},null,544),[[e.vModelText,e.unref(c)]]),e.createElementVNode("text",{class:e.normalizeClass(e.unref(c)?"active":"")},"cm",2)])])]))}},Dt={__name:"result",props:{baseData:{type:Object,default:()=>({})}},setup:t=>(a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"boxBg result"},[e.createElementVNode("view",null,"计费重量:"+e.toDisplayString(t.baseData.weight)+" kg",1),e.createElementVNode("view",null,"计费体积:"+e.toDisplayString(t.baseData.volumeValue)+" m³",1),e.createElementVNode("view",null,"首重(1.0kg)"+e.toDisplayString(t.baseData.firstWeight)+"元,续重"+e.toDisplayString(t.baseData.continuousWeight)+"元/kg",1),e.createElementVNode("view",{class:"price"},[e.createElementVNode("text",null,"¥"),e.createTextVNode(e.toDisplayString(t.baseData.freight),1)])]))};var St=a({__name:"index",setup(t){const a=e.ref("运费查询"),n=e.ref(!1);let o=e.reactive({});const l=e.ref(),i=e.ref();e.onMounted((()=>{}));const r=async()=>{const e=i.value.mailCity.areaId,t=i.value.consigneeCity.areaId,a=l.value;if(s("log","at pages/freight/index.vue:57",a),!e)return uni.showToast({title:"请选择寄件城市",duration:1e3,icon:"none"});if(!t)return uni.showToast({title:"请选择收件城市",duration:1e3,icon:"none"});n.value=!0;let r={senderCountyId:e,receiverCountyId:t,volume:0===a.volume?1:1e6*a.volume,weight:a.weight,measureLong:a.measureLong,measureWidth:a.measureWidth,measureHigh:a.measureHigh};s("log","at pages/freight/index.vue:86",r);const c=await Vt(r);if(200!==c.code)return uni.showToast({title:c.msg,duration:1e3,icon:"none"});o.value=__spreadValues({volumeValue:a.volume},c.data)},c=()=>{uni.redirectTo({url:"/pages/index/index"})};return(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"navHead"},[e.createVNode(Xe,{title:a.value,onGoBack:c},null,8,["title"])]),e.createElementVNode("view",{class:"pageBox freightBox"},[e.createVNode(Bt,{ref_key:"address",ref:i},null,512),e.createElementVNode("view",{class:"boxBg"},[e.createVNode(Ct,{ref_key:"goods",ref:l},null,512)]),e.createElementVNode("view",{class:"btnBox"},[e.createElementVNode("button",{class:"btn-default",onClick:r},"立即查询")]),n.value?(e.openBlock(),e.createBlock(Dt,{key:0,baseData:e.unref(o).value},null,8,["baseData"])):e.createCommentVNode("",!0)])],64))}},[["__scopeId","data-v-56c6bf74"]]);const Tt={__name:"index",props:{tabBars:{type:Object,default:()=>({})}},setup(t,{expose:a,emit:n}){const o=E(),l=e.ref(["距离","时间","超时任务"]);let i=e.ref(-1),r=e.ref();return a({}),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"filtrateBox"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",e.unref(i)===a?"onHover":""]),key:a},[e.createElementVNode("text",{onClick:e=>(e=>{if(i.value=e,r.value=!r.value,0===e){let e=null;e=r.value?1:2,o.commit("user/setOrderDistance",e),o.commit("user/setFilterOverTime",null),o.commit("user/setOrderTime",null)}else if(1===e){let e=null;e=r.value?1:2,o.commit("user/setOrderTime",e),o.commit("user/setOrderDistance",null),o.commit("user/setFilterOverTime",null)}else o.commit("user/setFilterOverTime",!0),o.commit("user/setOrderTime",null),o.commit("user/setOrderDistance",null);o.commit("user/setIsFiltrate",!0),o.commit("user/setDeliveryData",[]),n("getList")})(a)},e.toDisplayString(t),9,["onClick"]),2!==a?(e.openBlock(),e.createElementBlock("icon",{key:0,class:e.normalizeClass(["up",e.unref(i)===a&&e.unref(r)?"hover":""])},null,2)):e.createCommentVNode("",!0),2!==a?(e.openBlock(),e.createElementBlock("icon",{key:1,class:e.normalizeClass(["down",e.unref(i)!==a||e.unref(r)?"":"hover"])},null,2)):e.createCommentVNode("",!0)],2)))),128))]))}};var It=a({__name:"index",props:{selected:{type:Map,default:()=>[]},tabIndex:{type:Number,default:null},isAdmin:{type:Boolean,default:!1}},setup(t,{emit:a}){const n=t,o=E();let l=e.ref();const i=e.ref("确定要批量删除吗?");o.state.user.deliveryData;const r=()=>{a("getAdmin",!0)},s=()=>{a("allSelect")},c=()=>{if(!(n.selected.size>0))return uni.showToast({title:"请选择任务!",duration:1e3,icon:"none"});for(let[e,t]of n.selected);uni.navigateTo({url:"/pages/turnorder/index"})},d=()=>{if(!(n.selected.size>0))return uni.showToast({title:"请选择要删除的任务!",duration:1e3,icon:"none"});l.value.dialogOpen()},u=()=>{},m=()=>{a("handleClick")};return(a,n)=>e.unref(o).state.user.deliveryData.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"boxCon dataAdmin"},[t.isAdmin?(e.openBlock(),e.createElementBlock("view",{key:1,class:"adminInfo"},[e.createElementVNode("view",{class:"selectInfo"},[e.createElementVNode("label",{class:"checkRadio"},[e.createElementVNode("radio",{value:"1",checked:t.selected.size===e.unref(o).state.user.deliveryData.length,class:e.normalizeClass(t.selected.size===e.unref(o).state.user.deliveryData.length?"active":""),onClick:s},null,10,["checked"]),e.createTextVNode(" 全选 ")]),e.createTextVNode(" 总计 "),e.createElementVNode("text",{class:"num"},e.toDisplayString(t.selected.size),1),e.createTextVNode(" 条 ")]),e.createElementVNode("view",null,[0===t.tabIndex?(e.openBlock(),e.createElementBlock("button",{key:0,class:"uni-btn btn-default",onClick:c},"转单")):1===t.tabIndex?(e.openBlock(),e.createElementBlock("button",{key:1,class:"uni-btn btn-default",onClick:u},"打印")):(e.openBlock(),e.createElementBlock("button",{key:2,class:"uni-btn btn-default",onClick:d},"批量删除"))])])):(e.openBlock(),e.createElementBlock("button",{key:0,class:"uni-btn concelBtn",onClick:r},"管理")),e.createVNode(Ze,{ref_key:"popup",ref:l,tipInfo:i.value,onHandleClick:m},null,8,["tipInfo"])])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-2dca4888"]]);const Mt={__name:"index",props:{phoneData:{type:String,default:""}},setup(t,{expose:a}){const n=e.ref(),o=()=>{n.value.close()};return a({dialogOpen:()=>{n.value.open()}}),(a,l)=>{const i=c(e.resolveDynamicComponent("uni-popup"),Ye);return e.openBlock(),e.createElementBlock("view",{class:"container phoneCon"},[e.createVNode(i,{ref_key:"popup",ref:n,type:"bottom",class:"popupBox"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content"},[e.createElementVNode("view",null,e.toDisplayString(t.phoneData),1),e.createElementVNode("view",{onClick:l[0]||(l[0]=(...t)=>e.unref(be)&&e.unref(be)(...t))},"呼叫")]),e.createElementVNode("view",{onClick:o,class:"closePopup"},"取消")])),_:1},512)])}}},At={__name:"dealParcel",props:{tabIndex:{type:Number,default:0},isAdmin:{type:Boolean,default:!1}},emits:"",setup(t,{expose:a,emit:n}){const o=E(),l=o.state.user,i=e.ref(),r=e.ref();let s=e.ref([]),c=e.ref(!1),u=e.ref(0),m=l.isFiltrate?1:e.ref(1);e.reactive(new Map);const p=e.ref("暂无数据"),f=e.ref("");let h=e.reactive({latitude:40.062595,longitude:116.372809,page:1,pageSize:10,orderDistance:null,orderTime:null,filterOverTime:null,dateTime:ve(new Date).veryDayDate,taskStatus:4});d((()=>{if(m.value>=Number(u.value))return i.value.status="noMore",!1;i.value.status="loading",setTimeout((()=>{m.value++,v()}),1e3)})),e.onMounted((()=>{v()})),e.watch(l,((e,t)=>{if(l.selectTaskData.size>0)for(let[a,n]of l.selectTaskData)s.value.forEach((e=>{n===e.id&&(e.selected=!0)}));else s.value.forEach((e=>{e.selected=!1}))}));const v=async()=>{c.value=!0;let e=0;l.isFiltrate&&(e=1,m.value=1,o.commit("user/setIsFiltrate",!1)),h=__spreadProps(__spreadValues({},h),{page:e?1:m.value,orderDistance:l.orderDistance,orderTime:l.orderTime,filterOverTime:l.filterOverTime}),await te(h).then((e=>{200===e.code&&(e.data?(c.value=!1,0===l.deliveryData.length&&(s.value=[]),s.value=s.value.concat(e.data.items),u.value=e.data.pages,o.commit("user/setDeliveryData",s.value),Number(e.data.pages)===m.value&&(i.value.status="noMore")):s.value=[])})).catch((e=>{}))};return a({getList:v}),(a,l)=>0===t.tabIndex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.unref(s).length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((a,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"expressage"},[t.isAdmin?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkbox"},[e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(l),class:e.normalizeClass(!0===a.selected?"active":""),checked:a.selected,onClick:e=>(e=>{n("checkbox",e)})(l)},null,10,["value","checked","onClick"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["boxBg",t.isAdmin?"adminActive":""])},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"titInfo",onClick:e=>{return t=e,n=a.id,t.stopPropagation(),o.commit("user/setTaskId",n),o.commit("user/setTaskType",2),o.commit("user/setTaskStatus",4),void uni.redirectTo({url:"/pages/details/waybill"});var t,n}},[e.createElementVNode("view",null,[e.createElementVNode("text",{class:"name"},e.toDisplayString(a.name),1),e.createTextVNode(" "+e.toDisplayString(a.phone)+" ",1),e.createElementVNode("icon",{class:"phone",onClick:e=>{return t=e,n=a.phone,t.stopPropagation(),f.value=n,void r.value.dialogOpen();var t,n}},null,8,["onClick"]),e.createElementVNode("icon",{class:"note"})])],8,["onClick"]),e.createElementVNode("view",{class:"address"},e.toDisplayString(a.address),1),e.createElementVNode("view",{class:"address"},e.toDisplayString(a.distance)+"公里",1),e.createElementVNode("view",{class:"time"},"运单号:"+e.toDisplayString(a.transportOrderId),1)])])],2)])))),128)),e.createVNode(mt,{ref_key:"loadMore",ref:i},null,512)])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:p.value},null,8,["emptyData"])])),e.createVNode(Mt,{ref_key:"phone",ref:r,phoneData:f.value},null,8,["phoneData"])])):e.createCommentVNode("",!0)}},Pt={__name:"alreadyParcel",props:{tabIndex:{type:Number,default:1},isAdmin:{type:Boolean,default:!1}},emits:"",setup(t,{expose:a,emit:n}){const o=t,l=E(),i=l.state.user,r=e.ref();let s=e.ref([]),c=e.ref(!1),u=e.ref(0),m=e.ref(1);e.reactive(new Map);const p=e.ref("暂无数据");let f=e.reactive({latitude:40.062595,longitude:116.372809,page:1,pageSize:10,orderDistance:null,orderTime:null,filterOverTime:null,dateTime:ve(new Date).veryDayDate,taskStatus:5});d((()=>{if(m.value>=u.value)return r.value.status="noMore",!1;r.value.status="loading",setTimeout((()=>{m.value++,h()}),1e3)})),e.watch(i,((e,t)=>{if(i.selectTaskData.size>0)for(let[a,n]of i.selectTaskData)s.value.forEach((e=>{n===e.id&&(e.selected=!0)}));else s.value.forEach((e=>{e.selected=!1}))})),e.watch(o,((e,t)=>{})),e.onMounted((()=>{}));const h=async()=>{c.value=!0,f=__spreadProps(__spreadValues({},f),{page:m.value,orderDistance:i.orderDistance,orderTime:i.orderTime,filterOverTime:i.filterOverTime}),await te(f).then((e=>{200===e.code&&(e.data?(c.value=!1,0===i.deliveryData.length&&(s.value=[]),s.value=s.value.concat(e.data.items),u.value=e.data.pages,l.commit("user/setDeliveryData",s.value),Number(e.data.pages)===m.value&&(r.value.status="noMore")):s.value=[])})).catch((e=>{}))};return a({getList:h}),(a,o)=>1===t.tabIndex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.unref(s).length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((a,o)=>(e.openBlock(),e.createElementBlock("view",{key:o,class:"expressage"},[t.isAdmin?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkbox"},[e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(o),class:e.normalizeClass(!0===a.selected?"active":""),checked:a.selected,onClick:e=>(e=>{n("checkbox",e)})(o)},null,10,["value","checked","onClick"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["boxBg",t.isAdmin?"adminActive":""])},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"item",onClick:e=>{return t=e,n=a.id,t.stopPropagation(),l.commit("user/setTaskId",n),l.commit("user/setTaskType",2),l.commit("user/setTaskStatus",5),void uni.redirectTo({url:"/pages/details/waybill"});var t,n}},[e.createElementVNode("view",{class:"titInfo"},"运单号:"+e.toDisplayString(a.transportOrderId),1),e.createElementVNode("view",{class:"address"},"寄件人:"+e.toDisplayString(a.name),1),e.createElementVNode("view",{class:"address"},"派件地址:"+e.toDisplayString(a.address),1),e.createElementVNode("view",{class:"address"},"派件时间:"+e.toDisplayString(a.estimatedStartTime),1),a.amount>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},"运费:"+e.toDisplayString(a.amount)+"元",1)):e.createCommentVNode("",!0)],8,["onClick"])])],2)])))),128)),e.createVNode(mt,{ref_key:"loadMore",ref:r},null,512)])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:p.value},null,8,["emptyData"])]))])):e.createCommentVNode("",!0)}},Ft={__name:"list",props:{tabBars:{type:Object,default:()=>({})},tabIndex:{type:Number,default:0},isAdmin:{type:Boolean,default:!1},orderDistance:{type:Number,default:0},orderTime:{type:Number,default:0},filterOverTime:{type:Number,default:0}},emits:"",setup(t,{expose:a,emit:n}){E().state.user;let o=e.ref(),l=e.ref(),i=e.ref(),r=e.ref();const s=e.ref("确定要删除吗?");let c=e.ref(""),d=e.ref(0);e.onMounted((()=>{uni.getSystemInfo({success:e=>{d.value=e.windowHeight}})}));const u=e=>{n("getSelected",e)},m=async()=>{await ae(c.value).then((e=>{if(200===e.code)return l.value.getList(),uni.showToast({title:"删除成功!",duration:1e3,icon:"none"})})).catch((e=>{}))},p=e=>{n("checkbox",e)};return a({dealPList:()=>{l.value.getList()},alreadList:()=>{i.value.getList()},cancelList:()=>{r.value.getList()}}),(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(At,{ref_key:"dealparcel",ref:l,tabIndex:t.tabIndex,isAdmin:t.isAdmin,onCheckbox:p,onGetSelected:u},null,8,["tabIndex","isAdmin"]),e.createVNode(Pt,{ref_key:"already",ref:i,tabIndex:t.tabIndex,isAdmin:t.isAdmin,onCheckbox:p},null,8,["tabIndex","isAdmin"]),e.createVNode(Ze,{ref_key:"popup",ref:o,tipInfo:s.value,onHandleClick:m},null,8,["tipInfo"])],64))}};var Ot=a({__name:"index",emits:"",setup(t,{emit:a}){const n=E(),o=n.state.user,l=e.ref(),i=e.ref(),r=e.ref(),s=lt;let c=e.ref(0),d=e.ref(!1),u=e.reactive(new Map);e.onMounted((()=>{}));const m=()=>{},p=async()=>{const e=[];for(const[t,a]of u)e.push(a);await ne({idList:e}).then((e=>{if(200===e.code)return i.value.cancelList(),uni.showToast({title:"删除成功!",duration:1e3,icon:"none"})})).catch((e=>{}))},f=e=>{c.value=e,0===e?i.value.dealPList():i.value.alreadList(),u.clear(),r.value.isAdmin=!1,n.commit("user/setDeliveryData",[]),n.commit("user/setPages",0),n.commit("user/setSelectTaskData",new Map)},h=e=>{l.value.changeTab(e.detail.current)},v=e=>{d.value=e},g=()=>{i.value.dealPList()},y=()=>{let e=o.deliveryData;u.size===e.length?(u.clear(),e.forEach((e=>{e.selected=!1}))):e.forEach(((e,t)=>{u.has(t)||(u.set(t,e.id),e.selected=!0)})),a("getSelected",u),n.commit("user/setSelectTaskData",u)},k=e=>{let t=o.deliveryData;t[e].selected?(t[e].selected=!1,u.delete(e)):(t[e].selected=!0,u.set(e,t[e].id)),n.commit("user/setSelectTaskData",u)};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Be,{onHandleSearch:m}),e.createElementVNode("view",{class:"boxTop"},[e.createVNode(rt,{tabBars:e.unref(s),ref_key:"tab",ref:l,onGetTabIndex:f},null,8,["tabBars"]),0===e.unref(c)&&e.unref(o).deliveryData.length>0?(e.openBlock(),e.createBlock(Tt,{key:0,onGetList:g})):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{padding:"0 0 200rpx 0"}},[e.createVNode(Ft,{tabBars:e.unref(s),tabIndex:e.unref(c),isAdmin:e.unref(d),onOnChangeSwiperTab:h,onCheckbox:k,ref_key:"list",ref:i},null,8,["tabBars","tabIndex","isAdmin"])])]),e.createVNode(It,{ref_key:"expressageFoot",ref:r,onGetAdmin:v,selected:e.unref(u),tabIndex:e.unref(c),onAllSelect:y,onHandleClick:p},null,8,["selected","tabIndex"]),e.createVNode(ce,{pagePath:"pages/delivery/index"})],64))}},[["__scopeId","data-v-2cf042fb"]]);const Lt={__name:"dealParcel",props:{tabIndex:{type:Number,default:0},isAdmin:{type:Boolean,default:!1}},emits:"",setup(t,{expose:a,emit:n}){const o=E(),l=o.state.user,i=e.ref(),r=e.ref();let s=e.ref([]),c=e.ref(!1),u=e.ref(0),m=l.isFiltrate?1:e.ref(1);e.reactive(new Map);const p=e.ref("暂无数据"),f=e.ref("");let h=e.reactive({latitude:40.062595,longitude:116.372809,page:1,pageSize:10,orderDistance:null,orderTime:null,filterOverTime:null,dateTime:ve(new Date).veryDayDate,taskStatus:1});d((()=>{if(m.value>=Number(u.value))return i.value.status="noMore",!1;i.value.status="loading",setTimeout((()=>{m.value++,v()}),1e3)})),e.onMounted((()=>{v()})),e.watch(l,((e,t)=>{if(l.selectTaskData.size>0)for(let[a,n]of l.selectTaskData)s.value.forEach((e=>{n===e.id&&(e.selected=!0)}));else s.value.forEach((e=>{e.selected=!1}))}));const v=async()=>{c.value=!0;let e=0;l.isFiltrate&&(e=1,m.value=1,o.commit("user/setIsFiltrate",!1)),h=__spreadProps(__spreadValues({},h),{page:e?1:m.value,orderDistance:l.orderDistance,orderTime:l.orderTime,filterOverTime:l.filterOverTime}),await te(h).then((e=>{200===e.code&&(e.data?(c.value=!1,0===l.deliveryData.length&&(s.value=[]),s.value=s.value.concat(e.data.items),u.value=e.data.pages,o.commit("user/setDeliveryData",s.value),Number(e.data.pages)===m.value&&(i.value.status="noMore")):s.value=[])})).catch((e=>{}))};return a({getList:v}),(a,l)=>0===t.tabIndex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.unref(s).length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((a,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"expressage"},[t.isAdmin?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkbox"},[e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(l),class:e.normalizeClass(!0===a.selected?"active":""),checked:a.selected,onClick:e=>(e=>{n("checkbox",e)})(l)},null,10,["value","checked","onClick"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["boxBg",t.isAdmin?"adminActive":""])},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"item",onClick:e=>{return t=e,n=a.id,o.commit("user/setTaskId",n),o.commit("user/setTaskType",1),t.stopPropagation(),void uni.redirectTo({url:"/pages/details/index"});var t,n}},[e.createElementVNode("view",{class:"titInfo"},[e.createElementVNode("view",null,[e.createElementVNode("text",{class:"name"},e.toDisplayString(a.name),1),e.createTextVNode(" "+e.toDisplayString(a.phone)+" ",1),e.createElementVNode("icon",{class:"phone",onClick:e=>{return t=e,n=a.phone,t.stopPropagation(),f.value=n,void r.value.dialogOpen();var t,n}},null,8,["onClick"]),e.createElementVNode("icon",{class:"note"})])]),e.createElementVNode("view",{class:"address"},e.toDisplayString(a.address),1),e.createElementVNode("view",{class:"address"},e.toDisplayString(a.distance)+"公里",1),e.createElementVNode("view",{class:"time"},"预约取件时间:"+e.toDisplayString(a.estimatedStartTime),1),e.createElementVNode("text",{onClick:e=>{return t=e,n=a.id,t.stopPropagation(),o.commit("user/setTaskId",n),void uni.redirectTo({url:"/pages/cancel/index"});var t,n},class:"delete"},[e.createElementVNode("button",{class:"uni-btn concelBtn"},"取消")],8,["onClick"])],8,["onClick"])])],2)])))),128)),e.createVNode(mt,{ref_key:"loadMore",ref:i},null,512)])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:p.value},null,8,["emptyData"])])),e.createVNode(Mt,{ref_key:"phone",ref:r,phoneData:f.value},null,8,["phoneData"])])):e.createCommentVNode("",!0)}},zt={__name:"alreadyParcel",props:{tabIndex:{type:Number,default:1},isAdmin:{type:Boolean,default:!1}},emits:"",setup(t,{expose:a,emit:n}){const o=t,l=E(),i=l.state.user,r=e.ref();let s=e.ref([]),c=e.ref(!1),u=e.ref(0),m=e.ref(1);e.reactive(new Map);const p=e.ref("暂无数据");let f=e.reactive({latitude:40.062595,longitude:116.372809,page:1,pageSize:10,orderDistance:null,orderTime:null,filterOverTime:null,dateTime:ve(new Date).veryDayDate,taskStatus:2});d((()=>{if(m.value>=u.value)return r.value.status="noMore",!1;r.value.status="loading",setTimeout((()=>{m.value++,h()}),1e3)})),e.watch(i,((e,t)=>{if(i.selectTaskData.size>0)for(let[a,n]of i.selectTaskData)s.value.forEach((e=>{n===e.id&&(e.selected=!0)}));else s.value.forEach((e=>{e.selected=!1}))})),e.watch(o,((e,t)=>{})),e.onMounted((()=>{}));const h=async()=>{c.value=!0,f=__spreadProps(__spreadValues({},f),{page:m.value,orderDistance:i.orderDistance,orderTime:i.orderTime,filterOverTime:i.filterOverTime}),await te(f).then((e=>{200===e.code&&(e.data?(c.value=!1,0===i.deliveryData.length&&(s.value=[]),s.value=s.value.concat(e.data.items),u.value=e.data.pages,l.commit("user/setDeliveryData",s.value),Number(e.data.pages)===m.value&&(r.value.status="noMore")):s.value=[])})).catch((e=>{}))};return a({getList:h}),(a,o)=>1===t.tabIndex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.unref(s).length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((a,o)=>(e.openBlock(),e.createElementBlock("view",{key:o,class:"expressage"},[t.isAdmin?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkbox"},[e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(o),class:e.normalizeClass(!0===a.selected?"active":""),checked:a.selected,onClick:e=>(e=>{n("checkbox",e)})(o)},null,10,["value","checked","onClick"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["boxBg",t.isAdmin?"adminActive":""])},[e.createElementVNode("view",{class:"tabList"},[e.createElementVNode("view",{class:"item",onClick:e=>{return t=e,n=a.id,t.stopPropagation(),l.commit("user/setTaskId",n),l.commit("user/setTaskType",1),l.commit("user/setTaskStatus",2),void uni.redirectTo({url:"/pages/details/waybill"});var t,n}},[e.createElementVNode("view",{class:"titInfo"},"订单号:SD"+e.toDisplayString(a.orderId),1),e.createElementVNode("view",{class:"address"},e.toDisplayString(a.name),1),e.createElementVNode("view",{class:"address"},e.toDisplayString(a.address),1),e.createElementVNode("view",{class:"address"},e.toDisplayString(a.distance)+"公里",1),e.createElementVNode("view",{class:"time"},"取件时间:"+e.toDisplayString(a.estimatedStartTime),1),a.amount>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},"运费:"+e.toDisplayString(a.amount)+"元",1)):e.createCommentVNode("",!0)],8,["onClick"])])],2)])))),128)),e.createVNode(mt,{ref_key:"loadMore",ref:r},null,512)])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:p.value},null,8,["emptyData"])]))])):e.createCommentVNode("",!0)}},Rt={__name:"cancelParcel",props:{tabIndex:{type:Number,default:0},isAdmin:{type:Boolean,default:!1}},emits:"",setup(t,{expose:a,emit:n}){const o=E(),l=o.state.user,i=e.ref();let r=e.ref([]),s=e.ref(!1),c=e.ref(0),u=e.ref(1);e.reactive(new Map);const m=e.ref("暂无数据");let p=e.reactive({latitude:40.062595,longitude:116.372809,page:1,pageSize:10,orderDistance:null,orderTime:null,filterOverTime:null,dateTime:ve(new Date).veryDayDate,taskStatus:3});d((()=>{if(u.value>=c.value)return i.value.status="noMore",!1;i.value.status="loading",setTimeout((()=>{u.value++,f()}),1e3)})),e.watch(l,((e,t)=>{if(l.selectTaskData.size>0)for(let[a,n]of l.selectTaskData)r.value.forEach((e=>{n===e.id&&(e.selected=!0)}));else r.value.forEach((e=>{e.selected=!1}))}));const f=async()=>{s.value=!0,p=__spreadProps(__spreadValues({},p),{page:u.value,orderDistance:l.orderDistance,orderTime:l.orderTime,filterOverTime:l.filterOverTime}),await te(p).then((e=>{200===e.code&&(e.data?(s.value=!1,0===l.deliveryData.length&&(r.value=[]),r.value=r.value.concat(e.data.items),c.value=e.data.pages,o.commit("user/setDeliveryData",r.value),Number(e.data.pages)===u.value&&(i.value.status="noMore")):r.value=[])})).catch((e=>{}))};return a({getList:f}),(a,l)=>2===t.tabIndex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.unref(r).length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),((a,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"expressage"},[t.isAdmin?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkbox"},[e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(l),class:e.normalizeClass(!0===a.selected?"active":""),checked:a.selected,onClick:e=>(e=>{n("checkbox",e)})(l)},null,10,["value","checked","onClick"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["boxBg",t.isAdmin?"adminActive":""])},[e.createElementVNode("view",{class:"tabList cancelList"},[e.createElementVNode("view",{class:"item",onClick:e=>{return t=e,n=a.id,t.stopPropagation(),o.commit("user/setTaskId",n),o.commit("user/setTaskType",1),o.commit("user/setTaskStatus",3),void uni.redirectTo({url:"/pages/details/waybill"});var t,n}},[e.createElementVNode("view",null,"寄件人:"+e.toDisplayString(a.name),1),e.createElementVNode("view",null,"取件地址:"+e.toDisplayString(a.address),1),e.createElementVNode("view",null,"取件原因:"+e.toDisplayString(a.cancelReason),1),e.createElementVNode("view",null,"原因描述:"+e.toDisplayString(a.cancelReason),1),e.createElementVNode("text",{onClick:e=>{return t=e,o=a.id,t.stopPropagation(),void n("handleOpen",o);var t,o},class:"delete"},[e.createElementVNode("button",{class:"uni-btn concelBtn"},"删除")],8,["onClick"])],8,["onClick"])])],2)])))),128)),e.createVNode(mt,{ref_key:"loadMore",ref:i},null,512)])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:m.value},null,8,["emptyData"])]))])):e.createCommentVNode("",!0)}},jt={__name:"list",props:{tabBars:{type:Object,default:()=>({})},tabIndex:{type:Number,default:0},scrollH:{type:String,default:""},isAdmin:{type:Boolean,default:!1},orderDistance:{type:Number,default:0},orderTime:{type:Number,default:0},filterOverTime:{type:Number,default:0}},emits:"",setup(t,{expose:a,emit:n}){E().state.user;let o=e.ref(),l=e.ref(),i=e.ref(),r=e.ref();const s=e.ref("确定要删除吗?");let c=e.ref(""),d=e.ref(0);e.onMounted((()=>{uni.getSystemInfo({success:e=>{d.value=e.windowHeight}})}));const u=e=>{n("getSelected",e)},m=async()=>{await ae(c.value).then((e=>{if(200===e.code)return l.value.getList(),uni.showToast({title:"删除成功!",duration:1e3,icon:"none"})})).catch((e=>{}))},p=e=>{n("checkbox",e)},f=e=>{o.value.dialogOpen(),c.value=e};return a({dealPList:()=>{l.value.getList()},alreadList:()=>{i.value.getList()},cancelList:()=>{r.value.getList()}}),(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Lt,{ref_key:"dealparcel",ref:l,tabIndex:t.tabIndex,isAdmin:t.isAdmin,onCheckbox:p,onGetSelected:u},null,8,["tabIndex","isAdmin"]),e.createVNode(zt,{ref_key:"already",ref:i,tabIndex:t.tabIndex,isAdmin:t.isAdmin,onCheckbox:p},null,8,["tabIndex","isAdmin"]),e.createVNode(Rt,{tabIndex:t.tabIndex,ref_key:"cancel",ref:r,isAdmin:t.isAdmin,onCheckbox:p,onHandleOpen:f},null,8,["tabIndex","isAdmin"]),e.createVNode(Ze,{ref_key:"popup",ref:o,tipInfo:s.value,onHandleClick:m},null,8,["tipInfo"])],64))}};var Gt=a({__name:"index",emits:"",setup(t,{emit:a}){const n=E(),o=n.state.user,l=e.ref(),i=e.ref(),r=ot;let s=e.ref(0),c=e.ref(!1),d=e.reactive(new Map);e.onMounted((()=>{}));const u=()=>{},m=async()=>{const e=[];for(const[t,a]of d)e.push(a);await ne({idList:e}).then((e=>{if(200===e.code)return i.value.cancelList(),uni.showToast({title:"删除成功!",duration:1e3,icon:"none"})})).catch((e=>{}))},p=e=>{s.value=e,0===e?i.value.dealPList():1===e?i.value.alreadList():i.value.cancelList(),d.clear(),c.value=!1,n.commit("user/setDeliveryData",[]),n.commit("user/setPages",0),n.commit("user/setSelectTaskData",new Map)},f=e=>{l.value.changeTab(e.detail.current)},h=e=>{c.value=e},v=()=>{i.value.dealPList()},g=()=>{let e=o.deliveryData;d.size===e.length?(d.clear(),e.forEach((e=>{e.selected=!1}))):e.forEach(((e,t)=>{d.has(t)||(d.set(t,e.id),e.selected=!0)})),a("getSelected",d),n.commit("user/setSelectTaskData",d)},y=e=>{let t=o.deliveryData;t[e].selected?(t[e].selected=!1,d.delete(e)):(t[e].selected=!0,d.set(e,t[e].id)),n.commit("user/setSelectTaskData",d)};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Be,{onHandleSearch:u}),e.createElementVNode("view",{class:"boxTop"},[e.createVNode(rt,{tabBars:e.unref(r),ref_key:"tab",ref:l,onGetTabIndex:p},null,8,["tabBars"]),0===e.unref(s)&&e.unref(o).deliveryData.length>0?(e.openBlock(),e.createBlock(Tt,{key:0,onGetList:v})):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{padding:"0 0 200rpx 0"}},[e.createVNode(jt,{tabBars:e.unref(r),tabIndex:e.unref(s),isAdmin:e.unref(c),onOnChangeSwiperTab:f,onCheckbox:y,ref_key:"list",ref:i},null,8,["tabBars","tabIndex","isAdmin"])])]),e.createVNode(It,{ref:"expressageFoot",onGetAdmin:h,isAdmin:e.unref(c),selected:e.unref(d),tabIndex:e.unref(s),onAllSelect:g,onHandleClick:m},null,8,["isAdmin","selected","tabIndex"]),e.createVNode(ce,{pagePath:"pages/delivery/index"})],64))}},[["__scopeId","data-v-da6a4c76"]]);var Ht=a({__name:"index",setup(t){const a=E().state.user,n=e.ref();let o=e.ref(),i=e.ref(!0);const r=e.ref("确定要转单吗?");e.ref("历史取派");let u=e.ref(0),m=e.ref(!1),p=e.ref(0),f=e.ref(1);const h=e.ref("暂无数据"),v=e.ref(""),g=e.ref("");let y=e.reactive({keyword:"",page:1,pageSize:10}),k=e.ref([]);d((()=>{if(f.value>=p.value)return n.value.status="noMore",!1;n.value.status="loading",setTimeout((()=>{f.value++,_()}),1e3)})),e.onMounted((()=>{w(),uni.getSystemInfo({success:e=>{u.value=e.windowHeight-uni.upx2px(200)}})}));const w=()=>{_()},_=async()=>{var e;m.value=!0,await(e=y,X({url:"/users/sameAgency",method:"get",params:e})).then((e=>{200===e.code&&(e.data?(m.value=!1,k.value=k.value.concat(e.data.items),p.value=e.data.pages,s("log","at pages/turnorder/index.vue:127",p.value,e.data.pages),s("log","at pages/turnorder/index.vue:128",n),Number(p.value)===f.value&&(n.value.status="noMore")):k.value=null)})).catch((e=>{}))},N=async()=>{let e=[];for(const[n,o]of a.selectTaskData)e.push(o);let t={anotherCourierId:v.value,idList:e};await(e=>X({url:"/tasks/transfer/batch",method:"post",params:e}))(t).then((e=>{if(200===e.code)return uni.navigateTo({url:"/pages/pickup/index"}),uni.showToast({title:"转单成功!",duration:1e3,icon:"none"})})).catch((e=>{}))},b=()=>{y.keyword=g.value,k.value=[],_()},V=()=>{g.value="",uni.redirectTo({url:"/pages/delivery/index"})};return(t,a)=>{const s=c(e.resolveDynamicComponent("uni-icons"),l);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"navBox"},[e.createElementVNode("view",{class:"search"},[e.createElementVNode("view",{class:"uni-navbar"},[e.createElementVNode("view",{class:"input-view"},[e.createVNode(s,{class:"input-uni-icon",type:"search",size:"18",color:"#999"}),e.withDirectives(e.createElementVNode("input",{"confirm-type":"search",class:"nav-bar-input",type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>g.value=e),placeholder:"输入派件员姓名或账号",onInput:b},null,544),[[e.vModelText,g.value]])]),e.unref(i)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"concelBox",onClick:V},"取消")):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"boxTop"},[e.unref(k).length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btnBox turnBox"},[e.createElementVNode("scroll-view",{"scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"boxBg",key:a,onClick:e=>{return a=t.userId,v.value=a,void o.value.dialogOpen();var a}},[e.createElementVNode("view",{class:"turnItem"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",null,e.toDisplayString(t.employeeNumber),1),e.createElementVNode("view",null,e.toDisplayString(t.name),1)])])],8,["onClick"])))),128)),e.createVNode(mt,{ref_key:"loadMore",ref:n},null,512)])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createVNode(Ve,{emptyData:h.value},null,8,["emptyData"])])),e.createVNode(Ze,{ref_key:"popup",ref:o,tipInfo:r.value,onHandleClick:N},null,8,["tipInfo"])])],64)}}},[["__scopeId","data-v-c0081918"]]);var Ut=a({__name:"index",setup(t){const a=E(),n=a.state.user,o=n.taskId,l=e.ref("订单取消原因申请");let i=e.ref(""),r=""!==n.reasonVal?n.reasonVal:"";const s=e.ref({});e.onMounted((()=>{""!==n.reasonDesc&&(i.value=n.reasonDesc),c(o)}));const c=async e=>{await oe(e).then((e=>{s.value=e.data})).catch((e=>{}))},d=()=>{e.nextTick((()=>{_e(i.value)>100&&(i.value=i.value.substring(0,100))}))},u=async()=>{if(""===r)return uni.showToast({title:"请选择取消原因!",duration:1e3,icon:"none"});{s.value;const e={id:o,isRedistribute:n.isRedistribute,reason:n.reasonVal,reasonDesc:i.value};await(e=>X({url:"/tasks/cancel",method:"post",params:e}))(e).then((e=>{if(uni.redirectTo({url:"/pages/pickup/index"}),200===e.code)return uni.showToast({title:"申请成功!",duration:1e3,icon:"none"})})).catch((e=>{}))}},m=()=>{a.commit("user/setReasonDesc",i.value),uni.navigateTo({url:"/pages/cancel/cause"})},p=()=>{uni.redirectTo({url:"/pages/pickup/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:l.value,onGoBack:p},null,8,["title"]),e.createElementVNode("view",{class:"pageBox"},[e.createElementVNode("view",{class:"boxCon concelBox"},[e.createElementVNode("view",{class:"tabConList"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"寄件人:"),e.createElementVNode("view",null,e.toDisplayString(s.value.senderName),1)]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"运单号:"),e.createElementVNode("view",null,e.toDisplayString(s.value.transportOrderId),1)]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"寄件人地址:"),e.createElementVNode("view",null,e.toDisplayString(s.value.senderAddress),1)])])]),e.createElementVNode("view",{class:"boxCon concelBox"},[e.createElementVNode("view",{class:"tabConList"},[e.createElementVNode("view",{class:"item",onClick:m},[e.createElementVNode("text",null,"订单取消原因"),e.createElementVNode("view",{class:"cause"},[e.createTextVNode(e.toDisplayString(e.unref(r))+" ",1),e.createElementVNode("icon",{class:"nextIcon"})])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",null,[e.withDirectives(e.createElementVNode("textarea",{placeholder:"订单取消原因描述:","placeholder-class":t.placeholderClass,"onUpdate:modelValue":a[0]||(a[0]=t=>e.isRef(i)?i.value=t:i=t),onInput:d},null,40,["placeholder-class"]),[[e.vModelText,e.unref(i)]])])])])]),e.createElementVNode("view",{class:"btnBox"},[e.createElementVNode("button",{class:"btn-default uni-mini",onClick:u},"确定")])])],64))}},[["__scopeId","data-v-0c7cb26c"]]);var Wt=a({__name:"cause",setup(t){const a=E(),n=e.ref("订单取消原因"),o=e.reactive(Ke),l=()=>{uni.redirectTo({url:"/pages/cancel/index"})};return(t,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:n.value,onGoBack:l},null,8,["title"]),e.createElementVNode("view",{class:"pageBox"},[e.createElementVNode("view",{class:"boxCon concelBox"},[e.createElementVNode("view",{class:"tabConList conCenter"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:n,onClick:e=>(e=>{let t=!1;8===e.value&&(t=!0),a.commit("user/setReasonVal",e.label),a.commit("user/setRedistribute",t),uni.redirectTo({url:"/pages/cancel/index"})})(t)},[e.createElementVNode("view",null,e.toDisplayString(t.label),1)],8,["onClick"])))),128))])])])],64))}},[["__scopeId","data-v-630aef9d"]]);const Jt={__name:"address",props:{detailsData:{type:Object,default:()=>({})}},setup(t){let a=E().state.user.taskType;return e.onMounted((()=>{s("log","at pages/details/components/address.vue:37",a)})),(n,o)=>(e.openBlock(),e.createElementBlock("view",{class:"boxBg"},[e.createElementVNode("view",{class:"addressCon"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"sendIcon"},e.toDisplayString(1===e.unref(a)?"取":"派"),1),e.createElementVNode("view",{class:"addressInfo"},[e.createElementVNode("view",null,[e.createElementVNode("text",{class:"name"},e.toDisplayString(t.detailsData.senderName),1),e.createTextVNode(e.toDisplayString(t.detailsData.senderPhone),1)]),e.createElementVNode("view",null,e.toDisplayString(t.detailsData.senderAddress),1)])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"receiveIcon"},e.toDisplayString(1===e.unref(a)?"派":"收"),1),e.createElementVNode("view",{class:"addressInfo"},[e.createElementVNode("view",null,[e.createElementVNode("text",{class:"name"},e.toDisplayString(t.detailsData.receiverName),1),e.createTextVNode(e.toDisplayString(t.detailsData.receiverPhone),1)]),e.createElementVNode("view",null,e.toDisplayString(t.detailsData.receiverAddress),1)])])])]))}},$t={__name:"authentication",props:{detailsData:{type:Object,default:()=>({})}},setup(t,{expose:a}){const n=e.ref();let o=e.ref(""),l=e.ref(""),i=e.ref(!1);const r=()=>{const e=void 0===(t=o.value)||""===t?"请输入身份证号":!!/(^\d{15}$)|(^\d{17}(\d|X|x)$)/g.test(t)||"身份证长度或格式错误";var t;if(!e)return uni.showToast({title:e,duration:1e3,icon:"none"});i.value=!0},s=async()=>{const e={name:l.value,idCard:o.value};await(e=>X({url:"/tasks/idCard/check",method:"post",params:e}))(e).then((e=>{if(200===e.code)return uni.showToast({title:"验证成功",duration:1e3,icon:"none"})})).catch((e=>{}))};return a({customForm:n,idCard:o,name:l,isValidate:i}),(a,i)=>{const d=c(e.resolveDynamicComponent("uni-easyinput"),u),p=c(e.resolveDynamicComponent("uni-forms-item"),m),f=c(e.resolveDynamicComponent("uni-forms"),k);return e.openBlock(),e.createElementBlock("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tit"},[0===t.detailsData.idCardNoVerify?(e.openBlock(),e.createElementBlock("text",{key:0},[e.createTextVNode(" 身份验证(未验证) "),e.createElementVNode("icon",{class:"iconTip"})])):1===t.detailsData.idCardNoVerify?(e.openBlock(),e.createElementBlock("text",{key:1}," 身份验证(验证通过) ")):(e.openBlock(),e.createElementBlock("text",{key:2},[e.createTextVNode(" 身份验证(验证未通过) "),e.createElementVNode("icon",{class:"iconTip"})]))]),e.createElementVNode("view",{class:"identityBox"},[1!==t.detailsData.idCardNoVerify?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createVNode(f,{ref_key:"customForm",ref:n},{default:e.withCtx((()=>[e.createVNode(p,{name:"name"},{default:e.withCtx((()=>[e.createVNode(d,{class:"item",modelValue:e.unref(l),"onUpdate:modelValue":i[0]||(i[0]=t=>e.isRef(l)?l.value=t:l=t),placeholder:"请输入真实姓名"},null,8,["modelValue"])])),_:1}),e.createVNode(p,{name:"idCard"},{default:e.withCtx((()=>[e.createVNode(d,{class:"item",modelValue:e.unref(o),"onUpdate:modelValue":i[1]||(i[1]=t=>e.isRef(o)?o.value=t:o=t),placeholder:"请输入身份证号码",onBlur:r},null,8,["modelValue"])])),_:1})])),_:1},512),e.createElementVNode("button",{class:"uni-btn concelBtn",onClick:s},"验证")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"text"},e.toDisplayString(t.detailsData.idCardNo),1))])])}}},Yt={__name:"uppop",props:{detailsData:{type:Object,default:()=>({})},type:{type:Number,default:0}},setup(t,{expose:a,emit:n}){const o=t;e.watch(o,((e,t)=>{void 0!==e&&(u.value=e.detailsData.remark)}));const l=e.ref();let i=e.ref(0),r=e.ref(0),s=e.ref(""),d=e.ref(0),u=e.ref(""),m=e.ref(!1);const p=()=>{if(1===o.type){let e=null;if(m.value){if(""===s.value)return uni.showToast({title:"请输入物品信息",duration:1e3,icon:"none"});e=s.value}else e=at[r.value].label;n("getGoodType",e)}else 2===o.type?n("getPayMethod",tt[i.value].label):3===o.type?n("getRemark",u.value):n("getSignType",et[i.value].value);h()},f=e=>{i.value=e},h=()=>{l.value.close()},v=()=>{e.nextTick((()=>{let e=_e(s.value);e>10?s.value=s.value.substring(0,10):d.value=Math.floor(e)}))},g=()=>{e.nextTick((()=>{let e=_e(u.value);e>30?u.value=u.value.substring(0,30):d.value=Math.floor(e)}))};return a({dialogOpen:()=>{l.value.open()}}),(a,n)=>{const o=c(e.resolveDynamicComponent("uni-popup"),Ye);return e.openBlock(),e.createElementBlock("view",{class:"uniPopup detailPopup"},[e.createVNode(o,{ref_key:"popup",ref:l,type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,e.toDisplayString(1===t.type?"物品名称":2===t.type?"付款方式":3===t.type?"备注":"签收人"),1),e.createElementVNode("icon",{onClick:h},"关闭")]),e.createElementVNode("view",{class:"popupContent"},[1===t.type?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("view",{class:"goodBox"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(at),((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass(["item",a===e.unref(r)?"active":""]),onClick:e=>((e,t)=>{"其他"===t.label?m.value=!0:m.value=!1,r.value=e})(a,t)},[e.createElementVNode("text",null,e.toDisplayString(t.label),1)],10,["onClick"])))),128))]),e.unref(m)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"other"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"请输入物品信息",onInput:v},null,544),[[e.vModelText,e.unref(s)]]),e.createElementVNode("text",{class:e.normalizeClass(["numText",0===e.unref(d)?"tip":""])},e.toDisplayString(e.unref(d))+"/10",3)])):e.createCommentVNode("",!0)])):2===t.type?(e.openBlock(),e.createElementBlock("view",{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(tt),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"typeItem",key:a,onClick:e=>f(a)},[e.createElementVNode("text",null,e.toDisplayString(t.label),1),e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(a),class:e.normalizeClass(a===e.unref(i)?"active":""),checked:a===e.unref(i)},null,10,["value","checked"])])],8,["onClick"])))),128))])):3===t.type?(e.openBlock(),e.createElementBlock("view",{key:2,class:"remark"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=t=>e.isRef(u)?u.value=t:u=t),placeholder:"补充说明",onInput:g},null,544),[[e.vModelText,e.unref(u)]]),e.createElementVNode("text",{class:e.normalizeClass(["numText",0===e.unref(d)?"tip":""])},e.toDisplayString(e.unref(d))+"30",3)])):(e.openBlock(),e.createElementBlock("view",{key:3},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(et),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"typeItem",key:a,onClick:e=>f(a)},[e.createElementVNode("text",null,e.toDisplayString(t.label),1),e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(a),class:e.normalizeClass(a===e.unref(i)?"active":""),checked:a===e.unref(i)},null,10,["value","checked"])])],8,["onClick"])))),128))]))]),e.createElementVNode("view",{class:"btnBox"},[e.createElementVNode("button",{class:"btn-default uni-mini",onClick:p},"确定")])])),_:1},512)])}}};var Zt=a({__name:"index",emits:"",setup(t,{emit:a}){const n=E(),o=e.ref(),l=e.ref(),i=e.ref(),r=n.state.user.taskId,s=e.ref("去取件");let c=e.ref(0);const d=e.ref({});let u=e.ref(!1),m=e.ref(0);e.watch(m,((t,a)=>{const n=Number(t);e.nextTick((()=>{n<99999&&n>1&&(m.value=parseInt(100*n)/100),n>99999&&(m.value=99999)}))})),e.onMounted((()=>{p(r)}));const p=async e=>{await oe(e).then((e=>{d.value=e.data,m.value=d.value.freight,n.commit("user/setDetailsData",e.data)})).catch((e=>{}))},f=async()=>{const e=l.value,t=o.value;if(!e.isValidate&&1!==d.value.idCardNoVerify)return uni.showToast({title:"请输入正确的身份证",duration:1e3,icon:"none"});{const a=d.value,o={amount:t.freightData?t.freightData:Number(a.freight),id:r,goodName:a.GoodTypeName,idCard:1===a.idCardNoVerify?null:e.idCard,name:1===a.idCardNoVerify?null:a.name,paymentMethod:a.paymentMethod,remark:a.remark,volume:Number(t.volume),weight:t.weight},l={memo:a.remark,productOrderNo:a.orderId,tradingAmount:o.amount};n.commit("user/setPayData",l);const i=a.paymentMethod;uni.redirectTo({url:"/pages/pay/index?type="+i})}},h=()=>{uni.setClipboardData({data:d.orderId,success:function(){uni.showToast({title:"复制成功",icon:"none"})}})},v=()=>{u.value=!0},g=e=>{d.freight=e},y=()=>{e.nextTick((()=>{m.value<1&&(m.value=1)}))},k=e=>{d.value.GoodTypeName=e},w=()=>{c.value=1,x()},_=e=>{d.value.paymentMethod="寄付"===e?1:2},N=()=>{c.value=2,x()},b=e=>{d.value.remark=e},V=()=>{c.value=3,x()},x=()=>{i.value.dialogOpen()},B=()=>{uni.redirectTo({url:"/pages/pickup/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:s.value,onGoBack:B},null,8,["title"]),e.createElementVNode("view",{class:"detailBox"},[e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,[e.createElementVNode("text",null,"订单号:SD"+e.toDisplayString(d.value.orderId),1),e.createElementVNode("icon",{onClick:h,class:"copy"})])])]),e.createVNode(Jt,{detailsData:d.value},null,8,["detailsData"]),e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,"物品名称"),e.createElementVNode("view",{class:"goodsSelect",onClick:w},[e.createElementVNode("text",{class:"textInfo"},e.toDisplayString(d.value.GoodTypeName),1),e.createElementVNode("icon",{class:"nextIcon"})])])]),e.createElementVNode("view",{class:"boxBg"},[e.createVNode(Ct,{ref_key:"goods",ref:o,detailsData:d.value,onGetFreight:g},null,8,["detailsData"]),e.createElementVNode("view",{class:"freight"},[e.createElementVNode("view",null,[e.createTextVNode(" 总计金额 "),e.createElementVNode("text",null,[e.createElementVNode("text",null,"*"),e.createTextVNode(" 基础运费+增值服务费 ")])]),e.createElementVNode("view",null,[e.unref(u)?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"number","onUpdate:modelValue":a[0]||(a[0]=t=>e.isRef(m)?m.value=t:m=t),onBlur:y},null,544)),[[e.vModelText,e.unref(m)]]):(e.openBlock(),e.createElementBlock("text",{key:1,onClick:v},e.toDisplayString(d.value.freight),1)),e.createElementVNode("text",null,"元")])])]),e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,"付款方式"),e.createElementVNode("view",{class:"goodsSelect",onClick:N},[e.createElementVNode("text",{class:"textInfo"},e.toDisplayString(1===d.value.paymentMethod?"寄付":"到付"),1),e.createElementVNode("icon",{class:"nextIcon"})])])]),e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,"备注"),e.createElementVNode("view",{class:"goodsSelect",onClick:V},[e.createElementVNode("text",{class:"textInfo"},e.toDisplayString(d.value.remark),1),e.createElementVNode("icon",{class:"nextIcon"})])])]),e.createVNode($t,{ref_key:"card",ref:l,detailsData:d.value},null,8,["detailsData"]),e.createElementVNode("view",{class:"btnBox"},[e.createElementVNode("button",{class:"btn-default uni-mini",onClick:f},"去取件")]),e.createVNode(Yt,{ref_key:"method",ref:i,onGetGoodType:k,onGetPayMethod:_,onGetRemark:b,type:e.unref(c)},null,8,["type"])])],64))}},[["__scopeId","data-v-95dc4008"]]);var Qt=a({__name:"waybill",emits:"",setup(t,{emit:a}){const n=E(),o=n.state.user,l=o.taskStatus,i=e.ref(),r=o.taskId,c=e.ref("运单详情");let d=e.ref({}),u=e.ref(0);e.onMounted((()=>{m(r)}));const m=async e=>{await oe(e).then((e=>{d.value=e.data,n.commit("user/setDetailsData",e.data)})).catch((e=>{}))},p=async e=>{await(e=>X({url:`/tasks/reject/${e}`,method:"put"}))(e).then((e=>{200===e.code&&uni.showToast({title:"用户拒收",icon:"none"})})).catch((e=>{}))},f=async e=>{var t;d.value.signRecipient,await(t=e,X({url:"/tasks/sign",method:"put",params:t})).then((e=>{if(200===e.code){const e=d.value.paymentMethod;uni.redirectTo({url:"/pages/pay/index?isDelivery=true&type="+e})}})).catch((e=>{}))},h=()=>{uni.setClipboardData({data:d.orderId,success:function(){uni.showToast({title:"复制成功",icon:"none"})}})},v=e=>{d.value.signRecipient=e},g=()=>{u.value=4,i.value.dialogOpen()},y=()=>{uni.redirectTo({url:"/pages/details/orderMap"})},k=()=>{s("log","at pages/details/waybill.vue:182",l),1===l||2===l||3===l?uni.redirectTo({url:"/pages/pickup/index"}):uni.redirectTo({url:"/pages/delivery/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:c.value,onGoBack:k},null,8,["title"]),e.createElementVNode("view",{class:"detailBox"},[e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,[4===e.unref(l)||5===e.unref(l)?(e.openBlock(),e.createElementBlock("text",{key:0},"运单号:"+e.toDisplayString(e.unref(d).transportOrderId),1)):(e.openBlock(),e.createElementBlock("text",{key:1},"订单号:SD"+e.toDisplayString(e.unref(d).orderId),1)),e.createElementVNode("icon",{onClick:h,class:"copy"})])])]),e.createVNode(Jt,{detailsData:e.unref(d)},null,8,["detailsData"]),e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"wayCon"},[e.createElementVNode("view",{class:"item"},[e.createTextVNode(" 物品名称 "),e.createElementVNode("text",null,e.toDisplayString(e.unref(d).goodsType),1)]),e.createElementVNode("view",{class:"item"},[e.createTextVNode(" 物品重量 "),e.createElementVNode("text",null,e.toDisplayString(e.unref(d).weight)+"kg",1)]),e.createElementVNode("view",{class:"item"},[e.createTextVNode(" 物品体积 "),e.createElementVNode("text",null,e.toDisplayString(e.unref(d).volume)+"m³",1)]),e.createElementVNode("view",{class:"item"},[e.createTextVNode(" 总计金额 "),e.createElementVNode("text",null,e.toDisplayString(e.unref(d).freight)+"元",1)])]),e.createElementVNode("view",{class:"wayCon remark"},[e.createElementVNode("view",{class:"item"},"备注"),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,e.toDisplayString(e.unref(d).remark?e.unref(d).remark:"暂无"),1)])]),e.createElementVNode("view",{class:"wayCon"},[e.createElementVNode("view",{class:"item"},[e.createTextVNode(" 付款方式 "),e.createElementVNode("text",null,e.toDisplayString(1===e.unref(d).paymentMethod?"寄付":"到付"),1)]),5===e.unref(l)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"item"},[e.createTextVNode("签收人"),e.createElementVNode("text",null,e.toDisplayString(1===e.unref(d).paymentMethod?"本人":"代收"),1)])):e.createCommentVNode("",!0)])]),4===e.unref(l)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"boxBg"},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("text",null,"签收人"),e.createElementVNode("view",{class:"goodsSelect",onClick:g},[e.createElementVNode("text",{class:"textInfo"},e.toDisplayString(1===e.unref(d).signRecipient?"本人":"代收"),1),e.createElementVNode("icon",{class:"nextIcon"})])])])):e.createCommentVNode("",!0),4===e.unref(l)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"btnBox subBtnBox"},[e.createElementVNode("button",{class:"btn-default uni-sub-btn",onClick:a[0]||(a[0]=t=>p(e.unref(d).id))},"拒收"),e.createElementVNode("button",{class:"btn-default",onClick:a[1]||(a[1]=t=>f(e.unref(d).id))},"签收")])):e.createCommentVNode("",!0),2===e.unref(l)||5===e.unref(l)?(e.openBlock(),e.createElementBlock("view",{key:2,class:"btnBox"},[e.createElementVNode("button",{class:"btn-default uni-mini",onClick:y},"订单跟踪")])):e.createCommentVNode("",!0),e.createVNode(Yt,{ref_key:"sign",ref:i,onGetSignType:v,type:e.unref(u)},null,8,["type"])])],64))}},[["__scopeId","data-v-030dc3f2"]]);var Xt=a({__name:"index",setup(t){const a=getCurrentPages(),n=a[a.length-1].$page.options,o=n.type,l=n.isDelivery,i=l?"签收成功":"取件成功";let r=e.ref(!0);e.onMounted((()=>{}));const s=()=>{uni.redirectTo({url:"/pages/details/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:e.unref(i),onGoBack:s,isLeftText:e.unref(r)},null,8,["title","isLeftText"]),e.createElementVNode("view",{class:"pickUp"},[e.createElementVNode("icon"),e.createElementVNode("view",null,e.toDisplayString(e.unref(l)?"签收成功":"取件成功"),1),e.createElementVNode("view",{class:"btnBox"},["1"===e.unref(o)?(e.openBlock(),e.createElementBlock("navigator",{key:0,url:"/pages/pay/scanPay","open-type":"redirect"},"去收款")):(e.openBlock(),e.createElementBlock("navigator",{key:1,url:"/pages/index/index","open-type":"redirect"},"返回首页"))])])],64))}},[["__scopeId","data-v-5e4a4cbf"]]);const qt={__name:"uppop",props:{tipInfo:{type:String,default:""}},setup(t,{expose:a,emit:n}){const o=e.ref(),l=()=>{uni.navigateTo({url:"/pages/delivery/index"})};return a({dialogOpen:()=>{o.value.open()}}),(t,a)=>{const n=c(e.resolveDynamicComponent("uni-popup"),Ye);return e.openBlock(),e.createBlock(n,{ref_key:"uppop",ref:o,type:"center",animation:!1,class:"comPop","mask-click":!1},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"con"},"用户已支付!"),e.createElementVNode("view",null,[e.createElementVNode("button",{onClick:l},"返回主页")])])),_:1},512)}}};var Kt=a({__name:"scanPay",setup(t){const a=E().state.user,n=e.ref(),o=e.ref("扫码支付"),l=getCurrentPages();l[l.length-1].$page.options.type;let i=e.ref(0),r=e.ref(""),c=e.ref(null);e.onMounted((()=>{u(),c.value=setInterval((()=>{d()}),1e4)}));const d=async()=>{var e;await(e=a.detailsData.orderId,X({url:`/pays/status/${e}`,method:"get"})).then((e=>{200===e.code&&e.data&&(n.value.dialogOpen(),clearInterval(c.value))})).catch((e=>{}))},u=async()=>{const e=a.payData,t={enterpriseId:"1001",memo:e.memo?e.memo:"备注",payMethod:0===i.value?2:1,productOrderNo:e.productOrderNo,tradingAmount:e.tradingAmount};await(e=>X({url:"/pays/qrCode/get",method:"post",params:e}))(t).then((e=>{r.value=e.data.qrCode.replace(/[\r\n]/g,"")})).catch((e=>{}))};return(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:o.value,onGoBack:t.goBack,isLeftText:e.unref(true)},null,8,["title","onGoBack","isLeftText"]),e.createElementVNode("view",{class:"pageBox scanPay"},[e.createElementVNode("view",{class:"boxBg srCan"},[e.createElementVNode("image",{src:e.unref(r)},null,8,["src"]),e.createElementVNode("view",{class:"text"},[e.createElementVNode("text",null,"¥"),e.createTextVNode(" "+e.toDisplayString(e.unref(a).payData.tradingAmount),1)]),e.createElementVNode("view",null,"支付运费")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(nt),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"boxBg payBox",key:a},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",null,[e.createElementVNode("icon"),e.createTextVNode(e.toDisplayString(t.label),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"checkRadio"},[e.createElementVNode("radio",{value:String(a),class:e.normalizeClass(a===e.unref(i)?"active":""),checked:a===e.unref(i),onClick:e=>(e=>{i.value=e,s("log","at pages/pay/scanPay.vue:92",i.value),u()})(a)},null,10,["value","checked","onClick"])])])])])))),128))]),e.createVNode(qt,{ref_key:"uppop",ref:n},null,512)],64))}},[["__scopeId","data-v-5bb782e6"]]);var ea=a({name:"UniRate",props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},disabledColor:{type:String,default:"#c0c0c0"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},readonly:{type:[Boolean,String],default:!1},allowHalf:{type:[Boolean,String],default:!1},touchable:{type:[Boolean,String],default:!0}},data:()=>({valueSync:"",userMouseFristMove:!0,userRated:!1,userLastRate:1}),watch:{value(e){this.valueSync=Number(e)},modelValue(e){this.valueSync=Number(e)}},computed:{stars(){const e=this.valueSync?this.valueSync:0,t=[],a=Math.floor(e),n=Math.ceil(e);for(let o=0;o<this.max;o++)a>o?t.push({activeWitch:"100%"}):n-1===o?t.push({activeWitch:100*(e-a)+"%"}):t.push({activeWitch:"0"});return t},marginNumber(){return Number(this.margin)}},created(){this.valueSync=Number(this.value||this.modelValue),this._rateBoxLeft=0,this._oldValue=null},mounted(){setTimeout((()=>{this._getSize()}),100)},methods:{touchstart(e){if(this.readonly||this.disabled)return;const{clientX:t,screenX:a}=e.changedTouches[0];this._getRateCount(t||a)},touchmove(e){if(this.readonly||this.disabled||!this.touchable)return;const{clientX:t,screenX:a}=e.changedTouches[0];this._getRateCount(t||a)},mousedown(e){},mousemove(e){},mouseleave(e){},_getRateCount(e){this._getSize();const t=Number(this.size);if(isNaN(t))return new Error("size 属性只能设置为数字");const a=e-this._rateBoxLeft;let n=parseInt(a/(t+this.marginNumber));n=n<0?0:n,n=n>this.max?this.max:n;const o=parseInt(a-(t+this.marginNumber)*n);let l=0;(this._oldValue!==n||this.PC)&&(this._oldValue=n,l=this.allowHalf?o>t/2?n+1:n+.5:n+1,l=Math.max(.5,Math.min(l,this.max)),this.valueSync=l,this._onChange())},_onChange(){this.$emit("input",this.valueSync),this.$emit("update:modelValue",this.valueSync),this.$emit("change",{value:this.valueSync})},_getSize(){uni.createSelectorQuery().in(this).select(".uni-rate").boundingClientRect().exec((e=>{e&&(this._rateBoxLeft=e[0].left)}))}}},[["render",function(t,a,n,o,i,r){const s=c(e.resolveDynamicComponent("uni-icons"),l);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{ref:"uni-rate",class:"uni-rate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.stars,((t,o)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-rate__icon",{"uni-cursor-not-allowed":n.disabled}]),style:e.normalizeStyle({"margin-right":r.marginNumber+"px"}),key:o,onTouchstart:a[0]||(a[0]=e.withModifiers(((...e)=>r.touchstart&&r.touchstart(...e)),["stop"])),onTouchmove:a[1]||(a[1]=e.withModifiers(((...e)=>r.touchmove&&r.touchmove(...e)),["stop"])),onMousedown:a[2]||(a[2]=e.withModifiers(((...e)=>r.mousedown&&r.mousedown(...e)),["stop"])),onMousemove:a[3]||(a[3]=e.withModifiers(((...e)=>r.mousemove&&r.mousemove(...e)),["stop"])),onMouseleave:a[4]||(a[4]=(...e)=>r.mouseleave&&r.mouseleave(...e))},[e.createVNode(s,{color:n.color,size:n.size,type:n.isFill?"star-filled":"star"},null,8,["color","size","type"]),e.createElementVNode("view",{style:e.normalizeStyle({width:t.activeWitch}),class:"uni-rate__icon-on"},[e.createVNode(s,{color:n.disabled?n.disabledColor:n.activeColor,size:n.size,type:"star-filled"},null,8,["color","size"])],4)],38)))),128))],512)])}],["__scopeId","data-v-cd97159c"]]);var ta=a({__name:"index",setup(t){const a=E();let n=a.state.user.userBase;e.onMounted((()=>{s("log","at pages/my/index.vue:85",n)}));const o=()=>{uni.removeStorageSync("token"),uni.clearStorage(),a.commit("setFootStatus",0),uni.redirectTo({url:"/pages/login/user"})},l=()=>{uni.navigateTo({url:"/pages/my/qrCode"}),uni.showToast({title:"程序员哥哥正在实现中",duration:1e3,icon:"none"})};return(t,a)=>{const i=c(e.resolveDynamicComponent("uni-rate"),ea);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"navFrame"},[e.createElementVNode("view",{class:"nav-bg mnav-bg"},[e.createElementVNode("view",{class:"headBg"}),e.createElementVNode("view",{class:"header"},[e.createElementVNode("view",{class:"headBox"},[e.createElementVNode("view",{class:"head"},[""===e.unref(n).avatar?(e.openBlock(),e.createElementBlock("icon",{key:0})):(e.openBlock(),e.createElementBlock("image",{key:1,src:e.unref(n).avatar},null,8,["src"]))]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"tit"},e.toDisplayString(e.unref(n).name),1),e.createElementVNode("view",null,e.toDisplayString(e.unref(n).account),1),e.createElementVNode("view",{class:"address"},[e.createElementVNode("icon"),e.createTextVNode(" "+e.toDisplayString(e.unref(n).agencyName?e.unref(n).agencyName:"暂无"),1)])])]),e.createElementVNode("view",{class:"QR",onClick:l},[e.createElementVNode("image",{src:"/static/qr.png"})])])]),e.createElementVNode("view",{class:"boxBg headTop"},[e.createElementVNode("view",{class:"headItem"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"我的评价"),e.createElementVNode("view",{class:"star"},[e.createVNode(i,{readonly:!0,"allow-half":"",value:4.5,"active-color":"#EF4F3F",color:"#F4F4F4"},null,8,["value"]),e.createElementVNode("text",null,e.toDisplayString(4.5),1)])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"排班时间"),e.createElementVNode("text",null,e.toDisplayString(e.unref(he)(e.unref(n).startTime))+"-"+e.toDisplayString(e.unref(he)(e.unref(n).endTime)),1)])])]),e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"headItem"},[e.createElementVNode("navigator",{url:"/pages/history/index","open-type":"redirect"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"历史取派"),e.createElementVNode("text",null,[e.createElementVNode("icon",{class:"nextIcon"})])])]),e.createElementVNode("navigator",{url:"/pages/my/map","open-type":"redirect"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"作业范围"),e.createElementVNode("text",null,[e.createElementVNode("icon",{class:"nextIcon"})])])])])])]),e.createElementVNode("view",{class:"footBtn"},[e.createElementVNode("view",{class:"btnBox"},[e.createElementVNode("button",{class:"btn-default",onClick:o},"退出登录")])]),e.createVNode(ce,{pagePath:"pages/my/index"})],64)}}},[["__scopeId","data-v-c180c1e2"]]);var aa=a({__name:"map",setup(t){const a=e.ref("作业范围"),n=e.ref(null),o=e.ref(null),l=e.reactive([{points:[],fillColor:"#EF4F3F20",strokeColor:"#EF4F3F",strokeWidth:2,zIndex:1,dottedLine:!0}]);e.onMounted((()=>{i()}));const i=async()=>{var e;await X({url:"/users/scope",method:"get",params:e}).then((e=>{200===e.code&&(l[0].points=e.data.polygon,s("log","at pages/my/map.vue:58",l),n.value=l[0].points[0].latitude,o.value=l[0].points[0].longitude)})).catch((()=>{}))},r=()=>{uni.redirectTo({url:"/pages/my/index"})};return(t,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:a.value,onGoBack:r},null,8,["title"]),e.createElementVNode("view",{class:"content"},[e.createElementVNode("map",{class:"mapBox",latitude:n.value,longitude:o.value,polygons:l,scale:"12"},null,8,["latitude","longitude","polygons"])])],64))}},[["__scopeId","data-v-10919f30"]]);var na=a({__name:"qrCode",setup(t){const a=e.ref("专属二维码");e.onMounted((()=>{}));const n=()=>{uni.redirectTo({url:"/pages/my/index"})};return(t,o)=>{const l=c(e.resolveDynamicComponent("uni-rate"),ea);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:a.value,onGoBack:n},null,8,["title"]),e.createElementVNode("view",{class:"pageBox qrCode"},[e.createElementVNode("view",{class:"boxBg"},[e.createElementVNode("view",{class:"qrHead"},[e.createElementVNode("view",{class:"head"}),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"tit"},"神领快递员-张全蛋"),e.createElementVNode("view",{class:"star"},[e.createVNode(l,{readonly:!0,"allow-half":"",value:4.5,"active-color":"#EF4F3F",color:"#F4F4F4"},null,8,["value"]),e.createElementVNode("text",null,"4.7")])])]),e.createElementVNode("view",{class:"img"},[e.createElementVNode("image",{src:"/static/scanPay.png"})]),e.createElementVNode("view",null,"扫码快速下单")])])],64)}}},[["__scopeId","data-v-28cc9f40"]]);var oa=a({__name:"orderMap",setup(t){const a=E().state.user,n=e.ref("订单追踪"),o=e.ref(39.91667),l=e.ref(116.41667),i=e.reactive([{id:1,latitude:39.91667,longitude:116.41667,iconPath:"../../static/address.png",width:90,height:90,joinCluster:!0,title:"已签收",callout:{content:"已签收",color:"#2A2929",fontSize:17,borderRadius:15,padding:10,bgColor:"#fff",display:"ALWAYS"}},{id:2,latitude:32.05,longitude:118.78333,iconPath:"../../static/address.png",width:90,height:90,joinCluster:!0,title:"已发货",callout:{content:"已发货",color:"#2A2929",fontSize:17,borderRadius:15,padding:10,bgColor:"#fff",display:"ALWAYS"}}]),r=e.reactive([{points:[{longitude:116.41667,latitude:39.91667},{longitude:118.78333,latitude:32.05}],color:"#EF4F3F",width:12}]);e.onMounted((()=>{c()}));const c=async()=>{var e;await(e=a.detailsData.transportOrderId,X({url:`/tasks/tracks/${e}`,method:"get"})).then((e=>{200===e.code&&(s("log","at pages/details/orderMap.vue:115",e.data),r[0].points=e.data.data,s("log","at pages/details/orderMap.vue:117",r.points))})).catch((e=>{}))},d=()=>{uni.redirectTo({url:"/pages/my/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{title:n.value,onGoBack:d},null,8,["title"]),e.createElementVNode("view",{class:"content"},[e.createElementVNode("map",{class:"mapBox",latitude:o.value,longitude:l.value,markers:i,polyline:r,scale:"4"},null,8,["latitude","longitude","markers","polyline"])]),e.createElementVNode("view",{class:"bottmBox"},[e.createElementVNode("view",{class:"orderList"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"iconBg harvest"},"收"),e.createElementVNode("view",{class:"rtext"},[e.createElementVNode("view",{class:"tit"},"已签收"),e.createElementVNode("view",{class:"time"},"2022-06-23 19:32:08"),e.createElementVNode("view",{class:"info"},"快件已签收,如有疑问请电联快递员【刘印强,电话 13333090067】感谢使用神领。")])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"iconBg"},[e.createElementVNode("icon",{class:"transport"})]),e.createElementVNode("view",{class:"rtext"},[e.createElementVNode("view",{class:"tit"},"运输中"),e.createElementVNode("view",{class:"time"},"2022-06-19 19:32:23"),e.createElementVNode("view",{class:"info"},"【上海浦东区公司】已取件, 取件人【刘印强,电话 13333090067】")])]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"iconBg"},[e.createElementVNode("icon",{class:"pickUp"})]),e.createElementVNode("view",{class:"rtext"},[e.createElementVNode("view",{class:"tit"},"已取件"),e.createElementVNode("view",{class:"time"},"2022-06-19 19:32:23"),e.createElementVNode("view",{class:"info"},"【上海浦东区公司】已取件, 取件人【刘印强,电话 13333090067】")])])])])],64))}},[["__scopeId","data-v-15bf39a7"]]);__definePage("pages/start/index",n),__definePage("pages/login/user",q),__definePage("pages/login/index",ee),__definePage("pages/index/index",xe),__definePage("pages/search/index",Qe),__definePage("pages/history/index",vt),__definePage("pages/news/index",_t),__definePage("pages/news/detail",Nt),__definePage("pages/news/system",bt),__definePage("pages/freight/index",St),__definePage("pages/delivery/index",Ot),__definePage("pages/pickup/index",Gt),__definePage("pages/turnorder/index",Ht),__definePage("pages/cancel/index",Ut),__definePage("pages/cancel/cause",Wt),__definePage("pages/details/index",Zt),__definePage("pages/details/waybill",Qt),__definePage("pages/pay/index",Xt),__definePage("pages/pay/scanPay",Kt),__definePage("pages/my/index",ta),__definePage("pages/my/map",aa),__definePage("pages/my/qrCode",na),__definePage("pages/details/orderMap",oa);const la={onLaunch:function(){s("warn","at App.vue:4","当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!"),s("log","at App.vue:5","App Launch")},onShow:function(){s("log","at App.vue:8","App Show")},onHide:function(){s("log","at App.vue:11","App Hide")}};var ia,ra={namespaced:!0,state:()=>({userBase:{},loacation:{},pages:0,page:1,token:"",taskId:"",detailsData:{},taskType:1,taskStatus:0,tabIndex:0,reasonVal:"",reasonDesc:"",orderDistance:null,orderTime:null,filterOverTime:null,deliveryData:[],cancelData:[],alreadyData:[],isRedistribute:!1,isFiltrate:!1,taskDetailData:{},selectTaskData:[],payData:{}}),mutations:{setToken(e,t){e.token=t},setUserInfo(e,t){e.userBase=t},setlLacation(e,t){e.loacation=t},setPage(e,t){e.page=t},setPages(e,t){e.pages=t},setOrderDistance(e,t){e.orderDistance=t},setOrderTime(e,t){e.orderTime=t},setFilterOverTime(e,t){e.filterOverTime=t},setDeliveryData(e,t){e.deliveryData=t},setAlreadyData(e,t){e.alreadyData=t},setCancelData(e,t){e.cancelData=t},setTaskId(e,t){e.taskId=t},setTaskType(e,t){e.taskType=t},setTaskDetailData(e,t){e.taskDetailData=t},setReasonVal(e,t){e.reasonVal=t},setReasonDesc(e,t){e.reasonDesc=t},setRedistribute(e,t){e.isRedistribute=t},setSelectTaskData(e,t){e.selectTaskData=t},setIsFiltrate(e,t){e.isFiltrate=t},setTabIndex(e,t){e.tabIndex=t},setTaskStatus(e,t){e.taskStatus=t},setPayData(e,t){e.payData=t},setDetailsData(e,t){e.detailsData=t}},actions:{async GetUsersInfo({state:e,commit:t},a){var n;""!==e.token&&await X({url:"/users/get",method:"get",params:n}).then((e=>{t("setUserInfo",e.data)})).catch((e=>{}))}},getters:{}},sa=(ia=__spreadProps(__spreadValues({},{state:{footStatus:0},mutations:{setFootStatus(e,t){e.footStatus=t}},actions:{},getters:{}}),{modules:{user:ra}}),new Z(ia));const ca=function(t,a){t.mpTye="app",t.render=()=>{};const n=e.createVueApp(t,a);n.provide("__globalStyles",__uniConfig.styles);const o=n.mount;return n.mount=e=>o.call(n,e),n}(la);ca.use(sa),ca.mount("#app")}(Vue,uni.VueShared);
|