diff --git a/common/js/api.js b/common/js/api.js index e61e37b..72481b0 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -20,6 +20,10 @@ let API = { Home(data, success, fail, boolean=true){ API.sendRequest('post', data, '/api/InvoiceIssuance/getList', success, fail, boolean) }, + // 验证是否缴费 + validateFeePay(data, success, fail, boolean=true){ + API.sendRequest('post', data, '/api/InvoiceIssuance/validateFeePay', success, fail, boolean) + }, // 手机号获取验证码 sendSms(data, success, fail, boolean=true){ API.sendRequest('post', data, '/wechat/wechat/sendSms', success, fail, boolean) @@ -62,11 +66,11 @@ let API = { ...requestObj, success(res) { - if(res.data.code == 1){ + if(res.data.code == 1||res.data.code == -8){ success && success(res.data); return; } - if(res.data.code == -14){ + if(res.data.code == -14||res.data.code == -997){ uni.removeStorageSync('AccessToken'); uni.removeStorageSync('openid'); setTimeout(()=>{ @@ -76,10 +80,12 @@ let API = { },2600) } - uni.showToast({ - title: res.data.msg || res.msg, - icon: 'none' - }) + if (url !== '/api/InvoiceIssuance/validateFeePay') { + uni.showToast({ + title: res.data.msg || res.msg, + icon: 'none' + }) + } // if(res.data.code==403 || res.data.code==201){ // uni.removeStorageSync('user_token'); diff --git a/common/js/wxApi.js b/common/js/wxApi.js index 6826988..74543f7 100644 --- a/common/js/wxApi.js +++ b/common/js/wxApi.js @@ -5,9 +5,7 @@ const wxApi = { */ wxRegister(callback) { let _this = this; - // const u = 'https://intp.xingtongworld.com/wechat/#/' let signUrl = encodeURIComponent(location.href.split("#")[0]); - // let signUrl = u.split("#")[0]; let jsApiList = ["chooseInvoiceTitle"]; // 接口请求传入路径 API.getJsSdkData({url:signUrl}, res => { diff --git a/pages/Invoicing/Invoicing.vue b/pages/Invoicing/Invoicing.vue index 7ce7e2f..327cd2c 100644 --- a/pages/Invoicing/Invoicing.vue +++ b/pages/Invoicing/Invoicing.vue @@ -4,7 +4,8 @@ - + + {{ index + 1 }} {{ index + 1 }} @@ -23,28 +24,37 @@ 开票信息: - - + + - - + + + + + - - + + - - - - {{list1.expire_time}} - + + + + {{list1.expire_time}} + - + + 请选择账期 + + + 接收方式: - + - + @@ -57,13 +67,18 @@ 导入发票抬头 - - + + + + + - + - + @@ -72,28 +87,31 @@ 开票信息 - - + {{project_id1(list1.project_id)}} - + {{amount}} 抬头信息 - - + + + + - + {{list2.title}} - + {{list2.tax_number}} 接收方式 - + {{list1.email}} - + {{list1.phone}} @@ -103,17 +121,40 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + 取消 + 更多账期 + 确认 + + + + + {{item}}年 + + + {{item < 10 ? '0' + item : item}}月 + + + + @@ -123,13 +164,34 @@ import wxApi from "@/common/js/wxApi.js" export default { data() { - const currentDate = this.getDate({format: true}) + const date = new Date() + const years = [] + const year = date.getFullYear() + const months = [] + const month = date.getMonth() + 1 + // 获取年份 + for (let i = 1990; i <= year + 1000; i++) { + years.push(i) + } + // 获取月份 + for (let i = 1; i <= 12; i++) { + months.push(i) + } + // 获取当前年份 + const currentYearIndex = years.indexOf(year); return { - date: currentDate, + years, + year, + months, + month, + selectedYear: year, // 当前选择的年份 + selectedMonth: month, // 当前选择的月份 + pickerValue: [currentYearIndex, month - 1], + indicatorStyle: `height: 50px;`, // 表单数据 list1:{ project_id: '',//开票项目 - pucode_id: '',//用户编号id + pucode: '',//用户编号id merge: '',//合并开票 expire_time: '',//到期时间 email: '',//邮箱 @@ -145,7 +207,7 @@ bank_name:'',//开户行 bank_account:''//账户 }, - amount: 9,//开票总金额 + amount: "",//开票总金额 // 开票信息手机号输入颜色 styles: { color:"#d5213c" @@ -175,6 +237,17 @@ onLoad() { this.dropdown() }, + watch: { + // 监听selectedYear和selectedMonth的变化,以更新pickerValue + selectedYear(newVal) { + const yearIndex = this.years.indexOf(newVal); + this.pickerValue[0] = yearIndex; // 更新年份的索引 + }, + selectedMonth(newVal) { + const monthIndex = newVal - 1; // 月份索引 + this.pickerValue[1] = monthIndex; // 更新月份的索引 + } + }, methods: { // 获取开票信息的下拉数据 dropdown(){ @@ -216,34 +289,54 @@ if(this.stepsIndex == 1){ if(!this.list1.project_id){ uni.showToast({title: '请选择开票项目',icon: 'none'}); - this.stepsIndex = 0 + this.stepsIndex = 0; return } if(!this.list1.merge){ uni.showToast({title: '请选择是否合并开票',icon: 'none'}); - this.stepsIndex = 0 + this.stepsIndex = 0; return } - if(!this.list1.pucode_id){ + if(!this.list1.pucode){ uni.showToast({title: '请选择或输入用户编号',icon: 'none'}); - this.stepsIndex = 0 + this.stepsIndex = 0; return } if(!this.list1.expire_time){ uni.showToast({title: '请选择到期时间',icon: 'none'}); - this.stepsIndex = 0 + this.stepsIndex = 0; return } if(!this.list1.phone){ uni.showToast({title: '请输入手机号',icon: 'none'}); - this.stepsIndex = 0 + this.stepsIndex = 0; return } - if(!this.list1.email){ - uni.showToast({title: '请输入邮箱号',icon: 'none'}); - this.stepsIndex = 0 + // 使用正则表达式过滤非数字字符 + const phonePattern = /^1[3-9]\d{9}$/; + if (!phonePattern.test(this.list1.phone)) { + uni.showToast({ + title: '您输入的手机号格式有误', + icon: 'none' + }); + this.stepsIndex = 0; return } + const emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; + if (!emailPattern.test(this.list1.email)&&this.list1.email) { + uni.showToast({ + title: '请输入有效的邮箱地址', + icon: 'none' + }); + this.stepsIndex = 0; + return + } + // if(!this.list1.email){ + // uni.showToast({title: '请输入邮箱号',icon: 'none'}); + // this.stepsIndex = 0; + // return + // } + this.pay() this.form1 = this.$refs.form.modelValue; } @@ -258,76 +351,62 @@ this.stepsIndex = 1 return } - if(!this.list2.tax_number){ + if(!this.list2.tax_number&&this.list2.type=='0'){ uni.showToast({title: '请输入税号',icon: 'none'}); this.stepsIndex = 1 return } + const taxiD1 = /^([A-Z0-9]{18})$/ + if (!taxiD1.test(this.list2.tax_number)&&this.list2.type=='0') { + uni.showToast({ + title: '请输入有效的税号', + icon: 'none' + }); + this.stepsIndex = 1; + return + } this.form2 = this.$refs.form1.modelValue; } }, // 获取日期值 - bindDateChange(e) { - // let value = e.detail.value; - // this.list1.expire_time = value.replace(/-/g, ''); - this.list1.expire_time = e.detail.value; + showPopup() { + this.$refs.popup.open(); + }, + // 进行滚动日期时获取数据 + onPickerChange(e){ + const val = e.detail.value; + this.selectedYear = this.years[val[0]]; + this.selectedMonth = this.months[val[1]]; + }, + // 确认日期时进行赋值 + confirm() { + const formattedMonth = this.selectedMonth < 10 ? '0' + this.selectedMonth : this.selectedMonth; // 格式化月份 + this.list1.expire_time = `${this.selectedYear}-${formattedMonth}`; // 赋值并格式化为YYYY-MM + this.$refs.popup.close(); // 关闭弹窗 + }, + // 关闭日期 + cancel() { + this.$refs.popup.close(); // 关闭弹窗 + }, + // 获取是否合并开票数据 + radioChange(e){ + this.list1.merge = e.detail.value; + }, + radioChange2(e){ + this.list2.type = e.detail.value; }, // 限制手机号 onInput(event) { - // 使用正则表达式过滤非数字字符 - const phonePattern = /^1[3-9]\d{9}$/; - if (!phonePattern.test(event.detail.value) && event.detail.value) { - uni.showToast({ - title: '您输入的手机号格式有误', - icon: 'none' - }); - this.list1.phone = ''; // 清空输入框 - }else{ - this.list1.phone = event.detail.value - } + this.list1.phone = event.detail.value }, // 限制邮箱 validateEmail(event) { - const emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; - if (!emailPattern.test(event.detail.value) && event.detail.value) { - uni.showToast({ - title: '请输入有效的邮箱地址', - icon: 'none' - }); - this.list1.email = ''; // 清空输入框 - }else{ - this.list1.email = event.detail.value - } + this.list1.email = event.detail.value }, // 限制税号 taxiD(event){ - const taxiD1 = /^([A-Z0-9]{18})$/ - if (!taxiD1.test(event.detail.value) && event.detail.value) { - uni.showToast({ - title: '请输入有效的税号', - icon: 'none' - }); - this.list2.tax_number = ''; // 清空输入框 - }else{ - this.list2.tax_number = event.detail.value - } - }, - // 显示日期 - getDate(type) { - const date = new Date(); - let year = date.getFullYear(); - let month = date.getMonth() + 1; - let day = date.getDate(); - - if (type === 'start') { - year = year - 60; - } else if (type === 'end') { - year = year + 2; - } - month = month > 9 ? month : '0' + month; - day = day > 9 ? day : '0' + day; - return `${year}${month}${day}`; + this.list2.tax_number = event.detail.value }, //获取抬头 Obtain(){ @@ -363,6 +442,26 @@ }) // #endif }, + pay(){ + let data = { + pucode: this.list1.pucode, + expire_time: this.list1.expire_time, + project_id: this.list1.project_id + } + if(!this.amount){ + this.stepsIndex = 0; + } + API.validateFeePay(data, res => { + this.amount = res.data.amount + if(!this.amount){ + this.$refs.inputDialog.open(); + this.stepsIndex = 0; + return + }else{ + this.stepsIndex = 1; + } + }) + }, // 数据提交 submitForm() { let list1 = this.form1; @@ -376,7 +475,7 @@ } let data = { project_id: list1.project_id, - pucode_id: list1.pucode_id, + pucode: list1.pucode, expire_time: list1.expire_time, mobile: +list1.phone,// + 是为了把字符串转换为数字类型,因为组件不好设置数字类型 email: list1.email, @@ -561,7 +660,34 @@ /deep/.uni-data-checklist .checklist-group{ height: 72rpx; } -.uni-forms-item__label{ - width: 160rpx !important; +/deep/.uni-forms-item__label{ + font-size: 30rpx; + color: #000 !important; +} +/deep/.uni-radio-input{ + width: 35rpx; + height: 35rpx; + margin-left: 20rpx; +} +/deep/.uni-select__input-placeholder{ + color: #999; + font-size: 28rpx; +} +/deep/.uni-easyinput__placeholder-class{ + font-size: 28rpx; +} +.popup-header { + display: flex; + justify-content: space-between; + padding: 10px; +} +.picker-view { + width: 750rpx; + height: 600rpx; + margin-top: 20rpx; +} +.item { + line-height: 100rpx; + text-align: center; } diff --git a/pages/index/index.vue b/pages/index/index.vue index e76d61a..75d3337 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -16,7 +16,7 @@ - 业务流水号{{item.serial_number}} + {{item.serial_number}} {{item.status}} diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index 02e9f21..cb77bbb 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -1,2 +1,2 @@ Waterinvoice_uiapp
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/index.e90e0ff2.js b/unpackage/dist/build/h5/static/js/index.1e9aec6e.js similarity index 93% rename from unpackage/dist/build/h5/static/js/index.e90e0ff2.js rename to unpackage/dist/build/h5/static/js/index.1e9aec6e.js index 5e4cba5..9b0c0b0 100644 --- a/unpackage/dist/build/h5/static/js/index.e90e0ff2.js +++ b/unpackage/dist/build/h5/static/js/index.1e9aec6e.js @@ -1 +1 @@ -(function(n){function e(e){for(var o,r,c=e[0],u=e[1],g=e[2],d=0,l=[];d3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",t,"/wechat/Wechat/getJsSdkData",e,n,a)},getQrCode:function(t,e,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",t,"/api/InvoiceIssuance/getQrCode",e,n,a)},getApplyData:function(t,e,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",t,"/api/InvoiceIssuance/getApplyData",e,n,a)},Home:function(t,e,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",t,"/api/InvoiceIssuance/getList",e,n,a)},validateFeePay:function(t,e,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",t,"/api/InvoiceIssuance/validateFeePay",e,n,a)},sendSms:function(t,e,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",t,"/wechat/wechat/sendSms",e,n,a)},getWxCode:function(t,e,n){c.sendRequest("get",t,"/wechat/login/getWxCode",e,n)},wx:function(t,e,n){c.sendRequest("get",t,"/wechat/login/wx",e,n)},request:function(t,e,n,a){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c.sendRequest("post",e,t,n,a,i)},sendRequest:function(t,e,n,a,c,s){var r="";r="post"==t?"application/x-www-form-urlencoded":"application/json";var d={};s&&(d.header={"Content-Type":r,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,i.default)((0,i.default)({url:o+n,method:t,data:e},d),{},{success:function(t){1!=t.data.code&&-8!=t.data.code?(-14!=t.data.code&&-997!=t.data.code||(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),"/api/InvoiceIssuance/validateFeePay"!==n&&uni.showToast({title:t.data.msg||t.msg,icon:"none"})):a&&a(t.data)}}))}},s=c;e.default=s},7694:function(t,e,n){"use strict";var a=n("1d18"),i=n.n(a);i.a},d3e4:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.invoiced_box[data-v-3cea382c]{padding:%?60?%;margin:0 %?30?%;background-color:#fff}.text-center[data-v-3cea382c]{text-align:center}.title[data-v-3cea382c]{margin-top:%?40?%;font-size:%?34?%;font-weight:700}.title1[data-v-3cea382c]{margin-top:%?40?%;font-size:%?32?%;color:#acacac}',""]),t.exports=e},d61c:function(t,e,n){"use strict";n.r(e);var a=n("32b4"),i=n("1c41");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("7694");var c=n("f0c5"),s=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"3cea382c",null,!1,a["a"],void 0);e["default"]=s.exports}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-Invoiced-Invoiced.497e6493.js b/unpackage/dist/build/h5/static/js/pages-Invoiced-Invoiced.497e6493.js deleted file mode 100644 index 13827ba..0000000 --- a/unpackage/dist/build/h5/static/js/pages-Invoiced-Invoiced.497e6493.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Invoiced-Invoiced"],{"0692":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("4d55")),o={data:function(){return{bool:!1,img:""}},onLoad:function(t){var e=this;if(this.bool="true"===t.bool,t.id){var n={id:t.id};a.default.getQrCode(n,(function(t){e.img=t.data.qrCodeImage}))}},methods:{toindex:function(){uni.redirectTo({url:"/pages/index/index"})}}};e.default=o},"1c41":function(t,e,n){"use strict";n.r(e);var i=n("0692"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"1d18":function(t,e,n){var i=n("d3e4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("beae92c8",i,!0,{sourceMap:!1,shadowMode:!1})},"32b4":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticStyle:{padding:"30rpx 0px 0rpx 0px"}},[1==t.bool?n("v-uni-view",[n("v-uni-view",{staticClass:"invoiced_box"},[n("v-uni-view",{staticClass:"text-center"},[n("v-uni-icon",{attrs:{type:"success",size:"120rpx",color:"#05c160"}})],1),n("v-uni-view",{staticClass:"text-center title"},[t._v("提交成功")]),n("v-uni-view",{staticClass:"text-center title1"},[t._v("开发票成功后,请留意!")])],1),n("v-uni-view",{staticStyle:{margin:"140rpx 80rpx 0px 80rpx","font-weight":"bold"}},[n("v-uni-button",{staticClass:"button",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toindex.apply(void 0,arguments)}}},[t._v("查看申请")])],1)],1):n("v-uni-view",[n("v-uni-view",{staticClass:"text-center",staticStyle:{"padding-top":"100rpx"}},[t.img?n("v-uni-image",{staticStyle:{width:"400rpx"},attrs:{src:t.img,mode:"widthFix"}}):t._e()],1),n("v-uni-view",{staticClass:"text-center title1",staticStyle:{color:"#878787"}},[t._v("发票已开具,请扫描二维码获取发票!")])],1)],1)},a=[]},"4d55":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("5530")),o="https://intp.xingtongworld.com",c={baseUrl:o,getJsSdkData:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",t,"/wechat/Wechat/getJsSdkData",e,n,i)},getQrCode:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",t,"/api/InvoiceIssuance/getQrCode",e,n,i)},getApplyData:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",t,"/api/InvoiceIssuance/getApplyData",e,n,i)},Home:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",t,"/api/InvoiceIssuance/getList",e,n,i)},sendSms:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",t,"/wechat/wechat/sendSms",e,n,i)},getWxCode:function(t,e,n){c.sendRequest("get",t,"/wechat/login/getWxCode",e,n)},wx:function(t,e,n){c.sendRequest("get",t,"/wechat/login/wx",e,n)},request:function(t,e,n,i){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c.sendRequest("post",e,t,n,i,a)},sendRequest:function(t,e,n,i,c,r){var s="";s="post"==t?"application/x-www-form-urlencoded":"application/json";var u={};r&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,a.default)((0,a.default)({url:o+n,method:t,data:e},u),{},{success:function(t){1!=t.data.code?(-14==t.data.code&&(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),uni.showToast({title:t.data.msg||t.msg,icon:"none"})):i&&i(t.data)}}))}},r=c;e.default=r},7694:function(t,e,n){"use strict";var i=n("1d18"),a=n.n(i);a.a},d3e4:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.invoiced_box[data-v-3cea382c]{padding:%?60?%;margin:0 %?30?%;background-color:#fff}.text-center[data-v-3cea382c]{text-align:center}.title[data-v-3cea382c]{margin-top:%?40?%;font-size:%?34?%;font-weight:700}.title1[data-v-3cea382c]{margin-top:%?40?%;font-size:%?32?%;color:#acacac}',""]),t.exports=e},d61c:function(t,e,n){"use strict";n.r(e);var i=n("32b4"),a=n("1c41");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("7694");var c=n("f0c5"),r=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"3cea382c",null,!1,i["a"],void 0);e["default"]=r.exports}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing.97b6cf75.js b/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing.97b6cf75.js deleted file mode 100644 index 9d9016b..0000000 --- a/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing.97b6cf75.js +++ /dev/null @@ -1,3 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Invoicing-Invoicing"],{"0157":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniLoadMore:n("b61e").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-data-checklist",style:{"margin-top":e.isTop+"px"}},[e.isLocal?[e.multiple?n("v-uni-checkbox-group",{staticClass:"checklist-group",class:{"is-list":"list"===e.mode||e.wrap},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}}},e._l(e.dataList,(function(t,r){return n("v-uni-label",{key:r,staticClass:"checklist-box",class:["is--"+e.mode,t.selected?"is-checked":"",e.disabled||t.disabled?"is-disable":"",0!==r&&"list"===e.mode?"is-list-border":""],style:t.styleBackgroud},[n("v-uni-checkbox",{staticClass:"hidden",attrs:{hidden:!0,disabled:e.disabled||!!t.disabled,value:t[e.map.value]+"",checked:t.selected}}),"tag"!==e.mode&&"list"!==e.mode||"list"===e.mode&&"left"===e.icon?n("v-uni-view",{staticClass:"checkbox__inner",style:t.styleIcon},[n("v-uni-view",{staticClass:"checkbox__inner-icon"})],1):e._e(),n("v-uni-view",{staticClass:"checklist-content",class:{"list-content":"list"===e.mode&&"left"===e.icon}},[n("v-uni-text",{staticClass:"checklist-text",style:t.styleIconText},[e._v(e._s(t[e.map.text]))]),"list"===e.mode&&"right"===e.icon?n("v-uni-view",{staticClass:"checkobx__list",style:t.styleBackgroud}):e._e()],1)],1)})),1):n("v-uni-radio-group",{staticClass:"checklist-group",class:{"is-list":"list"===e.mode,"is-wrap":e.wrap},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}}},e._l(e.dataList,(function(t,r){return n("v-uni-label",{key:r,staticClass:"checklist-box",class:["is--"+e.mode,t.selected?"is-checked":"",e.disabled||t.disabled?"is-disable":"",0!==r&&"list"===e.mode?"is-list-border":""],style:t.styleBackgroud},[n("v-uni-radio",{staticClass:"hidden",attrs:{hidden:!0,disabled:e.disabled||t.disabled,value:t[e.map.value]+"",checked:t.selected}}),"tag"!==e.mode&&"list"!==e.mode||"list"===e.mode&&"left"===e.icon?n("v-uni-view",{staticClass:"radio__inner",style:t.styleBackgroud},[n("v-uni-view",{staticClass:"radio__inner-icon",style:t.styleIcon})],1):e._e(),n("v-uni-view",{staticClass:"checklist-content",class:{"list-content":"list"===e.mode&&"left"===e.icon}},[n("v-uni-text",{staticClass:"checklist-text",style:t.styleIconText},[e._v(e._s(t[e.map.text]))]),"list"===e.mode&&"right"===e.icon?n("v-uni-view",{staticClass:"checkobx__list",style:t.styleRightIcon}):e._e()],1)],1)})),1)]:[n("v-uni-view",{staticClass:"uni-data-loading"},[e.mixinDatacomErrorMessage?n("v-uni-text",[e._v(e._s(e.mixinDatacomErrorMessage))]):n("uni-load-more",{attrs:{status:"loading",iconType:"snow",iconSize:18,"content-text":e.contentText}})],1)]],2)},a=[]},"04b0":function(e,t,n){"use strict";n.r(t);var r=n("dc0d"),i=n("6efa");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("dff9");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"fdd9c65c",null,!1,r["a"],void 0);t["default"]=s.exports},"0939":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniForms:n("cab1").default,uniFormsItem:n("57d6").default,uniDataSelect:n("04b0").default,uniDataCheckbox:n("eccb").default,uniCombox:n("1137").default,uniIcons:n("461b").default,uniEasyinput:n("98d9").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticStyle:{padding:"30rpx 0px 0rpx 0px"}},[n("v-uni-view",{staticClass:"steps_box"},[e._l(e.stepsDatas,(function(t,r){return[n("v-uni-view",{key:r+"_0",staticClass:"view_item"},[e.stepsIndex>=r?n("v-uni-icon",{attrs:{type:"success",size:"48rpx",color:"#007aff"}}):n("v-uni-view",[e._v(e._s(r+1))]),n("v-uni-text",{staticStyle:{"font-weight":"bold"},style:{color:e.stepsIndex>=r?"#228ded":"#909090"}},[e._v(e._s(t.text))])],1),r!=e.stepsDatas.length-1?n("v-uni-view",{key:r+"_1",class:["view_line",e.stepsIndex<=r?"line_bgcolor1":"line_bgcolor"]}):e._e()]}))],2),n("v-uni-view",{staticClass:"write",attrs:{isFull:!0}},[n("v-uni-view",{staticClass:"flex flex-direction-column"},[n("v-uni-view",{staticClass:"header"},[0===e.stepsIndex?n("v-uni-view",[n("v-uni-view",{staticClass:"form-title"},[e._v("开票信息:")]),n("v-uni-view",{staticClass:"form-box"},[n("uni-forms",{ref:"form",attrs:{modelValue:e.list1}},[n("uni-forms-item",{attrs:{label:"开票项目:",required:!0,name:"name","label-width":80}},[n("uni-data-select",{attrs:{localdata:e.range,placeholder:"请选择开票项目"},model:{value:e.list1.project_id,callback:function(t){e.$set(e.list1,"project_id",t)},expression:"list1.project_id"}})],1),n("uni-forms-item",{attrs:{label:"合并开票:",required:!0,name:"name","label-width":80}},[n("uni-data-checkbox",{attrs:{localdata:e.mergelist},model:{value:e.list1.merge,callback:function(t){e.$set(e.list1,"merge",t)},expression:"list1.merge"}})],1),n("uni-forms-item",{attrs:{label:"用户编号:",required:!0,name:"name","label-width":80}},[n("uni-combox",{attrs:{border:!1,candidates:e.candidates,placeholder:"请选择或输入用户编号"},model:{value:e.list1.pucode_id,callback:function(t){e.$set(e.list1,"pucode_id",t)},expression:"list1.pucode_id"}})],1),n("uni-forms-item",{attrs:{label:"到期:",required:!0,name:"name",placeholder:"请选择账期","label-width":80}},[n("v-uni-picker",{staticStyle:{height:"36px","line-height":"36px"},attrs:{mode:"date",fields:"month"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindDateChange.apply(void 0,arguments)}},model:{value:e.list1.expire_time,callback:function(t){e.$set(e.list1,"expire_time",t)},expression:"list1.expire_time"}},[n("v-uni-view",{staticClass:"picker_box"},[n("v-uni-view",{staticClass:"uni-input"},[e._v(e._s(e.list1.expire_time))]),n("v-uni-view",[n("uni-icons",{attrs:{type:"down",size:"30rpx"}})],1)],1)],1)],1),n("v-uni-view",{staticClass:"form-title"},[e._v("接收方式:")]),n("uni-forms-item",{attrs:{label:"手机号:",required:!0,name:"name","label-width":80}},[n("uni-easyinput",{attrs:{type:"text",styles:e.styles,inputBorder:!1,placeholder:"请输入可用手机号码"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)}},model:{value:e.list1.phone,callback:function(t){e.$set(e.list1,"phone",t)},expression:"list1.phone"}})],1),n("uni-forms-item",{attrs:{label:"邮箱:",required:!0,name:"name","label-width":80}},[n("uni-easyinput",{attrs:{type:"text",inputBorder:!1,placeholder:"请输入邮箱"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.validateEmail.apply(void 0,arguments)}},model:{value:e.list1.email,callback:function(t){e.$set(e.list1,"email",t)},expression:"list1.email"}})],1)],1)],1)],1):e._e(),1===e.stepsIndex?n("v-uni-view",[n("v-uni-view",{staticClass:"lookup"},[n("v-uni-view",{staticClass:"lookup-title"},[e._v("抬头信息:")]),n("v-uni-view",{staticClass:"lookup-title1",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.Obtain.apply(void 0,arguments)}}},[n("uni-icons",{attrs:{type:"redo-filled",size:"30rpx",color:"#007aff"}}),e._v("导入发票抬头")],1)],1),n("uni-forms",{ref:"form1",attrs:{modelValue:e.list2}},[n("uni-forms-item",{attrs:{label:"抬头类型",required:!0,name:"name","label-width":80}},[n("uni-data-checkbox",{attrs:{localdata:e.headerType},model:{value:e.list2.type,callback:function(t){e.$set(e.list2,"type",t)},expression:"list2.type"}})],1),n("uni-forms-item",{attrs:{label:"名称",required:!0,name:"name","label-width":80}},[n("uni-easyinput",{attrs:{type:"text",inputBorder:!1,placeholder:"请输入抬头名称"},model:{value:e.list2.title,callback:function(t){e.$set(e.list2,"title",t)},expression:"list2.title"}})],1),n("uni-forms-item",{attrs:{label:"税号",required:!0,name:"name","label-width":80}},[n("uni-easyinput",{attrs:{type:"text",inputBorder:!1,placeholder:"请输入纳税人识别号"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.taxiD.apply(void 0,arguments)}},model:{value:e.list2.tax_number,callback:function(t){e.$set(e.list2,"tax_number",t)},expression:"list2.tax_number"}})],1)],1)],1):e._e(),2===e.stepsIndex?n("v-uni-view",[n("v-uni-view",{staticClass:"form-title"},[e._v("开票信息")]),n("uni-forms",[n("uni-forms-item",{attrs:{label:"开票项目",name:"name","label-width":80}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.project_id1(e.list1.project_id)))])],1),n("uni-forms-item",{attrs:{label:"开票金额",name:"name","label-width":80}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.amount))])],1),n("v-uni-view",{staticClass:"form-title"},[e._v("抬头信息")]),n("uni-forms-item",{attrs:{label:"抬头类型",name:"name","label-width":80}},[n("uni-data-checkbox",{attrs:{localdata:e.headerType1},model:{value:e.list2.type,callback:function(t){e.$set(e.list2,"type",t)},expression:"list2.type"}})],1),n("uni-forms-item",{attrs:{label:"名称",name:"name","label-width":80}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list2.title))])],1),n("uni-forms-item",{attrs:{label:"税号",name:"name","label-width":80}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list2.tax_number))])],1),n("v-uni-view",{staticClass:"form-title"},[e._v("接收方式")]),n("uni-forms-item",{attrs:{label:"邮箱",name:"name","label-width":80}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list1.email))])],1),n("uni-forms-item",{attrs:{label:"手机号",name:"name","label-width":80}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list1.phone))])],1)],1)],1):e._e()],1)],1)],1),n("v-uni-view",{staticClass:"flex justify-end"},[n("v-uni-view",{staticClass:"bottom"},[0!==e.stepsIndex?n("v-uni-button",{staticClass:"btn1",attrs:{"data-type":"prev"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeSteps.apply(void 0,arguments)}}},[e._v("上一步")]):e._e()],1),n("v-uni-view",{staticClass:"bottom bottom-next"},[2!==e.stepsIndex?n("v-uni-button",{staticClass:"btn",attrs:{"data-type":"next"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeSteps.apply(void 0,arguments)}}},[e._v("下一步")]):e._e()],1),n("v-uni-view",{staticClass:"bottom bottom-next",staticStyle:{"padding-bottom":"30rpx"}},[0!==e.stepsIndex&&1!==e.stepsIndex?n("v-uni-button",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submitForm.apply(void 0,arguments)}}},[e._v("提交")]):e._e()],1)],1)],1)},a=[]},"0a41":function(e,t,n){var r=n("750d");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("5c656734",r,!0,{sourceMap:!1,shadowMode:!1})},1137:function(e,t,n){"use strict";n.r(t);var r=n("4b90"),i=n("5d08");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("3d6d");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"b4b4e4b4",null,!1,r["a"],void 0);t["default"]=s.exports},"1c59":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"1da1":function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,"next",e)}function c(e){r(o,i,a,s,c,"throw",e)}s(void 0)}))}},n("d3b7")},2204:function(e,t,n){var r=n("8960");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("0ece3509",r,!0,{sourceMap:!1,shadowMode:!1})},"257e":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},n("d9e2"),n("d401")},"262e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.default)(e,t)},n("d9e2"),n("d401"),n("7a82");var r=function(e){return e&&e.__esModule?e:{default:e}}(n("b380"))},"2c6f":function(e,t,n){var r=n("cb50");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("40382afe",r,!0,{sourceMap:!1,shadowMode:!1})},"2caf":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,i.default)();return function(){var n,i=(0,r.default)(e);if(t){var o=(0,r.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,a.default)(this,n)}},n("4ae1"),n("d3b7"),n("f8c9");var r=o(n("7e84")),i=o(n("d967")),a=o(n("99de"));function o(e){return e&&e.__esModule?e:{default:e}}},"32d0":function(e,t,n){"use strict";var r=n("0a41"),i=n.n(r);i.a},"3d0d":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-forms-item[data-v-cb401e56]{position:relative;display:flex;margin-bottom:22px;flex-direction:row}.uni-forms-item__label[data-v-cb401e56]{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label[data-v-cb401e56]{padding:0}.uni-forms-item__content[data-v-cb401e56]{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item .uni-forms-item__nuve-content[data-v-cb401e56]{display:flex;flex-direction:column;flex:1}.uni-forms-item__error[data-v-cb401e56]{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-transform:translateY(-100%);transform:translateY(-100%);opacity:0}.uni-forms-item__error .error-text[data-v-cb401e56]{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active[data-v-cb401e56]{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.uni-forms-item.is-direction-left[data-v-cb401e56]{flex-direction:row}.uni-forms-item.is-direction-top[data-v-cb401e56]{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label[data-v-cb401e56]{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:normal}.uni-forms-item .is-required[data-v-cb401e56]{color:#dd524d;font-weight:700}.uni-forms-item--border[data-v-cb401e56]{margin-bottom:0;padding:10px 0;border-top:1px #eee solid}.uni-forms-item--border .uni-forms-item__content[data-v-cb401e56]{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error[data-v-cb401e56]{position:relative;top:5px;left:0;padding-top:0}.is-first-border[data-v-cb401e56]{border:none}',""]),e.exports=t},"3d6d":function(e,t,n){"use strict";var r=n("2204"),i=n.n(r);i.a},"3d8b":function(e,t,n){"use strict";var r=n("2c6f"),i=n.n(r);i.a},4351:function(e,t,n){"use strict";n.r(t);var r=n("4f45"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},4478:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,n("4ae1"),n("d3b7"),n("f8c9"),n("14d9");var r=a(n("b380")),i=a(n("d967"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,n,a){return(0,i.default)()?t.default=o=Reflect.construct.bind():t.default=o=function(e,t,n){var i=[null];i.push.apply(i,t);var a=Function.bind.apply(e,i),o=new a;return n&&(0,r.default)(o,n.prototype),o},o.apply(null,arguments)}},"49a3":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.typeFilter=t.type=t.setDataValue=t.realName=t.rawData=t.objSet=t.objGet=t.name2arr=t.isRequiredField=t.isRealName=t.isNumber=t.isEqual=t.isBoolean=t.getValue=t.getDataValueType=t.getDataValue=t.deepCopy=void 0;var i=r(n("53ca"));n("e9c4"),n("7db0"),n("d3b7"),n("a9e3"),n("13d5"),n("ac1f"),n("00b4"),n("5319"),n("d81d"),n("7039"),n("d401"),n("25f0");t.deepCopy=function(e){return JSON.parse(JSON.stringify(e))};var a=function(e){return"int"===e||"double"===e||"number"===e||"timestamp"===e};t.typeFilter=a;t.getValue=function(e,t,n){var r=n.find((function(e){return e.format&&a(e.format)})),i=n.find((function(e){return e.format&&"boolean"===e.format||"bool"===e.format}));return r&&(t=t||0===t?d(Number(t))?Number(t):t:null),i&&(t=!!f(t)&&t),t};t.setDataValue=function(e,t,n){return t[e]=n,n||""};var o=function(e,t){return l(t,e)};t.getDataValue=o;t.getDataValueType=function(e,t){var n=o(e,t);return{type:h(n),value:n}};t.realName=function(e){var t=u(e);if("object"===(0,i.default)(t)&&Array.isArray(t)&&t.length>1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.isRealName=function(e){return/^_formdata_#*/.test(e)};t.rawData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var r in t){var i=s(r);c(n,i,t[r])}return n};var s=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return d(e)?Number(e):e})),t};t.name2arr=s;var c=function(e,t,n){return"object"!==(0,i.default)(e)||u(t).reduce((function(e,t,r,i){return r===i.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[r+1])?[]:{}),e[t])}),e),e};function u(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=c;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=u(t),i=r.reduce((function(e,t){return(e||{})[t]}),e);return i&&void 0===i?n:i};t.objGet=l;var d=function(e){return!isNaN(Number(e))};t.isNumber=d;var f=function(e){return"boolean"===typeof e};t.isBoolean=f;t.isRequiredField=function(e){for(var t=!1,n=0;n0&&void 0!==arguments[0]?arguments[0]:"uniForms",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t},change:function(e){var t=this,n=e.detail.value,r={value:[],data:[]};if(this.multiple)this.range.forEach((function(e){n.includes(e[t.map.value]+"")&&(r.value.push(e[t.map.value]),r.data.push(e))}));else{var i=this.range.find((function(e){return e[t.map.value]+""===n}));i&&(r={value:i[this.map.value],data:i})}this.$emit("input",r.value),this.$emit("update:modelValue",r.value),this.$emit("change",{detail:r}),this.multiple?this.dataList=this.getDataList(r.value,!0):this.dataList=this.getDataList(r.value)},getDataList:function(e){var t=this,n=JSON.parse(JSON.stringify(this.range)),r=[];return this.multiple&&(Array.isArray(e)||(e=[])),n.forEach((function(n,i){if(n.disabled=n.disable||n.disabled||!1,t.multiple)if(e.length>0){var a=e.find((function(e){return e===n[t.map.value]}));n.selected=void 0!==a}else n.selected=!1;else n.selected=e===n[t.map.value];r.push(n)})),this.setRange(r)},setRange:function(e){var t=this,n=e.filter((function(e){return e.selected})),r=Number(this.min)||0,i=Number(this.max)||"";return e.forEach((function(a,o){if(t.multiple){if(n.length<=r){var s=n.find((function(e){return e[t.map.value]===a[t.map.value]}));void 0!==s&&(a.disabled=!0)}if(n.length>=i&&""!==i){var c=n.find((function(e){return e[t.map.value]===a[t.map.value]}));void 0===c&&(a.disabled=!0)}}t.setStyles(a,o),e[o]=a})),e},setStyles:function(e,t){e.styleBackgroud=this.setStyleBackgroud(e),e.styleIcon=this.setStyleIcon(e),e.styleIconText=this.setStyleIconText(e),e.styleRightIcon=this.setStyleRightIcon(e)},getSelectedValue:function(e){var t=this;if(!this.multiple)return this.dataValue;var n=[];return e.forEach((function(e){e.selected&&n.push(e[t.map.value])})),this.dataValue.length>0?this.dataValue:n},setStyleBackgroud:function(e){var t={},n=this.selectedColor?this.selectedColor:"#2979ff";this.selectedColor&&("list"!==this.mode&&(t["border-color"]=e.selected?n:"#DCDFE6"),"tag"===this.mode&&(t["background-color"]=e.selected?n:"#f5f5f5"));var r="";for(var i in t)r+="".concat(i,":").concat(t[i],";");return r},setStyleIcon:function(e){var t={},n="";if(this.selectedColor){var r=this.selectedColor?this.selectedColor:"#2979ff";t["background-color"]=e.selected?r:"#fff",t["border-color"]=e.selected?r:"#DCDFE6",!e.selected&&e.disabled&&(t["background-color"]="#F2F6FC",t["border-color"]=e.selected?r:"#DCDFE6")}for(var i in t)n+="".concat(i,":").concat(t[i],";");return n},setStyleIconText:function(e){var t={},n="";if(this.selectedColor){var r=this.selectedColor?this.selectedColor:"#2979ff";"tag"===this.mode?t.color=e.selected?this.selectedTextColor?this.selectedTextColor:"#fff":"#666":t.color=e.selected?this.selectedTextColor?this.selectedTextColor:r:"#666",!e.selected&&e.disabled&&(t.color="#999")}for(var i in t)n+="".concat(i,":").concat(t[i],";");return n},setStyleRightIcon:function(e){var t={},n="";for(var r in"list"===this.mode&&(t["border-color"]=e.selected?this.styles.selectedColor:"#DCDFE6"),t)n+="".concat(r,":").concat(t[r],";");return n}}};t.default=r}).call(this,n("a9ff")["default"])},"4fad":function(e,t,n){var r=n("d039"),i=n("861d"),a=n("c6b6"),o=n("d86b"),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||o?function(e){return!!i(e)&&((!o||"ArrayBuffer"!=a(e))&&(!s||s(e)))}:s},"502a":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("262e")),a=r(n("2caf")),o=r(n("c7eb")),s=r(n("1da1")),c=r(n("d4ec")),u=r(n("bee2")),l=r(n("53ca"));n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("d3b7"),n("5319"),n("b64b"),n("e25e"),n("d401"),n("466d"),n("00b4"),n("2ca0"),n("c740"),n("6062"),n("3ca3"),n("ddb0"),n("99af"),n("c975"),n("14d9"),n("4de4"),n("e9c4");var d={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")},f={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var r=t;for(var i in e){var a=new RegExp("{"+i+"}");r=r.replace(a,e[i])}return r}var p={integer:function(e){return p.number(e)&&parseInt(e,10)===e},string:function(e){return"string"===typeof e},number:function(e){return!isNaN(e)&&"number"===typeof e},boolean:function(e){return"boolean"===typeof e},float:function(e){return p.number(e)&&!p.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===(0,l.default)(e)&&!p.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(d.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(d.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(d.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},v=function(){function e(t){(0,c.default)(this,e),this._message=t}return(0,u.default)(e,[{key:"validateRule",value:function(){var e=(0,s.default)((0,o.default)().mark((function e(t,n,r,i,a){var s,c,u,l,d,f,h,p,v;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=null,c=n.rules,u=c.findIndex((function(e){return e.required})),!(u<0)){e.next=8;break}if(null!==r&&void 0!==r){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof r||r.length){e.next=8;break}return e.abrupt("return",s);case 8:if(l=this._message,void 0!==c){e.next=11;break}return e.abrupt("return",l["default"]);case 11:d=0;case 12:if(!(d-1&&(c=!0),c?null:h(e,i||n["enum"])},rangeNumber:function(e,t,n){if(!p.number(t))return h(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,i=e.maximum,a=e.exclusiveMinimum,o=e.exclusiveMaximum,s=a?t<=r:t=i:t>i;return void 0!==r&&s?h(e,e.errorMessage||n["number"][a?"exclusiveMinimum":"minimum"]):void 0!==i&&c?h(e,e.errorMessage||n["number"][o?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(s||c)?h(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!p.string(t)&&!p.array(t))return h(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,i=e.maxLength,a=t.length;return void 0!==r&&ai?h(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==i&&(ai)?h(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return p["pattern"](e.pattern,t)?null:h(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(p),i=f[e.format]?f[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!p[i](t)?h(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return h(e,e.errorMessage||n.typeError);for(var r=0;r-1}))},filterCandidatesLength:function(){return this.filterCandidates.length}},watch:{value:{handler:function(e){this.inputVal=e},immediate:!0}},methods:{toggleSelector:function(){this.showSelector=!this.showSelector},onFocus:function(){this.showSelector=!0},onBlur:function(){var e=this;setTimeout((function(){e.showSelector=!1}),153)},onSelectorClick:function(e){this.inputVal=this.filterCandidates[e],this.showSelector=!1,this.$emit("input",this.inputVal),this.$emit("update:modelValue",this.inputVal)},onInput:function(){var e=this;setTimeout((function(){e.$emit("input",e.inputVal),e.$emit("update:modelValue",e.inputVal)}))}}};t.default=r},6566:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("7c73"),a=n("6964"),o=n("0366"),s=n("19aa"),c=n("7234"),u=n("2266"),l=n("c6d2"),d=n("4754"),f=n("2626"),h=n("83ab"),p=n("f183").fastKey,v=n("69f3"),m=v.set,g=v.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,r){s(e,f),m(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),c(r)||u(r,e[l],{that:e,AS_ENTRIES:n})})),f=d.prototype,v=g(t),b=function(e,t,n){var r,i,a=v(e),o=y(e,t);return o?o.value=n:(a.last=o={index:i=p(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),h?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},y=function(e,t){var n,r=v(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(f,{clear:function(){var e=v(this),t=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=v(this),n=y(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),h?t.size--:this.size--}return!!n},forEach:function(e){var t,n=v(this),r=o(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),a(f,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),h&&r(f,"size",{get:function(){return v(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),a=g(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},"6c57":function(e,t,n){var r=n("23e7"),i=n("da84");r({global:!0,forced:i.globalThis!==i},{globalThis:i})},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("e330"),o=n("94ca"),s=n("cb2d"),c=n("f183"),u=n("2266"),l=n("19aa"),d=n("1626"),f=n("7234"),h=n("861d"),p=n("d039"),v=n("1c7e"),m=n("d44e"),g=n("7156");e.exports=function(e,t,n){var b=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),x=b?"set":"add",_=i[e],k=_&&_.prototype,w=_,S={},I=function(e){var t=a(k[e]);s(k,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},T=o(e,!d(_)||!(y||k.forEach&&!p((function(){(new _).entries().next()}))));if(T)w=n.getConstructor(t,e,b,x),c.enable();else if(o(e,!0)){var A=new w,P=A[x](y?{}:-0,1)!=A,C=p((function(){A.has(1)})),O=v((function(e){new _(e)})),E=!y&&p((function(){var e=new _,t=5;while(t--)e[x](t,t);return!e.has(-0)}));O||(w=t((function(e,t){l(e,k);var n=g(new _,e,w);return f(t)||u(t,n[x],{that:n,AS_ENTRIES:b}),n})),w.prototype=k,k.constructor=w),(C||E)&&(I("delete"),I("has"),b&&I("get")),(E||P)&&I(x),y&&k.clear&&delete k.clear}return S[e]=w,r({global:!0,constructor:!0,forced:w!=_},S),m(w,e),y||n.setStrong(w,e,b),w}},"6efa":function(e,t,n){"use strict";n.r(t);var r=n("c11c"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"6f48":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},7039:function(e,t,n){var r=n("23e7"),i=n("d039"),a=n("057f").f,o=i((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:a})},"750d":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */',""]),e.exports=t},"7b69":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */@media screen and (max-width:500px){.hide-on-phone[data-v-fdd9c65c]{display:none}}.uni-stat__select[data-v-fdd9c65c]{display:flex;align-items:center;cursor:pointer;width:100%;flex:1;box-sizing:border-box}.uni-stat-box[data-v-fdd9c65c]{width:100%;flex:1}.uni-stat__actived[data-v-fdd9c65c]{width:100%;flex:1}.uni-label-text[data-v-fdd9c65c]{font-size:14px;font-weight:700;color:#6a6a6a;margin:auto 0;margin-right:5px}.uni-select[data-v-fdd9c65c]{font-size:14px;border:1px solid #e5e5e5;box-sizing:border-box;border-radius:4px;padding:0 5px;padding-left:10px;position:relative;display:flex;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;border-bottom:solid 1px #e5e5e5;width:100%;flex:1;height:35px}.uni-select--disabled[data-v-fdd9c65c]{background-color:#f5f7fa;cursor:not-allowed}.uni-select__label[data-v-fdd9c65c]{font-size:16px;height:35px;padding-right:10px;color:#909399}.uni-select__input-box[data-v-fdd9c65c]{height:35px;position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-select__input[data-v-fdd9c65c]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-select__input-plac[data-v-fdd9c65c]{font-size:14px;color:#909399}.uni-select__selector[data-v-fdd9c65c]{box-sizing:border-box;position:absolute;left:0;width:100%;background-color:#fff;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);z-index:3;padding:4px 0}.uni-select__selector-scroll[data-v-fdd9c65c]{max-height:200px;box-sizing:border-box}@media (min-width:768px){.uni-select__selector-scroll[data-v-fdd9c65c]{max-height:600px}}.uni-select__selector-empty[data-v-fdd9c65c],\r\n.uni-select__selector-item[data-v-fdd9c65c]{display:flex;cursor:pointer;line-height:35px;font-size:14px;text-align:center;\r\n /* border-bottom: solid 1px $uni-border-3; */padding:0 10px}.uni-select__selector-item[data-v-fdd9c65c]:hover{background-color:#f9f9f9}.uni-select__selector-empty[data-v-fdd9c65c]:last-child,\r\n.uni-select__selector-item[data-v-fdd9c65c]:last-child{border-bottom:none}.uni-select__selector__disabled[data-v-fdd9c65c]{opacity:.4;cursor:default}\r\n/* picker 弹出层通用的指示小三角 */.uni-popper__arrow_bottom[data-v-fdd9c65c],\r\n.uni-popper__arrow_bottom[data-v-fdd9c65c]::after,\r\n.uni-popper__arrow_top[data-v-fdd9c65c],\r\n.uni-popper__arrow_top[data-v-fdd9c65c]::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow_bottom[data-v-fdd9c65c]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow_bottom[data-v-fdd9c65c]::after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-popper__arrow_top[data-v-fdd9c65c]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));bottom:-6px;left:10%;margin-right:3px;border-bottom-width:0;border-top-color:#ebeef5}.uni-popper__arrow_top[data-v-fdd9c65c]::after{content:" ";bottom:1px;margin-left:-6px;border-bottom-width:0;border-top-color:#fff}.uni-select__input-text[data-v-fdd9c65c]{width:100%;color:#333;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}.uni-select__input-placeholder[data-v-fdd9c65c]{color:#6a6a6a;font-size:12px}.uni-select--mask[data-v-fdd9c65c]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:2}',""]),e.exports=t},"7c9f":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("53ca")),a=r(n("c7eb")),o=r(n("ade3")),s=r(n("1da1"));n("a9e3"),n("14d9"),n("d3b7"),n("159b"),n("a434");var c={name:"uniFormsItem",options:{virtualHost:!0},provide:function(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:function(){return null}},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:function(){return{errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"70px",localLabelPos:"left",border:!1,isFirstBorder:!1}},computed:{msg:function(){return this.errorMessage||this.errMsg}},watch:{"form.formRules":function(e){this.init()},"form.labelWidth":function(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition":function(e){this.localLabelPos=this._labelPosition()},"form.labelAlign":function(e){}},created:function(){var e=this;this.init(!0),this.name&&this.form&&this.$watch((function(){var t=e.form._getDataValue(e.name,e.form.localData);return t}),(function(t,n){var r=e.form._isEqual(t,n);if(!r){var i=e.itemSetValue(t);e.onFieldChange(i,!1)}}),{immediate:!1})},destroyed:function(){this.__isUnmounted||this.unInit()},methods:{setRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.userRules=e,this.init(!1)},setValue:function(){},onFieldChange:function(e){var t=arguments,n=this;return(0,s.default)((0,a.default)().mark((function r(){var i,s,c,u,l,d,f,h,p,v,m,g;return(0,a.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i=!(t.length>1&&void 0!==t[1])||t[1],s=n.form,c=s.formData,s.localData,u=s.errShowType,l=s.validateCheck,d=s.validateTrigger,f=s._isRequiredField,h=s._realName,p=h(n.name),e||(e=n.form.formData[p]),v=n.itemRules.rules&&n.itemRules.rules.length,n.validator&&v&&0!==v){r.next=7;break}return r.abrupt("return");case 7:if(m=f(n.itemRules.rules||[]),g=null,"bind"!==d&&!i){r.next=18;break}return r.next=12,n.validator.validateUpdate((0,o.default)({},p,e),c);case 12:g=r.sent,m||void 0!==e&&""!==e||(g=null),g&&g.errorMessage?("undertext"===u&&(n.errMsg=g?g.errorMessage:""),"toast"===u&&uni.showToast({title:g.errorMessage||"校验错误",icon:"none"}),"modal"===u&&uni.showModal({title:"提示",content:g.errorMessage||"校验错误"})):n.errMsg="",l(g||null),r.next=19;break;case 18:n.errMsg="";case 19:return r.abrupt("return",g||null);case 20:case"end":return r.stop()}}),r)})))()},init:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.form||{},n=t.validator,r=t.formRules,a=t.childrens,o=(t.formData,t.localData),s=t._realName,c=t.labelWidth,u=t._getDataValue;t._setDataValue;if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(c),this.localLabelPos=this._labelPosition(),this.form&&e&&a.push(this),n&&r){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;var l=s(this.name),d=this.userRules||this.rules;"object"===(0,i.default)(r)&&d&&(r[l]={rules:d},n.updateSchema(r));var f=r[l]||{};this.itemRules=f,this.validator=n,this.itemSetValue(u(this.name,o))}},unInit:function(){var e=this;if(this.form){var t=this.form,n=t.childrens,r=t.formData,i=t._realName;n.forEach((function(t,n){t===e&&(e.form.childrens.splice(n,1),delete r[i(t.name)])}))}},itemSetValue:function(e){var t=this.form._realName(this.name),n=this.itemRules.rules||[],r=this.form._getValue(t,e,n);return this.form._setDataValue(t,this.form.formData,r),r},clearValidate:function(){this.errMsg=""},_isRequired:function(){return this.required},_justifyContent:function(){if(this.form){var e=this.form.labelAlign,t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit:function(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?70:"auto"))},_labelPosition:function(){return this.form&&this.form.labelPosition||"left"},isTrigger:function(e,t,n){return"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===n?"bind":"submit":"bind":"submit"},num2px:function(e){return"number"===typeof e?"".concat(e,"px"):e}}};t.default=c},"7e84":function(e,t,n){"use strict";function r(e){return t.default=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,n("131a"),n("3410")},"85bf":function(e,t,n){var r=n("3d0d");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("42aa03b6",r,!0,{sourceMap:!1,shadowMode:!1})},8960:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-combox[data-v-b4b4e4b4]{font-size:14px;border:1px solid #dcdfe6;border-radius:4px;padding:6px 10px;position:relative;display:flex;flex-direction:row;align-items:center}.uni-combox__label[data-v-b4b4e4b4]{font-size:16px;line-height:22px;padding-right:10px;color:#999}.uni-combox__input-box[data-v-b4b4e4b4]{position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-combox__input[data-v-b4b4e4b4]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-combox__input-plac[data-v-b4b4e4b4]{font-size:14px;color:#999}.uni-combox__selector[data-v-b4b4e4b4]{box-sizing:border-box;position:absolute;top:calc(100% + 12px);left:0;width:100%;background-color:#fff;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);z-index:2;padding:4px 0}.uni-combox__selector-scroll[data-v-b4b4e4b4]{max-height:200px;box-sizing:border-box}.uni-combox__selector-empty[data-v-b4b4e4b4],\r\n.uni-combox__selector-item[data-v-b4b4e4b4]{display:flex;cursor:pointer;line-height:36px;font-size:14px;text-align:center;padding:0 10px}.uni-combox__selector-item[data-v-b4b4e4b4]:hover{background-color:#f9f9f9}.uni-combox__selector-empty[data-v-b4b4e4b4]:last-child,\r\n.uni-combox__selector-item[data-v-b4b4e4b4]:last-child{border-bottom:none}.uni-popper__arrow[data-v-b4b4e4b4],\r\n.uni-popper__arrow[data-v-b4b4e4b4]::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow[data-v-b4b4e4b4]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-b4b4e4b4]::after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-combox__no-border[data-v-b4b4e4b4]{border:none}',""]),e.exports=t},9072:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=c,n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var r=s(n("7e84")),i=s(n("b380")),a=s(n("fa95")),o=s(n("4478"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){var n="function"===typeof Map?new Map:void 0;return t.default=c=function(e){if(null===e||!(0,a.default)(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return(0,o.default)(e,arguments,(0,r.default)(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(t,e)},c(e)}},9166:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-forms-item",class:["is-direction-"+e.localLabelPos,e.border?"uni-forms-item--border":"",e.border&&e.isFirstBorder?"is-first-border":""]},[e._t("label",[n("v-uni-view",{staticClass:"uni-forms-item__label",class:{"no-label":!e.label&&!e.required},style:{width:e.localLabelWidth,justifyContent:e.localLabelAlign}},[e.required?n("v-uni-text",{staticClass:"is-required"},[e._v("*")]):e._e(),n("v-uni-text",[e._v(e._s(e.label))])],1)]),n("v-uni-view",{staticClass:"uni-forms-item__content"},[e._t("default"),n("v-uni-view",{staticClass:"uni-forms-item__error",class:{"msg--active":e.msg}},[n("v-uni-text",[e._v(e._s(e.msg))])],1)],2)],2)},i=[]},"950d":function(e,t,n){"use strict";n.r(t);var r=n("990c"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"990c":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("14d9"),n("d3b7"),n("159b"),n("ac1f"),n("00b4"),n("99af");var i=r(n("4d55")),a=r(n("ffde")),o={data:function(){var e=this.getDate({format:!0});return{date:e,list1:{project_id:"",pucode_id:"",merge:"",expire_time:"",email:"",phone:""},list2:{type:"",title:"",tax_number:"",address:"",telephone:"",bank_name:"",bank_account:""},amount:9,styles:{color:"#d5213c"},stepsIndex:0,stepsDatas:[{text:"开票信息"},{text:"抬头信息"},{text:"提交申请"}],range:[],headerType1:[{text:"单位",value:"0",disable:!0},{text:"个人",value:"1",disable:!0}],headerType:[{text:"单位",value:"0"},{text:"个人",value:"1"}],candidates:[],mergelist:[{text:"不合并",value:"0"},{text:"合并",value:"1"}],form1:{},form2:{}}},onLoad:function(){this.dropdown()},methods:{dropdown:function(){var e=this;i.default.getApplyData({},(function(t){e.range=t.data.project_arr,e.candidates.push(t.data.pucode)}))},project_id1:function(e){var t="";return this.range.forEach((function(n){n.value==e&&(t=n.text)})),t},changeSteps:function(e){var t=e.currentTarget.dataset.type;"prev"==t?this.stepsIndex>0?this.stepsIndex=this.stepsIndex-1:this.$tip.toast("已经是初始位置","none"):this.stepsIndex9?r:"0"+r,i=i>9?i:"0"+i,"".concat(n).concat(r).concat(i)},Obtain:function(){var e=this;a.default.wxRegister((function(){wx.invoke("chooseInvoiceTitle",{scene:"1"},(function(t){var n=JSON.parse(t.choose_invoice_title_info);e.list2.type=n.type,e.list2.title=n.title,e.list2.address=n.companyAddress,e.list2.telephone=n.telephone,e.list2.bank_name=n.bankName,e.list2.bank_account=n.bankAccount,e.list2.tax_number=n.taxNumber}))}))},submitForm:function(){var e=this.form1,t=this.form2;"1"==this.list2.type&&(this.list2.address="",this.list2.telephone="",this.list2.bank_name="",this.list2.bank_account="");var n={project_id:e.project_id,pucode_id:e.pucode_id,expire_time:e.expire_time,mobile:+e.phone,email:e.email,merge:+e.merge,type:+t.type,title:t.title,tax_number:t.tax_number,address:t.address,telephone:t.telephone,bank_name:t.bank_name,bank_account:t.bank_account,amount:this.amount};i.default.request("/api/invoiceIssuance/add",n,(function(e){1==e.code&&(uni.showToast({title:"开票申请完成",icon:"none"}),setTimeout((function(){uni.redirectTo({url:"/pages/Invoiced/Invoiced?bool=".concat(!0)})}),2e3))}))}}};t.default=o},"99de":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t&&("object"===(0,r.default)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.default)(e)},n("d9e2"),n("d401");var r=a(n("53ca")),i=a(n("257e"));function a(e){return e&&e.__esModule?e:{default:e}}},"9e20":function(e,t,n){"use strict";n.r(t);var r=n("7c9f"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},a9ff:function(e,t,n){"use strict";(function(e){var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("257e")),a=r(n("3835")),o=r(n("53ca")),s=r(n("2909")),c=r(n("b85c")),u=r(n("c7eb")),l=r(n("1da1")),d=r(n("5530")),f=r(n("262e")),h=r(n("2caf")),p=r(n("9072")),v=r(n("d4ec")),m=r(n("bee2"));n("6c57"),n("d9e2"),n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("14d9"),n("e25e"),n("99af"),n("a434"),n("c975"),n("159b"),n("b64b"),n("13d5"),n("caad"),n("2532"),n("4e82"),n("ac1f"),n("e9c4"),n("498a"),n("00b4"),n("d81d"),n("7a82"),n("ddb0"),n("841c"),n("a9e3"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("a4d3"),n("e01a"),n("aff5"),n("7db0"),n("466d"),n("5377"),n("26e9"),n("f4b3"),n("bf19"),n("4de4"),n("a630"),n("3ca3"),n("81b2"),n("0eb6"),n("b7ef"),n("8bd4"),n("baa5");var g=r(n("c60a"));function b(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var y=b((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},a=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,i);if(c){for(var l=0;l>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],b=e[t+7],y=e[t+8],x=e[t+9],_=e[t+10],k=e[t+11],w=e[t+12],S=e[t+13],I=e[t+14],T=e[t+15],A=a[0],P=a[1],C=a[2],O=a[3];A=u(A,P,C,O,o,7,s[0]),O=u(O,A,P,C,c,12,s[1]),C=u(C,O,A,P,h,17,s[2]),P=u(P,C,O,A,p,22,s[3]),A=u(A,P,C,O,v,7,s[4]),O=u(O,A,P,C,m,12,s[5]),C=u(C,O,A,P,g,17,s[6]),P=u(P,C,O,A,b,22,s[7]),A=u(A,P,C,O,y,7,s[8]),O=u(O,A,P,C,x,12,s[9]),C=u(C,O,A,P,_,17,s[10]),P=u(P,C,O,A,k,22,s[11]),A=u(A,P,C,O,w,7,s[12]),O=u(O,A,P,C,S,12,s[13]),C=u(C,O,A,P,I,17,s[14]),A=l(A,P=u(P,C,O,A,T,22,s[15]),C,O,c,5,s[16]),O=l(O,A,P,C,g,9,s[17]),C=l(C,O,A,P,k,14,s[18]),P=l(P,C,O,A,o,20,s[19]),A=l(A,P,C,O,m,5,s[20]),O=l(O,A,P,C,_,9,s[21]),C=l(C,O,A,P,T,14,s[22]),P=l(P,C,O,A,v,20,s[23]),A=l(A,P,C,O,x,5,s[24]),O=l(O,A,P,C,I,9,s[25]),C=l(C,O,A,P,p,14,s[26]),P=l(P,C,O,A,y,20,s[27]),A=l(A,P,C,O,S,5,s[28]),O=l(O,A,P,C,h,9,s[29]),C=l(C,O,A,P,b,14,s[30]),A=d(A,P=l(P,C,O,A,w,20,s[31]),C,O,m,4,s[32]),O=d(O,A,P,C,y,11,s[33]),C=d(C,O,A,P,k,16,s[34]),P=d(P,C,O,A,I,23,s[35]),A=d(A,P,C,O,c,4,s[36]),O=d(O,A,P,C,v,11,s[37]),C=d(C,O,A,P,b,16,s[38]),P=d(P,C,O,A,_,23,s[39]),A=d(A,P,C,O,S,4,s[40]),O=d(O,A,P,C,o,11,s[41]),C=d(C,O,A,P,p,16,s[42]),P=d(P,C,O,A,g,23,s[43]),A=d(A,P,C,O,x,4,s[44]),O=d(O,A,P,C,w,11,s[45]),C=d(C,O,A,P,T,16,s[46]),A=f(A,P=d(P,C,O,A,h,23,s[47]),C,O,o,6,s[48]),O=f(O,A,P,C,b,10,s[49]),C=f(C,O,A,P,I,15,s[50]),P=f(P,C,O,A,m,21,s[51]),A=f(A,P,C,O,w,6,s[52]),O=f(O,A,P,C,p,10,s[53]),C=f(C,O,A,P,_,15,s[54]),P=f(P,C,O,A,c,21,s[55]),A=f(A,P,C,O,y,6,s[56]),O=f(O,A,P,C,T,10,s[57]),C=f(C,O,A,P,g,15,s[58]),P=f(P,C,O,A,S,21,s[59]),A=f(A,P,C,O,v,6,s[60]),O=f(O,A,P,C,k,10,s[61]),C=f(C,O,A,P,h,15,s[62]),P=f(P,C,O,A,x,21,s[63]),a[0]=a[0]+A|0,a[1]=a[1]+P|0,a[2]=a[2]+C|0,a[3]=a[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<>>32-a)+t}function l(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<>>32-a)+t}t.MD5=a._createHelper(c),t.HmacMD5=a._createHmacHelper(c)}(Math),n.MD5)})),b((function(e,t){var n;e.exports=(n=x,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,u=0;u>>6-o%4*2;i[a>>>2]|=(s|c)<<24-a%4*8,a++}return t.create(i,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?D:r;(0,v.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case D:return this.status===P;case R:return this.status!==T}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=T,this.promise=this.createPromise().then((function(t){return e.status=A,Promise.resolve(t)}),(function(t){return e.status=P,Promise.reject(t)})),this.promise):this.promise}}]),e}();function j(e){return e&&"string"==typeof e?JSON.parse(e):e}var N=j([]),F="web",U=(j(void 0),j([])||[]);try{(n("60d4").default||n("60d4")).appid}catch(rr){}var q={};function B(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=q,n=e,Object.prototype.hasOwnProperty.call(t,n)||(q[e]=r),q[e]}"app"===F&&(q=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var V=["invoke","success","fail","complete"],$=B("_globalUniCloudInterceptor");function z(e,t){$[e]||($[e]={}),O(t)&&Object.keys(t).forEach((function(n){V.indexOf(n)>-1&&function(e,t,n){var r=$[e][t];r||(r=$[e][t]=[]),-1===r.indexOf(n)&&E(n)&&r.push(n)}(e,n,t[n])}))}function K(e,t){$[e]||($[e]={}),O(t)?Object.keys(t).forEach((function(n){V.indexOf(n)>-1&&function(e,t,n){var r=$[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete $[e]}function W(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function J(e,t){return $[e]&&$[e][t]||[]}function H(e){z("callObject",e)}var G=B("_globalUniCloudListener"),Y="response",Q="needLogin",X="refreshToken",Z="clientdb",ee="cloudfunction",te="cloudobject";function ne(e){return G[e]||(G[e]=[]),G[e]}function re(e,t){var n=ne(e);n.includes(t)||n.push(t)}function ie(e,t){var n=ne(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function ae(e,t){for(var n=ne(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,p.default)(Error)),he={request:function(e){return uni.request(e)},uploadFile:function(e){return uni.uploadFile(e)},setStorageSync:function(e,t){return uni.setStorageSync(e,t)},getStorageSync:function(e){return uni.getStorageSync(e)},removeStorageSync:function(e){return uni.removeStorageSync(e)},clearStorageSync:function(){return uni.clearStorageSync()}};function pe(){return{token:he.getStorageSync("uni_id_token")||he.getStorageSync("uniIdToken"),tokenExpired:he.getStorageSync("uni_id_token_expired")}}function ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&he.setStorageSync("uni_id_token",t),n&&he.setStorageSync("uni_id_token_expired",n)}function me(){return le||(le=uni.getSystemInfoSync()),le}function ge(){var e=uni.getLocale&&uni.getLocale()||"en";if(de)return(0,d.default)((0,d.default)({},de),{},{locale:e,LOCALE:e});for(var t=me(),n=t.deviceId,r=t.osName,i=t.uniPlatform,a=t.appId,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],s=0;s-1)return;var n=uni.getLaunchOptionsSync(),r=n.scene,i=n.channel;e=i,t=r}}catch(e){}return{channel:e,scene:t}}()),t),(0,d.default)((0,d.default)({},de),{},{locale:e,LOCALE:e})}var be,ye={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),_(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return r(new fe({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var i=e.data;if(i.error)return r(new fe({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,n(i)}}))}))},toBase64:function(e){return w.stringify(k.parse(e))}},xe=function(){function e(t){var n=this;(0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=he,this._getAccessTokenPromiseHub=new M({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new fe({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:R})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return ye.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=ye.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=ye.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new fe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new fe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r,i,a,o,s,c,l,d,f,h,p,v,m,g,b,y,x,_,k,w,S;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,a=void 0===i?"image":i,o=t.cloudPathAsRealPath,s=void 0!==o&&o,c=t.onUploadProgress,l=t.config,"string"===C(r)){e.next=3;break}throw new fe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new fe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new fe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(d=l&&l.envType||this.config.envType,!(s&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new fe({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:d,filename:s?r.split("/").pop():r,fileId:s?r:void 0});case 12:return f=e.sent.result,h="https://"+f.cdnDomain+"/"+f.ossPath,p=f.securityToken,v=f.accessKeyId,m=f.signature,g=f.host,b=f.ossPath,y=f.id,x=f.policy,_=f.ossCallbackUrl,k={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:v,Signature:m,host:g,id:y,key:b,policy:x,success_action_status:200},p&&(k["x-oss-security-token"]=p),_&&(w=JSON.stringify({callbackUrl:_,callbackBody:JSON.stringify({fileId:y,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),k.callback=ye.toBase64(w)),S={url:"https://"+f.host,formData:k,fileName:"file",name:"file",filePath:n,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},S,{onUploadProgress:c}));case 27:if(!_){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 29:return e.next=31,this.reportOSSUpload({id:y});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 33:throw new fe({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new fe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,r,i=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new fe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),_e={init:function(e){var t=new xe(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},ke="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(be||(be={}));var we,Se=function(){},Ie=b((function(e,t){var n;e.exports=(n=x,function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var u=[],l=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],d=n[6],f=n[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=u[h-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=v+u[h-7]+g+u[h-16]}var b=r&i^r&a^i&a,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+c[h]+u[h];f=d,d=l,l=s,s=o+x|0,o=a,a=i,i=r,r=x+(y+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(l),t.HmacSHA256=a._createHmacHelper(l)}(Math),n.SHA256)})),Te=Ie,Ae=b((function(e,t){e.exports=x.HmacSHA256})),Pe=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new fe({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function Ce(e){return void 0===e}function Oe(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(we||(we={}));var Ee={adapter:null,runtime:void 0},Le=["anonymousUuidKey"],De=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),Ee.adapter.root.tcbObject||(Ee.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Ee.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Ee.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Ee.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Ee.adapter.root.tcbObject}}]),n}(Se);function Re(e,t){switch(e){case"local":return t.localStorage||new De;case"none":return new De;default:return t.sessionStorage||new De}}var Me=function(){function e(t){if((0,v.default)(this,e),!this._storage){this._persistence=Ee.adapter.primaryStorage||t.persistence,this._storage=Re(this._persistence,Ee.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),a="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return(0,m.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Re(e,Ee.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!Le.includes(r)){var a=this._storage.getItem(i);Ce(a)||Oe(a)||(n.setItem(i,a),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),je={},Ne={};function Fe(e){return je[e]}var Ue=(0,m.default)((function e(t,n){(0,v.default)(this,e),this.data=n||null,this.name=t})),qe=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(e,r){var i;return(0,v.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,m.default)(n)}(Ue),Be=new(function(){function e(){(0,v.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof qe)return console.error(e.error),this;var n="string"==typeof e?new Ue(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,a=this._listeners[r]?(0,s.default)(this._listeners[r]):[],o=(0,c.default)(a);try{for(o.s();!(i=o.n()).done;){var u=i.value;u.call(this,n)}}catch(l){o.e(l)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Ve(e,t){Be.on(e,t)}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Be.fire(e,t)}function ze(e,t){Be.off(e,t)}var Ke,We="loginStateChanged",Je="loginStateExpire",He="loginTypeChanged",Ge="anonymousConverted",Ye="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Ke||(Ke={}));var Qe=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Xe={"X-SDK-Version":"1.3.5"};function Ze(e,t,n){var r=e[t];e[t]=function(t){var i={},a={};n.forEach((function(n){var r=n.call(e,t),o=r.data,s=r.headers;Object.assign(i,o),Object.assign(a,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=(0,d.default)((0,d.default)({},o),i);else for(var n in i)o.append(n,i[n])}(),t.headers=(0,d.default)((0,d.default)({},t.headers||{}),a),r.call(e,t)}}function et(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:(0,d.default)((0,d.default)({},Xe),{},{"x-seqid":e})}}var tt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,e),this.config=n,this._reqClass=new Ee.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Fe(this.config.env),this._localCache=(t=this.config.env,Ne[t]),Ze(this._reqClass,"post",[et]),Ze(this._reqClass,"upload",[et]),Ze(this._reqClass,"download",[et])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,r,i,a,o,s,c,l,d,f,h,p;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,a=t.loginTypeKey,o=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),s=this._cache.getStore(i),s){e.next=5;break}throw new fe({message:"未登录CloudBase"});case 5:return c={refresh_token:s},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(d=l.data.code,"SIGN_PARAM_INVALID"!==d&&"REFRESH_TOKEN_EXPIRED"!==d&&"INVALID_REFRESH_TOKEN"!==d){e.next=20;break}if(this._cache.getStore(a)!==Ke.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==d){e.next=19;break}return f=this._cache.getStore(o),h=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:h});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:$e(Je),this._cache.removeStore(i);case 20:throw new fe({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",($e(Ye),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,r,i,a,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new fe({message:"refresh token不存在,登录状态异常"});case 3:if(a=this._cache.getStore(n),o=this._cache.getStore(r),s=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,o);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}s=!1;case 12:return e.abrupt("return",(!a||!o||o2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(a,"=").concat(encodeURIComponent(n[a]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(ke,"//tcb-api.tencentcloudapi.com/web",b),g&&(y+=g),e.next=22,this.post((0,d.default)({url:y,data:c},h));case 22:if(x=e.sent,_=x.header&&x.header["x-tcb-trace"],_&&this._localCache.setStore(i,_),(200===Number(x.status)||200===Number(x.statusCode))&&x.data){e.next=26;break}throw new fe({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",x);case 27:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r,i,a=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==Qe.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=e.sent,!i.data.code){e.next=12;break}throw new fe({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!r.data.code){e.next=15;break}throw new fe({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.data);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),nt={};function rt(e){return nt[e]}var it=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=Fe(t.env),this._request=rt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),at=function(){function e(t){if((0,v.default)(this,e),!t)throw new fe({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Fe(this._envId),this._request=rt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new fe({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new fe({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,r,i;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r,i,a,o,s,c,l;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,a=t.province,o=t.country,s=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:a,country:o,city:s});case 8:c=e.sent,l=c.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),ot=function(){function e(t){if((0,v.default)(this,e),!t)throw new fe({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Fe(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,a=n.accessTokenExpireKey,o=this._cache.getStore(r),s=this._cache.getStore(i),c=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:c},this.user=new at(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===Ke.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Ke.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Ke.WECHAT||this.loginType===Ke.WECHAT_OPEN||this.loginType===Ke.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),st=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,r,i,a,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,i=this._cache.getStore(n)||void 0,a=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:a});case 8:if(o=e.sent,!o.uuid||!o.refresh_token){e.next=20;break}return this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return $e(We),$e(He,{env:this.config.env,loginType:Ke.ANONYMOUS,persistence:"local"}),s=new ot(this.config.env),e.next=19,s.user.refresh();case 19:return e.abrupt("return",s);case 20:throw new fe({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r,i,a,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,a=this._cache.getStore(r),o=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:o,ticket:t});case 7:if(s=e.sent,!s.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return $e(Ge,{env:this.config.env}),$e(He,{loginType:Ke.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new fe({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,Ke.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(it),ct=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new fe({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return $e(We),$e(He,{env:this.config.env,loginType:Ke.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new ot(this.config.env));case 15:throw new fe({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(it),ut=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var r,i,a,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new fe({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,a=i.refresh_token,o=i.access_token,s=i.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!o||!s){e.next=15;break}this.setAccessToken(o,s),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return $e(We),$e(He,{env:this.config.env,loginType:Ke.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 22:throw i.code?new fe({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new fe({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(it),lt=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var r,i,a,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new fe({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:Ke.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,a=i.refresh_token,o=i.access_token_expire,s=i.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!s||!o){e.next=16;break}this.setAccessToken(s,o),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return $e(We),$e(He,{env:this.config.env,loginType:Ke.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 23:throw i.code?new fe({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new fe({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(it),dt=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=Fe(t.env),this._request=rt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ve(He,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new st(this.config)}},{key:"customAuthProvider",value:function(){return new ct(this.config)}},{key:"emailAuthProvider",value:function(){return new ut(this.config)}},{key:"usernameAuthProvider",value:function(){return new lt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new st(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ut(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new lt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new st(this.config)),Ve(Ge,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,r,i,a,o;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==Ke.ANONYMOUS){e.next=2;break}throw new fe({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,a=this._cache.getStore(n),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return o=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),$e(We),$e(He,{env:this.config.env,loginType:Ke.NULL,persistence:this.config.persistence}),o));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Ve(We,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Ve(Je,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ve(Ye,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ve(Ge,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ve(He,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new ot(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new fe({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ct(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:(0,d.default)((0,d.default)({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),ft=function(e,t){t=t||Pe();var n=rt(this.config.env),r=e.cloudPath,i=e.filePath,a=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,c=o.url,u=o.authorization,l=o.token,d=o.fileId,f=o.cosFileId,h=e.requestId,p={key:r,signature:u,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:p,file:i,name:r,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:d,requestId:h}):t(new fe({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},ht=function(e,t){t=t||Pe();var n=rt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},pt=function(e,t){var n=e.fileList;if(t=t||Pe(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=(0,c.default)(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:n};return rt(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},vt=function(e,t){var n=e.fileList;t=t||Pe(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],a=(0,c.default)(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;"object"==(0,o.default)(s)?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?i.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(l){a.e(l)}finally{a.f()}var u={file_list:i};return rt(this.config.env).send("storage.batchGetDownloadUrl",u).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},mt=function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var r,i,a,o;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,vt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(a=rt(this.config.env),o=i.download_url,o=encodeURI(o),n){e.next=10;break}return e.abrupt("return",a.download({url:o}));case 10:return e.t0=n,e.next=13,a.download({url:o});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),gt=function(e,t){var n,r=e.name,i=e.data,a=e.query,o=e.parse,s=e.search,c=t||Pe();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new fe({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:a,parse:o,search:s,function_name:r,request_data:n};return rt(this.config.env).send("functions.invokeFunction",u).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(o)c(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),c(null,{result:t,requestId:e.requestId})}catch(e){c(new fe({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},bt={timeout:15e3,persistence:"session"},yt={},xt=function(){function e(t){(0,v.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(Ee.adapter||(this.requestClient=new Ee.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,d.default)((0,d.default)({},bt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Ee.adapter.primaryStorage||bt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;je[t]=new Me(e),Ne[t]=new Me((0,d.default)((0,d.default)({},e),{},{persistence:"local"}))}(this.config),n=this.config,nt[n.env]=new tt(n),this.authObj=new dt(this.config),this.authObj}},{key:"on",value:function(e,t){return Ve.apply(this,[e,t])}},{key:"off",value:function(e,t){return ze.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return gt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return pt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return vt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return mt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return ft.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return ht.apply(this,[e,t])}},{key:"registerExtension",value:function(e){yt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var r;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=yt[t],r){e.next=3;break}throw new fe({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=(0,c.default)(r);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.isMatch,s=a.genAdapter,u=a.runtime;if(o())return{adapter:s(),runtime:u}}}catch(l){i.e(l)}finally{i.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Ee.adapter=n),r&&(Ee.runtime=r)}}]),e}(),_t=new xt;function kt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+=a+"="+encodeURIComponent(n[a]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var wt=function(){function e(){(0,v.default)(this,e)}return(0,m.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,i){he.request({url:kt("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,a=e.data,o=e.headers,s=e.fileType,c=he.uploadFile({url:kt("https:",r),name:"file",formData:Object.assign({},a),filePath:i,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(n.statusCode=parseInt(a.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),St={setItem:function(e,t){he.setStorageSync(e,t)},getItem:function(e){return he.getStorageSync(e)},removeItem:function(e){he.removeStorageSync(e)},clear:function(){he.clearStorageSync()}},It={genAdapter:function(){return{root:{},reqClass:wt,localStorage:St,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};_t.useAdapters(It);var Tt=_t,At=Tt.init;Tt.init=function(e){e.env=e.spaceId;var t=At.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ue(e),r=t.success,i=t.fail,a=t.complete;if(!(r||i||a))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),a&&a(e)}),(function(e){i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Pt=Tt,Ct=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=ye.sign(n,this.config.clientSecret);var i=ge();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var a=pe(),o=a.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,success:function(t){t&&t.statusCode<400?e(t):c(new fe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new fe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,a=e.fileType,o=void 0===a?"image":a,s=e.onUploadProgress;if(!i)throw new fe({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(e){var i=e.result,a=i.url,c=i.formData,u=i.name;t=e.result.fileUrl;var l={url:a,formData:c,name:u,filePath:r,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new fe({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return e.result;throw new fe({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new fe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(this.setupRequest(r)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new fe({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(xe),Ot={init:function(e){var t=new Ct(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Et=b((function(e,t){e.exports=x.enc.Hex}));function Lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,o=t.headers,s=t.signHeaderKeys,c=void 0===s?[]:s,u=t.config,l=Date.now(),d="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),f=Object.assign({},o,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.spaceId,"x-from-instance-id":l,"x-from-function-name":r,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":d,"x-alipay-callid":d,"x-trace-id":d}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(c),p=e.split("?")||[],v=(0,a.default)(p,2),m=v[0],g=void 0===m?"":m,b=v[1],y=void 0===b?"":b,x=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=Te(e.body).toString(Et),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),a=Te(i).toString(Et),o="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(a,"\n"),s=Ae(o,e.secretKey).toString(Et);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:g,query:y,method:i,headers:f,timestamp:l,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:h.sort()});return{url:"".concat(u.endpoint).concat(e),headers:Object.assign({},f,{Authorization:x})}}function Dt(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,a=e.headers,o=void 0===a?{}:a;return new Promise((function(e,r){he.request({url:t,method:i,data:n,header:o,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},a=i.message,s=i.errMsg,c=i.trace_id;return r(new fe({code:"SYS_ERR",message:a||s||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Rt(e,t){var n=e.path,r=e.data,i=e.method,a=void 0===i?"GET":i,o=Lt(n,{functionName:"",data:r,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=o.url,c=o.headers;return Dt({url:s,data:r,method:a,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new fe({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new fe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Mt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new fe({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),i=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Nt=function(){function e(t){if((0,v.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")})}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i="POST",a=Lt("/functions/invokeFunction",{functionName:n,data:r,method:i,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t}),o=a.url,s=a.headers;return Dt({url:o,data:r,method:i,headers:s}).then((function(e){return{errCode:0,success:!0,requestId:e.requestId,result:e.data}})).catch((function(e){throw new fe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,a=e.onUploadProgress;return new Promise((function(e,o){var s=he.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):o(new fe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){o(new fe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r,i,a,o,s,c,l,d,f,h;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,a=t.fileType,o=void 0===a?"image":a,s=t.onUploadProgress,"string"===C(i)){e.next=3;break}throw new fe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new fe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new fe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Rt({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return c=e.sent,l=c.file_id,d=c.upload_url,f=c.form_data,h=f&&f.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:d,filePath:n,fileType:o,formData:h,onUploadProgress:s}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,r=this;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new fe({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new fe({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var i,a=[],o=(0,c.default)(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;"string"!==C(s)&&t(new fe({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var u=Mt.call(r,s);a.push({file_id:u,expire:600})}}catch(l){o.e(l)}finally{o.f()}Rt({path:"/?download_url",data:{file_list:a},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:jt.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Ft={init:function(e){e.provider="alipay";var t=new Nt(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Ut(e){var t,n=e.data;t=ge();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=pe(),a=i.token;a&&(r.uniIdToken=a)}return r}var qt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Bt=/[\\^$.*+?()[\]{}|]/g,Vt=RegExp(Bt.source);function $t(e,t,n){return e.replace(new RegExp((r=t)&&Vt.test(r)?r.replace(Bt,"\\$&"):r,"g"),n);var r}var zt="request",Kt="response";var Wt;Wt="0123456789abcdef";var Jt={code:2e4,message:"System error"},Ht={code:20101,message:"Invalid client"};function Gt(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,a=t.errMsg,o=t.code,s=t.message,c=t.cause;return new fe({subject:n||r||"uni-secure-network",code:i||o||Jt.code,message:a||s,cause:c})}var Yt;function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===zt||t===Kt||"both"===t}function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===F&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function Zt(e){e.functionName,e.result,e.logPvd}function en(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=Ut.call(e,{data:n.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=Qt(n),s=Xt(n),c=o||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&Zt.call(r,{functionName:i,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return!c&&Zt.call(r,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,a=e.formatter,o=void 0===a?[]:a,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=me(),a=i.appId,o=i.uniPlatform,s=i.osName,c=o;"app"===o&&(c=s);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=N;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var l=u.accessControl.function||{},d=Object.keys(l);if(0===d.length)return!0;var f=function(e,t){for(var n,r,i,a=0;a-1&&(r=o):i=o:n=o}return n||r||i}(d,r);if(!f)return!1;if((l[f]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===a&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(a,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),Gt(Ht)}({provider:o,spaceId:s,functionName:c})?new Yt({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i}}Yt="mp-weixin"!==F&&"app"!==F?function(){return(0,m.default)((function e(){throw(0,v.default)(this,e),Gt({message:"Platform ".concat(F," is not supported by secure network")})}))}():function(){return(0,m.default)((function e(){throw(0,v.default)(this,e),Gt({message:"Platform ".concat(F," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var tn=Symbol("CLIENT_DB_INTERNAL");function nn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=tn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,o.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function rn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var an=["db.Geo","db.command","command.aggregate"];function on(e,t){return an.indexOf("".concat(e,".").concat(t))>-1}function sn(e){switch(C(e)){case"array":return e.map((function(e){return sn(e)}));case"object":return e._internalType===tn||Object.keys(e).forEach((function(t){e[t]=sn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function cn(e){return e&&e.content&&e.content.$method}var un=function(){function e(t,n,r){(0,v.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:sn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=cn(e),n=cn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===cn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=cn(e),n=cn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return ln({$method:e,$param:sn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:sn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function ln(e,t,n){return nn(new un(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),on(r,t)?ln({$method:t},e,n):function(){return ln({$method:t,$param:sn(Array.from(arguments))},e,n)}}})}function dn(e){var t=e.path,n=e.method;return function(){function e(){(0,v.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,s.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nn(new e(t),{get:function(e,t){return on("db",t)?ln({$method:t},null,e):function(){return ln({$method:t,$param:sn(Array.from(arguments))},null,e)}}})}var hn=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,a=e.queryList;function o(e,t){if(i&&a)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,a=void 0!==i&&i;(0,v.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=B("_globalUniCloudDatabaseCallback")),a||(this.auth=rn(this._authCallBacks)),this._isJQL=a,Object.assign(this,rn(this._dbCallBacks)),this.env=nn({},{get:function(e,t){return{$env:t}}}),this.Geo=nn({},{get:function(e,t){return dn({path:["Geo"],method:t})}}),this.serverDate=dn({path:[],method:"serverDate"}),this.RegExp=dn({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,s.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,s.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),pn="token无效,跳转登录页面",vn="token过期,跳转登录页面",mn={TOKEN_INVALID_TOKEN_EXPIRED:vn,TOKEN_INVALID_INVALID_CLIENTID:pn,TOKEN_INVALID:pn,TOKEN_INVALID_WRONG_TOKEN:pn,TOKEN_INVALID_ANONYMOUS_USER:pn},gn={"uni-id-token-expired":vn,"uni-id-check-token-failed":pn,"uni-id-token-not-exist":pn,"uni-id-check-device-feature-failed":pn};function bn(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(bn(t,e.path)):!1===e.needLogin&&r.push(bn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function xn(e){return e.split("?")[0].replace(/^\//,"")}function _n(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function kn(){return xn(_n())}function wn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=xn(e);return n.some((function(e){return e.pagePath===r}))}var Sn,In=!!g.default.uniIdRouter,Tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,a=e.uniIdRouter,o=void 0===a?{}:a,c=e.tabBar,u=void 0===c?{}:c,l=o.loginPage,d=o.needLogin,f=void 0===d?[]:d,h=o.resToLogin,p=void 0===h||h,v=yn(n),m=v.needLoginPage,b=v.notNeedLoginPage,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,a=void 0===i?[]:i,o=yn(a,r),c=o.needLoginPage,u=o.notNeedLoginPage;t.push.apply(t,(0,s.default)(c)),n.push.apply(n,(0,s.default)(u))})),{needLoginPage:t,notNeedLoginPage:n}}(i),x=y.needLoginPage,_=y.notNeedLoginPage;return{loginPage:l,routerNeedLogin:f,resToLogin:p,needLoginPage:[].concat((0,s.default)(m),(0,s.default)(x)),notNeedLoginPage:[].concat((0,s.default)(b),(0,s.default)(_)),loginPageInTabBar:wn(l,u)}}(),An=Tn.loginPage,Pn=Tn.routerNeedLogin,Cn=Tn.resToLogin,On=Tn.needLoginPage,En=Tn.notNeedLoginPage,Ln=Tn.loginPageInTabBar;if(On.indexOf(An)>-1)throw new Error("Login page [".concat(An,'] should not be "needLogin", please check your pages.json'));function Dn(e){var t=kn();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,a.default)(n,2),i=r[0],o=r[1],s=i.replace(/^\//,"").split("/"),c=t.split("/");c.pop();for(var u=0;u-1)&&(On.indexOf(t)>-1||Pn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Mn(e){var t=e.redirect,n=xn(t),r=xn(An);return kn()!==r&&n!==r}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Mn({redirect:n})){var r=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(An,n);Ln?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((function(){i[t]({url:r})}))}}function Nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=pe(),n=t.token,r=t.tokenExpired;if(n){if(r0)return setTimeout((function(){ae(Q,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Fn(){!function(){var e=_n(),t=Nn({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&jn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];uni.addInterceptor(n,{invoke:function(e){var t=Nn({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(jn({api:n,redirect:Dn(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=ne(Q);ce().then((function(){var n=_n();if(n&&Mn({redirect:n}))return t.length>0?ae(Q,Object.assign({uniIdRedirectUrl:n},e)):void(An&&jn({api:"navigateTo",redirect:n}))}))}(n)}))}function qn(e){!function(e){e.onResponse=function(e){re(Y,e)},e.offResponse=function(e){ie(Y,e)}}(e),function(e){e.onNeedLogin=function(e){re(Q,e)},e.offNeedLogin=function(e){ie(Q,e)},In&&(B("_globalUniCloudStatus").needLoginInit||(B("_globalUniCloudStatus").needLoginInit=!0,ce().then((function(){Fn.call(e)})),Cn&&Un.call(e)))}(e),function(e){e.onRefreshToken=function(e){re(X,e)},e.offRefreshToken=function(e){ie(X,e)}}(e)}var Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Vn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function $n(){var e,t,n=pe().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Sn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Sn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Vn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",a=0;a>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var zn=b((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function a(e,t,r){var i=r.onChooseFile,a=r.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var a=t.tempFiles,o=a.length,s=0;return new Promise((function(n){for(;s=o)!a.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=a[r];e.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=u,e.tempFilePath=u.path,i&&i(e)}}).then((function(e){u.url=e.fileID,r0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?a(e,function(e){var t=e.count,n=e.sizeType,a=e.sourceType,o=void 0===a?["album","camera"]:a,s=e.extension;return new Promise((function(e,a){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:s,success:function(t){e(i(t,"image"))},fail:function(e){a({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})}))}(t),t):"video"===t.type?a(e,function(e){var t=e.camera,n=e.compressed,a=e.maxDuration,o=e.sourceType,s=void 0===o?["album","camera"]:o,c=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:a,sourceType:s,extension:c,success:function(t){var n=t.tempFilePath,r=t.duration,a=t.size,o=t.height,s=t.width;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})}))}(t),t):a(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,a){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return a({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success:function(t){e(i(t))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})}))}(t),t)}}})),Kn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(zn);function Wn(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var r=!1,i=[],a=2;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,a=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=a.length0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),i=n.action||this.action;i&&(r=r.action(i));var a=n.collection||this.collection;r=Array.isArray(a)?(t=r).collection.apply(t,(0,s.default)(a)):r.collection(a);var o=n.where||this.where;o&&Object.keys(o).length&&(r=r.where(o));var c=n.field||this.field;c&&(r=r.field(c));var u=n.foreignKey||this.foreignKey;u&&(r=r.foreignKey(u));var l=n.groupby||this.groupby;l&&(r=r.groupBy(l));var d=n.groupField||this.groupField;d&&(r=r.groupField(d)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var f=n.orderby||this.orderby;f&&(r=r.orderBy(f));var h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,v=void 0!==n.getcount?n.getcount:this.getcount,m=void 0!==n.gettree?n.gettree:this.gettree,g=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,b={getCount:v},y={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return m&&(b.getTree=y),g&&(b.getTreePath=y),r=r.skip(p*(h-1)).limit(p).get(b),r}}}}function Jn(e){return B("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Hn(){return Gn.apply(this,arguments)}function Gn(){return Gn=(0,l.default)((0,u.default)().mark((function e(){var t,n,r,i,a,o,s,c=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r,a=Jn(this),"mp-weixin"===F){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(F,"`"));case 4:if(!n||!i){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(a.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){uni.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return o=e.sent,s=this.importObject("uni-id-co",{customUI:!0}),e.next=14,s.secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:i});case 14:return a.mpWeixinCode=o,e.abrupt("return",{code:o});case 16:case"end":return e.stop()}}),e,this)}))),Gn.apply(this,arguments)}function Yn(e){return Qn.apply(this,arguments)}function Qn(){return Qn=(0,l.default)((0,u.default)().mark((function e(t){var n;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Jn(this),e.abrupt("return",(n.initPromise||(n.initPromise=Hn.call(this,t)),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),Qn.apply(this,arguments)}function Xn(e){var t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise((function(r,i){t[e]((0,d.default)((0,d.default)({},n),{},{success:function(e){r(e)},fail:function(e){i(e)}}))}))}}var Zn=function(e){(0,f.default)(n,e);var t=(0,h.default)(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,i.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([Xn("getSystemInfo")(),Xn("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,a.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,o=n[1];o=void 0===o?{}:o;var s=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!s)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=s,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){uni.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){uni.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,v.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0)return e.init(t).database();if(this._database)return this._database;var n=fn(hn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=fn(hn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=$n,e.chooseAndUploadFile=Kn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Wn(e)}}),e.SSEChannel=Zn,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return Yn.call(e,{openid:n,callLoginByWeixin:i})}}(e),e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,o.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var r=n,i=r.customUI,a=r.loadingOptions,s=r.errorOptions,c=r.parseSystemError,f=!i;return new Proxy({},{get:function(r,i){switch(i){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,l.default)((0,u.default)().mark((function e(){var i,a,o,s,c,l,f=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,a=new Array(i),o=0;o0&&void 0!==s[0]?s[0]:{},n=t.title,r=t.content,i=t.showCancel,a=t.cancelText,o=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:r,showCancel:i,cancelText:a,confirmText:o,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:T,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});case 33:if(A=r.sent,P=A.confirm,!s.retry||!P){r.next=37;break}return r.abrupt("return",h.apply(void 0,m));case 37:throw C=new fe({subject:_,code:k,message:w,requestId:p.requestId}),C.detail=p.result,ae(Y,{type:te,content:C}),C;case 39:return r.abrupt("return",(ae(Y,{type:te,content:p.result}),p.result));case 40:case"end":return r.stop()}}),r,null,[[5,11]])})));function h(){return r.apply(this,arguments)}return h}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:i,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var a=n&&n.type||S;i=a!==S}var o="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var c=ue(n),u=c.success,l=c.fail,d=c.complete,f=s.then((function(){return i?Promise.resolve():W(J(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):W(J(t,"success"),e).then((function(){return W(J(t,"complete"),e)})).then((function(){return o&&ae(Y,{type:ee,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):W(J(t,"fail"),e).then((function(){return W(J(t,"complete"),e)})).then((function(){return ae(Y,{type:ee,content:e}),Promise.reject(e)}))}));if(!(u||l||d))return f;f.then((function(e){u&&u(e),d&&d(e),o&&ae(Y,{type:ee,content:e})}),(function(e){l&&l(e),d&&d(e),o&&ae(Y,{type:ee,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=U,t={};if(e&&1===e.length)t=e[0],tr=tr.init(t),tr._isDefault=!0;else{var n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){tr[e]=function(){return console.error(n),Promise.reject(new fe({code:"SYS_ERR",message:n}))}}))}Object.assign(tr,{get mixinDatacom(){return Wn(tr)}}),qn(tr),tr.addInterceptor=z,tr.removeInterceptor=K,tr.interceptObject=H})();var nr=tr;t.default=nr}).call(this,n("c8ba"))},aff5:function(e,t,n){var r=n("23e7");r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},b380:function(e,t,n){"use strict";function r(e,n){return t.default=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,n)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,n("131a")},b6cd:function(e,t,n){"use strict";var r=n("85bf"),i=n.n(r);i.a},b85c:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.default)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw o}}}},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var r=function(e){return e&&e.__esModule?e:{default:e}}(n("06c5"))},baa5:function(e,t,n){var r=n("23e7"),i=n("e58c");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},c11c:function(e,t,n){"use strict";(function(e){n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("fb6a"),n("7db0"),n("d3b7"),n("159b"),n("ac1f"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("c975"),n("99af");var r={name:"uni-data-select",mixins:[e.mixinDatacom||{}],props:{localdata:{type:Array,default:function(){return[]}},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:function(){return{showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}},created:function(){var e=this;this.debounceGet=this.debounce((function(){e.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder:function(){var e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom:function(){return this.value},textShow:function(){var e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement:function(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler:function(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom:function(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler:function(e){e.length&&this.initDefVal()}}},methods:{debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=null;return function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o0&&this.defItem<=this.mixinDatacomResData.length&&(n=this.mixinDatacomResData[this.defItem-1].value),e=n}(e||0===e)&&this.emit(e)}else e=this.valueCom;var r=this.mixinDatacomResData.find((function(t){return t.value===e}));this.current=r?this.formatItemName(r):""},isDisabled:function(e){var t=!1;return this.mixinDatacomResData.forEach((function(n){n.value===e&&(t=n.disable)})),t},clearVal:function(){this.emit(""),this.collection&&this.removeCache()},change:function(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit:function(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector:function(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName:function(e){var t=e.text,n=e.value,r=e.channel_code;if(r=r?"(".concat(r,")"):"",this.format){var i="";for(var a in i=this.format,e)i=i.replace(new RegExp("{".concat(a,"}"),"g"),e[a]);return i}return this.collection.indexOf("app-list")>0?"".concat(t,"(").concat(n,")"):t||"未命名".concat(r)},getLoadData:function(){return this.mixinDatacomResData},getCurrentCacheKey:function(){return this.collection},getCache:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getCurrentCacheKey(),t=uni.getStorageSync(this.cacheKey)||{};return t[e]},setCache:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentCacheKey(),n=uni.getStorageSync(this.cacheKey)||{};n[t]=e,uni.setStorageSync(this.cacheKey,n)},removeCache:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getCurrentCacheKey(),t=uni.getStorageSync(this.cacheKey)||{};delete t[e],uni.setStorageSync(this.cacheKey,t)}}};t.default=r}).call(this,n("a9ff")["default"])},c60a:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},pages:[{path:"pages/index/index",style:{navigationBarTitleText:"电子发票",navigationBarBackgroundColor:"#000",navigationBarTextStyle:"white"}},{path:"pages/Invoicing/Invoicing",style:{navigationBarTitleText:"开发票",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#000",navigationBarTextStyle:"white"}},{path:"pages/Invoiced/Invoiced",style:{navigationBarTitleText:"查看已开发票",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#000",navigationBarTextStyle:"white"}},{path:"pages/wxlogin/wxlogin",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"pages/wxlogin/registerphone",style:{navigationBarTitleText:"手机号绑定",enablePullDownRefresh:!1}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},uniIdRouter:{}}},c7eb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){ -/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ -t.default=function(){return e};var e={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new A(r||[]);return a(o,"_invoke",{value:w(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=d;var h={};function p(){}function v(){}function m(){}var g={};l(g,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(P([])));y&&y!==n&&i.call(y,s)&&(g=y);var x=m.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var n;a(this,"_invoke",{value:function(a,o){function s(){return new t((function(n,s){(function n(a,o,s,c){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==(0,r.default)(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)})(a,o,n,s)}))}return n=n?n.then(s,s):s()}})}function w(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator["return"]&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var r=function(e){return e&&e.__esModule?e:{default:e}}(n("53ca"))},cab1:function(e,t,n){"use strict";n.r(t);var r=n("fe08"),i=n("dbf0");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("32d0");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"15bbdc00",null,!1,r["a"],void 0);t["default"]=s.exports},cb50:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-data-loading[data-v-5d9f4685]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:36px;padding-left:10px;color:#999}.uni-data-checklist[data-v-5d9f4685]{position:relative;z-index:0;flex:1}.uni-data-checklist .checklist-group[data-v-5d9f4685]{display:flex;flex-direction:row;flex-wrap:wrap}.uni-data-checklist .checklist-group.is-list[data-v-5d9f4685]{flex-direction:column}.uni-data-checklist .checklist-group .checklist-box[data-v-5d9f4685]{display:flex;flex-direction:row;align-items:center;position:relative;margin:5px 0;margin-right:25px}.uni-data-checklist .checklist-group .checklist-box .hidden[data-v-5d9f4685]{position:absolute;opacity:0}.uni-data-checklist .checklist-group .checklist-box .checklist-content[data-v-5d9f4685]{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:space-between}.uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text[data-v-5d9f4685]{font-size:14px;color:#666;margin-left:5px;line-height:14px}.uni-data-checklist .checklist-group .checklist-box .checklist-content .checkobx__list[data-v-5d9f4685]{border-right-width:1px;border-right-color:#007aff;border-right-style:solid;border-bottom-width:1px;border-bottom-color:#007aff;border-bottom-style:solid;height:12px;width:6px;left:-5px;-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}.uni-data-checklist .checklist-group .checklist-box .checkbox__inner[data-v-5d9f4685]{flex-shrink:0;box-sizing:border-box;position:relative;width:16px;height:16px;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;z-index:1}.uni-data-checklist .checklist-group .checklist-box .checkbox__inner .checkbox__inner-icon[data-v-5d9f4685]{position:absolute;top:1px;left:5px;height:8px;width:4px;border-right-width:1px;border-right-color:#fff;border-right-style:solid;border-bottom-width:1px;border-bottom-color:#fff;border-bottom-style:solid;opacity:0;-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate(40deg);transform:rotate(40deg)}.uni-data-checklist .checklist-group .checklist-box .radio__inner[data-v-5d9f4685]{display:flex;flex-shrink:0;box-sizing:border-box;justify-content:center;align-items:center;position:relative;width:16px;height:16px;border:1px solid #dcdfe6;border-radius:16px;background-color:#fff;z-index:1}.uni-data-checklist .checklist-group .checklist-box .radio__inner .radio__inner-icon[data-v-5d9f4685]{width:8px;height:8px;border-radius:10px;opacity:0}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable[data-v-5d9f4685]{cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable .checkbox__inner[data-v-5d9f4685]{background-color:#f2f6fc;border-color:#dcdfe6;cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable .radio__inner[data-v-5d9f4685]{background-color:#f2f6fc;border-color:#dcdfe6}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable .checklist-text[data-v-5d9f4685]{color:#999}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner[data-v-5d9f4685]{border-color:#2979ff;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner .checkbox__inner-icon[data-v-5d9f4685]{opacity:1;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .radio__inner[data-v-5d9f4685]{border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .radio__inner .radio__inner-icon[data-v-5d9f4685]{opacity:1;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checklist-text[data-v-5d9f4685]{color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable .checkbox__inner[data-v-5d9f4685]{opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable .checklist-text[data-v-5d9f4685]{opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable .radio__inner[data-v-5d9f4685]{opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--button[data-v-5d9f4685]{margin-right:10px;padding:5px 10px;border:1px #dcdfe6 solid;border-radius:3px;transition:border-color .2s}.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable[data-v-5d9f4685]{cursor:not-allowed;border:1px #eee solid;opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable .checkbox__inner[data-v-5d9f4685]{background-color:#f2f6fc;border-color:#dcdfe6;cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable .radio__inner[data-v-5d9f4685]{background-color:#f2f6fc;border-color:#dcdfe6;cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable .checklist-text[data-v-5d9f4685]{color:#999}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked[data-v-5d9f4685]{border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checkbox__inner[data-v-5d9f4685]{border-color:#2979ff;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checkbox__inner .checkbox__inner-icon[data-v-5d9f4685]{opacity:1;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .radio__inner[data-v-5d9f4685]{border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .radio__inner .radio__inner-icon[data-v-5d9f4685]{opacity:1;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checklist-text[data-v-5d9f4685]{color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked.is-disable[data-v-5d9f4685]{opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--tag[data-v-5d9f4685]{margin-right:10px;padding:5px 10px;border:1px #dcdfe6 solid;border-radius:3px;background-color:#f5f5f5}.uni-data-checklist .checklist-group .checklist-box.is--tag .checklist-text[data-v-5d9f4685]{margin:0;color:#666}.uni-data-checklist .checklist-group .checklist-box.is--tag.is-disable[data-v-5d9f4685]{cursor:not-allowed;opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked[data-v-5d9f4685]{background-color:#2979ff;border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked .checklist-text[data-v-5d9f4685]{color:#fff}.uni-data-checklist .checklist-group .checklist-box.is--list[data-v-5d9f4685]{display:flex;padding:10px 15px;padding-left:0;margin:0}.uni-data-checklist .checklist-group .checklist-box.is--list.is-list-border[data-v-5d9f4685]{border-top:1px #eee solid}.uni-data-checklist .checklist-group .checklist-box.is--list.is-disable[data-v-5d9f4685]{cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--list.is-disable .checkbox__inner[data-v-5d9f4685]{background-color:#f2f6fc;border-color:#dcdfe6;cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--list.is-disable .checklist-text[data-v-5d9f4685]{color:#999}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checkbox__inner[data-v-5d9f4685]{border-color:#2979ff;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checkbox__inner .checkbox__inner-icon[data-v-5d9f4685]{opacity:1;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .radio__inner[data-v-5d9f4685]{border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .radio__inner .radio__inner-icon[data-v-5d9f4685]{opacity:1;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checklist-text[data-v-5d9f4685]{color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checklist-content .checkobx__list[data-v-5d9f4685]{opacity:1;border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable .checkbox__inner[data-v-5d9f4685]{opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable .checklist-text[data-v-5d9f4685]{opacity:.4}',""]),e.exports=t},d1ce:function(e,t,n){var r=n("7b69");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("6a2ded53",r,!0,{sourceMap:!1,shadowMode:!1})},d5b8:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("c7eb")),a=r(n("1da1")),o=r(n("ade3"));n("a9e3"),n("7db0"),n("d3b7"),n("99af"),n("159b"),n("c975"),n("e9c4"),n("14d9"),n("ddb0");var s=r(n("502a")),c=n("49a3"),u=r(n("e143"));u.default.prototype.binddata=function(e,t,n){if(n)this.$refs[n].setValue(e,t);else{var r;for(var i in this.$refs){var a=this.$refs[i];if(a&&a.$options&&"uniForms"===a.$options.name){r=a;break}}if(!r)return console.error("当前 uni-froms 组件缺少 ref 属性");r.setValue(e,t)}};var l={name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:function(){return null}},modelValue:{type:Object,default:function(){return null}},model:{type:Object,default:function(){return null}},rules:{type:Object,default:function(){return{}}},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide:function(){return{uniForm:this}},data:function(){return{formData:{},formRules:{}}},computed:{localData:function(){var e=this.model||this.modelValue||this.value;return e?(0,c.deepCopy)(e):{}}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created:function(){this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules:function(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new s.default(e)},setValue:function(e,t){var n=this.childrens.find((function(t){return t.name===e}));return n?(this.formData[e]=(0,c.getValue)(e,t,this.formRules[e]&&this.formRules[e].rules||[]),n.onFieldChange(this.formData[e])):null},validate:function(e,t){return this.checkAll(this.formData,e,t)},validateField:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;t=[].concat(t);var r={};return this.childrens.forEach((function(n){var i=(0,c.realName)(n.name);-1!==t.indexOf(i)&&(r=Object.assign({},r,(0,o.default)({},i,e.formData[i])))})),this.checkAll(r,[],n)},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e=[].concat(e),this.childrens.forEach((function(t){if(0===e.length)t.errMsg="";else{var n=(0,c.realName)(t.name);-1!==e.indexOf(n)&&(t.errMsg="")}}))},submit:function(e,t,n){var r=this,i=function(e){var t=r.childrens.find((function(t){return t.name===e}));t&&void 0===r.formData[e]&&(r.formData[e]=r._getValue(e,r.dataValue[e]))};for(var a in this.dataValue)i(a);return n||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},checkAll:function(e,t,n,r){var o=this;return(0,a.default)((0,i.default)().mark((function a(){var s,u,l,d,f,h,p,v,m,g,b;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(o.validator){a.next=2;break}return a.abrupt("return");case 2:for(l in s=[],u=function(e){var t=o.childrens.find((function(t){return(0,c.realName)(t.name)===e}));t&&s.push(t)},e)u(l);n||"function"!==typeof t||(n=t),!n&&"function"!==typeof n&&Promise&&(d=new Promise((function(e,t){n=function(n,r){n?t(n):e(r)}}))),f=[],h=JSON.parse(JSON.stringify(e)),a.t0=(0,i.default)().keys(s);case 10:if((a.t1=a.t0()).done){a.next=23;break}return p=a.t1.value,v=s[p],m=(0,c.realName)(v.name),a.next=16,v.onFieldChange(h[m]);case 16:if(g=a.sent,!g){a.next=21;break}if(f.push(g),"toast"!==o.errShowType&&"modal"!==o.errShowType){a.next=21;break}return a.abrupt("break",23);case 21:a.next=10;break;case 23:if(Array.isArray(f)&&0===f.length&&(f=null),Array.isArray(t)&&t.forEach((function(e){var t=(0,c.realName)(e),n=(0,c.getDataValue)(e,o.localData);void 0!==n&&(h[t]=n)})),"submit"===r?o.$emit("submit",{detail:{value:h,errors:f}}):o.$emit("validate",f),{},b=(0,c.rawData)(h,o.name),n&&"function"===typeof n&&n(f,b),!d||!n){a.next=33;break}return a.abrupt("return",d);case 33:return a.abrupt("return",null);case 34:case"end":return a.stop()}}),a)})))()},validateCheck:function(e){this.$emit("validate",e)},_getValue:c.getValue,_isRequiredField:c.isRequiredField,_setDataValue:c.setDataValue,_getDataValue:c.getDataValue,_realName:c.realName,_isRealName:c.isRealName,_isEqual:c.isEqual}};t.default=l},d86b:function(e,t,n){var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d967:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},n("d3b7"),n("f8c9"),n("4ae1")},dbf0:function(e,t,n){"use strict";n.r(t);var r=n("d5b8"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},dc0d:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniIcons:n("461b").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-stat__select"},[e.label?n("span",{staticClass:"uni-label-text hide-on-phone"},[e._v(e._s(e.label+":"))]):e._e(),n("v-uni-view",{staticClass:"uni-stat-box",class:{"uni-stat__actived":e.current}},[n("v-uni-view",{staticClass:"uni-select",class:{"uni-select--disabled":e.disabled}},[n("v-uni-view",{staticClass:"uni-select__input-box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}},[e.current?n("v-uni-view",{staticClass:"uni-select__input-text"},[e._v(e._s(e.textShow))]):n("v-uni-view",{staticClass:"uni-select__input-text uni-select__input-placeholder"},[e._v(e._s(e.typePlaceholder))]),e.current&&e.clear&&!e.disabled?n("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clearVal.apply(void 0,arguments)}}},[n("uni-icons",{attrs:{type:"clear",color:"#c0c4cc",size:"24"}})],1):n("v-uni-view",[n("uni-icons",{attrs:{type:e.showSelector?"top":"bottom",size:"14",color:"#999"}})],1)],1),e.showSelector?n("v-uni-view",{staticClass:"uni-select--mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}}):e._e(),e.showSelector?n("v-uni-view",{staticClass:"uni-select__selector",style:e.getOffsetByPlacement},[n("v-uni-view",{class:"bottom"==e.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top"}),n("v-uni-scroll-view",{staticClass:"uni-select__selector-scroll",attrs:{"scroll-y":"true"}},[0===e.mixinDatacomResData.length?n("v-uni-view",{staticClass:"uni-select__selector-empty"},[n("v-uni-text",[e._v(e._s(e.emptyTips))])],1):e._l(e.mixinDatacomResData,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-select__selector-item",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.change(t)}}},[n("v-uni-text",{class:{"uni-select__selector__disabled":t.disable}},[e._v(e._s(e.formatItemName(t)))])],1)}))],2)],1):e._e()],1)],1)],1)},a=[]},dff9:function(e,t,n){"use strict";var r=n("d1ce"),i=n.n(r);i.a},e3ce:function(e,t,n){var r=n("4ebb");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("22083902",r,!0,{sourceMap:!1,shadowMode:!1})},eccb:function(e,t,n){"use strict";n.r(t);var r=n("0157"),i=n("4351");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("3d8b");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"5d9f4685",null,!1,r["a"],void 0);t["default"]=s.exports},f010:function(e,t,n){"use strict";n.r(t);var r=n("0939"),i=n("950d");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("5dc7");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"3a9b6fc9",null,!1,r["a"],void 0);t["default"]=s.exports},f183:function(e,t,n){var r=n("23e7"),i=n("e330"),a=n("d012"),o=n("861d"),s=n("1a2d"),c=n("9bf2").f,u=n("241c"),l=n("057f"),d=n("4fad"),f=n("90e3"),h=n("bb2f"),p=!1,v=f("meta"),m=0,g=function(e){c(e,v,{value:{objectID:"O"+m++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},p=!0;var e=u.f,t=i([].splice),n={};n[v]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,a=r.length;i=r?n("v-uni-view",{staticStyle:{color:"#fff","background-color":"#228def"}},[e._v(e._s(r+1))]):n("v-uni-view",[e._v(e._s(r+1))]),n("v-uni-text",{staticStyle:{"font-weight":"bold"},style:{color:e.stepsIndex>=r?"#228ded":"#909090"}},[e._v(e._s(t.text))])],1),r!=e.stepsDatas.length-1?n("v-uni-view",{key:r+"_1",class:["view_line",e.stepsIndex<=r?"line_bgcolor1":"line_bgcolor"]}):e._e()]}))],2),n("v-uni-view",{staticClass:"write",attrs:{isFull:!0}},[n("v-uni-view",{staticClass:"flex flex-direction-column"},[n("v-uni-view",{staticClass:"header"},[0===e.stepsIndex?n("v-uni-view",[n("v-uni-view",{staticClass:"form-title"},[e._v("开票信息:")]),n("v-uni-view",{staticClass:"form-box"},[n("uni-forms",{ref:"form",attrs:{modelValue:e.list1}},[n("uni-forms-item",{attrs:{label:"开票项目:",required:!0,name:"name","label-width":85}},[n("uni-data-select",{attrs:{clear:!1,localdata:e.range,placeholder:"请选择开票项目"},model:{value:e.list1.project_id,callback:function(t){e.$set(e.list1,"project_id",t)},expression:"list1.project_id"}})],1),n("uni-forms-item",{attrs:{label:"合并开票:",required:!0,name:"name","label-width":85}},[n("v-uni-radio-group",{staticStyle:{height:"100%",display:"flex","align-items":"center"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.radioChange.apply(void 0,arguments)}}},e._l(e.mergelist,(function(t,r){return n("v-uni-label",{key:t.value},[n("v-uni-radio",{attrs:{value:t.value,checked:e.list1.merge===t.value}}),n("v-uni-text",[e._v(e._s(t.text))])],1)})),1)],1),n("uni-forms-item",{attrs:{label:"用户编号:",required:!0,name:"name","label-width":85}},[n("uni-combox",{attrs:{border:!1,candidates:e.candidates,placeholder:"请选择或输入用户编号"},model:{value:e.list1.pucode,callback:function(t){e.$set(e.list1,"pucode",t)},expression:"list1.pucode"}})],1),n("uni-forms-item",{attrs:{label:"账期:",required:!0,name:"name","label-width":85}},[n("v-uni-view",{staticStyle:{height:"72rpx","line-height":"72rpx","margin-left":"20rpx","margin-right":"18rpx"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPopup.apply(void 0,arguments)}}},[e.list1.expire_time?n("v-uni-view",{staticStyle:{"font-size":"28rpx",height:"100%",display:"flex","justify-content":"space-between"}},[n("v-uni-view",[e._v(e._s(e.list1.expire_time))]),n("v-uni-view",[n("uni-icons",{attrs:{type:"down",size:"30rpx",color:"rgb(153, 153, 153)"}})],1)],1):n("v-uni-view",{staticStyle:{color:"#999","font-size":"28rpx",height:"100%",display:"flex","justify-content":"space-between"}},[n("v-uni-view",[e._v("请选择账期")]),n("v-uni-view",[n("uni-icons",{attrs:{type:"down",size:"30rpx",color:"rgb(153, 153, 153)"}})],1)],1)],1)],1),n("v-uni-view",{staticClass:"form-title"},[e._v("接收方式:")]),n("uni-forms-item",{attrs:{label:"手机号:",required:!0,name:"name","label-width":85}},[n("uni-easyinput",{attrs:{type:"text",styles:e.styles,inputBorder:!1,placeholder:"请输入可用手机号码"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)}},model:{value:e.list1.phone,callback:function(t){e.$set(e.list1,"phone",t)},expression:"list1.phone"}})],1),n("uni-forms-item",{staticStyle:{"margin-left":"40rpx"},attrs:{label:"邮箱:",name:"name","label-width":78}},[n("uni-easyinput",{attrs:{type:"text",inputBorder:!1,placeholder:"请输入邮箱"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.validateEmail.apply(void 0,arguments)}},model:{value:e.list1.email,callback:function(t){e.$set(e.list1,"email",t)},expression:"list1.email"}})],1)],1)],1)],1):e._e(),1===e.stepsIndex?n("v-uni-view",[n("v-uni-view",{staticClass:"lookup"},[n("v-uni-view",{staticClass:"lookup-title"},[e._v("抬头信息:")]),n("v-uni-view",{staticClass:"lookup-title1",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.Obtain.apply(void 0,arguments)}}},[n("uni-icons",{attrs:{type:"redo-filled",size:"30rpx",color:"#007aff"}}),e._v("导入发票抬头")],1)],1),n("uni-forms",{ref:"form1",attrs:{modelValue:e.list2}},[n("uni-forms-item",{attrs:{label:"抬头类型",required:!0,name:"name","label-width":85}},[n("v-uni-radio-group",{staticStyle:{height:"100%",display:"flex","align-items":"center"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.radioChange2.apply(void 0,arguments)}}},e._l(e.headerType,(function(t,r){return n("v-uni-label",{key:t.value},[n("v-uni-radio",{attrs:{value:t.value,checked:e.list2.type===t.value}}),n("v-uni-text",[e._v(e._s(t.text))])],1)})),1)],1),n("uni-forms-item",{attrs:{label:"名称",required:!0,name:"name","label-width":85}},[n("uni-easyinput",{attrs:{type:"text",inputBorder:!1,placeholder:"请输入抬头名称"},model:{value:e.list2.title,callback:function(t){e.$set(e.list2,"title",t)},expression:"list2.title"}})],1),n("uni-forms-item",{attrs:{label:"税号",required:!0,name:"name","label-width":85}},[n("uni-easyinput",{attrs:{type:"text",inputBorder:!1,placeholder:"请输入纳税人识别号"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.taxiD.apply(void 0,arguments)}},model:{value:e.list2.tax_number,callback:function(t){e.$set(e.list2,"tax_number",t)},expression:"list2.tax_number"}})],1)],1)],1):e._e(),2===e.stepsIndex?n("v-uni-view",[n("v-uni-view",{staticClass:"form-title"},[e._v("开票信息")]),n("uni-forms",[n("uni-forms-item",{attrs:{label:"开票项目",name:"name","label-width":85}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.project_id1(e.list1.project_id)))])],1),n("uni-forms-item",{attrs:{label:"开票金额",name:"name","label-width":85}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.amount))])],1),n("v-uni-view",{staticClass:"form-title"},[e._v("抬头信息")]),n("uni-forms-item",{attrs:{label:"抬头类型",name:"name","label-width":85}},[n("v-uni-radio-group",{staticStyle:{height:"100%",display:"flex","align-items":"center"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.radioChange2.apply(void 0,arguments)}}},e._l(e.headerType,(function(t,r){return n("v-uni-label",{key:t.value},[n("v-uni-radio",{attrs:{value:e.list2.type,checked:e.list2.type===t.value,disabled:!0}}),n("v-uni-text",[e._v(e._s(t.text))])],1)})),1)],1),n("uni-forms-item",{attrs:{label:"名称",name:"name","label-width":85}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list2.title))])],1),n("uni-forms-item",{attrs:{label:"税号",name:"name","label-width":85}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list2.tax_number))])],1),n("v-uni-view",{staticClass:"form-title"},[e._v("接收方式")]),n("uni-forms-item",{attrs:{label:"邮箱",name:"name","label-width":85}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list1.email))])],1),n("uni-forms-item",{attrs:{label:"手机号",name:"name","label-width":85}},[n("v-uni-view",{staticClass:"list3_box"},[e._v(e._s(e.list1.phone))])],1)],1)],1):e._e()],1)],1)],1),n("v-uni-view",{staticClass:"flex justify-end"},[n("v-uni-view",{staticClass:"bottom"},[0!==e.stepsIndex?n("v-uni-button",{staticClass:"btn1",attrs:{"data-type":"prev"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeSteps.apply(void 0,arguments)}}},[e._v("上一步")]):e._e()],1),n("v-uni-view",{staticClass:"bottom bottom-next"},[2!==e.stepsIndex?n("v-uni-button",{staticClass:"btn",attrs:{"data-type":"next"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeSteps.apply(void 0,arguments)}}},[e._v("下一步")]):e._e()],1),n("v-uni-view",{staticClass:"bottom bottom-next",staticStyle:{"padding-bottom":"30rpx"}},[0!==e.stepsIndex&&1!==e.stepsIndex?n("v-uni-button",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submitForm.apply(void 0,arguments)}}},[e._v("提交")]):e._e()],1)],1),n("uni-popup",{ref:"inputDialog",attrs:{type:"dialog"}},[n("uni-popup-dialog",{ref:"inputClose",attrs:{mode:"base",title:" ",showClose:!1,confirmText:"知道了",content:"该账单还未缴费,请先完成缴费。"}})],1),n("uni-popup",{ref:"popup",attrs:{type:"bottom","background-color":"#fff"}},[n("v-uni-view",{staticStyle:{height:"280px"}},[n("v-uni-view",{staticClass:"popup-header"},[n("v-uni-view",{staticStyle:{color:"#999"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancel.apply(void 0,arguments)}}},[e._v("取消")]),n("v-uni-view",{staticStyle:{color:"#488fd2"}},[e._v("更多账期")]),n("v-uni-view",{staticStyle:{color:"#646a8e"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v("确认")])],1),n("v-uni-picker-view",{staticClass:"picker-view",attrs:{"indicator-style":e.indicatorStyle,value:e.pickerValue},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.onPickerChange.apply(void 0,arguments)}}},[n("v-uni-picker-view-column",e._l(e.years,(function(t,r){return n("v-uni-view",{key:r,staticClass:"item"},[e._v(e._s(t)+"年")])})),1),n("v-uni-picker-view-column",e._l(e.months,(function(t,r){return n("v-uni-view",{key:r,staticClass:"item"},[e._v(e._s(t<10?"0"+t:t)+"月")])})),1)],1)],1)],1)],1)},a=[]},"3d0d":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-forms-item[data-v-cb401e56]{position:relative;display:flex;margin-bottom:22px;flex-direction:row}.uni-forms-item__label[data-v-cb401e56]{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label[data-v-cb401e56]{padding:0}.uni-forms-item__content[data-v-cb401e56]{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item .uni-forms-item__nuve-content[data-v-cb401e56]{display:flex;flex-direction:column;flex:1}.uni-forms-item__error[data-v-cb401e56]{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-transform:translateY(-100%);transform:translateY(-100%);opacity:0}.uni-forms-item__error .error-text[data-v-cb401e56]{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active[data-v-cb401e56]{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.uni-forms-item.is-direction-left[data-v-cb401e56]{flex-direction:row}.uni-forms-item.is-direction-top[data-v-cb401e56]{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label[data-v-cb401e56]{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:normal}.uni-forms-item .is-required[data-v-cb401e56]{color:#dd524d;font-weight:700}.uni-forms-item--border[data-v-cb401e56]{margin-bottom:0;padding:10px 0;border-top:1px #eee solid}.uni-forms-item--border .uni-forms-item__content[data-v-cb401e56]{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error[data-v-cb401e56]{position:relative;top:5px;left:0;padding-top:0}.is-first-border[data-v-cb401e56]{border:none}',""]),e.exports=t},"3d6d":function(e,t,n){"use strict";var r=n("2204"),i=n.n(r);i.a},4478:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,n("4ae1"),n("d3b7"),n("f8c9"),n("14d9");var r=a(n("b380")),i=a(n("d967"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,n,a){return(0,i.default)()?t.default=o=Reflect.construct.bind():t.default=o=function(e,t,n){var i=[null];i.push.apply(i,t);var a=Function.bind.apply(e,i),o=new a;return n&&(0,r.default)(o,n.prototype),o},o.apply(null,arguments)}},"49a3":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.typeFilter=t.type=t.setDataValue=t.realName=t.rawData=t.objSet=t.objGet=t.name2arr=t.isRequiredField=t.isRealName=t.isNumber=t.isEqual=t.isBoolean=t.getValue=t.getDataValueType=t.getDataValue=t.deepCopy=void 0;var i=r(n("53ca"));n("e9c4"),n("7db0"),n("d3b7"),n("a9e3"),n("13d5"),n("ac1f"),n("00b4"),n("5319"),n("d81d"),n("7039"),n("d401"),n("25f0");t.deepCopy=function(e){return JSON.parse(JSON.stringify(e))};var a=function(e){return"int"===e||"double"===e||"number"===e||"timestamp"===e};t.typeFilter=a;t.getValue=function(e,t,n){var r=n.find((function(e){return e.format&&a(e.format)})),i=n.find((function(e){return e.format&&"boolean"===e.format||"bool"===e.format}));return r&&(t=t||0===t?f(Number(t))?Number(t):t:null),i&&(t=!!d(t)&&t),t};t.setDataValue=function(e,t,n){return t[e]=n,n||""};var o=function(e,t){return l(t,e)};t.getDataValue=o;t.getDataValueType=function(e,t){var n=o(e,t);return{type:h(n),value:n}};t.realName=function(e){var t=c(e);if("object"===(0,i.default)(t)&&Array.isArray(t)&&t.length>1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.isRealName=function(e){return/^_formdata_#*/.test(e)};t.rawData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var r in t){var i=s(r);u(n,i,t[r])}return n};var s=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return f(e)?Number(e):e})),t};t.name2arr=s;var u=function(e,t,n){return"object"!==(0,i.default)(e)||c(t).reduce((function(e,t,r,i){return r===i.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[r+1])?[]:{}),e[t])}),e),e};function c(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=u;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=c(t),i=r.reduce((function(e,t){return(e||{})[t]}),e);return i&&void 0===i?n:i};t.objGet=l;var f=function(e){return!isNaN(Number(e))};t.isNumber=f;var d=function(e){return"boolean"===typeof e};t.isBoolean=d;t.isRequiredField=function(e){for(var t=!1,n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var r=t;for(var i in e){var a=new RegExp("{"+i+"}");r=r.replace(a,e[i])}return r}var p={integer:function(e){return p.number(e)&&parseInt(e,10)===e},string:function(e){return"string"===typeof e},number:function(e){return!isNaN(e)&&"number"===typeof e},boolean:function(e){return"boolean"===typeof e},float:function(e){return p.number(e)&&!p.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===(0,l.default)(e)&&!p.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(f.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(f.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(f.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},v=function(){function e(t){(0,u.default)(this,e),this._message=t}return(0,c.default)(e,[{key:"validateRule",value:function(){var e=(0,s.default)((0,o.default)().mark((function e(t,n,r,i,a){var s,u,c,l,f,d,h,p,v;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=null,u=n.rules,c=u.findIndex((function(e){return e.required})),!(c<0)){e.next=8;break}if(null!==r&&void 0!==r){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof r||r.length){e.next=8;break}return e.abrupt("return",s);case 8:if(l=this._message,void 0!==u){e.next=11;break}return e.abrupt("return",l["default"]);case 11:f=0;case 12:if(!(f-1&&(u=!0),u?null:h(e,i||n["enum"])},rangeNumber:function(e,t,n){if(!p.number(t))return h(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,i=e.maximum,a=e.exclusiveMinimum,o=e.exclusiveMaximum,s=a?t<=r:t=i:t>i;return void 0!==r&&s?h(e,e.errorMessage||n["number"][a?"exclusiveMinimum":"minimum"]):void 0!==i&&u?h(e,e.errorMessage||n["number"][o?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(s||u)?h(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!p.string(t)&&!p.array(t))return h(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,i=e.maxLength,a=t.length;return void 0!==r&&ai?h(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==i&&(ai)?h(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return p["pattern"](e.pattern,t)?null:h(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(p),i=d[e.format]?d[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!p[i](t)?h(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return h(e,e.errorMessage||n.typeError);for(var r=0;r-1}))},filterCandidatesLength:function(){return this.filterCandidates.length}},watch:{value:{handler:function(e){this.inputVal=e},immediate:!0}},methods:{toggleSelector:function(){this.showSelector=!this.showSelector},onFocus:function(){this.showSelector=!0},onBlur:function(){var e=this;setTimeout((function(){e.showSelector=!1}),153)},onSelectorClick:function(e){this.inputVal=this.filterCandidates[e],this.showSelector=!1,this.$emit("input",this.inputVal),this.$emit("update:modelValue",this.inputVal)},onInput:function(){var e=this;setTimeout((function(){e.$emit("input",e.inputVal),e.$emit("update:modelValue",e.inputVal)}))}}};t.default=r},6566:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("7c73"),a=n("6964"),o=n("0366"),s=n("19aa"),u=n("7234"),c=n("2266"),l=n("c6d2"),f=n("4754"),d=n("2626"),h=n("83ab"),p=n("f183").fastKey,v=n("69f3"),m=v.set,g=v.getterFor;e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,r){s(e,d),m(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),u(r)||c(r,e[l],{that:e,AS_ENTRIES:n})})),d=f.prototype,v=g(t),y=function(e,t,n){var r,i,a=v(e),o=b(e,t);return o?o.value=n:(a.last=o={index:i=p(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),h?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},b=function(e,t){var n,r=v(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(d,{clear:function(){var e=v(this),t=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=v(this),n=b(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),h?t.size--:this.size--}return!!n},forEach:function(e){var t,n=v(this),r=o(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),a(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&r(d,"size",{get:function(){return v(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),a=g(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},"6c57":function(e,t,n){var r=n("23e7"),i=n("da84");r({global:!0,forced:i.globalThis!==i},{globalThis:i})},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("e330"),o=n("94ca"),s=n("cb2d"),u=n("f183"),c=n("2266"),l=n("19aa"),f=n("1626"),d=n("7234"),h=n("861d"),p=n("d039"),v=n("1c7e"),m=n("d44e"),g=n("7156");e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),x=y?"set":"add",_=i[e],w=_&&_.prototype,k=_,S={},I=function(e){var t=a(w[e]);s(w,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},T=o(e,!f(_)||!(b||w.forEach&&!p((function(){(new _).entries().next()}))));if(T)k=n.getConstructor(t,e,y,x),u.enable();else if(o(e,!0)){var P=new k,A=P[x](b?{}:-0,1)!=P,O=p((function(){P.has(1)})),C=v((function(e){new _(e)})),E=!b&&p((function(){var e=new _,t=5;while(t--)e[x](t,t);return!e.has(-0)}));C||(k=t((function(e,t){l(e,w);var n=g(new _,e,k);return d(t)||c(t,n[x],{that:n,AS_ENTRIES:y}),n})),k.prototype=w,w.constructor=k),(O||E)&&(I("delete"),I("has"),y&&I("get")),(E||A)&&I(x),b&&w.clear&&delete w.clear}return S[e]=k,r({global:!0,constructor:!0,forced:k!=_},S),m(k,e),b||n.setStrong(k,e,y),k}},"6efa":function(e,t,n){"use strict";n.r(t);var r=n("c11c"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"6f48":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"6fd4":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};t.default=r},7039:function(e,t,n){var r=n("23e7"),i=n("d039"),a=n("057f").f,o=i((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:a})},"750d":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */',""]),e.exports=t},"7b69":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */@media screen and (max-width:500px){.hide-on-phone[data-v-fdd9c65c]{display:none}}.uni-stat__select[data-v-fdd9c65c]{display:flex;align-items:center;cursor:pointer;width:100%;flex:1;box-sizing:border-box}.uni-stat-box[data-v-fdd9c65c]{width:100%;flex:1}.uni-stat__actived[data-v-fdd9c65c]{width:100%;flex:1}.uni-label-text[data-v-fdd9c65c]{font-size:14px;font-weight:700;color:#6a6a6a;margin:auto 0;margin-right:5px}.uni-select[data-v-fdd9c65c]{font-size:14px;border:1px solid #e5e5e5;box-sizing:border-box;border-radius:4px;padding:0 5px;padding-left:10px;position:relative;display:flex;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;border-bottom:solid 1px #e5e5e5;width:100%;flex:1;height:35px}.uni-select--disabled[data-v-fdd9c65c]{background-color:#f5f7fa;cursor:not-allowed}.uni-select__label[data-v-fdd9c65c]{font-size:16px;height:35px;padding-right:10px;color:#909399}.uni-select__input-box[data-v-fdd9c65c]{height:35px;position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-select__input[data-v-fdd9c65c]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-select__input-plac[data-v-fdd9c65c]{font-size:14px;color:#909399}.uni-select__selector[data-v-fdd9c65c]{box-sizing:border-box;position:absolute;left:0;width:100%;background-color:#fff;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);z-index:3;padding:4px 0}.uni-select__selector-scroll[data-v-fdd9c65c]{max-height:200px;box-sizing:border-box}@media (min-width:768px){.uni-select__selector-scroll[data-v-fdd9c65c]{max-height:600px}}.uni-select__selector-empty[data-v-fdd9c65c],\r\n.uni-select__selector-item[data-v-fdd9c65c]{display:flex;cursor:pointer;line-height:35px;font-size:14px;text-align:center;\r\n /* border-bottom: solid 1px $uni-border-3; */padding:0 10px}.uni-select__selector-item[data-v-fdd9c65c]:hover{background-color:#f9f9f9}.uni-select__selector-empty[data-v-fdd9c65c]:last-child,\r\n.uni-select__selector-item[data-v-fdd9c65c]:last-child{border-bottom:none}.uni-select__selector__disabled[data-v-fdd9c65c]{opacity:.4;cursor:default}\r\n/* picker 弹出层通用的指示小三角 */.uni-popper__arrow_bottom[data-v-fdd9c65c],\r\n.uni-popper__arrow_bottom[data-v-fdd9c65c]::after,\r\n.uni-popper__arrow_top[data-v-fdd9c65c],\r\n.uni-popper__arrow_top[data-v-fdd9c65c]::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow_bottom[data-v-fdd9c65c]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow_bottom[data-v-fdd9c65c]::after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-popper__arrow_top[data-v-fdd9c65c]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));bottom:-6px;left:10%;margin-right:3px;border-bottom-width:0;border-top-color:#ebeef5}.uni-popper__arrow_top[data-v-fdd9c65c]::after{content:" ";bottom:1px;margin-left:-6px;border-bottom-width:0;border-top-color:#fff}.uni-select__input-text[data-v-fdd9c65c]{width:100%;color:#333;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}.uni-select__input-placeholder[data-v-fdd9c65c]{color:#6a6a6a;font-size:12px}.uni-select--mask[data-v-fdd9c65c]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:2}',""]),e.exports=t},"7c9f":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("53ca")),a=r(n("c7eb")),o=r(n("ade3")),s=r(n("1da1"));n("a9e3"),n("14d9"),n("d3b7"),n("159b"),n("a434");var u={name:"uniFormsItem",options:{virtualHost:!0},provide:function(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:function(){return null}},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:function(){return{errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"70px",localLabelPos:"left",border:!1,isFirstBorder:!1}},computed:{msg:function(){return this.errorMessage||this.errMsg}},watch:{"form.formRules":function(e){this.init()},"form.labelWidth":function(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition":function(e){this.localLabelPos=this._labelPosition()},"form.labelAlign":function(e){}},created:function(){var e=this;this.init(!0),this.name&&this.form&&this.$watch((function(){var t=e.form._getDataValue(e.name,e.form.localData);return t}),(function(t,n){var r=e.form._isEqual(t,n);if(!r){var i=e.itemSetValue(t);e.onFieldChange(i,!1)}}),{immediate:!1})},destroyed:function(){this.__isUnmounted||this.unInit()},methods:{setRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.userRules=e,this.init(!1)},setValue:function(){},onFieldChange:function(e){var t=arguments,n=this;return(0,s.default)((0,a.default)().mark((function r(){var i,s,u,c,l,f,d,h,p,v,m,g;return(0,a.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i=!(t.length>1&&void 0!==t[1])||t[1],s=n.form,u=s.formData,s.localData,c=s.errShowType,l=s.validateCheck,f=s.validateTrigger,d=s._isRequiredField,h=s._realName,p=h(n.name),e||(e=n.form.formData[p]),v=n.itemRules.rules&&n.itemRules.rules.length,n.validator&&v&&0!==v){r.next=7;break}return r.abrupt("return");case 7:if(m=d(n.itemRules.rules||[]),g=null,"bind"!==f&&!i){r.next=18;break}return r.next=12,n.validator.validateUpdate((0,o.default)({},p,e),u);case 12:g=r.sent,m||void 0!==e&&""!==e||(g=null),g&&g.errorMessage?("undertext"===c&&(n.errMsg=g?g.errorMessage:""),"toast"===c&&uni.showToast({title:g.errorMessage||"校验错误",icon:"none"}),"modal"===c&&uni.showModal({title:"提示",content:g.errorMessage||"校验错误"})):n.errMsg="",l(g||null),r.next=19;break;case 18:n.errMsg="";case 19:return r.abrupt("return",g||null);case 20:case"end":return r.stop()}}),r)})))()},init:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.form||{},n=t.validator,r=t.formRules,a=t.childrens,o=(t.formData,t.localData),s=t._realName,u=t.labelWidth,c=t._getDataValue;t._setDataValue;if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(u),this.localLabelPos=this._labelPosition(),this.form&&e&&a.push(this),n&&r){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;var l=s(this.name),f=this.userRules||this.rules;"object"===(0,i.default)(r)&&f&&(r[l]={rules:f},n.updateSchema(r));var d=r[l]||{};this.itemRules=d,this.validator=n,this.itemSetValue(c(this.name,o))}},unInit:function(){var e=this;if(this.form){var t=this.form,n=t.childrens,r=t.formData,i=t._realName;n.forEach((function(t,n){t===e&&(e.form.childrens.splice(n,1),delete r[i(t.name)])}))}},itemSetValue:function(e){var t=this.form._realName(this.name),n=this.itemRules.rules||[],r=this.form._getValue(t,e,n);return this.form._setDataValue(t,this.form.formData,r),r},clearValidate:function(){this.errMsg=""},_isRequired:function(){return this.required},_justifyContent:function(){if(this.form){var e=this.form.labelAlign,t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit:function(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?70:"auto"))},_labelPosition:function(){return this.form&&this.form.labelPosition||"left"},isTrigger:function(e,t,n){return"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===n?"bind":"submit":"bind":"submit"},num2px:function(e){return"number"===typeof e?"".concat(e,"px"):e}}};t.default=u},"7e84":function(e,t,n){"use strict";function r(e){return t.default=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,n("131a"),n("3410")},"85bf":function(e,t,n){var r=n("3d0d");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("42aa03b6",r,!0,{sourceMap:!1,shadowMode:!1})},8960:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-combox[data-v-b4b4e4b4]{font-size:14px;border:1px solid #dcdfe6;border-radius:4px;padding:6px 10px;position:relative;display:flex;flex-direction:row;align-items:center}.uni-combox__label[data-v-b4b4e4b4]{font-size:16px;line-height:22px;padding-right:10px;color:#999}.uni-combox__input-box[data-v-b4b4e4b4]{position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-combox__input[data-v-b4b4e4b4]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-combox__input-plac[data-v-b4b4e4b4]{font-size:14px;color:#999}.uni-combox__selector[data-v-b4b4e4b4]{box-sizing:border-box;position:absolute;top:calc(100% + 12px);left:0;width:100%;background-color:#fff;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);z-index:2;padding:4px 0}.uni-combox__selector-scroll[data-v-b4b4e4b4]{max-height:200px;box-sizing:border-box}.uni-combox__selector-empty[data-v-b4b4e4b4],\r\n.uni-combox__selector-item[data-v-b4b4e4b4]{display:flex;cursor:pointer;line-height:36px;font-size:14px;text-align:center;padding:0 10px}.uni-combox__selector-item[data-v-b4b4e4b4]:hover{background-color:#f9f9f9}.uni-combox__selector-empty[data-v-b4b4e4b4]:last-child,\r\n.uni-combox__selector-item[data-v-b4b4e4b4]:last-child{border-bottom:none}.uni-popper__arrow[data-v-b4b4e4b4],\r\n.uni-popper__arrow[data-v-b4b4e4b4]::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow[data-v-b4b4e4b4]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-b4b4e4b4]::after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-combox__no-border[data-v-b4b4e4b4]{border:none}',""]),e.exports=t},"8a42":function(e,t,n){"use strict";n.r(t);var r=n("d3c3"),i=n("b320");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f0c1");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"2874db2b",null,!1,r["a"],void 0);t["default"]=s.exports},"8c26":function(e){e.exports=JSON.parse('{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"}')},9072:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=u,n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var r=s(n("7e84")),i=s(n("b380")),a=s(n("fa95")),o=s(n("4478"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var n="function"===typeof Map?new Map:void 0;return t.default=u=function(e){if(null===e||!(0,a.default)(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return(0,o.default)(e,arguments,(0,r.default)(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(t,e)},u(e)}},9166:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-forms-item",class:["is-direction-"+e.localLabelPos,e.border?"uni-forms-item--border":"",e.border&&e.isFirstBorder?"is-first-border":""]},[e._t("label",[n("v-uni-view",{staticClass:"uni-forms-item__label",class:{"no-label":!e.label&&!e.required},style:{width:e.localLabelWidth,justifyContent:e.localLabelAlign}},[e.required?n("v-uni-text",{staticClass:"is-required"},[e._v("*")]):e._e(),n("v-uni-text",[e._v(e._s(e.label))])],1)]),n("v-uni-view",{staticClass:"uni-forms-item__content"},[e._t("default"),n("v-uni-view",{staticClass:"uni-forms-item__error",class:{"msg--active":e.msg}},[n("v-uni-text",[e._v(e._s(e.msg))])],1)],2)],2)},i=[]},"91df":function(e,t,n){"use strict";var r=n("1b57"),i=n.n(r);i.a},9268:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.header[data-v-36237e34]{background:#fff;border-radius:%?20?%;margin:%?40?% %?30?%}.header .form-box .picker_box[data-v-36237e34]{padding:0 %?20?%;display:flex;justify-content:space-between}.header .form-title[data-v-36237e34]{font-size:%?36?%;font-weight:700;padding:%?25?%;border-bottom:%?2?% solid #e8e8e8}.lookup[data-v-36237e34]{padding:%?25?%;display:flex;justify-content:space-between;border-bottom:%?2?% solid #e8e8e8}.lookup .lookup-title[data-v-36237e34]{font-size:%?36?%;font-weight:700}.lookup .lookup-title1[data-v-36237e34]{color:#007aff}.list3_box[data-v-36237e34]{height:%?72?%;line-height:%?72?%}.steps_box[data-v-36237e34]{display:flex;align-items:center;margin:0 %?30?%;padding:%?40?%;border-radius:%?20?%;justify-content:center;background-color:#fff}.block-step[data-v-36237e34]{display:flex;flex-direction:row}.view_item[data-v-36237e34]{display:flex;align-items:center;justify-content:center;flex-direction:column}.view_item uni-text[data-v-36237e34]{font-size:%?30?%;margin-top:%?20?%}.view_item uni-view[data-v-36237e34]{width:%?45?%;height:%?45?%;border:%?3?% solid #909090;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#909090;font-size:%?30?%;content:"\\e732"}.view_line[data-v-36237e34]{width:15%;height:%?5?%;margin:%?0?% 2% %?40?% 2%}.line_bgcolor1[data-v-36237e34]{background-color:#e0e0e0}.line_bgcolor[data-v-36237e34]{background:linear-gradient(90deg,#5fe7ff,#00a336)}.flex-direction-column[data-v-36237e34]{height:100%;flex-direction:column}.bottom[data-v-36237e34]{width:100%}.bottom .btn[data-v-36237e34]{\r\n /* margin-top: 30rpx; */margin:0 %?30?%;height:%?80?%;border-radius:%?10?%;background-image:linear-gradient(90deg,#2974cf,#448eee);color:#fff;text-align:center;line-height:%?80?%}.bottom .btn1[data-v-36237e34]{margin:0 %?30?%;height:%?80?%;border-radius:%?10?%;line-height:%?80?%;color:grey;border:%?2?% solid #d1d1d1;background-color:#efefef}.justify-end[data-v-36237e34]{position:relative}.justify-end .bottom-next[data-v-36237e34]{position:absolute;top:%?100?%}.padding[data-v-36237e34]{padding:%?25?%}[data-v-36237e34] .uni-select{border:0}[data-v-36237e34] .uni-forms-item{padding:%?5?% 0;margin:%?0?% %?25?%;border-bottom:%?2?% solid #f4f4f4}[data-v-36237e34] .uni-data-checklist .checklist-group{height:%?72?%}[data-v-36237e34] .uni-forms-item__label{font-size:%?30?%;color:#000!important}[data-v-36237e34] .uni-radio-input{width:%?35?%;height:%?35?%;margin-left:%?20?%}[data-v-36237e34] .uni-select__input-placeholder{color:#999;font-size:%?28?%}[data-v-36237e34] .uni-easyinput__placeholder-class{font-size:%?28?%}.popup-header[data-v-36237e34]{display:flex;justify-content:space-between;padding:10px}.picker-view[data-v-36237e34]{width:%?750?%;height:%?600?%;margin-top:%?20?%}.item[data-v-36237e34]{line-height:%?100?%;text-align:center}',""]),e.exports=t},"950d":function(e,t,n){"use strict";n.r(t);var r=n("990c"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"96fe":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-popup-dialog[data-v-2874db2b]{width:300px;border-radius:11px;background-color:#fff}.uni-dialog-title[data-v-2874db2b]{display:flex;flex-direction:row;justify-content:center;padding-top:25px}.uni-dialog-title-text[data-v-2874db2b]{font-size:16px;font-weight:500}.uni-dialog-content[data-v-2874db2b]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:20px}.uni-dialog-content-text[data-v-2874db2b]{font-size:14px;color:#6c6c6c}.uni-dialog-button-group[data-v-2874db2b]{display:flex;flex-direction:row;border-top-color:#f5f5f5;border-top-style:solid;border-top-width:1px}.uni-dialog-button[data-v-2874db2b]{display:flex;flex:1;flex-direction:row;justify-content:center;align-items:center;height:45px}.uni-border-left[data-v-2874db2b]{border-left-color:#f0f0f0;border-left-style:solid;border-left-width:1px}.uni-dialog-button-text[data-v-2874db2b]{font-size:16px;color:#333}.uni-button-color[data-v-2874db2b]{color:#007aff}.uni-dialog-input[data-v-2874db2b]{flex:1;font-size:14px;border:1px #eee solid;height:40px;padding:0 10px;border-radius:5px;color:#555}.uni-popup__success[data-v-2874db2b]{color:#4cd964}.uni-popup__warn[data-v-2874db2b]{color:#f0ad4e}.uni-popup__error[data-v-2874db2b]{color:#dd524d}.uni-popup__info[data-v-2874db2b]{color:#909399}',""]),e.exports=t},"990c":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("14d9"),n("c975"),n("d3b7"),n("159b"),n("99af"),n("ac1f"),n("00b4");var i=r(n("4d55")),a=r(n("ffde")),o={data:function(){for(var e=new Date,t=[],n=e.getFullYear(),r=[],i=e.getMonth()+1,a=1990;a<=n+1e3;a++)t.push(a);for(var o=1;o<=12;o++)r.push(o);var s=t.indexOf(n);return{years:t,year:n,months:r,month:i,selectedYear:n,selectedMonth:i,pickerValue:[s,i-1],indicatorStyle:"height: 50px;",list1:{project_id:"",pucode:"",merge:"",expire_time:"",email:"",phone:""},list2:{type:"",title:"",tax_number:"",address:"",telephone:"",bank_name:"",bank_account:""},amount:"",styles:{color:"#d5213c"},stepsIndex:0,stepsDatas:[{text:"开票信息"},{text:"抬头信息"},{text:"提交申请"}],range:[],headerType1:[{text:"单位",value:"0",disable:!0},{text:"个人",value:"1",disable:!0}],headerType:[{text:"单位",value:"0"},{text:"个人",value:"1"}],candidates:[],mergelist:[{text:"不合并",value:"0"},{text:"合并",value:"1"}],form1:{},form2:{}}},onLoad:function(){this.dropdown()},watch:{selectedYear:function(e){var t=this.years.indexOf(e);this.pickerValue[0]=t},selectedMonth:function(e){var t=e-1;this.pickerValue[1]=t}},methods:{dropdown:function(){var e=this;i.default.getApplyData({},(function(t){e.range=t.data.project_arr,e.candidates.push(t.data.pucode)}))},project_id1:function(e){var t="";return this.range.forEach((function(n){n.value==e&&(t=n.text)})),t},changeSteps:function(e){var t=e.currentTarget.dataset.type;"prev"==t?this.stepsIndex>0?this.stepsIndex=this.stepsIndex-1:this.$tip.toast("已经是初始位置","none"):this.stepsIndex>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,i);if(u){for(var l=0;l>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],x=e[t+9],_=e[t+10],w=e[t+11],k=e[t+12],S=e[t+13],I=e[t+14],T=e[t+15],P=a[0],A=a[1],O=a[2],C=a[3];P=c(P,A,O,C,o,7,s[0]),C=c(C,P,A,O,u,12,s[1]),O=c(O,C,P,A,h,17,s[2]),A=c(A,O,C,P,p,22,s[3]),P=c(P,A,O,C,v,7,s[4]),C=c(C,P,A,O,m,12,s[5]),O=c(O,C,P,A,g,17,s[6]),A=c(A,O,C,P,y,22,s[7]),P=c(P,A,O,C,b,7,s[8]),C=c(C,P,A,O,x,12,s[9]),O=c(O,C,P,A,_,17,s[10]),A=c(A,O,C,P,w,22,s[11]),P=c(P,A,O,C,k,7,s[12]),C=c(C,P,A,O,S,12,s[13]),O=c(O,C,P,A,I,17,s[14]),P=l(P,A=c(A,O,C,P,T,22,s[15]),O,C,u,5,s[16]),C=l(C,P,A,O,g,9,s[17]),O=l(O,C,P,A,w,14,s[18]),A=l(A,O,C,P,o,20,s[19]),P=l(P,A,O,C,m,5,s[20]),C=l(C,P,A,O,_,9,s[21]),O=l(O,C,P,A,T,14,s[22]),A=l(A,O,C,P,v,20,s[23]),P=l(P,A,O,C,x,5,s[24]),C=l(C,P,A,O,I,9,s[25]),O=l(O,C,P,A,p,14,s[26]),A=l(A,O,C,P,b,20,s[27]),P=l(P,A,O,C,S,5,s[28]),C=l(C,P,A,O,h,9,s[29]),O=l(O,C,P,A,y,14,s[30]),P=f(P,A=l(A,O,C,P,k,20,s[31]),O,C,m,4,s[32]),C=f(C,P,A,O,b,11,s[33]),O=f(O,C,P,A,w,16,s[34]),A=f(A,O,C,P,I,23,s[35]),P=f(P,A,O,C,u,4,s[36]),C=f(C,P,A,O,v,11,s[37]),O=f(O,C,P,A,y,16,s[38]),A=f(A,O,C,P,_,23,s[39]),P=f(P,A,O,C,S,4,s[40]),C=f(C,P,A,O,o,11,s[41]),O=f(O,C,P,A,p,16,s[42]),A=f(A,O,C,P,g,23,s[43]),P=f(P,A,O,C,x,4,s[44]),C=f(C,P,A,O,k,11,s[45]),O=f(O,C,P,A,T,16,s[46]),P=d(P,A=f(A,O,C,P,h,23,s[47]),O,C,o,6,s[48]),C=d(C,P,A,O,y,10,s[49]),O=d(O,C,P,A,I,15,s[50]),A=d(A,O,C,P,m,21,s[51]),P=d(P,A,O,C,k,6,s[52]),C=d(C,P,A,O,p,10,s[53]),O=d(O,C,P,A,_,15,s[54]),A=d(A,O,C,P,u,21,s[55]),P=d(P,A,O,C,b,6,s[56]),C=d(C,P,A,O,T,10,s[57]),O=d(O,C,P,A,g,15,s[58]),A=d(A,O,C,P,S,21,s[59]),P=d(P,A,O,C,v,6,s[60]),C=d(C,P,A,O,w,10,s[61]),O=d(O,C,P,A,h,15,s[62]),A=d(A,O,C,P,x,21,s[63]),a[0]=a[0]+P|0,a[1]=a[1]+A|0,a[2]=a[2]+O|0,a[3]=a[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<>>32-a)+t}function l(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<>>32-a)+t}t.MD5=a._createHelper(u),t.HmacMD5=a._createHmacHelper(u)}(Math),n.MD5)})),y((function(e,t){var n;e.exports=(n=x,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,u=o.words,c=0;c>>6-o%4*2;i[a>>>2]|=(s|u)<<24-a%4*8,a++}return t.create(i,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?D:r;(0,v.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case D:return this.status===A;case R:return this.status!==T}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=T,this.promise=this.createPromise().then((function(t){return e.status=P,Promise.resolve(t)}),(function(t){return e.status=A,Promise.reject(t)})),this.promise):this.promise}}]),e}();function j(e){return e&&"string"==typeof e?JSON.parse(e):e}var N=j([]),U="web",F=(j(void 0),j([])||[]);try{(n("60d4").default||n("60d4")).appid}catch(rr){}var q={};function B(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=q,n=e,Object.prototype.hasOwnProperty.call(t,n)||(q[e]=r),q[e]}"app"===U&&(q=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var $=["invoke","success","fail","complete"],V=B("_globalUniCloudInterceptor");function z(e,t){V[e]||(V[e]={}),C(t)&&Object.keys(t).forEach((function(n){$.indexOf(n)>-1&&function(e,t,n){var r=V[e][t];r||(r=V[e][t]=[]),-1===r.indexOf(n)&&E(n)&&r.push(n)}(e,n,t[n])}))}function K(e,t){V[e]||(V[e]={}),C(t)?Object.keys(t).forEach((function(n){$.indexOf(n)>-1&&function(e,t,n){var r=V[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete V[e]}function W(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function J(e,t){return V[e]&&V[e][t]||[]}function H(e){z("callObject",e)}var G=B("_globalUniCloudListener"),Y="response",Q="needLogin",X="refreshToken",Z="clientdb",ee="cloudfunction",te="cloudobject";function ne(e){return G[e]||(G[e]=[]),G[e]}function re(e,t){var n=ne(e);n.includes(t)||n.push(t)}function ie(e,t){var n=ne(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function ae(e,t){for(var n=ne(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,p.default)(Error)),he={request:function(e){return uni.request(e)},uploadFile:function(e){return uni.uploadFile(e)},setStorageSync:function(e,t){return uni.setStorageSync(e,t)},getStorageSync:function(e){return uni.getStorageSync(e)},removeStorageSync:function(e){return uni.removeStorageSync(e)},clearStorageSync:function(){return uni.clearStorageSync()}};function pe(){return{token:he.getStorageSync("uni_id_token")||he.getStorageSync("uniIdToken"),tokenExpired:he.getStorageSync("uni_id_token_expired")}}function ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&he.setStorageSync("uni_id_token",t),n&&he.setStorageSync("uni_id_token_expired",n)}function me(){return le||(le=uni.getSystemInfoSync()),le}function ge(){var e=uni.getLocale&&uni.getLocale()||"en";if(fe)return(0,f.default)((0,f.default)({},fe),{},{locale:e,LOCALE:e});for(var t=me(),n=t.deviceId,r=t.osName,i=t.uniPlatform,a=t.appId,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],s=0;s-1)return;var n=uni.getLaunchOptionsSync(),r=n.scene,i=n.channel;e=i,t=r}}catch(e){}return{channel:e,scene:t}}()),t),(0,f.default)((0,f.default)({},fe),{},{locale:e,LOCALE:e})}var ye,be={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),_(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return r(new de({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var i=e.data;if(i.error)return r(new de({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,n(i)}}))}))},toBase64:function(e){return k.stringify(w.parse(e))}},xe=function(){function e(t){var n=this;(0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=he,this._getAccessTokenPromiseHub=new M({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new de({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:R})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return be.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=be.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=be.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new de({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s,u,l,f,d,h,p,v,m,g,y,b,x,_,w,k,S;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,a=void 0===i?"image":i,o=t.cloudPathAsRealPath,s=void 0!==o&&o,u=t.onUploadProgress,l=t.config,"string"===O(r)){e.next=3;break}throw new de({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=l&&l.envType||this.config.envType,!(s&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new de({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:s?r.split("/").pop():r,fileId:s?r:void 0});case 12:return d=e.sent.result,h="https://"+d.cdnDomain+"/"+d.ossPath,p=d.securityToken,v=d.accessKeyId,m=d.signature,g=d.host,y=d.ossPath,b=d.id,x=d.policy,_=d.ossCallbackUrl,w={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:v,Signature:m,host:g,id:b,key:y,policy:x,success_action_status:200},p&&(w["x-oss-security-token"]=p),_&&(k=JSON.stringify({callbackUrl:_,callbackBody:JSON.stringify({fileId:b,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),w.callback=be.toBase64(k)),S={url:"https://"+d.host,formData:w,fileName:"file",name:"file",filePath:n,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},S,{onUploadProgress:u}));case 27:if(!_){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 29:return e.next=31,this.reportOSSUpload({id:b});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 33:throw new de({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new de({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new de({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),_e={init:function(e){var t=new xe(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},we="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(ye||(ye={}));var ke,Se=function(){},Ie=y((function(e,t){var n;e.exports=(n=x,function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],l=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[h-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[h]=v+c[h-7]+g+c[h-16]}var y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[h]+c[h];d=f,f=l,l=s,s=o+x|0,o=a,a=i,i=r,r=x+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(l),t.HmacSHA256=a._createHmacHelper(l)}(Math),n.SHA256)})),Te=Ie,Pe=y((function(e,t){e.exports=x.HmacSHA256})),Ae=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new de({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function Oe(e){return void 0===e}function Ce(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(ke||(ke={}));var Ee={adapter:null,runtime:void 0},Le=["anonymousUuidKey"],De=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),Ee.adapter.root.tcbObject||(Ee.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Ee.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Ee.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Ee.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Ee.adapter.root.tcbObject}}]),n}(Se);function Re(e,t){switch(e){case"local":return t.localStorage||new De;case"none":return new De;default:return t.sessionStorage||new De}}var Me=function(){function e(t){if((0,v.default)(this,e),!this._storage){this._persistence=Ee.adapter.primaryStorage||t.persistence,this._storage=Re(this._persistence,Ee.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),a="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return(0,m.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Re(e,Ee.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!Le.includes(r)){var a=this._storage.getItem(i);Oe(a)||Ce(a)||(n.setItem(i,a),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),je={},Ne={};function Ue(e){return je[e]}var Fe=(0,m.default)((function e(t,n){(0,v.default)(this,e),this.data=n||null,this.name=t})),qe=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(e,r){var i;return(0,v.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,m.default)(n)}(Fe),Be=new(function(){function e(){(0,v.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof qe)return console.error(e.error),this;var n="string"==typeof e?new Fe(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,a=this._listeners[r]?(0,s.default)(this._listeners[r]):[],o=(0,u.default)(a);try{for(o.s();!(i=o.n()).done;){var c=i.value;c.call(this,n)}}catch(l){o.e(l)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function $e(e,t){Be.on(e,t)}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Be.fire(e,t)}function ze(e,t){Be.off(e,t)}var Ke,We="loginStateChanged",Je="loginStateExpire",He="loginTypeChanged",Ge="anonymousConverted",Ye="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Ke||(Ke={}));var Qe=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Xe={"X-SDK-Version":"1.3.5"};function Ze(e,t,n){var r=e[t];e[t]=function(t){var i={},a={};n.forEach((function(n){var r=n.call(e,t),o=r.data,s=r.headers;Object.assign(i,o),Object.assign(a,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=(0,f.default)((0,f.default)({},o),i);else for(var n in i)o.append(n,i[n])}(),t.headers=(0,f.default)((0,f.default)({},t.headers||{}),a),r.call(e,t)}}function et(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:(0,f.default)((0,f.default)({},Xe),{},{"x-seqid":e})}}var tt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,e),this.config=n,this._reqClass=new Ee.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Ue(this.config.env),this._localCache=(t=this.config.env,Ne[t]),Ze(this._reqClass,"post",[et]),Ze(this._reqClass,"upload",[et]),Ze(this._reqClass,"download",[et])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s,u,l,f,d,h,p;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,a=t.loginTypeKey,o=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),s=this._cache.getStore(i),s){e.next=5;break}throw new de({message:"未登录CloudBase"});case 5:return u={refresh_token:s},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(f=l.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(a)!==Ke.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(o),h=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:h});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Ve(Je),this._cache.removeStore(i);case 20:throw new de({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(Ve(Ye),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new de({message:"refresh token不存在,登录状态异常"});case 3:if(a=this._cache.getStore(n),o=this._cache.getStore(r),s=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,o);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}s=!1;case 12:return e.abrupt("return",(!a||!o||o2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(a,"=").concat(encodeURIComponent(n[a]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(we,"//tcb-api.tencentcloudapi.com/web",y),g&&(b+=g),e.next=22,this.post((0,f.default)({url:b,data:u},h));case 22:if(x=e.sent,_=x.header&&x.header["x-tcb-trace"],_&&this._localCache.setStore(i,_),(200===Number(x.status)||200===Number(x.statusCode))&&x.data){e.next=26;break}throw new de({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",x);case 27:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==Qe.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=e.sent,!i.data.code){e.next=12;break}throw new de({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!r.data.code){e.next=15;break}throw new de({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.data);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),nt={};function rt(e){return nt[e]}var it=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=Ue(t.env),this._request=rt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),at=function(){function e(t){if((0,v.default)(this,e),!t)throw new de({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ue(this._envId),this._request=rt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new de({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new de({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s,u,l;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,a=t.province,o=t.country,s=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:a,country:o,city:s});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),ot=function(){function e(t){if((0,v.default)(this,e),!t)throw new de({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ue(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,a=n.accessTokenExpireKey,o=this._cache.getStore(r),s=this._cache.getStore(i),u=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:u},this.user=new at(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===Ke.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Ke.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Ke.WECHAT||this.loginType===Ke.WECHAT_OPEN||this.loginType===Ke.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),st=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,i=this._cache.getStore(n)||void 0,a=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:a});case 8:if(o=e.sent,!o.uuid||!o.refresh_token){e.next=20;break}return this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return Ve(We),Ve(He,{env:this.config.env,loginType:Ke.ANONYMOUS,persistence:"local"}),s=new ot(this.config.env),e.next=19,s.user.refresh();case 19:return e.abrupt("return",s);case 20:throw new de({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,a=this._cache.getStore(r),o=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:o,ticket:t});case 7:if(s=e.sent,!s.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Ve(Ge,{env:this.config.env}),Ve(He,{loginType:Ke.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new de({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,Ke.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(it),ut=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Ve(We),Ve(He,{env:this.config.env,loginType:Ke.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new ot(this.config.env));case 15:throw new de({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(it),ct=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){var r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,a=i.refresh_token,o=i.access_token,s=i.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!o||!s){e.next=15;break}this.setAccessToken(o,s),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Ve(We),Ve(He,{env:this.config.env,loginType:Ke.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 22:throw i.code?new de({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new de({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(it),lt=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){var r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:Ke.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,a=i.refresh_token,o=i.access_token_expire,s=i.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!s||!o){e.next=16;break}this.setAccessToken(s,o),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Ve(We),Ve(He,{env:this.config.env,loginType:Ke.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 23:throw i.code?new de({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new de({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(it),ft=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=Ue(t.env),this._request=rt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),$e(He,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new st(this.config)}},{key:"customAuthProvider",value:function(){return new ut(this.config)}},{key:"emailAuthProvider",value:function(){return new ct(this.config)}},{key:"usernameAuthProvider",value:function(){return new lt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new st(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ct(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new lt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new st(this.config)),$e(Ge,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==Ke.ANONYMOUS){e.next=2;break}throw new de({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,a=this._cache.getStore(n),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return o=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Ve(We),Ve(He,{env:this.config.env,loginType:Ke.NULL,persistence:this.config.persistence}),o));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;$e(We,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){$e(Je,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){$e(Ye,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){$e(Ge,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;$e(He,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new ot(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ut(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:(0,f.default)((0,f.default)({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),dt=function(e,t){t=t||Ae();var n=rt(this.config.env),r=e.cloudPath,i=e.filePath,a=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,u=o.url,c=o.authorization,l=o.token,f=o.fileId,d=o.cosFileId,h=e.requestId,p={key:r,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:p,file:i,name:r,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:h}):t(new de({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},ht=function(e,t){t=t||Ae();var n=rt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},pt=function(e,t){var n=e.fileList;if(t=t||Ae(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=(0,u.default)(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:n};return rt(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},vt=function(e,t){var n=e.fileList;t=t||Ae(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],a=(0,u.default)(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;"object"==(0,o.default)(s)?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?i.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(l){a.e(l)}finally{a.f()}var c={file_list:i};return rt(this.config.env).send("storage.batchGetDownloadUrl",c).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},mt=function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){var r,i,a,o;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,vt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(a=rt(this.config.env),o=i.download_url,o=encodeURI(o),n){e.next=10;break}return e.abrupt("return",a.download({url:o}));case 10:return e.t0=n,e.next=13,a.download({url:o});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),gt=function(e,t){var n,r=e.name,i=e.data,a=e.query,o=e.parse,s=e.search,u=t||Ae();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new de({code:"PARAM_ERROR",message:"函数名不能为空"}));var c={inQuery:a,parse:o,search:s,function_name:r,request_data:n};return rt(this.config.env).send("functions.invokeFunction",c).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(o)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new de({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},yt={timeout:15e3,persistence:"session"},bt={},xt=function(){function e(t){(0,v.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(Ee.adapter||(this.requestClient=new Ee.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,f.default)((0,f.default)({},yt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Ee.adapter.primaryStorage||yt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;je[t]=new Me(e),Ne[t]=new Me((0,f.default)((0,f.default)({},e),{},{persistence:"local"}))}(this.config),n=this.config,nt[n.env]=new tt(n),this.authObj=new ft(this.config),this.authObj}},{key:"on",value:function(e,t){return $e.apply(this,[e,t])}},{key:"off",value:function(e,t){return ze.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return gt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return pt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return vt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return mt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return dt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return ht.apply(this,[e,t])}},{key:"registerExtension",value:function(e){bt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){var r;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=bt[t],r){e.next=3;break}throw new de({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=(0,u.default)(r);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.isMatch,s=a.genAdapter,c=a.runtime;if(o())return{adapter:s(),runtime:c}}}catch(l){i.e(l)}finally{i.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Ee.adapter=n),r&&(Ee.runtime=r)}}]),e}(),_t=new xt;function wt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+=a+"="+encodeURIComponent(n[a]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var kt=function(){function e(){(0,v.default)(this,e)}return(0,m.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,i){he.request({url:wt("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,a=e.data,o=e.headers,s=e.fileType,u=he.uploadFile({url:wt("https:",r),name:"file",formData:Object.assign({},a),filePath:i,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(n.statusCode=parseInt(a.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),St={setItem:function(e,t){he.setStorageSync(e,t)},getItem:function(e){return he.getStorageSync(e)},removeItem:function(e){he.removeStorageSync(e)},clear:function(){he.clearStorageSync()}},It={genAdapter:function(){return{root:{},reqClass:kt,localStorage:St,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};_t.useAdapters(It);var Tt=_t,Pt=Tt.init;Tt.init=function(e){e.env=e.spaceId;var t=Pt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ce(e),r=t.success,i=t.fail,a=t.complete;if(!(r||i||a))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),a&&a(e)}),(function(e){i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var At=Tt,Ot=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=be.sign(n,this.config.clientSecret);var i=ge();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var a=pe(),o=a.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,success:function(t){t&&t.statusCode<400?e(t):u(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new de({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,a=e.fileType,o=void 0===a?"image":a,s=e.onUploadProgress;if(!i)throw new de({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(e){var i=e.result,a=i.url,u=i.formData,c=i.name;t=e.result.fileUrl;var l={url:a,formData:u,name:c,filePath:r,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return e.result;throw new de({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new de({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(this.setupRequest(r)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new de({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(xe),Ct={init:function(e){var t=new Ot(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Et=y((function(e,t){e.exports=x.enc.Hex}));function Lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,o=t.headers,s=t.signHeaderKeys,u=void 0===s?[]:s,c=t.config,l=Date.now(),f="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),d=Object.assign({},o,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":l,"x-from-function-name":r,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(u),p=e.split("?")||[],v=(0,a.default)(p,2),m=v[0],g=void 0===m?"":m,y=v[1],b=void 0===y?"":y,x=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=Te(e.body).toString(Et),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),a=Te(i).toString(Et),o="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(a,"\n"),s=Pe(o,e.secretKey).toString(Et);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:g,query:b,method:i,headers:d,timestamp:l,body:JSON.stringify(n),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:h.sort()});return{url:"".concat(c.endpoint).concat(e),headers:Object.assign({},d,{Authorization:x})}}function Dt(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,a=e.headers,o=void 0===a?{}:a;return new Promise((function(e,r){he.request({url:t,method:i,data:n,header:o,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},a=i.message,s=i.errMsg,u=i.trace_id;return r(new de({code:"SYS_ERR",message:a||s||"request:fail",requestId:u||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Rt(e,t){var n=e.path,r=e.data,i=e.method,a=void 0===i?"GET":i,o=Lt(n,{functionName:"",data:r,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=o.url,u=o.headers;return Dt({url:s,data:r,method:a,headers:u}).then((function(e){var t=e.data||{};if(!t.success)throw new de({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new de({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Mt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new de({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),i=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Nt=function(){function e(t){if((0,v.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")})}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i="POST",a=Lt("/functions/invokeFunction",{functionName:n,data:r,method:i,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t}),o=a.url,s=a.headers;return Dt({url:o,data:r,method:i,headers:s}).then((function(e){return{errCode:0,success:!0,requestId:e.requestId,result:e.data}})).catch((function(e){throw new de({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,a=e.onUploadProgress;return new Promise((function(e,o){var s=he.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):o(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){o(new de({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s,u,l,f,d,h;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,a=t.fileType,o=void 0===a?"image":a,s=t.onUploadProgress,"string"===O(i)){e.next=3;break}throw new de({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Rt({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return u=e.sent,l=u.file_id,f=u.upload_url,d=u.form_data,h=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:n,fileType:o,formData:h,onUploadProgress:s}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r=this;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new de({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new de({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var i,a=[],o=(0,u.default)(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;"string"!==O(s)&&t(new de({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var c=Mt.call(r,s);a.push({file_id:c,expire:600})}}catch(l){o.e(l)}finally{o.f()}Rt({path:"/?download_url",data:{file_list:a},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:jt.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Ut={init:function(e){e.provider="alipay";var t=new Nt(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Ft(e){var t,n=e.data;t=ge();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=pe(),a=i.token;a&&(r.uniIdToken=a)}return r}var qt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Bt=/[\\^$.*+?()[\]{}|]/g,$t=RegExp(Bt.source);function Vt(e,t,n){return e.replace(new RegExp((r=t)&&$t.test(r)?r.replace(Bt,"\\$&"):r,"g"),n);var r}var zt="request",Kt="response";var Wt;Wt="0123456789abcdef";var Jt={code:2e4,message:"System error"},Ht={code:20101,message:"Invalid client"};function Gt(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,a=t.errMsg,o=t.code,s=t.message,u=t.cause;return new de({subject:n||r||"uni-secure-network",code:i||o||Jt.code,message:a||s,cause:u})}var Yt;function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===zt||t===Kt||"both"===t}function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===U&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function Zt(e){e.functionName,e.result,e.logPvd}function en(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=Ft.call(e,{data:n.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=Qt(n),s=Xt(n),u=o||s;return t.call(this,n).then((function(e){return e.errCode=0,!u&&Zt.call(r,{functionName:i,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return!u&&Zt.call(r,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,a=e.formatter,o=void 0===a?[]:a,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=me(),a=i.appId,o=i.uniPlatform,s=i.osName,u=o;"app"===o&&(u=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=N;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var l=c.accessControl.function||{},f=Object.keys(l);if(0===f.length)return!0;var d=function(e,t){for(var n,r,i,a=0;a-1&&(r=o):i=o:n=o}return n||r||i}(f,r);if(!d)return!1;if((l[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===a&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(a,", platform: ").concat(u,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),Gt(Ht)}({provider:o,spaceId:s,functionName:u})?new Yt({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i}}Yt="mp-weixin"!==U&&"app"!==U?function(){return(0,m.default)((function e(){throw(0,v.default)(this,e),Gt({message:"Platform ".concat(U," is not supported by secure network")})}))}():function(){return(0,m.default)((function e(){throw(0,v.default)(this,e),Gt({message:"Platform ".concat(U," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var tn=Symbol("CLIENT_DB_INTERNAL");function nn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=tn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,o.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function rn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var an=["db.Geo","db.command","command.aggregate"];function on(e,t){return an.indexOf("".concat(e,".").concat(t))>-1}function sn(e){switch(O(e)){case"array":return e.map((function(e){return sn(e)}));case"object":return e._internalType===tn||Object.keys(e).forEach((function(t){e[t]=sn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function un(e){return e&&e.content&&e.content.$method}var cn=function(){function e(t,n,r){(0,v.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:sn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=un(e),n=un(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===un(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=un(e),n=un(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return ln({$method:e,$param:sn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:sn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function ln(e,t,n){return nn(new cn(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),on(r,t)?ln({$method:t},e,n):function(){return ln({$method:t,$param:sn(Array.from(arguments))},e,n)}}})}function fn(e){var t=e.path,n=e.method;return function(){function e(){(0,v.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,s.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nn(new e(t),{get:function(e,t){return on("db",t)?ln({$method:t},null,e):function(){return ln({$method:t,$param:sn(Array.from(arguments))},null,e)}}})}var hn=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,a=e.queryList;function o(e,t){if(i&&a)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,a=void 0!==i&&i;(0,v.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=B("_globalUniCloudDatabaseCallback")),a||(this.auth=rn(this._authCallBacks)),this._isJQL=a,Object.assign(this,rn(this._dbCallBacks)),this.env=nn({},{get:function(e,t){return{$env:t}}}),this.Geo=nn({},{get:function(e,t){return fn({path:["Geo"],method:t})}}),this.serverDate=fn({path:[],method:"serverDate"}),this.RegExp=fn({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,s.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,s.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),pn="token无效,跳转登录页面",vn="token过期,跳转登录页面",mn={TOKEN_INVALID_TOKEN_EXPIRED:vn,TOKEN_INVALID_INVALID_CLIENTID:pn,TOKEN_INVALID:pn,TOKEN_INVALID_WRONG_TOKEN:pn,TOKEN_INVALID_ANONYMOUS_USER:pn},gn={"uni-id-token-expired":vn,"uni-id-check-token-failed":pn,"uni-id-token-not-exist":pn,"uni-id-check-device-feature-failed":pn};function yn(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function bn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(yn(t,e.path)):!1===e.needLogin&&r.push(yn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function xn(e){return e.split("?")[0].replace(/^\//,"")}function _n(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function wn(){return xn(_n())}function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=xn(e);return n.some((function(e){return e.pagePath===r}))}var Sn,In=!!g.default.uniIdRouter,Tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,a=e.uniIdRouter,o=void 0===a?{}:a,u=e.tabBar,c=void 0===u?{}:u,l=o.loginPage,f=o.needLogin,d=void 0===f?[]:f,h=o.resToLogin,p=void 0===h||h,v=bn(n),m=v.needLoginPage,y=v.notNeedLoginPage,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,a=void 0===i?[]:i,o=bn(a,r),u=o.needLoginPage,c=o.notNeedLoginPage;t.push.apply(t,(0,s.default)(u)),n.push.apply(n,(0,s.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),x=b.needLoginPage,_=b.notNeedLoginPage;return{loginPage:l,routerNeedLogin:d,resToLogin:p,needLoginPage:[].concat((0,s.default)(m),(0,s.default)(x)),notNeedLoginPage:[].concat((0,s.default)(y),(0,s.default)(_)),loginPageInTabBar:kn(l,c)}}(),Pn=Tn.loginPage,An=Tn.routerNeedLogin,On=Tn.resToLogin,Cn=Tn.needLoginPage,En=Tn.notNeedLoginPage,Ln=Tn.loginPageInTabBar;if(Cn.indexOf(Pn)>-1)throw new Error("Login page [".concat(Pn,'] should not be "needLogin", please check your pages.json'));function Dn(e){var t=wn();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,a.default)(n,2),i=r[0],o=r[1],s=i.replace(/^\//,"").split("/"),u=t.split("/");u.pop();for(var c=0;c-1)&&(Cn.indexOf(t)>-1||An.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Mn(e){var t=e.redirect,n=xn(t),r=xn(Pn);return wn()!==r&&n!==r}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Mn({redirect:n})){var r=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Pn,n);Ln?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((function(){i[t]({url:r})}))}}function Nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=pe(),n=t.token,r=t.tokenExpired;if(n){if(r0)return setTimeout((function(){ae(Q,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Un(){!function(){var e=_n(),t=Nn({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&jn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];uni.addInterceptor(n,{invoke:function(e){var t=Nn({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(jn({api:n,redirect:Dn(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=ne(Q);ue().then((function(){var n=_n();if(n&&Mn({redirect:n}))return t.length>0?ae(Q,Object.assign({uniIdRedirectUrl:n},e)):void(Pn&&jn({api:"navigateTo",redirect:n}))}))}(n)}))}function qn(e){!function(e){e.onResponse=function(e){re(Y,e)},e.offResponse=function(e){ie(Y,e)}}(e),function(e){e.onNeedLogin=function(e){re(Q,e)},e.offNeedLogin=function(e){ie(Q,e)},In&&(B("_globalUniCloudStatus").needLoginInit||(B("_globalUniCloudStatus").needLoginInit=!0,ue().then((function(){Un.call(e)})),On&&Fn.call(e)))}(e),function(e){e.onRefreshToken=function(e){re(X,e)},e.offRefreshToken=function(e){ie(X,e)}}(e)}var Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",$n=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Vn(){var e,t,n=pe().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Sn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Sn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!$n.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",a=0;a>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var zn=y((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function a(e,t,r){var i=r.onChooseFile,a=r.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var a=t.tempFiles,o=a.length,s=0;return new Promise((function(n){for(;s=o)!a.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var c=a[r];e.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((function(e){c.url=e.fileID,r0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?a(e,function(e){var t=e.count,n=e.sizeType,a=e.sourceType,o=void 0===a?["album","camera"]:a,s=e.extension;return new Promise((function(e,a){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:s,success:function(t){e(i(t,"image"))},fail:function(e){a({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})}))}(t),t):"video"===t.type?a(e,function(e){var t=e.camera,n=e.compressed,a=e.maxDuration,o=e.sourceType,s=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:a,sourceType:s,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,a=t.size,o=t.height,s=t.width;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})}))}(t),t):a(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,a){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return a({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success:function(t){e(i(t))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})}))}(t),t)}}})),Kn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(zn);function Wn(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var r=!1,i=[],a=2;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,a=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=a.length0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),i=n.action||this.action;i&&(r=r.action(i));var a=n.collection||this.collection;r=Array.isArray(a)?(t=r).collection.apply(t,(0,s.default)(a)):r.collection(a);var o=n.where||this.where;o&&Object.keys(o).length&&(r=r.where(o));var u=n.field||this.field;u&&(r=r.field(u));var c=n.foreignKey||this.foreignKey;c&&(r=r.foreignKey(c));var l=n.groupby||this.groupby;l&&(r=r.groupBy(l));var f=n.groupField||this.groupField;f&&(r=r.groupField(f)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var d=n.orderby||this.orderby;d&&(r=r.orderBy(d));var h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,v=void 0!==n.getcount?n.getcount:this.getcount,m=void 0!==n.gettree?n.gettree:this.gettree,g=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,y={getCount:v},b={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return m&&(y.getTree=b),g&&(y.getTreePath=b),r=r.skip(p*(h-1)).limit(p).get(y),r}}}}function Jn(e){return B("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Hn(){return Gn.apply(this,arguments)}function Gn(){return Gn=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s,u=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r,a=Jn(this),"mp-weixin"===U){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(U,"`"));case 4:if(!n||!i){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(a.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){uni.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return o=e.sent,s=this.importObject("uni-id-co",{customUI:!0}),e.next=14,s.secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:i});case 14:return a.mpWeixinCode=o,e.abrupt("return",{code:o});case 16:case"end":return e.stop()}}),e,this)}))),Gn.apply(this,arguments)}function Yn(e){return Qn.apply(this,arguments)}function Qn(){return Qn=(0,l.default)((0,c.default)().mark((function e(t){var n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Jn(this),e.abrupt("return",(n.initPromise||(n.initPromise=Hn.call(this,t)),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),Qn.apply(this,arguments)}function Xn(e){var t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise((function(r,i){t[e]((0,f.default)((0,f.default)({},n),{},{success:function(e){r(e)},fail:function(e){i(e)}}))}))}}var Zn=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,i.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([Xn("getSystemInfo")(),Xn("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,a.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,o=n[1];o=void 0===o?{}:o;var s=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!s)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=s,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){uni.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){uni.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,v.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0)return e.init(t).database();if(this._database)return this._database;var n=dn(hn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=dn(hn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=Vn,e.chooseAndUploadFile=Kn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Wn(e)}}),e.SSEChannel=Zn,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return Yn.call(e,{openid:n,callLoginByWeixin:i})}}(e),e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,o.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var r=n,i=r.customUI,a=r.loadingOptions,s=r.errorOptions,u=r.parseSystemError,d=!i;return new Proxy({},{get:function(r,i){switch(i){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,l.default)((0,c.default)().mark((function e(){var i,a,o,s,u,l,d=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=d.length,a=new Array(i),o=0;o0&&void 0!==s[0]?s[0]:{},n=t.title,r=t.content,i=t.showCancel,a=t.cancelText,o=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:r,showCancel:i,cancelText:a,confirmText:o,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:T,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});case 33:if(P=r.sent,A=P.confirm,!s.retry||!A){r.next=37;break}return r.abrupt("return",h.apply(void 0,m));case 37:throw O=new de({subject:_,code:w,message:k,requestId:p.requestId}),O.detail=p.result,ae(Y,{type:te,content:O}),O;case 39:return r.abrupt("return",(ae(Y,{type:te,content:p.result}),p.result));case 40:case"end":return r.stop()}}),r,null,[[5,11]])})));function h(){return r.apply(this,arguments)}return h}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:i,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var a=n&&n.type||S;i=a!==S}var o="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var u=ce(n),c=u.success,l=u.fail,f=u.complete,d=s.then((function(){return i?Promise.resolve():W(J(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):W(J(t,"success"),e).then((function(){return W(J(t,"complete"),e)})).then((function(){return o&&ae(Y,{type:ee,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):W(J(t,"fail"),e).then((function(){return W(J(t,"complete"),e)})).then((function(){return ae(Y,{type:ee,content:e}),Promise.reject(e)}))}));if(!(c||l||f))return d;d.then((function(e){c&&c(e),f&&f(e),o&&ae(Y,{type:ee,content:e})}),(function(e){l&&l(e),f&&f(e),o&&ae(Y,{type:ee,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=F,t={};if(e&&1===e.length)t=e[0],tr=tr.init(t),tr._isDefault=!0;else{var n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){tr[e]=function(){return console.error(n),Promise.reject(new de({code:"SYS_ERR",message:n}))}}))}Object.assign(tr,{get mixinDatacom(){return Wn(tr)}}),qn(tr),tr.addInterceptor=z,tr.removeInterceptor=K,tr.interceptObject=H})();var nr=tr;t.default=nr}).call(this,n("c8ba"))},aff5:function(e,t,n){var r=n("23e7");r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},b320:function(e,t,n){"use strict";n.r(t);var r=n("5eda"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},b380:function(e,t,n){"use strict";function r(e,n){return t.default=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,n)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,n("131a")},b6cd:function(e,t,n){"use strict";var r=n("85bf"),i=n.n(r);i.a},b85c:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.default)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw o}}}},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var r=function(e){return e&&e.__esModule?e:{default:e}}(n("06c5"))},baa5:function(e,t,n){var r=n("23e7"),i=n("e58c");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},c11c:function(e,t,n){"use strict";(function(e){n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("fb6a"),n("7db0"),n("d3b7"),n("159b"),n("ac1f"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("c975"),n("99af");var r={name:"uni-data-select",mixins:[e.mixinDatacom||{}],props:{localdata:{type:Array,default:function(){return[]}},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:function(){return{showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}},created:function(){var e=this;this.debounceGet=this.debounce((function(){e.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder:function(){var e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom:function(){return this.value},textShow:function(){var e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement:function(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler:function(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom:function(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler:function(e){e.length&&this.initDefVal()}}},methods:{debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=null;return function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o0&&this.defItem<=this.mixinDatacomResData.length&&(n=this.mixinDatacomResData[this.defItem-1].value),e=n}(e||0===e)&&this.emit(e)}else e=this.valueCom;var r=this.mixinDatacomResData.find((function(t){return t.value===e}));this.current=r?this.formatItemName(r):""},isDisabled:function(e){var t=!1;return this.mixinDatacomResData.forEach((function(n){n.value===e&&(t=n.disable)})),t},clearVal:function(){this.emit(""),this.collection&&this.removeCache()},change:function(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit:function(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector:function(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName:function(e){var t=e.text,n=e.value,r=e.channel_code;if(r=r?"(".concat(r,")"):"",this.format){var i="";for(var a in i=this.format,e)i=i.replace(new RegExp("{".concat(a,"}"),"g"),e[a]);return i}return this.collection.indexOf("app-list")>0?"".concat(t,"(").concat(n,")"):t||"未命名".concat(r)},getLoadData:function(){return this.mixinDatacomResData},getCurrentCacheKey:function(){return this.collection},getCache:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getCurrentCacheKey(),t=uni.getStorageSync(this.cacheKey)||{};return t[e]},setCache:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentCacheKey(),n=uni.getStorageSync(this.cacheKey)||{};n[t]=e,uni.setStorageSync(this.cacheKey,n)},removeCache:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getCurrentCacheKey(),t=uni.getStorageSync(this.cacheKey)||{};delete t[e],uni.setStorageSync(this.cacheKey,t)}}};t.default=r}).call(this,n("a9ff")["default"])},c60a:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},pages:[{path:"pages/index/index",style:{navigationBarTitleText:"电子发票",navigationBarBackgroundColor:"#000",navigationBarTextStyle:"white"}},{path:"pages/Invoicing/Invoicing",style:{navigationBarTitleText:"开发票",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#000",navigationBarTextStyle:"white"}},{path:"pages/Invoiced/Invoiced",style:{navigationBarTitleText:"查看已开发票",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#000",navigationBarTextStyle:"white"}},{path:"pages/wxlogin/wxlogin",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"pages/wxlogin/registerphone",style:{navigationBarTitleText:"手机号绑定",enablePullDownRefresh:!1}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},uniIdRouter:{}}},c7eb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ +t.default=function(){return e};var e={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new P(r||[]);return a(o,"_invoke",{value:k(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=f;var h={};function p(){}function v(){}function m(){}var g={};l(g,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==n&&i.call(b,s)&&(g=b);var x=m.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var n;a(this,"_invoke",{value:function(a,o){function s(){return new t((function(n,s){(function n(a,o,s,u){var c=d(e[a],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==(0,r.default)(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)})(a,o,n,s)}))}return n=n?n.then(s,s):s()}})}function k(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator["return"]&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var r=function(e){return e&&e.__esModule?e:{default:e}}(n("53ca"))},ca86:function(e){e.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},cab1:function(e,t,n){"use strict";n.r(t);var r=n("fe08"),i=n("dbf0");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("32d0");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"15bbdc00",null,!1,r["a"],void 0);t["default"]=s.exports},d1ce:function(e,t,n){var r=n("7b69");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("6a2ded53",r,!0,{sourceMap:!1,shadowMode:!1})},d3c3:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-popup-dialog"},[n("v-uni-view",{staticClass:"uni-dialog-title"},[n("v-uni-text",{staticClass:"uni-dialog-title-text",class:["uni-popup__"+e.dialogType]},[e._v(e._s(e.titleText))])],1),"base"===e.mode?n("v-uni-view",{staticClass:"uni-dialog-content"},[e._t("default",[n("v-uni-text",{staticClass:"uni-dialog-content-text"},[e._v(e._s(e.content))])])],2):n("v-uni-view",{staticClass:"uni-dialog-content"},[e._t("default",["checkbox"===e.inputType?n("v-uni-input",{staticClass:"uni-dialog-input",attrs:{maxlength:e.maxlength,placeholder:e.placeholderText,focus:e.focus,type:"checkbox"},model:{value:e.val,callback:function(t){e.val=t},expression:"val"}}):"radio"===e.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],staticClass:"uni-dialog-input",attrs:{maxlength:e.maxlength,placeholder:e.placeholderText,focus:e.focus,type:"radio"},domProps:{checked:e._q(e.val,null)},on:{change:function(t){e.val=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],staticClass:"uni-dialog-input",attrs:{maxlength:e.maxlength,placeholder:e.placeholderText,focus:e.focus,type:e.inputType},domProps:{value:e.val},on:{input:function(t){t.target.composing||(e.val=t.target.value)}}})])],2),n("v-uni-view",{staticClass:"uni-dialog-button-group"},[e.showClose?n("v-uni-view",{staticClass:"uni-dialog-button",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeDialog.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"uni-dialog-button-text"},[e._v(e._s(e.closeText))])],1):e._e(),n("v-uni-view",{staticClass:"uni-dialog-button",class:e.showClose?"uni-border-left":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onOk.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"uni-dialog-button-text uni-button-color"},[e._v(e._s(e.okText))])],1)],1)],1)},i=[]},d5b8:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("c7eb")),a=r(n("1da1")),o=r(n("ade3"));n("a9e3"),n("7db0"),n("d3b7"),n("99af"),n("159b"),n("c975"),n("e9c4"),n("14d9"),n("ddb0");var s=r(n("502a")),u=n("49a3"),c=r(n("e143"));c.default.prototype.binddata=function(e,t,n){if(n)this.$refs[n].setValue(e,t);else{var r;for(var i in this.$refs){var a=this.$refs[i];if(a&&a.$options&&"uniForms"===a.$options.name){r=a;break}}if(!r)return console.error("当前 uni-froms 组件缺少 ref 属性");r.setValue(e,t)}};var l={name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:function(){return null}},modelValue:{type:Object,default:function(){return null}},model:{type:Object,default:function(){return null}},rules:{type:Object,default:function(){return{}}},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide:function(){return{uniForm:this}},data:function(){return{formData:{},formRules:{}}},computed:{localData:function(){var e=this.model||this.modelValue||this.value;return e?(0,u.deepCopy)(e):{}}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created:function(){this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules:function(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new s.default(e)},setValue:function(e,t){var n=this.childrens.find((function(t){return t.name===e}));return n?(this.formData[e]=(0,u.getValue)(e,t,this.formRules[e]&&this.formRules[e].rules||[]),n.onFieldChange(this.formData[e])):null},validate:function(e,t){return this.checkAll(this.formData,e,t)},validateField:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;t=[].concat(t);var r={};return this.childrens.forEach((function(n){var i=(0,u.realName)(n.name);-1!==t.indexOf(i)&&(r=Object.assign({},r,(0,o.default)({},i,e.formData[i])))})),this.checkAll(r,[],n)},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e=[].concat(e),this.childrens.forEach((function(t){if(0===e.length)t.errMsg="";else{var n=(0,u.realName)(t.name);-1!==e.indexOf(n)&&(t.errMsg="")}}))},submit:function(e,t,n){var r=this,i=function(e){var t=r.childrens.find((function(t){return t.name===e}));t&&void 0===r.formData[e]&&(r.formData[e]=r._getValue(e,r.dataValue[e]))};for(var a in this.dataValue)i(a);return n||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},checkAll:function(e,t,n,r){var o=this;return(0,a.default)((0,i.default)().mark((function a(){var s,c,l,f,d,h,p,v,m,g,y;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(o.validator){a.next=2;break}return a.abrupt("return");case 2:for(l in s=[],c=function(e){var t=o.childrens.find((function(t){return(0,u.realName)(t.name)===e}));t&&s.push(t)},e)c(l);n||"function"!==typeof t||(n=t),!n&&"function"!==typeof n&&Promise&&(f=new Promise((function(e,t){n=function(n,r){n?t(n):e(r)}}))),d=[],h=JSON.parse(JSON.stringify(e)),a.t0=(0,i.default)().keys(s);case 10:if((a.t1=a.t0()).done){a.next=23;break}return p=a.t1.value,v=s[p],m=(0,u.realName)(v.name),a.next=16,v.onFieldChange(h[m]);case 16:if(g=a.sent,!g){a.next=21;break}if(d.push(g),"toast"!==o.errShowType&&"modal"!==o.errShowType){a.next=21;break}return a.abrupt("break",23);case 21:a.next=10;break;case 23:if(Array.isArray(d)&&0===d.length&&(d=null),Array.isArray(t)&&t.forEach((function(e){var t=(0,u.realName)(e),n=(0,u.getDataValue)(e,o.localData);void 0!==n&&(h[t]=n)})),"submit"===r?o.$emit("submit",{detail:{value:h,errors:d}}):o.$emit("validate",d),{},y=(0,u.rawData)(h,o.name),n&&"function"===typeof n&&n(d,y),!f||!n){a.next=33;break}return a.abrupt("return",f);case 33:return a.abrupt("return",null);case 34:case"end":return a.stop()}}),a)})))()},validateCheck:function(e){this.$emit("validate",e)},_getValue:u.getValue,_isRequiredField:u.isRequiredField,_setDataValue:u.setDataValue,_getDataValue:u.getDataValue,_realName:u.realName,_isRealName:u.isRealName,_isEqual:u.isEqual}};t.default=l},d86b:function(e,t,n){var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d967:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},n("d3b7"),n("f8c9"),n("4ae1")},dbf0:function(e,t,n){"use strict";n.r(t);var r=n("d5b8"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},dc0d:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniIcons:n("461b").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-stat__select"},[e.label?n("span",{staticClass:"uni-label-text hide-on-phone"},[e._v(e._s(e.label+":"))]):e._e(),n("v-uni-view",{staticClass:"uni-stat-box",class:{"uni-stat__actived":e.current}},[n("v-uni-view",{staticClass:"uni-select",class:{"uni-select--disabled":e.disabled}},[n("v-uni-view",{staticClass:"uni-select__input-box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}},[e.current?n("v-uni-view",{staticClass:"uni-select__input-text"},[e._v(e._s(e.textShow))]):n("v-uni-view",{staticClass:"uni-select__input-text uni-select__input-placeholder"},[e._v(e._s(e.typePlaceholder))]),e.current&&e.clear&&!e.disabled?n("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clearVal.apply(void 0,arguments)}}},[n("uni-icons",{attrs:{type:"clear",color:"#c0c4cc",size:"24"}})],1):n("v-uni-view",[n("uni-icons",{attrs:{type:e.showSelector?"top":"bottom",size:"14",color:"#999"}})],1)],1),e.showSelector?n("v-uni-view",{staticClass:"uni-select--mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}}):e._e(),e.showSelector?n("v-uni-view",{staticClass:"uni-select__selector",style:e.getOffsetByPlacement},[n("v-uni-view",{class:"bottom"==e.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top"}),n("v-uni-scroll-view",{staticClass:"uni-select__selector-scroll",attrs:{"scroll-y":"true"}},[0===e.mixinDatacomResData.length?n("v-uni-view",{staticClass:"uni-select__selector-empty"},[n("v-uni-text",[e._v(e._s(e.emptyTips))])],1):e._l(e.mixinDatacomResData,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-select__selector-item",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.change(t)}}},[n("v-uni-text",{class:{"uni-select__selector__disabled":t.disable}},[e._v(e._s(e.formatItemName(t)))])],1)}))],2)],1):e._e()],1)],1)],1)},a=[]},dff9:function(e,t,n){"use strict";var r=n("d1ce"),i=n.n(r);i.a},e39c:function(e,t,n){var r=n("96fe");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("d3668548",r,!0,{sourceMap:!1,shadowMode:!1})},f010:function(e,t,n){"use strict";n.r(t);var r=n("3489"),i=n("950d");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("91df");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"36237e34",null,!1,r["a"],void 0);t["default"]=s.exports},f0c1:function(e,t,n){"use strict";var r=n("e39c"),i=n.n(r);i.a},f183:function(e,t,n){var r=n("23e7"),i=n("e330"),a=n("d012"),o=n("861d"),s=n("1a2d"),u=n("9bf2").f,c=n("241c"),l=n("057f"),f=n("4fad"),d=n("90e3"),h=n("bb2f"),p=!1,v=d("meta"),m=0,g=function(e){u(e,v,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[v]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,a=r.length;i0&&void 0!==arguments[0]?arguments[0]:{};t.duration&&(this.durationTime=t.duration),this.animation=(0,r.createAnimation)(Object.assign(this.config,t),this)},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var n in t)try{var e;if("object"===(0,a.default)(t[n]))(e=this.animation)[n].apply(e,(0,o.default)(t[n]));else this.animation[n](t[n])}catch(s){console.error("方法 ".concat(n," 不存在"))}return this.animation.step(i),this}},run:function(t){this.animation&&this.animation.run(t)},open:function(){var t=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var i=this.styleInit(!1),n=i.opacity,e=i.transform;"undefined"!==typeof n&&(this.opacity=n),this.transform=e,this.$nextTick((function(){t.timer=setTimeout((function(){t.animation=(0,r.createAnimation)(t.config,t),t.tranfromInit(!1).step(),t.animation.run(),t.$emit("change",{detail:t.isShow})}),20)}))},close:function(t){var i=this;this.animation&&this.tranfromInit(!0).step().run((function(){i.isShow=!1,i.animationData=null,i.animation=null;var t=i.styleInit(!1),n=t.opacity,e=t.transform;i.opacity=n||1,i.transform=e,i.$emit("change",{detail:i.isShow})}))},styleInit:function(t){var i=this,n={transform:""},e=function(t,e){"fade"===e?n.opacity=i.animationType(t)[e]:n.transform+=i.animationType(t)[e]+" "};return"string"===typeof this.modeClass?e(t,this.modeClass):this.modeClass.forEach((function(i){e(t,i)})),n},tranfromInit:function(t){var i=this,n=function(t,n){var e=null;"fade"===n?e=t?0:1:(e=t?"-100%":"0","zoom-in"===n&&(e=t?.8:1),"zoom-out"===n&&(e=t?1.2:1),"slide-right"===n&&(e=t?"100%":"0"),"slide-bottom"===n&&(e=t?"100%":"0")),i.animation[i.animationMode()[n]](e)};return"string"===typeof this.modeClass?n(t,this.modeClass):this.modeClass.forEach((function(i){n(t,i)})),this.animation},animationType:function(t){return{fade:t?0:1,"slide-top":"translateY(".concat(t?"0":"-100%",")"),"slide-right":"translateX(".concat(t?"0":"100%",")"),"slide-bottom":"translateY(".concat(t?"0":"100%",")"),"slide-left":"translateX(".concat(t?"0":"-100%",")"),"zoom-in":"scaleX(".concat(t?1:.8,") scaleY(").concat(t?1:.8,")"),"zoom-out":"scaleX(".concat(t?1:1.2,") scaleY(").concat(t?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};i.default=u},"1c2a":function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isShow,expression:"isShow"}],ref:"ani",class:t.customClass,style:t.transformStyles,attrs:{animation:t.animationData},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onClick.apply(void 0,arguments)}}},[t._t("default")],2)},o=[]},2909:function(t,i,n){"use strict";n("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){return(0,e.default)(t)||(0,o.default)(t)||(0,a.default)(t)||(0,s.default)()};var e=r(n("6005")),o=r(n("db90")),a=r(n("06c5")),s=r(n("3427"));function r(t){return t&&t.__esModule?t:{default:t}}},3427:function(t,i,n){"use strict";n("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n("d9e2"),n("d401")},"3dd7":function(t,i,n){"use strict";n("7a82");var e=n("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.createAnimation=function(t,i){if(!i)return;return clearTimeout(i.timer),new r(t,i)},n("caad"),n("2532"),n("99af"),n("d3b7"),n("159b");var o=e(n("5530")),a=e(n("d4ec")),s=e(n("bee2")),r=function(){function t(i,n){(0,a.default)(this,t),this.options=i,this.animation=uni.createAnimation((0,o.default)({},i)),this.currentStepAnimates={},this.next=0,this.$=n}return(0,s.default)(t,[{key:"_nvuePushAnimates",value:function(t,i){var n=this.currentStepAnimates[this.next],e={};if(e=n||{styles:{},config:{}},u.includes(t)){e.styles.transform||(e.styles.transform="");var o="";"rotate"===t&&(o="deg"),e.styles.transform+="".concat(t,"(").concat(i+o,") ")}else e.styles[t]="".concat(i);this.currentStepAnimates[this.next]=e}},{key:"_animateRun",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(e,a){nvueAnimation.transition(n,(0,o.default)({styles:t},i),(function(t){e()}))}))}},{key:"_nvueNextAnimate",value:function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2?arguments[2]:void 0,o=t[n];if(o){var a=o.styles,s=o.config;this._animateRun(a,s).then((function(){n+=1,i._nvueNextAnimate(t,n,e)}))}else this.currentStepAnimates={},"function"===typeof e&&e(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),t}(),u=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];u.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((function(t){r.prototype[t]=function(){var i;return(i=this.animation)[t].apply(i,arguments),this}}))},"569a":function(t,i,n){"use strict";n.r(i);var e=n("124a"),o=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(a);i["default"]=o.a},6005:function(t,i,n){"use strict";n("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){if(Array.isArray(t))return(0,e.default)(t)};var e=function(t){return t&&t.__esModule?t:{default:t}}(n("6b75"))},"8bc4":function(t,i,n){"use strict";n("7a82");var e=n("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,n("c975");var o=e(n("09fd")),a={name:"uniPopup",components:{keypress:o.default},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)"},borderRadius:{type:String}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup:function(t){document.getElementsByTagName("body")[0].style.overflow=t?"hidden":"visible"}},data:function(){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:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles:function(){var t={backgroundColor:this.bg};return this.borderRadius,t=Object.assign(t,{borderRadius:this.borderRadius}),t},isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},bg:function(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted:function(){var t=this;(function(){var i=uni.getSystemInfoSync(),n=i.windowWidth,e=i.windowHeight,o=i.windowTop,a=i.safeArea,s=(i.screenHeight,i.safeAreaInsets);t.popupWidth=n,t.popupHeight=e+(o||0),a&&t.safeArea?t.safeAreaInsets=s.bottom:t.safeAreaInsets=0})()},destroyed:function(){this.setH5Visible()},activated:function(){this.setH5Visible(!this.showPopup)},deactivated:function(){this.setH5Visible(!0)},created:function(){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:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];document.getElementsByTagName("body")[0].style.overflow=t?"visible":"hidden"},closeMask:function(){this.maskShow=!1},disableMask:function(){this.mkclick=!1},clear:function(t){t.stopPropagation(),this.clearPropagation=!0},open:function(t){if(!this.showPopup){t&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(t)||(t=this.type),this.config[t]?(this[this.config[t]](),this.$emit("change",{show:!0,type:t})):console.error("缺少类型:",t)}},close:function(t){var i=this;this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((function(){i.showPopup=!1}),300)},touchstart:function(){this.clearPropagation=!1},onTap:function(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top:function(t){var i=this;this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((function(){i.messageChild&&"message"===i.type&&i.messageChild.timerClose()})))},bottom:function(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},center:function(t){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",borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},left:function(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)},right:function(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)}}};i.default=a},9663:function(t,i,n){"use strict";n.r(i);var e=n("be24"),o=n("fda3");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return o[t]}))}(a);n("f137");var s=n("f0c5"),r=Object(s["a"])(o["default"],e["b"],e["c"],!1,null,"06f30f66",null,!1,e["a"],void 0);i["default"]=r.exports},be24:function(t,i,n){"use strict";n.d(i,"b",(function(){return o})),n.d(i,"c",(function(){return a})),n.d(i,"a",(function(){return e}));var e={uniTransition:n("c4da").default},o=function(){var t=this,i=t.$createElement,n=t._self._c||i;return t.showPopup?n("v-uni-view",{staticClass:"uni-popup",class:[t.popupstyle,t.isDesktop?"fixforpc-z-index":""]},[n("v-uni-view",{on:{touchstart:function(i){arguments[0]=i=t.$handleEvent(i),t.touchstart.apply(void 0,arguments)}}},[t.maskShow?n("uni-transition",{key:"1",attrs:{name:"mask","mode-class":"fade",styles:t.maskClass,duration:t.duration,show:t.showTrans},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onTap.apply(void 0,arguments)}}}):t._e(),n("uni-transition",{key:"2",attrs:{"mode-class":t.ani,name:"content",styles:t.transClass,duration:t.duration,show:t.showTrans},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onTap.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-popup__wrapper",class:[t.popupstyle],style:t.getStyles,on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.clear.apply(void 0,arguments)}}},[t._t("default")],2)],1)],1),t.maskShow?n("keypress",{on:{esc:function(i){arguments[0]=i=t.$handleEvent(i),t.onTap.apply(void 0,arguments)}}}):t._e()],1):t._e()},a=[]},c4da:function(t,i,n){"use strict";n.r(i);var e=n("1c2a"),o=n("569a");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return o[t]}))}(a);var s=n("f0c5"),r=Object(s["a"])(o["default"],e["b"],e["c"],!1,null,"10fabb47",null,!1,e["a"],void 0);i["default"]=r.exports},db90:function(t,i,n){"use strict";n("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630")},f137:function(t,i,n){"use strict";var e=n("f4ea"),o=n.n(e);o.a},f4ea:function(t,i,n){var e=n("0682");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var o=n("4f06").default;o("783a2685",e,!0,{sourceMap:!1,shadowMode:!1})},fda3:function(t,i,n){"use strict";n.r(i);var e=n("8bc4"),o=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(a);i["default"]=o.a}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.c092caf2.js b/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.c092caf2.js deleted file mode 100644 index ab1bd15..0000000 --- a/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.c092caf2.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone"],{"1bba":function(e,n,t){e.exports=t.p+"static/fonts/uniicons.2579c7da.ttf"},"1d4f":function(e,n,t){"use strict";t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.fontData=void 0;n.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}]},"1de5":function(e,n,t){"use strict";e.exports=function(e,n){return n||(n={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"2ff7":function(e,n,t){var o=t("dc50");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=t("4f06").default;i("621862cf",o,!0,{sourceMap:!1,shadowMode:!1})},"34b3":function(e,n,t){"use strict";t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("ac1f"),t("00b4"),t("a9e3"),t("7db0"),t("d3b7"),t("99af");var o=t("1d4f"),i={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:function(){return{icons:o.fontData}},computed:{unicode:function(){var e=this,n=this.icons.find((function(n){return n.font_class===e.type}));return n?n.unicode:""},iconSize:function(){return function(e){return"number"===typeof e||/^[0-9]*$/g.test(e)?e+"px":e}(this.size)},styleObj:function(){return""!==this.fontFamily?"color: ".concat(this.color,"; font-size: ").concat(this.iconSize,"; font-family: ").concat(this.fontFamily,";"):"color: ".concat(this.color,"; font-size: ").concat(this.iconSize,";")}},methods:{_onClick:function(){this.$emit("click")}}};n.default=i},"461b":function(e,n,t){"use strict";t.r(n);var o=t("a8cc"),i=t("76cc");for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("ac91");var d=t("f0c5"),c=Object(d["a"])(i["default"],o["b"],o["c"],!1,null,"51df9b79",null,!1,o["a"],void 0);n["default"]=c.exports},"4d55":function(e,n,t){"use strict";t("7a82");var o=t("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("5530")),a="https://intp.xingtongworld.com",d={baseUrl:a,getJsSdkData:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",n,t,o)},getQrCode:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",n,t,o)},getApplyData:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",n,t,o)},Home:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/api/InvoiceIssuance/getList",n,t,o)},sendSms:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/wechat/sendSms",n,t,o)},getWxCode:function(e,n,t){d.sendRequest("get",e,"/wechat/login/getWxCode",n,t)},wx:function(e,n,t){d.sendRequest("get",e,"/wechat/login/wx",n,t)},request:function(e,n,t,o){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];d.sendRequest("post",n,e,t,o,i)},sendRequest:function(e,n,t,o,d,c){var f="";f="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};c&&(u.header={"Content-Type":f,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,i.default)((0,i.default)({url:a+t,method:e,data:n},u),{},{success:function(e){1!=e.data.code?(-14==e.data.code&&(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),uni.showToast({title:e.data.msg||e.msg,icon:"none"})):o&&o(e.data)}}))}},c=d;n.default=c},"76cc":function(e,n,t){"use strict";t.r(n);var o=t("34b3"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},a8cc:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-text",{staticClass:"uni-icons",class:["uniui-"+e.type,e.customPrefix,e.customPrefix?e.type:""],style:e.styleObj,on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e._onClick.apply(void 0,arguments)}}},[e._t("default")],2)},i=[]},ac91:function(e,n,t){"use strict";var o=t("2ff7"),i=t.n(o);i.a},dc50:function(e,n,t){var o=t("24fb"),i=t("1de5"),a=t("1bba");n=o(!1);var d=i(a);n.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uniui-cart-filled[data-v-51df9b79]:before{content:"\\e6d0"}.uniui-gift-filled[data-v-51df9b79]:before{content:"\\e6c4"}.uniui-color[data-v-51df9b79]:before{content:"\\e6cf"}.uniui-wallet[data-v-51df9b79]:before{content:"\\e6b1"}.uniui-settings-filled[data-v-51df9b79]:before{content:"\\e6ce"}.uniui-auth-filled[data-v-51df9b79]:before{content:"\\e6cc"}.uniui-shop-filled[data-v-51df9b79]:before{content:"\\e6cd"}.uniui-staff-filled[data-v-51df9b79]:before{content:"\\e6cb"}.uniui-vip-filled[data-v-51df9b79]:before{content:"\\e6c6"}.uniui-plus-filled[data-v-51df9b79]:before{content:"\\e6c7"}.uniui-folder-add-filled[data-v-51df9b79]:before{content:"\\e6c8"}.uniui-color-filled[data-v-51df9b79]:before{content:"\\e6c9"}.uniui-tune-filled[data-v-51df9b79]:before{content:"\\e6ca"}.uniui-calendar-filled[data-v-51df9b79]:before{content:"\\e6c0"}.uniui-notification-filled[data-v-51df9b79]:before{content:"\\e6c1"}.uniui-wallet-filled[data-v-51df9b79]:before{content:"\\e6c2"}.uniui-medal-filled[data-v-51df9b79]:before{content:"\\e6c3"}.uniui-fire-filled[data-v-51df9b79]:before{content:"\\e6c5"}.uniui-refreshempty[data-v-51df9b79]:before{content:"\\e6bf"}.uniui-location-filled[data-v-51df9b79]:before{content:"\\e6af"}.uniui-person-filled[data-v-51df9b79]:before{content:"\\e69d"}.uniui-personadd-filled[data-v-51df9b79]:before{content:"\\e698"}.uniui-arrowthinleft[data-v-51df9b79]:before{content:"\\e6d2"}.uniui-arrowthinup[data-v-51df9b79]:before{content:"\\e6d3"}.uniui-arrowthindown[data-v-51df9b79]:before{content:"\\e6d4"}.uniui-back[data-v-51df9b79]:before{content:"\\e6b9"}.uniui-forward[data-v-51df9b79]:before{content:"\\e6ba"}.uniui-arrow-right[data-v-51df9b79]:before{content:"\\e6bb"}.uniui-arrow-left[data-v-51df9b79]:before{content:"\\e6bc"}.uniui-arrow-up[data-v-51df9b79]:before{content:"\\e6bd"}.uniui-arrow-down[data-v-51df9b79]:before{content:"\\e6be"}.uniui-arrowthinright[data-v-51df9b79]:before{content:"\\e6d1"}.uniui-down[data-v-51df9b79]:before{content:"\\e6b8"}.uniui-bottom[data-v-51df9b79]:before{content:"\\e6b8"}.uniui-arrowright[data-v-51df9b79]:before{content:"\\e6d5"}.uniui-right[data-v-51df9b79]:before{content:"\\e6b5"}.uniui-up[data-v-51df9b79]:before{content:"\\e6b6"}.uniui-top[data-v-51df9b79]:before{content:"\\e6b6"}.uniui-left[data-v-51df9b79]:before{content:"\\e6b7"}.uniui-arrowup[data-v-51df9b79]:before{content:"\\e6d6"}.uniui-eye[data-v-51df9b79]:before{content:"\\e651"}.uniui-eye-filled[data-v-51df9b79]:before{content:"\\e66a"}.uniui-eye-slash[data-v-51df9b79]:before{content:"\\e6b3"}.uniui-eye-slash-filled[data-v-51df9b79]:before{content:"\\e6b4"}.uniui-info-filled[data-v-51df9b79]:before{content:"\\e649"}.uniui-reload[data-v-51df9b79]:before{content:"\\e6b2"}.uniui-micoff-filled[data-v-51df9b79]:before{content:"\\e6b0"}.uniui-map-pin-ellipse[data-v-51df9b79]:before{content:"\\e6ac"}.uniui-map-pin[data-v-51df9b79]:before{content:"\\e6ad"}.uniui-location[data-v-51df9b79]:before{content:"\\e6ae"}.uniui-starhalf[data-v-51df9b79]:before{content:"\\e683"}.uniui-star[data-v-51df9b79]:before{content:"\\e688"}.uniui-star-filled[data-v-51df9b79]:before{content:"\\e68f"}.uniui-calendar[data-v-51df9b79]:before{content:"\\e6a0"}.uniui-fire[data-v-51df9b79]:before{content:"\\e6a1"}.uniui-medal[data-v-51df9b79]:before{content:"\\e6a2"}.uniui-font[data-v-51df9b79]:before{content:"\\e6a3"}.uniui-gift[data-v-51df9b79]:before{content:"\\e6a4"}.uniui-link[data-v-51df9b79]:before{content:"\\e6a5"}.uniui-notification[data-v-51df9b79]:before{content:"\\e6a6"}.uniui-staff[data-v-51df9b79]:before{content:"\\e6a7"}.uniui-vip[data-v-51df9b79]:before{content:"\\e6a8"}.uniui-folder-add[data-v-51df9b79]:before{content:"\\e6a9"}.uniui-tune[data-v-51df9b79]:before{content:"\\e6aa"}.uniui-auth[data-v-51df9b79]:before{content:"\\e6ab"}.uniui-person[data-v-51df9b79]:before{content:"\\e699"}.uniui-email-filled[data-v-51df9b79]:before{content:"\\e69a"}.uniui-phone-filled[data-v-51df9b79]:before{content:"\\e69b"}.uniui-phone[data-v-51df9b79]:before{content:"\\e69c"}.uniui-email[data-v-51df9b79]:before{content:"\\e69e"}.uniui-personadd[data-v-51df9b79]:before{content:"\\e69f"}.uniui-chatboxes-filled[data-v-51df9b79]:before{content:"\\e692"}.uniui-contact[data-v-51df9b79]:before{content:"\\e693"}.uniui-chatbubble-filled[data-v-51df9b79]:before{content:"\\e694"}.uniui-contact-filled[data-v-51df9b79]:before{content:"\\e695"}.uniui-chatboxes[data-v-51df9b79]:before{content:"\\e696"}.uniui-chatbubble[data-v-51df9b79]:before{content:"\\e697"}.uniui-upload-filled[data-v-51df9b79]:before{content:"\\e68e"}.uniui-upload[data-v-51df9b79]:before{content:"\\e690"}.uniui-weixin[data-v-51df9b79]:before{content:"\\e691"}.uniui-compose[data-v-51df9b79]:before{content:"\\e67f"}.uniui-qq[data-v-51df9b79]:before{content:"\\e680"}.uniui-download-filled[data-v-51df9b79]:before{content:"\\e681"}.uniui-pyq[data-v-51df9b79]:before{content:"\\e682"}.uniui-sound[data-v-51df9b79]:before{content:"\\e684"}.uniui-trash-filled[data-v-51df9b79]:before{content:"\\e685"}.uniui-sound-filled[data-v-51df9b79]:before{content:"\\e686"}.uniui-trash[data-v-51df9b79]:before{content:"\\e687"}.uniui-videocam-filled[data-v-51df9b79]:before{content:"\\e689"}.uniui-spinner-cycle[data-v-51df9b79]:before{content:"\\e68a"}.uniui-weibo[data-v-51df9b79]:before{content:"\\e68b"}.uniui-videocam[data-v-51df9b79]:before{content:"\\e68c"}.uniui-download[data-v-51df9b79]:before{content:"\\e68d"}.uniui-help[data-v-51df9b79]:before{content:"\\e679"}.uniui-navigate-filled[data-v-51df9b79]:before{content:"\\e67a"}.uniui-plusempty[data-v-51df9b79]:before{content:"\\e67b"}.uniui-smallcircle[data-v-51df9b79]:before{content:"\\e67c"}.uniui-minus-filled[data-v-51df9b79]:before{content:"\\e67d"}.uniui-micoff[data-v-51df9b79]:before{content:"\\e67e"}.uniui-closeempty[data-v-51df9b79]:before{content:"\\e66c"}.uniui-clear[data-v-51df9b79]:before{content:"\\e66d"}.uniui-navigate[data-v-51df9b79]:before{content:"\\e66e"}.uniui-minus[data-v-51df9b79]:before{content:"\\e66f"}.uniui-image[data-v-51df9b79]:before{content:"\\e670"}.uniui-mic[data-v-51df9b79]:before{content:"\\e671"}.uniui-paperplane[data-v-51df9b79]:before{content:"\\e672"}.uniui-close[data-v-51df9b79]:before{content:"\\e673"}.uniui-help-filled[data-v-51df9b79]:before{content:"\\e674"}.uniui-paperplane-filled[data-v-51df9b79]:before{content:"\\e675"}.uniui-plus[data-v-51df9b79]:before{content:"\\e676"}.uniui-mic-filled[data-v-51df9b79]:before{content:"\\e677"}.uniui-image-filled[data-v-51df9b79]:before{content:"\\e678"}.uniui-locked-filled[data-v-51df9b79]:before{content:"\\e668"}.uniui-info[data-v-51df9b79]:before{content:"\\e669"}.uniui-locked[data-v-51df9b79]:before{content:"\\e66b"}.uniui-camera-filled[data-v-51df9b79]:before{content:"\\e658"}.uniui-chat-filled[data-v-51df9b79]:before{content:"\\e659"}.uniui-camera[data-v-51df9b79]:before{content:"\\e65a"}.uniui-circle[data-v-51df9b79]:before{content:"\\e65b"}.uniui-checkmarkempty[data-v-51df9b79]:before{content:"\\e65c"}.uniui-chat[data-v-51df9b79]:before{content:"\\e65d"}.uniui-circle-filled[data-v-51df9b79]:before{content:"\\e65e"}.uniui-flag[data-v-51df9b79]:before{content:"\\e65f"}.uniui-flag-filled[data-v-51df9b79]:before{content:"\\e660"}.uniui-gear-filled[data-v-51df9b79]:before{content:"\\e661"}.uniui-home[data-v-51df9b79]:before{content:"\\e662"}.uniui-home-filled[data-v-51df9b79]:before{content:"\\e663"}.uniui-gear[data-v-51df9b79]:before{content:"\\e664"}.uniui-smallcircle-filled[data-v-51df9b79]:before{content:"\\e665"}.uniui-map-filled[data-v-51df9b79]:before{content:"\\e666"}.uniui-map[data-v-51df9b79]:before{content:"\\e667"}.uniui-refresh-filled[data-v-51df9b79]:before{content:"\\e656"}.uniui-refresh[data-v-51df9b79]:before{content:"\\e657"}.uniui-cloud-upload[data-v-51df9b79]:before{content:"\\e645"}.uniui-cloud-download-filled[data-v-51df9b79]:before{content:"\\e646"}.uniui-cloud-download[data-v-51df9b79]:before{content:"\\e647"}.uniui-cloud-upload-filled[data-v-51df9b79]:before{content:"\\e648"}.uniui-redo[data-v-51df9b79]:before{content:"\\e64a"}.uniui-images-filled[data-v-51df9b79]:before{content:"\\e64b"}.uniui-undo-filled[data-v-51df9b79]:before{content:"\\e64c"}.uniui-more[data-v-51df9b79]:before{content:"\\e64d"}.uniui-more-filled[data-v-51df9b79]:before{content:"\\e64e"}.uniui-undo[data-v-51df9b79]:before{content:"\\e64f"}.uniui-images[data-v-51df9b79]:before{content:"\\e650"}.uniui-paperclip[data-v-51df9b79]:before{content:"\\e652"}.uniui-settings[data-v-51df9b79]:before{content:"\\e653"}.uniui-search[data-v-51df9b79]:before{content:"\\e654"}.uniui-redo-filled[data-v-51df9b79]:before{content:"\\e655"}.uniui-list[data-v-51df9b79]:before{content:"\\e644"}.uniui-mail-open-filled[data-v-51df9b79]:before{content:"\\e63a"}.uniui-hand-down-filled[data-v-51df9b79]:before{content:"\\e63c"}.uniui-hand-down[data-v-51df9b79]:before{content:"\\e63d"}.uniui-hand-up-filled[data-v-51df9b79]:before{content:"\\e63e"}.uniui-hand-up[data-v-51df9b79]:before{content:"\\e63f"}.uniui-heart-filled[data-v-51df9b79]:before{content:"\\e641"}.uniui-mail-open[data-v-51df9b79]:before{content:"\\e643"}.uniui-heart[data-v-51df9b79]:before{content:"\\e639"}.uniui-loop[data-v-51df9b79]:before{content:"\\e633"}.uniui-pulldown[data-v-51df9b79]:before{content:"\\e632"}.uniui-scan[data-v-51df9b79]:before{content:"\\e62a"}.uniui-bars[data-v-51df9b79]:before{content:"\\e627"}.uniui-checkbox[data-v-51df9b79]:before{content:"\\e62b"}.uniui-checkbox-filled[data-v-51df9b79]:before{content:"\\e62c"}.uniui-shop[data-v-51df9b79]:before{content:"\\e62f"}.uniui-headphones[data-v-51df9b79]:before{content:"\\e630"}.uniui-cart[data-v-51df9b79]:before{content:"\\e631"}@font-face{font-family:uniicons;src:url('+d+")}.uni-icons[data-v-51df9b79]{font-family:uniicons;text-decoration:none;text-align:center}",""]),e.exports=n}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.d1636744.js b/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.d1636744.js new file mode 100644 index 0000000..7f87c83 --- /dev/null +++ b/unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.d1636744.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone"],{"1bba":function(e,n,t){e.exports=t.p+"static/fonts/uniicons.2579c7da.ttf"},"1d4f":function(e,n,t){"use strict";t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.fontData=void 0;n.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}]},"1de5":function(e,n,t){"use strict";e.exports=function(e,n){return n||(n={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"2ff7":function(e,n,t){var o=t("dc50");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=t("4f06").default;i("621862cf",o,!0,{sourceMap:!1,shadowMode:!1})},"34b3":function(e,n,t){"use strict";t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("ac1f"),t("00b4"),t("a9e3"),t("7db0"),t("d3b7"),t("99af");var o=t("1d4f"),i={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:function(){return{icons:o.fontData}},computed:{unicode:function(){var e=this,n=this.icons.find((function(n){return n.font_class===e.type}));return n?n.unicode:""},iconSize:function(){return function(e){return"number"===typeof e||/^[0-9]*$/g.test(e)?e+"px":e}(this.size)},styleObj:function(){return""!==this.fontFamily?"color: ".concat(this.color,"; font-size: ").concat(this.iconSize,"; font-family: ").concat(this.fontFamily,";"):"color: ".concat(this.color,"; font-size: ").concat(this.iconSize,";")}},methods:{_onClick:function(){this.$emit("click")}}};n.default=i},"461b":function(e,n,t){"use strict";t.r(n);var o=t("a8cc"),i=t("76cc");for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("ac91");var d=t("f0c5"),c=Object(d["a"])(i["default"],o["b"],o["c"],!1,null,"51df9b79",null,!1,o["a"],void 0);n["default"]=c.exports},"4d55":function(e,n,t){"use strict";t("7a82");var o=t("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("5530")),a="https://intp.xingtongworld.com",d={baseUrl:a,getJsSdkData:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",n,t,o)},getQrCode:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",n,t,o)},getApplyData:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",n,t,o)},Home:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/api/InvoiceIssuance/getList",n,t,o)},validateFeePay:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/api/InvoiceIssuance/validateFeePay",n,t,o)},sendSms:function(e,n,t){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];d.sendRequest("post",e,"/wechat/wechat/sendSms",n,t,o)},getWxCode:function(e,n,t){d.sendRequest("get",e,"/wechat/login/getWxCode",n,t)},wx:function(e,n,t){d.sendRequest("get",e,"/wechat/login/wx",n,t)},request:function(e,n,t,o){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];d.sendRequest("post",n,e,t,o,i)},sendRequest:function(e,n,t,o,d,c){var f="";f="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};c&&(u.header={"Content-Type":f,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,i.default)((0,i.default)({url:a+t,method:e,data:n},u),{},{success:function(e){1!=e.data.code&&-8!=e.data.code?(-14!=e.data.code&&-997!=e.data.code||(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),"/api/InvoiceIssuance/validateFeePay"!==t&&uni.showToast({title:e.data.msg||e.msg,icon:"none"})):o&&o(e.data)}}))}},c=d;n.default=c},"76cc":function(e,n,t){"use strict";t.r(n);var o=t("34b3"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},a8cc:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-text",{staticClass:"uni-icons",class:["uniui-"+e.type,e.customPrefix,e.customPrefix?e.type:""],style:e.styleObj,on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e._onClick.apply(void 0,arguments)}}},[e._t("default")],2)},i=[]},ac91:function(e,n,t){"use strict";var o=t("2ff7"),i=t.n(o);i.a},dc50:function(e,n,t){var o=t("24fb"),i=t("1de5"),a=t("1bba");n=o(!1);var d=i(a);n.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uniui-cart-filled[data-v-51df9b79]:before{content:"\\e6d0"}.uniui-gift-filled[data-v-51df9b79]:before{content:"\\e6c4"}.uniui-color[data-v-51df9b79]:before{content:"\\e6cf"}.uniui-wallet[data-v-51df9b79]:before{content:"\\e6b1"}.uniui-settings-filled[data-v-51df9b79]:before{content:"\\e6ce"}.uniui-auth-filled[data-v-51df9b79]:before{content:"\\e6cc"}.uniui-shop-filled[data-v-51df9b79]:before{content:"\\e6cd"}.uniui-staff-filled[data-v-51df9b79]:before{content:"\\e6cb"}.uniui-vip-filled[data-v-51df9b79]:before{content:"\\e6c6"}.uniui-plus-filled[data-v-51df9b79]:before{content:"\\e6c7"}.uniui-folder-add-filled[data-v-51df9b79]:before{content:"\\e6c8"}.uniui-color-filled[data-v-51df9b79]:before{content:"\\e6c9"}.uniui-tune-filled[data-v-51df9b79]:before{content:"\\e6ca"}.uniui-calendar-filled[data-v-51df9b79]:before{content:"\\e6c0"}.uniui-notification-filled[data-v-51df9b79]:before{content:"\\e6c1"}.uniui-wallet-filled[data-v-51df9b79]:before{content:"\\e6c2"}.uniui-medal-filled[data-v-51df9b79]:before{content:"\\e6c3"}.uniui-fire-filled[data-v-51df9b79]:before{content:"\\e6c5"}.uniui-refreshempty[data-v-51df9b79]:before{content:"\\e6bf"}.uniui-location-filled[data-v-51df9b79]:before{content:"\\e6af"}.uniui-person-filled[data-v-51df9b79]:before{content:"\\e69d"}.uniui-personadd-filled[data-v-51df9b79]:before{content:"\\e698"}.uniui-arrowthinleft[data-v-51df9b79]:before{content:"\\e6d2"}.uniui-arrowthinup[data-v-51df9b79]:before{content:"\\e6d3"}.uniui-arrowthindown[data-v-51df9b79]:before{content:"\\e6d4"}.uniui-back[data-v-51df9b79]:before{content:"\\e6b9"}.uniui-forward[data-v-51df9b79]:before{content:"\\e6ba"}.uniui-arrow-right[data-v-51df9b79]:before{content:"\\e6bb"}.uniui-arrow-left[data-v-51df9b79]:before{content:"\\e6bc"}.uniui-arrow-up[data-v-51df9b79]:before{content:"\\e6bd"}.uniui-arrow-down[data-v-51df9b79]:before{content:"\\e6be"}.uniui-arrowthinright[data-v-51df9b79]:before{content:"\\e6d1"}.uniui-down[data-v-51df9b79]:before{content:"\\e6b8"}.uniui-bottom[data-v-51df9b79]:before{content:"\\e6b8"}.uniui-arrowright[data-v-51df9b79]:before{content:"\\e6d5"}.uniui-right[data-v-51df9b79]:before{content:"\\e6b5"}.uniui-up[data-v-51df9b79]:before{content:"\\e6b6"}.uniui-top[data-v-51df9b79]:before{content:"\\e6b6"}.uniui-left[data-v-51df9b79]:before{content:"\\e6b7"}.uniui-arrowup[data-v-51df9b79]:before{content:"\\e6d6"}.uniui-eye[data-v-51df9b79]:before{content:"\\e651"}.uniui-eye-filled[data-v-51df9b79]:before{content:"\\e66a"}.uniui-eye-slash[data-v-51df9b79]:before{content:"\\e6b3"}.uniui-eye-slash-filled[data-v-51df9b79]:before{content:"\\e6b4"}.uniui-info-filled[data-v-51df9b79]:before{content:"\\e649"}.uniui-reload[data-v-51df9b79]:before{content:"\\e6b2"}.uniui-micoff-filled[data-v-51df9b79]:before{content:"\\e6b0"}.uniui-map-pin-ellipse[data-v-51df9b79]:before{content:"\\e6ac"}.uniui-map-pin[data-v-51df9b79]:before{content:"\\e6ad"}.uniui-location[data-v-51df9b79]:before{content:"\\e6ae"}.uniui-starhalf[data-v-51df9b79]:before{content:"\\e683"}.uniui-star[data-v-51df9b79]:before{content:"\\e688"}.uniui-star-filled[data-v-51df9b79]:before{content:"\\e68f"}.uniui-calendar[data-v-51df9b79]:before{content:"\\e6a0"}.uniui-fire[data-v-51df9b79]:before{content:"\\e6a1"}.uniui-medal[data-v-51df9b79]:before{content:"\\e6a2"}.uniui-font[data-v-51df9b79]:before{content:"\\e6a3"}.uniui-gift[data-v-51df9b79]:before{content:"\\e6a4"}.uniui-link[data-v-51df9b79]:before{content:"\\e6a5"}.uniui-notification[data-v-51df9b79]:before{content:"\\e6a6"}.uniui-staff[data-v-51df9b79]:before{content:"\\e6a7"}.uniui-vip[data-v-51df9b79]:before{content:"\\e6a8"}.uniui-folder-add[data-v-51df9b79]:before{content:"\\e6a9"}.uniui-tune[data-v-51df9b79]:before{content:"\\e6aa"}.uniui-auth[data-v-51df9b79]:before{content:"\\e6ab"}.uniui-person[data-v-51df9b79]:before{content:"\\e699"}.uniui-email-filled[data-v-51df9b79]:before{content:"\\e69a"}.uniui-phone-filled[data-v-51df9b79]:before{content:"\\e69b"}.uniui-phone[data-v-51df9b79]:before{content:"\\e69c"}.uniui-email[data-v-51df9b79]:before{content:"\\e69e"}.uniui-personadd[data-v-51df9b79]:before{content:"\\e69f"}.uniui-chatboxes-filled[data-v-51df9b79]:before{content:"\\e692"}.uniui-contact[data-v-51df9b79]:before{content:"\\e693"}.uniui-chatbubble-filled[data-v-51df9b79]:before{content:"\\e694"}.uniui-contact-filled[data-v-51df9b79]:before{content:"\\e695"}.uniui-chatboxes[data-v-51df9b79]:before{content:"\\e696"}.uniui-chatbubble[data-v-51df9b79]:before{content:"\\e697"}.uniui-upload-filled[data-v-51df9b79]:before{content:"\\e68e"}.uniui-upload[data-v-51df9b79]:before{content:"\\e690"}.uniui-weixin[data-v-51df9b79]:before{content:"\\e691"}.uniui-compose[data-v-51df9b79]:before{content:"\\e67f"}.uniui-qq[data-v-51df9b79]:before{content:"\\e680"}.uniui-download-filled[data-v-51df9b79]:before{content:"\\e681"}.uniui-pyq[data-v-51df9b79]:before{content:"\\e682"}.uniui-sound[data-v-51df9b79]:before{content:"\\e684"}.uniui-trash-filled[data-v-51df9b79]:before{content:"\\e685"}.uniui-sound-filled[data-v-51df9b79]:before{content:"\\e686"}.uniui-trash[data-v-51df9b79]:before{content:"\\e687"}.uniui-videocam-filled[data-v-51df9b79]:before{content:"\\e689"}.uniui-spinner-cycle[data-v-51df9b79]:before{content:"\\e68a"}.uniui-weibo[data-v-51df9b79]:before{content:"\\e68b"}.uniui-videocam[data-v-51df9b79]:before{content:"\\e68c"}.uniui-download[data-v-51df9b79]:before{content:"\\e68d"}.uniui-help[data-v-51df9b79]:before{content:"\\e679"}.uniui-navigate-filled[data-v-51df9b79]:before{content:"\\e67a"}.uniui-plusempty[data-v-51df9b79]:before{content:"\\e67b"}.uniui-smallcircle[data-v-51df9b79]:before{content:"\\e67c"}.uniui-minus-filled[data-v-51df9b79]:before{content:"\\e67d"}.uniui-micoff[data-v-51df9b79]:before{content:"\\e67e"}.uniui-closeempty[data-v-51df9b79]:before{content:"\\e66c"}.uniui-clear[data-v-51df9b79]:before{content:"\\e66d"}.uniui-navigate[data-v-51df9b79]:before{content:"\\e66e"}.uniui-minus[data-v-51df9b79]:before{content:"\\e66f"}.uniui-image[data-v-51df9b79]:before{content:"\\e670"}.uniui-mic[data-v-51df9b79]:before{content:"\\e671"}.uniui-paperplane[data-v-51df9b79]:before{content:"\\e672"}.uniui-close[data-v-51df9b79]:before{content:"\\e673"}.uniui-help-filled[data-v-51df9b79]:before{content:"\\e674"}.uniui-paperplane-filled[data-v-51df9b79]:before{content:"\\e675"}.uniui-plus[data-v-51df9b79]:before{content:"\\e676"}.uniui-mic-filled[data-v-51df9b79]:before{content:"\\e677"}.uniui-image-filled[data-v-51df9b79]:before{content:"\\e678"}.uniui-locked-filled[data-v-51df9b79]:before{content:"\\e668"}.uniui-info[data-v-51df9b79]:before{content:"\\e669"}.uniui-locked[data-v-51df9b79]:before{content:"\\e66b"}.uniui-camera-filled[data-v-51df9b79]:before{content:"\\e658"}.uniui-chat-filled[data-v-51df9b79]:before{content:"\\e659"}.uniui-camera[data-v-51df9b79]:before{content:"\\e65a"}.uniui-circle[data-v-51df9b79]:before{content:"\\e65b"}.uniui-checkmarkempty[data-v-51df9b79]:before{content:"\\e65c"}.uniui-chat[data-v-51df9b79]:before{content:"\\e65d"}.uniui-circle-filled[data-v-51df9b79]:before{content:"\\e65e"}.uniui-flag[data-v-51df9b79]:before{content:"\\e65f"}.uniui-flag-filled[data-v-51df9b79]:before{content:"\\e660"}.uniui-gear-filled[data-v-51df9b79]:before{content:"\\e661"}.uniui-home[data-v-51df9b79]:before{content:"\\e662"}.uniui-home-filled[data-v-51df9b79]:before{content:"\\e663"}.uniui-gear[data-v-51df9b79]:before{content:"\\e664"}.uniui-smallcircle-filled[data-v-51df9b79]:before{content:"\\e665"}.uniui-map-filled[data-v-51df9b79]:before{content:"\\e666"}.uniui-map[data-v-51df9b79]:before{content:"\\e667"}.uniui-refresh-filled[data-v-51df9b79]:before{content:"\\e656"}.uniui-refresh[data-v-51df9b79]:before{content:"\\e657"}.uniui-cloud-upload[data-v-51df9b79]:before{content:"\\e645"}.uniui-cloud-download-filled[data-v-51df9b79]:before{content:"\\e646"}.uniui-cloud-download[data-v-51df9b79]:before{content:"\\e647"}.uniui-cloud-upload-filled[data-v-51df9b79]:before{content:"\\e648"}.uniui-redo[data-v-51df9b79]:before{content:"\\e64a"}.uniui-images-filled[data-v-51df9b79]:before{content:"\\e64b"}.uniui-undo-filled[data-v-51df9b79]:before{content:"\\e64c"}.uniui-more[data-v-51df9b79]:before{content:"\\e64d"}.uniui-more-filled[data-v-51df9b79]:before{content:"\\e64e"}.uniui-undo[data-v-51df9b79]:before{content:"\\e64f"}.uniui-images[data-v-51df9b79]:before{content:"\\e650"}.uniui-paperclip[data-v-51df9b79]:before{content:"\\e652"}.uniui-settings[data-v-51df9b79]:before{content:"\\e653"}.uniui-search[data-v-51df9b79]:before{content:"\\e654"}.uniui-redo-filled[data-v-51df9b79]:before{content:"\\e655"}.uniui-list[data-v-51df9b79]:before{content:"\\e644"}.uniui-mail-open-filled[data-v-51df9b79]:before{content:"\\e63a"}.uniui-hand-down-filled[data-v-51df9b79]:before{content:"\\e63c"}.uniui-hand-down[data-v-51df9b79]:before{content:"\\e63d"}.uniui-hand-up-filled[data-v-51df9b79]:before{content:"\\e63e"}.uniui-hand-up[data-v-51df9b79]:before{content:"\\e63f"}.uniui-heart-filled[data-v-51df9b79]:before{content:"\\e641"}.uniui-mail-open[data-v-51df9b79]:before{content:"\\e643"}.uniui-heart[data-v-51df9b79]:before{content:"\\e639"}.uniui-loop[data-v-51df9b79]:before{content:"\\e633"}.uniui-pulldown[data-v-51df9b79]:before{content:"\\e632"}.uniui-scan[data-v-51df9b79]:before{content:"\\e62a"}.uniui-bars[data-v-51df9b79]:before{content:"\\e627"}.uniui-checkbox[data-v-51df9b79]:before{content:"\\e62b"}.uniui-checkbox-filled[data-v-51df9b79]:before{content:"\\e62c"}.uniui-shop[data-v-51df9b79]:before{content:"\\e62f"}.uniui-headphones[data-v-51df9b79]:before{content:"\\e630"}.uniui-cart[data-v-51df9b79]:before{content:"\\e631"}@font-face{font-family:uniicons;src:url('+d+")}.uni-icons[data-v-51df9b79]{font-family:uniicons;text-decoration:none;text-align:center}",""]),e.exports=n}}]); \ No newline at end of file diff --git a/unpackage/dist/build/h5/static/js/pages-index-index.6131139f.js b/unpackage/dist/build/h5/static/js/pages-index-index.6131139f.js deleted file mode 100644 index 9f31ea5..0000000 --- a/unpackage/dist/build/h5/static/js/pages-index-index.6131139f.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"00fd":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-date[data-v-6976f47f]{width:100%;flex:1}.uni-date-x[data-v-6976f47f]{display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;background-color:#fff;color:#666;font-size:14px;flex:1}.uni-date-x .icon-calendar[data-v-6976f47f]{padding-left:3px}.uni-date-x .range-separator[data-v-6976f47f]{height:35px;padding:0 2px;line-height:35px}.uni-date-x--border[data-v-6976f47f]{box-sizing:border-box;border-radius:4px;border:1px solid #e5e5e5}.uni-date-editor--x[data-v-6976f47f]{display:flex;align-items:center;position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-6976f47f]{padding-right:3px;display:flex;align-items:center;cursor:pointer}.uni-date__x-input[data-v-6976f47f]{width:auto;height:35px;padding-left:5px;position:relative;flex:1;line-height:35px;font-size:14px;overflow:hidden}.text-center[data-v-6976f47f]{text-align:center}.uni-date__input[data-v-6976f47f]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-6976f47f]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-6976f47f]{position:relative}.uni-date-mask--pc[data-v-6976f47f]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:transparent;transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-6976f47f]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #ebeef5;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px}.uni-date-range--x[data-v-6976f47f]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #ebeef5;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-6976f47f]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-6976f47f]{width:16px;height:16px;vertical-align:middle}\r\n/* 添加时间 */.popup-x-header[data-v-6976f47f]{display:flex;flex-direction:row}.popup-x-header--datetime[data-v-6976f47f]{display:flex;flex-direction:row;flex:1}.popup-x-body[data-v-6976f47f]{display:flex}.popup-x-footer[data-v-6976f47f]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-6976f47f]:hover{color:#007aff;cursor:pointer;opacity:.8}.popup-x-footer .confirm-text[data-v-6976f47f]{margin-left:20px;color:#007aff}.uni-date-changed[data-v-6976f47f]{text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px}.uni-date-changed--time uni-text[data-v-6976f47f]{height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-6976f47f]{flex:1}.uni-date-changed--time-date[data-v-6976f47f]{color:#333;opacity:.6}.mr-50[data-v-6976f47f]{margin-right:50px}\r\n/* picker 弹出层通用的指示小三角, todo:扩展至上下左右方向定位 */.uni-popper__arrow[data-v-6976f47f],\r\n.uni-popper__arrow[data-v-6976f47f]::after{position:absolute;display:block;width:0;height:0;border:6px solid transparent;border-top-width:0}.uni-popper__arrow[data-v-6976f47f]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-6976f47f]::after{content:" ";top:1px;margin-left:-6px;border-bottom-color:#fff}',""]),t.exports=e},"017d":function(t,e,i){"use strict";var a=i("34a0"),n=i.n(a);n.a},"0682":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-popup[data-v-06f30f66]{position:fixed;z-index:99}.uni-popup.top[data-v-06f30f66], .uni-popup.left[data-v-06f30f66], .uni-popup.right[data-v-06f30f66]{top:var(--window-top)}.uni-popup .uni-popup__wrapper[data-v-06f30f66]{display:block;position:relative\r\n /* iphonex 等安全区设置,底部安全区适配 */}.uni-popup .uni-popup__wrapper.left[data-v-06f30f66], .uni-popup .uni-popup__wrapper.right[data-v-06f30f66]{padding-top:var(--window-top);flex:1}.fixforpc-z-index[data-v-06f30f66]{z-index:999}.fixforpc-top[data-v-06f30f66]{top:0}',""]),t.exports=e},"07a8":function(t,e,i){"use strict";var a=i("6d56"),n=i.n(a);n.a},"07d6d":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-calendar-item__weeks-box[data-v-51cf3a68]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:1px 0;position:relative}.uni-calendar-item__weeks-box-text[data-v-51cf3a68]{font-size:14px;font-weight:700;color:#001833}.uni-calendar-item__weeks-box-item[data-v-51cf3a68]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px;cursor:pointer}.uni-calendar-item__weeks-box-circle[data-v-51cf3a68]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-51cf3a68]{cursor:default}.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-51cf3a68]{color:#d1d1d1}.uni-calendar-item--today[data-v-51cf3a68]{position:absolute;top:10px;right:17%;background-color:#dd524d;width:6px;height:6px;border-radius:50%}.uni-calendar-item--extra[data-v-51cf3a68]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-51cf3a68]{background-color:#007aff;border-radius:50%;box-sizing:border-box;border:3px solid #fff}.uni-calendar-item--checked .uni-calendar-item--checked-text[data-v-51cf3a68]{color:#fff}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-51cf3a68]{color:#333}.uni-calendar-item--multiple[data-v-51cf3a68]{background-color:#f6f7fc}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-51cf3a68],\r\n.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-51cf3a68]{background-color:#007aff;border-radius:50%;box-sizing:border-box;border:3px solid #f6f7fc}.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-51cf3a68],\r\n.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-51cf3a68]{color:#fff}.uni-calendar-item--before-checked-x[data-v-51cf3a68]{border-top-left-radius:50px;border-bottom-left-radius:50px;box-sizing:border-box;background-color:#f6f7fc}.uni-calendar-item--after-checked-x[data-v-51cf3a68]{border-top-right-radius:50px;border-bottom-right-radius:50px;background-color:#f6f7fc}',""]),t.exports=e},"08d0":function(t,e,i){"use strict";var a=i("c2b7"),n=i.n(a);n.a},"09fd":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("7db0"),i("d3b7"),i("b64b"),i("caad"),i("2532");var a={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted:function(){var t=this,e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(function(i){if(!t.disable){var a=Object.keys(e).find((function(t){var a=i.key,n=e[t];return n===a||Array.isArray(n)&&n.includes(a)}));a&&setTimeout((function(){t.$emit(a,{})}),0)}}))},render:function(){}};e.default=a},"124a":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2909")),s=a(i("53ca")),r=a(i("5530"));i("a9e3"),i("d3b7"),i("159b"),i("99af"),i("ac1f"),i("5319");var o=i("3dd7"),d={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:function(){return"fade"}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:function(){return{isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}},watch:{show:{handler:function(t){t?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject:function(){var t=(0,r.default)((0,r.default)({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),e="";for(var i in t){var a=this.toLine(i);e+=a+":"+t[i]+";"}return e},transformStyles:function(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created:function(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.duration&&(this.durationTime=t.duration),this.animation=(0,o.createAnimation)(Object.assign(this.config,t),this)},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var i in t)try{var a;if("object"===(0,s.default)(t[i]))(a=this.animation)[i].apply(a,(0,n.default)(t[i]));else this.animation[i](t[i])}catch(r){console.error("方法 ".concat(i," 不存在"))}return this.animation.step(e),this}},run:function(t){this.animation&&this.animation.run(t)},open:function(){var t=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var e=this.styleInit(!1),i=e.opacity,a=e.transform;"undefined"!==typeof i&&(this.opacity=i),this.transform=a,this.$nextTick((function(){t.timer=setTimeout((function(){t.animation=(0,o.createAnimation)(t.config,t),t.tranfromInit(!1).step(),t.animation.run(),t.$emit("change",{detail:t.isShow})}),20)}))},close:function(t){var e=this;this.animation&&this.tranfromInit(!0).step().run((function(){e.isShow=!1,e.animationData=null,e.animation=null;var t=e.styleInit(!1),i=t.opacity,a=t.transform;e.opacity=i||1,e.transform=a,e.$emit("change",{detail:e.isShow})}))},styleInit:function(t){var e=this,i={transform:""},a=function(t,a){"fade"===a?i.opacity=e.animationType(t)[a]:i.transform+=e.animationType(t)[a]+" "};return"string"===typeof this.modeClass?a(t,this.modeClass):this.modeClass.forEach((function(e){a(t,e)})),i},tranfromInit:function(t){var e=this,i=function(t,i){var a=null;"fade"===i?a=t?0:1:(a=t?"-100%":"0","zoom-in"===i&&(a=t?.8:1),"zoom-out"===i&&(a=t?1.2:1),"slide-right"===i&&(a=t?"100%":"0"),"slide-bottom"===i&&(a=t?"100%":"0")),e.animation[e.animationMode()[i]](a)};return"string"===typeof this.modeClass?i(t,this.modeClass):this.modeClass.forEach((function(e){i(t,e)})),this.animation},animationType:function(t){return{fade:t?0:1,"slide-top":"translateY(".concat(t?"0":"-100%",")"),"slide-right":"translateX(".concat(t?"0":"100%",")"),"slide-bottom":"translateY(".concat(t?"0":"100%",")"),"slide-left":"translateX(".concat(t?"0":"-100%",")"),"zoom-in":"scaleX(".concat(t?1:.8,") scaleY(").concat(t?1:.8,")"),"zoom-out":"scaleX(".concat(t?1:1.2,") scaleY(").concat(t?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};e.default=d},"132b":function(t,e,i){"use strict";i.r(e);var a=i("a02c"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"160e":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"uni-page-body[data-v-2b2adf75]{\n\t/* overflow: hidden; */\nheight:100%\n}",""]),t.exports=e},"1c2a":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isShow,expression:"isShow"}],ref:"ani",class:t.customClass,style:t.transformStyles,attrs:{animation:t.animationData},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t._t("default")],2)},n=[]},"22ac":function(t,e,i){var a=i("c53d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("36b97337",a,!0,{sourceMap:!1,shadowMode:!1})},2370:function(t,e,i){"use strict";var a=i("cc7d"),n=i.n(a);n.a},2473:function(t){t.exports=JSON.parse('{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}')},"2bad":function(t,e,i){"use strict";var a=i("c888"),n=i.n(a);n.a},3057:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("e25e"),i("ac1f"),i("00b4"),i("14d9"),i("fb6a"),i("c975"),i("5319");var n=i("37dc"),s=a(i("f46c")),r=i("3e9e"),o=(0,n.initVueI18n)(s.default),d=o.t,c={name:"UniDatetimePicker",data:function(){return{indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}},options:{virtualHost:!0},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{value:{handler:function(t){t?(this.parseValue((0,r.fixIosDateFormat)(t)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler:function(t){"date"===t?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===t?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler:function(t){this.parseDatetimeRange((0,r.fixIosDateFormat)(t),"start")},immediate:!0},end:{handler:function(t){this.parseDatetimeRange((0,r.fixIosDateFormat)(t),"end")},immediate:!0},months:function(t){this.checkValue("month",this.month,t)},days:function(t){this.checkValue("day",this.day,t)},hours:function(t){this.checkValue("hour",this.hour,t)},minutes:function(t){this.checkValue("minute",this.minute,t)},seconds:function(t){this.checkValue("second",this.second,t)}},computed:{years:function(){return this.getCurrentRange("year")},months:function(){return this.getCurrentRange("month")},days:function(){return this.getCurrentRange("day")},hours:function(){return this.getCurrentRange("hour")},minutes:function(){return this.getCurrentRange("minute")},seconds:function(){return this.getCurrentRange("second")},ymd:function(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms:function(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart:function(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd:function(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear:function(){return this.startYear},maxYear:function(){return this.endYear},minMonth:function(){return this.year===this.startYear?this.startMonth:1},maxMonth:function(){return this.year===this.endYear?this.endMonth:12},minDay:function(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay:function(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour:function(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour:function(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute:function(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute:function(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond:function(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond:function(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:function(){return d("uni-datetime-picker.selectTime")},okText:function(){return d("uni-datetime-picker.ok")},clearText:function(){return d("uni-datetime-picker.clear")},cancelText:function(){return d("uni-datetime-picker.cancel")}},mounted:function(){},methods:{lessThanTen:function(t){return t<10?"0"+t:t},parseTimeType:function(t){if(t){var e=t.split(":");this.hour=Number(e[0]),this.minute=Number(e[1]),this.second=Number(e[2])}},initPickerValue:function(t){var e=null;t?e=this.compareValueWithStartAndEnd(t,this.start,this.end):(e=Date.now(),e=this.compareValueWithStartAndEnd(e,this.start,this.end)),this.parseValue(e)},compareValueWithStartAndEnd:function(t,e,i){var a=null;return t=this.superTimeStamp(t),e=this.superTimeStamp(e),i=this.superTimeStamp(i),a=e&&i?ti?new Date(i):new Date(t):e&&!i?e<=t?new Date(t):new Date(e):!e&&i?t<=i?new Date(t):new Date(i):new Date(t),a},superTimeStamp:function(t){var e="";if("time"===this.type&&t&&"string"===typeof t){var i=new Date,a=i.getFullYear(),n=i.getMonth()+1,s=i.getDate();e=a+"/"+n+"/"+s+" "}return Number(t)&&(t=parseInt(t),e=0),this.createTimeStamp(e+t)},parseValue:function(t){if(t){if("time"===this.type&&"string"===typeof t)this.parseTimeType(t);else{var e=null;e=new Date(t),"time"!==this.type&&(this.year=e.getFullYear(),this.month=e.getMonth()+1,this.day=e.getDate()),"date"!==this.type&&(this.hour=e.getHours(),this.minute=e.getMinutes(),this.second=e.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange:function(t,e){if(!t)return"start"===e&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===e&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){var i=t.split(":");this[e+"Hour"]=Number(i[0]),this[e+"Minute"]=Number(i[1]),this[e+"Second"]=Number(i[2])}else{if(!t)return void("start"===e?this.startYear=this.year-60:this.endYear=this.year+60);Number(t)&&(t=parseInt(t));"datetime"!==this.type||"end"!==e||"string"!==typeof t||/[0-9]:[0-9]/.test(t)||(t+=" 23:59:59");var a=new Date(t);this[e+"Year"]=a.getFullYear(),this[e+"Month"]=a.getMonth()+1,this[e+"Day"]=a.getDate(),"datetime"===this.type&&(this[e+"Hour"]=a.getHours(),this[e+"Minute"]=a.getMinutes(),this[e+"Second"]=a.getSeconds())}},getCurrentRange:function(t){for(var e=[],i=this["min"+this.capitalize(t)];i<=this["max"+this.capitalize(t)];i++)e.push(i);return e},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},checkValue:function(t,e,i){-1===i.indexOf(e)&&(this[t]=i[0])},daysInMonth:function(t,e){return new Date(t,e,0).getDate()},createTimeStamp:function(t){if(t)return"number"===typeof t?t:(t=t.replace(/-/g,"/"),"date"===this.type&&(t+=" 00:00:00"),Date.parse(t))},createDomSting:function(){var t=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day),e=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(e=e+":"+this.lessThanTen(this.second)),"date"===this.type?t:"time"===this.type?e:t+" "+e},initTime:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.time=this.createDomSting(),t&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange:function(t){var e=t.detail.value;this.year=this.years[e[0]],this.month=this.months[e[1]],this.day=this.days[e[2]]},bindTimeChange:function(t){var e=t.detail.value;this.hour=this.hours[e[0]],this.minute=this.minutes[e[1]],this.second=this.seconds[e[2]]},initTimePicker:function(){if(!this.disabled){var t=(0,r.fixIosDateFormat)(this.time);this.initPickerValue(t),this.visible=!this.visible}},tiggerTimePicker:function(t){this.visible=!this.visible},clearTime:function(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime:function(){this.initTime(),this.tiggerTimePicker()}}};e.default=c},3231:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-calendar[data-v-68231425]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-68231425]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-68231425]{opacity:1}.uni-calendar--fixed[data-v-68231425]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.3s;-webkit-transform:translateY(460px);transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-68231425]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-calendar__content[data-v-68231425]{background-color:#fff}.uni-calendar__content-mobile[data-v-68231425]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-68231425]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-68231425]{padding:10px;padding-bottom:0}.uni-calendar--fixed-top[data-v-68231425]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-68231425]{width:50px}.uni-calendar__backtoday[data-v-68231425]{position:absolute;right:0;top:%?25?%;padding:0 5px;padding-left:10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-68231425]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-68231425]{text-align:center;width:100px;font-size:14px;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-68231425]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-68231425]{width:9px;height:9px;border-left-color:grey;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-68231425]{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-calendar--right[data-v-68231425]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.uni-calendar__weeks[data-v-68231425]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-68231425]{flex:1}.uni-calendar__weeks-day[data-v-68231425]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-68231425]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-68231425]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-68231425]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-68231425]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-68231425]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-68231425]{padding:20px 15px}.uni-date-changed--time-start[data-v-68231425]{display:flex;align-items:center}.uni-date-changed--time-end[data-v-68231425]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-68231425]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-68231425]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-68231425]{margin-right:10px}.dialog-close[data-v-68231425]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-68231425]{width:16px;height:2px;background-color:#737987;border-radius:2px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.dialog-close-rotate[data-v-68231425]{position:absolute;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-68231425]{border-radius:100px;height:40px;line-height:40px;background-color:#007aff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-68231425]:active{opacity:.7}',""]),t.exports=e},3364:function(t,e,i){"use strict";var a=i("22ac"),n=i.n(a);n.a},"34a0":function(t,e,i){var a=i("160e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("4e735c00",a,!0,{sourceMap:!1,shadowMode:!1})},"3b78":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-calendar-item__weeks-box",class:{"uni-calendar-item--disable":t.weeks.disable,"uni-calendar-item--before-checked-x":t.weeks.beforeMultiple,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--after-checked-x":t.weeks.afterMultiple},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.choiceDate(t.weeks)},mouseenter:function(e){arguments[0]=e=t.$handleEvent(e),t.handleMousemove(t.weeks)}}},[i("v-uni-view",{staticClass:"uni-calendar-item__weeks-box-item",class:{"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&(t.calendar.userChecked||!t.checkHover),"uni-calendar-item--checked-range-text":t.checkHover,"uni-calendar-item--before-checked":t.weeks.beforeMultiple,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--after-checked":t.weeks.afterMultiple,"uni-calendar-item--disable":t.weeks.disable}},[t.selected&&t.weeks.extraInfo?i("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-circle"}):t._e(),i("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},[t._v(t._s(t.weeks.date))])],1),i("v-uni-view",{class:{"uni-calendar-item--today":t.weeks.isToday}})],1)},n=[]},"3dd7":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=function(t,e){if(!e)return;return clearTimeout(e.timer),new o(t,e)},i("caad"),i("2532"),i("99af"),i("d3b7"),i("159b");var n=a(i("5530")),s=a(i("d4ec")),r=a(i("bee2")),o=function(){function t(e,i){(0,s.default)(this,t),this.options=e,this.animation=uni.createAnimation((0,n.default)({},e)),this.currentStepAnimates={},this.next=0,this.$=i}return(0,r.default)(t,[{key:"_nvuePushAnimates",value:function(t,e){var i=this.currentStepAnimates[this.next],a={};if(a=i||{styles:{},config:{}},d.includes(t)){a.styles.transform||(a.styles.transform="");var n="";"rotate"===t&&(n="deg"),a.styles.transform+="".concat(t,"(").concat(e+n,") ")}else a.styles[t]="".concat(e);this.currentStepAnimates[this.next]=a}},{key:"_animateRun",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.$.$refs["ani"].ref;if(i)return new Promise((function(a,s){nvueAnimation.transition(i,(0,n.default)({styles:t},e),(function(t){a()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0,n=t[i];if(n){var s=n.styles,r=n.config;this._animateRun(s,r).then((function(){i+=1,e._nvueNextAnimate(t,i,a)}))}else this.currentStepAnimates={},"function"===typeof a&&a(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),t}(),d=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];d.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((function(t){o.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))},"3e9e":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0,e.addZero=l,e.checkDate=function(t){return t.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)},e.dateCompare=u,e.fixIosDateFormat=p,e.getDate=d,e.getDateTime=function(t,e){return"".concat(d(t)," ").concat(c(t,e))},e.getDefaultSecond=function(t){return t?"00:00":"00:00:00"},e.getTime=c,i("14d9"),i("99af"),i("7db0"),i("d3b7"),i("c740"),i("e25e"),i("ac1f"),i("466d"),i("00b4"),i("5319");var n=a(i("2909")),s=a(i("d4ec")),r=a(i("bee2")),o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.selected,a=e.startDate,n=e.endDate,r=e.range;(0,s.default)(this,t),this.date=this.getDateObj(new Date),this.selected=i||[],this.startDate=a,this.endDate=n,this.range=r,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return(0,r.default)(t,[{key:"setDate",value:function(t){var e=this.getDateObj(t);this.getWeeks(e.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"setStartDate",value:function(t){this.startDate=t}},{key:"setEndDate",value:function(t){this.endDate=t}},{key:"getPreMonthObj",value:function(t){t=p(t),t=new Date(t);var e=t.getMonth();t.setMonth(e-1);var i=t.getMonth();return 0!==e&&i-e===0&&t.setMonth(i-1),this.getDateObj(t)}},{key:"getNextMonthObj",value:function(t){t=p(t),t=new Date(t);var e=t.getMonth();t.setMonth(e+1);var i=t.getMonth();return i-e>1&&t.setMonth(i-1),this.getDateObj(t)}},{key:"getDateObj",value:function(t){return t=p(t),t=new Date(t),{fullDate:d(t),year:t.getFullYear(),month:l(t.getMonth()+1),date:l(t.getDate()),day:t.getDay()}}},{key:"getPreMonthDays",value:function(t,e){for(var i=[],a=t-1;a>=0;a--){var n=e.month-1;i.push({date:new Date(e.year,n,-a).getDate(),month:n,disable:!0})}return i}},{key:"getCurrentMonthDays",value:function(t,e){for(var i=this,a=[],n=this.date.fullDate,s=function(t){var s="".concat(e.year,"-").concat(e.month,"-").concat(l(t)),r=n===s,o=i.selected&&i.selected.find((function(t){if(i.dateEqual(s,t.date))return t}));i.startDate&&u(i.startDate,s),i.endDate&&u(s,i.endDate);var d=i.multipleStatus.data,c=-1;i.range&&d&&(c=d.findIndex((function(t){return i.dateEqual(t,s)})));var h=-1!==c;a.push({fullDate:s,year:e.year,date:t,multiple:!!i.range&&h,beforeMultiple:i.isLogicBefore(s,i.multipleStatus.before,i.multipleStatus.after),afterMultiple:i.isLogicAfter(s,i.multipleStatus.before,i.multipleStatus.after),month:e.month,disable:i.startDate&&!u(i.startDate,s)||i.endDate&&!u(s,i.endDate),isToday:r,userChecked:!1,extraInfo:o})},r=1;r<=t;r++)s(r);return a}},{key:"_getNextMonthDays",value:function(t,e){for(var i=[],a=e.month+1,n=1;n<=t;n++)i.push({date:n,month:a,disable:!0});return i}},{key:"getInfo",value:function(t){var e=this;return t||(t=new Date),this.calendar.find((function(i){return i.fullDate===e.getDateObj(t).fullDate}))}},{key:"dateEqual",value:function(t,e){return t=new Date(p(t)),e=new Date(p(e)),t.valueOf()===e.valueOf()}},{key:"isLogicBefore",value:function(t,e,i){var a=e;return e&&i&&(a=u(e,i)?e:i),this.dateEqual(a,t)}},{key:"isLogicAfter",value:function(t,e,i){var a=i;return e&&i&&(a=u(e,i)?i:e),this.dateEqual(a,t)}},{key:"geDateAll",value:function(t,e){var i=[],a=t.split("-"),n=e.split("-"),s=new Date;s.setFullYear(a[0],a[1]-1,a[2]);var r=new Date;r.setFullYear(n[0],n[1]-1,n[2]);for(var o=s.getTime()-864e5,d=r.getTime()-864e5,c=o;c<=d;)c+=864e5,i.push(this.getDateObj(new Date(parseInt(c))).fullDate);return i}},{key:"setMultiple",value:function(t){if(this.range){var e=this.multipleStatus,i=e.before,a=e.after;if(i&&a){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=t,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else i?(this.multipleStatus.after=t,u(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=t,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(t)}}},{key:"setHoverMultiple",value:function(t){if(this.range&&!this.lastHover){var e=this.multipleStatus.before;e?(this.multipleStatus.after=t,u(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=t,this.getWeeks(t)}}},{key:"setDefaultMultiple",value:function(t,e){this.multipleStatus.before=t,this.multipleStatus.after=e,t&&e&&(u(t,e)?(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)):(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)))}},{key:"getWeeks",value:function(t){for(var e=this.getDateObj(t),i=e.year,a=e.month,s=new Date(i,a-1,1).getDay(),r=this.getPreMonthDays(s,this.getDateObj(t)),o=new Date(i,a,0).getDate(),d=this.getCurrentMonthDays(o,this.getDateObj(t)),c=42-s-o,l=this._getNextMonthDays(c,this.getDateObj(t)),u=[].concat((0,n.default)(r),(0,n.default)(d),(0,n.default)(l)),h=new Array(6),p=0;pi&&i?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change(!0)}},changeMonth:function(t){var e;"pre"===t?e=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===t&&(e=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(e),this.monthSwitch()},setDate:function(t){this.cale.setDate(t),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(t)}}};e.default=p},"6d56":function(t,e,i){var a=i("7f6a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("58e484fc",a,!0,{sourceMap:!1,shadowMode:!1})},"787b":function(t,e,i){"use strict";i.r(e);var a=i("58db"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"7f6a":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-datetime-picker[data-v-26d4ece7]{\r\n /* width: 100%; */}.uni-datetime-picker-view[data-v-26d4ece7]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-26d4ece7]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-26d4ece7]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-26d4ece7]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-26d4ece7]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-26d4ece7]{margin-right:30px}.uni-datetime-picker-mask[data-v-26d4ece7]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-26d4ece7]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-26d4ece7]{color:grey}.uni-datetime-picker-column[data-v-26d4ece7]{height:50px}.uni-datetime-picker-timebox[data-v-26d4ece7]{border:1px solid #e5e5e5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-26d4ece7]{cursor:pointer}.uni-datetime-picker-disabled[data-v-26d4ece7]{opacity:.4;cursor:not-allowed!important}.uni-datetime-picker-text[data-v-26d4ece7]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-26d4ece7]{position:absolute;top:53px;\r\n /* 减掉 10px 的元素高度,兼容nvue */color:#999}.sign-left[data-v-26d4ece7]{left:86px}.sign-right[data-v-26d4ece7]{right:86px}.sign-center[data-v-26d4ece7]{left:135px}.uni-datetime-picker__container-box[data-v-26d4ece7]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-26d4ece7]{width:180px}',""]),t.exports=e},8548:function(t,e,i){"use strict";i.r(e);var a=i("8d87"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"8a67":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var a={uniIcons:i("461b").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-date"},[i("v-uni-view",{staticClass:"uni-date-editor",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.show.apply(void 0,arguments)}}},[t._t("default",[i("v-uni-view",{staticClass:"uni-date-editor--x",class:{"uni-date-editor--x__disabled":t.disabled,"uni-date-x--border":t.border}},[t.isRange?i("v-uni-view",{staticClass:"uni-date-x uni-date-range"},[i("uni-icons",{staticClass:"icon-calendar",attrs:{type:"calendar",color:"#c0c4cc",size:"22"}}),i("v-uni-view",{staticClass:"uni-date__x-input text-center"},[t._v(t._s(t.displayRangeValue.startDate||t.startPlaceholderText))]),i("v-uni-view",{staticClass:"range-separator"},[t._v(t._s(t.rangeSeparator))]),i("v-uni-view",{staticClass:"uni-date__x-input text-center"},[t._v(t._s(t.displayRangeValue.endDate||t.endPlaceholderText))])],1):i("v-uni-view",{staticClass:"uni-date-x uni-date-single"},[i("uni-icons",{staticClass:"icon-calendar",attrs:{type:"calendar",color:"#c0c4cc",size:"22"}}),i("v-uni-view",{staticClass:"uni-date__x-input"},[t._v(t._s(t.displayValue||t.singlePlaceholderText))])],1),t.showClearIcon?i("v-uni-view",{staticClass:"uni-date__icon-clear",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"clear",color:"#c0c4cc",size:"22"}})],1):t._e()],1)])],2),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.pickerVisible,expression:"pickerVisible"}],staticClass:"uni-date-mask--pc",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}),t.isPhone?t._e():i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.pickerVisible,expression:"pickerVisible"}],ref:"datePicker",staticClass:"uni-date-picker__container"},[t.isRange?i("v-uni-view",{staticClass:"uni-date-range--x",style:t.pickerPositionStyle},[i("v-uni-view",{staticClass:"uni-popper__arrow"}),t.hasTime?i("v-uni-view",{staticClass:"popup-x-header uni-date-changed"},[i("v-uni-view",{staticClass:"popup-x-header--datetime"},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:t.startDateText},model:{value:t.tempRange.startDate,callback:function(e){t.$set(t.tempRange,"startDate",e)},expression:"tempRange.startDate"}}),i("time-picker",{attrs:{type:"time",start:t.timepickerStartTime,border:!1,disabled:!t.tempRange.startDate,hideSecond:t.hideSecond},model:{value:t.tempRange.startTime,callback:function(e){t.$set(t.tempRange,"startTime",e)},expression:"tempRange.startTime"}},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:t.startTimeText,disabled:!t.tempRange.startDate},model:{value:t.tempRange.startTime,callback:function(e){t.$set(t.tempRange,"startTime",e)},expression:"tempRange.startTime"}})],1)],1),i("uni-icons",{staticStyle:{"line-height":"40px"},attrs:{type:"arrowthinright",color:"#999"}}),i("v-uni-view",{staticClass:"popup-x-header--datetime"},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:t.endDateText},model:{value:t.tempRange.endDate,callback:function(e){t.$set(t.tempRange,"endDate",e)},expression:"tempRange.endDate"}}),i("time-picker",{attrs:{type:"time",end:t.timepickerEndTime,border:!1,disabled:!t.tempRange.endDate,hideSecond:t.hideSecond},model:{value:t.tempRange.endTime,callback:function(e){t.$set(t.tempRange,"endTime",e)},expression:"tempRange.endTime"}},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:t.endTimeText,disabled:!t.tempRange.endDate},model:{value:t.tempRange.endTime,callback:function(e){t.$set(t.tempRange,"endTime",e)},expression:"tempRange.endTime"}})],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"popup-x-body"},[i("Calendar",{ref:"left",staticStyle:{padding:"0 8px"},attrs:{showMonth:!1,"start-date":t.calendarRange.startDate,"end-date":t.calendarRange.endDate,range:!0,pleStatus:t.endMultipleStatus},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.leftChange.apply(void 0,arguments)},firstEnterCale:function(e){arguments[0]=e=t.$handleEvent(e),t.updateRightCale.apply(void 0,arguments)}}}),i("Calendar",{ref:"right",staticStyle:{padding:"0 8px","border-left":"1px solid #F1F1F1"},attrs:{showMonth:!1,"start-date":t.calendarRange.startDate,"end-date":t.calendarRange.endDate,range:!0,pleStatus:t.startMultipleStatus},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.rightChange.apply(void 0,arguments)},firstEnterCale:function(e){arguments[0]=e=t.$handleEvent(e),t.updateLeftCale.apply(void 0,arguments)}}})],1),t.hasTime?i("v-uni-view",{staticClass:"popup-x-footer"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}},[t._v(t._s(t.clearText))]),i("v-uni-text",{staticClass:"confirm-text",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmRangeChange.apply(void 0,arguments)}}},[t._v(t._s(t.okText))])],1):t._e()],1):i("v-uni-view",{staticClass:"uni-date-single--x",style:t.pickerPositionStyle},[i("v-uni-view",{staticClass:"uni-popper__arrow"}),t.hasTime?i("v-uni-view",{staticClass:"uni-date-changed popup-x-header"},[i("v-uni-input",{staticClass:"uni-date__input text-center",attrs:{type:"text",placeholder:t.selectDateText},model:{value:t.inputDate,callback:function(e){t.inputDate=e},expression:"inputDate"}}),i("time-picker",{staticStyle:{width:"100%"},attrs:{type:"time",border:!1,disabled:!t.inputDate,start:t.timepickerStartTime,end:t.timepickerEndTime,hideSecond:t.hideSecond},model:{value:t.pickerTime,callback:function(e){t.pickerTime=e},expression:"pickerTime"}},[i("v-uni-input",{staticClass:"uni-date__input text-center",attrs:{type:"text",placeholder:t.selectTimeText,disabled:!t.inputDate},model:{value:t.pickerTime,callback:function(e){t.pickerTime=e},expression:"pickerTime"}})],1)],1):t._e(),i("Calendar",{ref:"pcSingle",staticStyle:{padding:"0 8px"},attrs:{showMonth:!1,"start-date":t.calendarRange.startDate,"end-date":t.calendarRange.endDate,date:t.calendarDate,"default-value":t.defaultValue},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.singleChange.apply(void 0,arguments)}}}),t.hasTime?i("v-uni-view",{staticClass:"popup-x-footer"},[i("v-uni-text",{staticClass:"confirm-text",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmSingleChange.apply(void 0,arguments)}}},[t._v(t._s(t.okText))])],1):t._e()],1)],1),t.isPhone?i("Calendar",{ref:"mobile",attrs:{clearDate:!1,date:t.calendarDate,defTime:t.mobileCalendarTime,"start-date":t.calendarRange.startDate,"end-date":t.calendarRange.endDate,selectableTimes:t.mobSelectableTime,startPlaceholder:t.startPlaceholder,endPlaceholder:t.endPlaceholder,"default-value":t.defaultValue,pleStatus:t.endMultipleStatus,showMonth:!1,range:t.isRange,hasTime:t.hasTime,insert:!1,hideSecond:t.hideSecond},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.mobileChange.apply(void 0,arguments)},maskClose:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},change:function(e){arguments[0]=e=t.$handleEvent(e),t.calendarClick.apply(void 0,arguments)}}}):t._e()],1)},s=[]},"8bc4":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c975");var n=a(i("09fd")),s={name:"uniPopup",components:{keypress:n.default},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)"},borderRadius:{type:String}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup:function(t){document.getElementsByTagName("body")[0].style.overflow=t?"hidden":"visible"}},data:function(){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:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles:function(){var t={backgroundColor:this.bg};return this.borderRadius,t=Object.assign(t,{borderRadius:this.borderRadius}),t},isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},bg:function(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted:function(){var t=this;(function(){var e=uni.getSystemInfoSync(),i=e.windowWidth,a=e.windowHeight,n=e.windowTop,s=e.safeArea,r=(e.screenHeight,e.safeAreaInsets);t.popupWidth=i,t.popupHeight=a+(n||0),s&&t.safeArea?t.safeAreaInsets=r.bottom:t.safeAreaInsets=0})()},destroyed:function(){this.setH5Visible()},activated:function(){this.setH5Visible(!this.showPopup)},deactivated:function(){this.setH5Visible(!0)},created:function(){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:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];document.getElementsByTagName("body")[0].style.overflow=t?"visible":"hidden"},closeMask:function(){this.maskShow=!1},disableMask:function(){this.mkclick=!1},clear:function(t){t.stopPropagation(),this.clearPropagation=!0},open:function(t){if(!this.showPopup){t&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(t)||(t=this.type),this.config[t]?(this[this.config[t]](),this.$emit("change",{show:!0,type:t})):console.error("缺少类型:",t)}},close:function(t){var e=this;this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((function(){e.showPopup=!1}),300)},touchstart:function(){this.clearPropagation=!1},onTap:function(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top:function(t){var e=this;this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((function(){e.messageChild&&"message"===e.type&&e.messageChild.timerClose()})))},bottom:function(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},center:function(t){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",borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},left:function(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)},right:function(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)}}};e.default=s},"8d87":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("3835"));i("a9e3"),i("c975"),i("99af"),i("ac1f"),i("5319");var s=a(i("d4fa")),r=a(i("ca88")),o=i("37dc"),d=a(i("f46c")),c=i("3e9e"),l={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:s.default,TimePicker:r.default},data:function(){return{isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:function(){}}},props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler:function(t){this.hasTime=-1!==t.indexOf("time"),this.isRange=-1!==t.indexOf("range")}},value:{immediate:!0,handler:function(t){this.isEmitValue?this.isEmitValue=!1:this.initPicker(t)}},start:{immediate:!0,handler:function(t){t&&(this.calendarRange.startDate=(0,c.getDate)(t),this.hasTime&&(this.calendarRange.startTime=(0,c.getTime)(t)))}},end:{immediate:!0,handler:function(t){t&&(this.calendarRange.endDate=(0,c.getDate)(t),this.hasTime&&(this.calendarRange.endTime=(0,c.getTime)(t,this.hideSecond)))}}},computed:{timepickerStartTime:function(){var t=this.isRange?this.tempRange.startDate:this.inputDate;return t===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime:function(){var t=this.isRange?this.tempRange.endDate:this.inputDate;return t===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime:function(){var t={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?t:this.pickerTime},mobSelectableTime:function(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth:function(){return this.isRange?653:301},singlePlaceholderText:function(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText:function(){return this.startPlaceholder||this.startDateText},endPlaceholderText:function(){return this.endPlaceholder||this.endDateText},selectDateText:function(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText:function(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText:function(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText:function(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText:function(){return this.i18nT("uni-datetime-picker.startTime")},endDateText:function(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText:function(){return this.i18nT("uni-datetime-picker.endTime")},okText:function(){return this.i18nT("uni-datetime-picker.ok")},clearText:function(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon:function(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created:function(){this.initI18nT(),this.platform()},methods:{initI18nT:function(){var t=(0,o.initVueI18n)(d.default);this.i18nT=t.t},initPicker:function(t){var e=this;if(!t&&!this.defaultValue||Array.isArray(t)&&!t.length)this.$nextTick((function(){e.clear(!1)}));else if(Array.isArray(t)||this.isRange){var i=(0,n.default)(t,2),a=i[0],s=i[1];if(!a&&!s)return;var r=(0,c.getDate)(a),o=(0,c.getTime)(a,this.hideSecond),d=(0,c.getDate)(s),l=(0,c.getTime)(s,this.hideSecond),u=r,h=d;this.displayRangeValue.startDate=this.tempRange.startDate=u,this.displayRangeValue.endDate=this.tempRange.endDate=h,this.hasTime&&(this.displayRangeValue.startDate="".concat(r," ").concat(o),this.displayRangeValue.endDate="".concat(d," ").concat(l),this.tempRange.startTime=o,this.tempRange.endTime=l);var p={before:r,after:d};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,p,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,p,{which:"left"})}else t?(this.displayValue=this.inputDate=this.calendarDate=(0,c.getDate)(t),this.hasTime&&(this.pickerTime=(0,c.getTime)(t,this.hideSecond),this.displayValue="".concat(this.displayValue," ").concat(this.pickerTime))):this.defaultValue&&(this.inputDate=this.calendarDate=(0,c.getDate)(this.defaultValue),this.hasTime&&(this.pickerTime=(0,c.getTime)(this.defaultValue,this.hideSecond)))},updateLeftCale:function(t){var e=this.$refs.left;e.cale.setHoverMultiple(t.after),e.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale:function(t){var e=this.$refs.right;e.cale.setHoverMultiple(t.after),e.setDate(this.$refs.right.nowDate.fullDate)},platform:function(){if("undefined"===typeof navigator){var t=uni.getSystemInfoSync(),e=t.windowWidth;this.isPhone=e<=500,this.windowWidth=e}else this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile")},show:function(){var t=this;if(this.$emit("show"),!this.disabled)if(this.platform(),this.isPhone)setTimeout((function(){t.$refs.mobile.open()}),0);else{this.pickerPositionStyle={top:"10px"};var e=uni.createSelectorQuery().in(this).select(".uni-date-editor");e.boundingClientRect((function(e){t.windowWidth-e.left2&&void 0!==arguments[2]&&arguments[2];if(t){e||(e=t);var a=i?"tempRange":"range",n=(0,c.dateCompare)(t,e);this[a].startDate=n?t:e,this[a].endDate=n?e:t}},dateCompare:function(t,e){return t=new Date(t.replace("-","/").replace("-","/")),e=new Date(e.replace("-","/").replace("-","/")),t<=e},diffDate:function(t,e){t=new Date(t.replace("-","/").replace("-","/")),e=new Date(e.replace("-","/").replace("-","/"));var i=(e-t)/864e5;return Math.abs(i)},clear:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),t&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),t&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},calendarClick:function(t){this.$emit("calendarClick",t)}}};e.default=l},9663:function(t,e,i){"use strict";i.r(e);var a=i("be24"),n=i("fda3");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("f137");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"06f30f66",null,!1,a["a"],void 0);e["default"]=o.exports},"9fd8":function(t){t.exports=JSON.parse('{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"}')},a02c:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{weeks:{type:Object,default:function(){return{}}},calendar:{type:Object,default:function(){return{}}},selected:{type:Array,default:function(){return[]}},checkHover:{type:Boolean,default:!1}},methods:{choiceDate:function(t){this.$emit("change",t)},handleMousemove:function(t){this.$emit("handleMouse",t)}}};e.default=a},a41b:function(t){t.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"}')},a9c0:function(t,e,i){"use strict";i.r(e);var a=i("ccef"),n=i("ccc5");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("017d"),i("3364");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"2b2adf75",null,!1,a["a"],void 0);e["default"]=o.exports},be24:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var a={uniTransition:i("c4da").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showPopup?i("v-uni-view",{staticClass:"uni-popup",class:[t.popupstyle,t.isDesktop?"fixforpc-z-index":""]},[i("v-uni-view",{on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchstart.apply(void 0,arguments)}}},[t.maskShow?i("uni-transition",{key:"1",attrs:{name:"mask","mode-class":"fade",styles:t.maskClass,duration:t.duration,show:t.showTrans},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onTap.apply(void 0,arguments)}}}):t._e(),i("uni-transition",{key:"2",attrs:{"mode-class":t.ani,name:"content",styles:t.transClass,duration:t.duration,show:t.showTrans},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onTap.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"uni-popup__wrapper",class:[t.popupstyle],style:t.getStyles,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}},[t._t("default")],2)],1)],1),t.maskShow?i("keypress",{on:{esc:function(e){arguments[0]=e=t.$handleEvent(e),t.onTap.apply(void 0,arguments)}}}):t._e()],1):t._e()},s=[]},c2b7:function(t,e,i){var a=i("3231");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("34025266",a,!0,{sourceMap:!1,shadowMode:!1})},c4da:function(t,e,i){"use strict";i.r(e);var a=i("1c2a"),n=i("569a");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"10fabb47",null,!1,a["a"],void 0);e["default"]=o.exports},c53d:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.index[data-v-2b2adf75]{height:100%;font-size:%?28?%}.index .index_title[data-v-2b2adf75]{color:#4b93d9;padding:%?40?%;font-weight:700}.index .index_picker[data-v-2b2adf75]{padding:0 %?20?%;margin-bottom:%?20?%}.index .back1[data-v-2b2adf75]{background-color:#ebebeb}.index .back2[data-v-2b2adf75]{background-color:#fff}.index .black[data-v-2b2adf75]{color:#000}.index .blue[data-v-2b2adf75]{color:#489ed9}.index .green[data-v-2b2adf75]{color:#7daf1d}.index .grey1[data-v-2b2adf75]{color:#959595}.index .grey2[data-v-2b2adf75]{color:#afafaf}.index .grey3[data-v-2b2adf75]{color:#939393}.index .index_list[data-v-2b2adf75]{padding:%?30?%;line-height:%?60?%;color:#939393;position:relative;font-weight:700}.index .index_list .index_list_size[data-v-2b2adf75]{font-size:%?34?%;font-weight:700}.index .index_list .index_list_color[data-v-2b2adf75]{font-size:%?26?%;font-weight:700}.index .index_list .Price_color[data-v-2b2adf75]{font-weight:700}.index .index_list .index_list_box1[data-v-2b2adf75]{border:1px solid #d82d33;border-radius:%?16?%;line-height:%?24?%;padding:%?4?%;position:absolute;top:25%;left:45%;-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}.index .index_list .index_list_box1 .index_list_box2[data-v-2b2adf75]{border:1px solid #d82d33;border-radius:%?16?%;padding:%?20?% %?30?%;color:#d82d33;font-weight:700}.index .index_list .index_list_box3[data-v-2b2adf75]{border:1px solid #939393;border-radius:%?16?%;line-height:%?24?%;padding:%?4?%;position:absolute;top:25%;left:45%;-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}.index .index_list .index_list_box3 .index_list_box4[data-v-2b2adf75]{border:1px solid #939393;border-radius:%?16?%;padding:%?20?% %?30?%;color:#939393;font-weight:700}.index .scroll-Y[data-v-2b2adf75]{width:100%;height:calc(100vh - 154px)}',""]),t.exports=e},c888:function(t,e,i){var a=i("07d6d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("3d0b6419",a,!0,{sourceMap:!1,shadowMode:!1})},ca88:function(t,e,i){"use strict";i.r(e);var a=i("dd4b"),n=i("e76a");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("07a8");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"26d4ece7",null,!1,a["a"],void 0);e["default"]=o.exports},cc7d:function(t,e,i){var a=i("00fd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("9af44c2a",a,!0,{sourceMap:!1,shadowMode:!1})},ccc5:function(t,e,i){"use strict";i.r(e);var a=i("e389"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},ccef:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var a={uniIcons:i("461b").default,uniDatetimePicker:i("fa70").default,uniLoadMore:i("b61e").default,uniPopup:i("9663").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"index"},[i("v-uni-view",[i("v-uni-view",{staticClass:"index_title"},[i("v-uni-view",{staticClass:"d-flex",staticStyle:{"justify-content":"flex-end"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toInvoicing.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"plus",size:"40rpx",color:"#4b93d9"}}),i("v-uni-view",[t._v("申请发票")])],1)],1),i("v-uni-view",{staticClass:"index_picker"},[i("uni-datetime-picker",{attrs:{type:"daterange",rangeSeparator:"至"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handleDateTimeChange.apply(void 0,arguments)}},model:{value:t.datetimerange,callback:function(e){t.datetimerange=e},expression:"datetimerange"}})],1)],1),i("v-uni-scroll-view",{staticClass:"scroll-Y",attrs:{"scroll-y":"true","lower-threshold":0,"scroll-top":t.scrollTop},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.onReachBottom1.apply(void 0,arguments)},scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltop.apply(void 0,arguments)}}},[t._l(t.universityList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"index_list",class:"已作废"===e.status?"back1":"back2",staticStyle:{"margin-bottom":"20rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toviewinvoice(e.serial_number,e.status)}}},[i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",{staticClass:"index_list_size",class:"已作废"===e.status?"grey1":"black"},[t._v("业务流水号"+t._s(e.serial_number))]),i("v-uni-view",{staticClass:"index_list_color",class:"已作废"===e.status?"grey2":"blue"},[t._v(t._s(e.status))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[t._v("开票项目")]),i("v-uni-view",[t._v(t._s(e.project_id))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[t._v("开票总金额")]),i("v-uni-view",{staticClass:"Price_color",class:"已作废"===e.status?"grey3":"green"},[t._v("¥"+t._s(e.amount))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[t._v("抬头类型")]),i("v-uni-view",[t._v(t._s(e.head_type))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[t._v("抬头名称")]),i("v-uni-view",[t._v(t._s(e.head_title))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[t._v("申请时间")]),i("v-uni-view",[t._v(t._s(e.create_time))])],1),i("v-uni-view",{class:"已开票"===e.status?"index_list_box1":"已作废"===e.status?"index_list_box3":""},[i("v-uni-view",{class:"已开票"===e.status?"index_list_box2":"已作废"===e.status?"index_list_box4":""},[t._v(t._s("已开票"===e.status?"已开票":"已作废"===e.status?"已作废":""))])],1)],1)})),i("uni-load-more",{attrs:{status:t.status,"content-text":t.contentText}})],2),this.scrollTop>1500?i("v-uni-view",{staticStyle:{position:"fixed",bottom:"5%",right:"5%",width:"50px",height:"50px","background-color":"#55aaff",display:"flex","justify-content":"center","align-items":"center","border-radius":"40px"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goTop.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"arrow-up",size:"40rpx",color:"#fff"}})],1):t._e(),i("uni-popup",{ref:"popup",attrs:{type:"bottom","background-color":"#fff","border-radius":"10px 10px 0 0"},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[i("v-uni-view",{staticStyle:{height:"150px","text-align":"center"}},[i("v-uni-view",{staticStyle:{margin:"40rpx 80rpx"}},[i("v-uni-button",{attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.login.apply(void 0,arguments)}}},[t._v("登录")])],1)],1)],1)],1)},s=[]},d4fa:function(t,e,i){"use strict";i.r(e);var a=i("e212"),n=i("787b");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("08d0");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"68231425",null,!1,a["a"],void 0);e["default"]=o.exports},dd4b:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-datetime-picker"},[i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.initTimePicker.apply(void 0,arguments)}}},[t._t("default",[i("v-uni-view",{staticClass:"uni-datetime-picker-timebox-pointer",class:{"uni-datetime-picker-disabled":t.disabled,"uni-datetime-picker-timebox":t.border}},[i("v-uni-text",{staticClass:"uni-datetime-picker-text"},[t._v(t._s(t.time))]),t.time?t._e():i("v-uni-view",{staticClass:"uni-datetime-picker-time"},[i("v-uni-text",{staticClass:"uni-datetime-picker-text"},[t._v(t._s(t.selectTimeText))])],1)],1)])],2),t.visible?i("v-uni-view",{staticClass:"uni-datetime-picker-mask",attrs:{id:"mask"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tiggerTimePicker.apply(void 0,arguments)}}}):t._e(),t.visible?i("v-uni-view",{staticClass:"uni-datetime-picker-popup",class:[t.dateShow&&t.timeShow?"":"fix-nvue-height"],style:t.fixNvueBug},[i("v-uni-view",{staticClass:"uni-title"},[i("v-uni-text",{staticClass:"uni-datetime-picker-text"},[t._v(t._s(t.selectTimeText))])],1),t.dateShow?i("v-uni-view",{staticClass:"uni-datetime-picker__container-box"},[i("v-uni-picker-view",{staticClass:"uni-datetime-picker-view",attrs:{"indicator-style":t.indicatorStyle,value:t.ymd},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindDateChange.apply(void 0,arguments)}}},[i("v-uni-picker-view-column",t._l(t.years,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[t._v(t._s(t.lessThanTen(e)))])],1)})),1),i("v-uni-picker-view-column",t._l(t.months,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[t._v(t._s(t.lessThanTen(e)))])],1)})),1),i("v-uni-picker-view-column",t._l(t.days,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[t._v(t._s(t.lessThanTen(e)))])],1)})),1)],1),i("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-left"},[t._v("-")]),i("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-right"},[t._v("-")])],1):t._e(),t.timeShow?i("v-uni-view",{staticClass:"uni-datetime-picker__container-box"},[i("v-uni-picker-view",{staticClass:"uni-datetime-picker-view",class:[t.hideSecond?"time-hide-second":""],attrs:{"indicator-style":t.indicatorStyle,value:t.hms},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTimeChange.apply(void 0,arguments)}}},[i("v-uni-picker-view-column",t._l(t.hours,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[t._v(t._s(t.lessThanTen(e)))])],1)})),1),i("v-uni-picker-view-column",t._l(t.minutes,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[t._v(t._s(t.lessThanTen(e)))])],1)})),1),t.hideSecond?t._e():i("v-uni-picker-view-column",t._l(t.seconds,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[t._v(t._s(t.lessThanTen(e)))])],1)})),1)],1),i("v-uni-text",{staticClass:"uni-datetime-picker-sign",class:[t.hideSecond?"sign-center":"sign-left"]},[t._v(":")]),t.hideSecond?t._e():i("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-right"},[t._v(":")])],1):t._e(),i("v-uni-view",{staticClass:"uni-datetime-picker-btn"},[i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearTime.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[t._v(t._s(t.clearText))])],1),i("v-uni-view",{staticClass:"uni-datetime-picker-btn-group"},[i("v-uni-view",{staticClass:"uni-datetime-picker-cancel",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tiggerTimePicker.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[t._v(t._s(t.cancelText))])],1),i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[t._v(t._s(t.okText))])],1)],1)],1)],1):t._e()],1)},n=[]},e212:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var a={uniIcons:i("461b").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-calendar",on:{mouseleave:function(e){arguments[0]=e=t.$handleEvent(e),t.leaveCale.apply(void 0,arguments)}}},[!t.insert&&t.show?i("v-uni-view",{staticClass:"uni-calendar__mask",class:{"uni-calendar--mask-show":t.aniMaskShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.maskClick.apply(void 0,arguments)}}}):t._e(),t.insert||t.show?i("v-uni-view",{staticClass:"uni-calendar__content",class:{"uni-calendar--fixed":!t.insert,"uni-calendar--ani-show":t.aniMaskShow,"uni-calendar__content-mobile":t.aniMaskShow}},[i("v-uni-view",{staticClass:"uni-calendar__header",class:{"uni-calendar__header-mobile":!t.insert}},[i("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeMonth("pre")}}},[i("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--left"})],1),i("v-uni-picker",{attrs:{mode:"date",value:t.date,fields:"month"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindDateChange.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-calendar__header-text"},[t._v(t._s((t.nowDate.year||"")+t.yearText+(t.nowDate.month||"")+t.monthText))])],1),i("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeMonth("next")}}},[i("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--right"})],1),t.insert?t._e():i("v-uni-view",{staticClass:"dialog-close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.maskClick.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"dialog-close-plus",attrs:{"data-id":"close"}}),i("v-uni-view",{staticClass:"dialog-close-plus dialog-close-rotate",attrs:{"data-id":"close"}})],1)],1),i("v-uni-view",{staticClass:"uni-calendar__box"},[t.showMonth?i("v-uni-view",{staticClass:"uni-calendar__box-bg"},[i("v-uni-text",{staticClass:"uni-calendar__box-bg-text"},[t._v(t._s(t.nowDate.month))])],1):t._e(),i("v-uni-view",{staticClass:"uni-calendar__weeks",staticStyle:{"padding-bottom":"7px"}},[i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v(t._s(t.SUNText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v(t._s(t.MONText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v(t._s(t.TUEText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v(t._s(t.WEDText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v(t._s(t.THUText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v(t._s(t.FRIText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v(t._s(t.SATText))])],1)],1),t._l(t.weeks,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-calendar__weeks"},t._l(e,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-calendar__weeks-item"},[i("calendar-item",{staticClass:"uni-calendar-item--hook",attrs:{weeks:e,calendar:t.calendar,selected:t.selected,checkHover:t.range},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.choiceDate.apply(void 0,arguments)},handleMouse:function(e){arguments[0]=e=t.$handleEvent(e),t.handleMouse.apply(void 0,arguments)}}})],1)})),1)}))],2),t.insert||t.range||!t.hasTime?t._e():i("v-uni-view",{staticClass:"uni-date-changed uni-calendar--fixed-top",staticStyle:{padding:"0 80px"}},[i("v-uni-view",{staticClass:"uni-date-changed--time-date"},[t._v(t._s(t.tempSingleDate?t.tempSingleDate:t.selectDateText))]),i("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",start:t.timepickerStartTime,end:t.timepickerEndTime,disabled:!t.tempSingleDate,border:!1,"hide-second":t.hideSecond},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1),!t.insert&&t.range&&t.hasTime?i("v-uni-view",{staticClass:"uni-date-changed uni-calendar--fixed-top"},[i("v-uni-view",{staticClass:"uni-date-changed--time-start"},[i("v-uni-view",{staticClass:"uni-date-changed--time-date"},[t._v(t._s(t.tempRange.before?t.tempRange.before:t.startDateText))]),i("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",start:t.timepickerStartTime,border:!1,"hide-second":t.hideSecond,disabled:!t.tempRange.before},model:{value:t.timeRange.startTime,callback:function(e){t.$set(t.timeRange,"startTime",e)},expression:"timeRange.startTime"}})],1),i("v-uni-view",{staticStyle:{"line-height":"50px"}},[i("uni-icons",{attrs:{type:"arrowthinright",color:"#999"}})],1),i("v-uni-view",{staticClass:"uni-date-changed--time-end"},[i("v-uni-view",{staticClass:"uni-date-changed--time-date"},[t._v(t._s(t.tempRange.after?t.tempRange.after:t.endDateText))]),i("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",end:t.timepickerEndTime,border:!1,"hide-second":t.hideSecond,disabled:!t.tempRange.after},model:{value:t.timeRange.endTime,callback:function(e){t.$set(t.timeRange,"endTime",e)},expression:"timeRange.endTime"}})],1)],1):t._e(),t.insert?t._e():i("v-uni-view",{staticClass:"uni-date-changed uni-date-btn--ok"},[i("v-uni-view",{staticClass:"uni-datetime-picker--btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[t._v(t._s(t.confirmText))])],1)],1):t._e()],1)},s=[]},e389:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("ac1f"),i("5319"),i("99af"),i("4d63"),i("c607"),i("2c3e"),i("25f0");var n=a(i("4d55")),s={data:function(){return{datetimerange:[],universityList:[],page:1,limit:10,status:"more",contentText:{contentdown:"查看更多",contentrefresh:"加载中....",contentnomore:"没有更多咯"},appId:"",redirectUri:"",state:"",scrollTop:0,start_date:"",end_date:""}},onLoad:function(t){var e=window.location.href,i=this.getUrlParams(e);i["code"],i["start"];uni.getStorageSync("AccessToken")||this.cont()},onShow:function(){uni.getStorageSync("AccessToken")&&this.getUniversityList()},mounted:function(){uni.getStorageSync("AccessToken")||this.$refs.popup.open()},methods:{getUrlParams:function(t){var e={};return t.replace(/[?&]+([^=&]+)=([^&]*)/gi,(function(t,i,a){e[i]=a})),e},cont:function(){var t=this,e=this.getUrlCode("code"),i=this.getUrlCode("state"),a={code:e,state:i};e&&i&&n.default.wx(a,(function(e){1==e.code?(t.removepath(),uni.showToast({title:e.msg,icon:"none"}),uni.setStorageSync("AccessToken",e.data.token),uni.setStorageSync("openid",e.data.openid),uni.setStorageSync("phone",e.data.phone),t.$refs.popup.close(),t.getUniversityList(),e.data.phone||uni.navigateTo({url:"/pages/wxlogin/registerphone"})):(uni.showToast({title:e.msg,icon:"none"}),t.login())}))},getWxCode:function(){var t=this;n.default.getWxCode({},(function(e){1==e.code&&(t.redirectUri=e.data.redirectUri,t.appId=e.data.appId,t.state=e.data.state)}))},getUniversityList:function(){var t=this,e={limit:this.limit,page:this.page,start_date:this.start_date,end_date:this.end_date};this.status="loading",setTimeout((function(){n.default.Home(e,(function(e){1==e.code&&(t.page=e.data.current_page,t.limit=e.data.per_page,1===t.page?t.universityList=e.data.data:t.universityList=t.universityList.concat(e.data.data),e.data.data.lengthi?new Date(i):new Date(e):t&&!i?t<=e?new Date(e):new Date(t):!t&&i?e<=i?new Date(e):new Date(i):new Date(e),a},superTimeStamp:function(e){var t="";if("time"===this.type&&e&&"string"===typeof e){var i=new Date,a=i.getFullYear(),n=i.getMonth()+1,r=i.getDate();t=a+"/"+n+"/"+r+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue:function(e){if(e){if("time"===this.type&&"string"===typeof e)this.parseTimeType(e);else{var t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange:function(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){var i=e.split(":");this[t+"Hour"]=Number(i[0]),this[t+"Minute"]=Number(i[1]),this[t+"Second"]=Number(i[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));"datetime"!==this.type||"end"!==t||"string"!==typeof e||/[0-9]:[0-9]/.test(e)||(e+=" 23:59:59");var a=new Date(e);this[t+"Year"]=a.getFullYear(),this[t+"Month"]=a.getMonth()+1,this[t+"Day"]=a.getDate(),"datetime"===this.type&&(this[t+"Hour"]=a.getHours(),this[t+"Minute"]=a.getMinutes(),this[t+"Second"]=a.getSeconds())}},getCurrentRange:function(e){for(var t=[],i=this["min"+this.capitalize(e)];i<=this["max"+this.capitalize(e)];i++)t.push(i);return t},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},checkValue:function(e,t,i){-1===i.indexOf(t)&&(this[e]=i[0])},daysInMonth:function(e,t){return new Date(e,t,0).getDate()},createTimeStamp:function(e){if(e)return"number"===typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting:function(){var e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day),t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange:function(e){var t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange:function(e){var t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker:function(){if(!this.disabled){var e=(0,s.fixIosDateFormat)(this.time);this.initPickerValue(e),this.visible=!this.visible}},tiggerTimePicker:function(e){this.visible=!this.visible},clearTime:function(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime:function(){this.initTime(),this.tiggerTimePicker()}}};t.default=c},"309b":function(e,t,i){var a=i("0073");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("d2a93dde",a,!0,{sourceMap:!1,shadowMode:!1})},3231:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-calendar[data-v-68231425]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-68231425]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-68231425]{opacity:1}.uni-calendar--fixed[data-v-68231425]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.3s;-webkit-transform:translateY(460px);transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-68231425]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-calendar__content[data-v-68231425]{background-color:#fff}.uni-calendar__content-mobile[data-v-68231425]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-68231425]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-68231425]{padding:10px;padding-bottom:0}.uni-calendar--fixed-top[data-v-68231425]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-68231425]{width:50px}.uni-calendar__backtoday[data-v-68231425]{position:absolute;right:0;top:%?25?%;padding:0 5px;padding-left:10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-68231425]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-68231425]{text-align:center;width:100px;font-size:14px;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-68231425]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-68231425]{width:9px;height:9px;border-left-color:grey;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-68231425]{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-calendar--right[data-v-68231425]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.uni-calendar__weeks[data-v-68231425]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-68231425]{flex:1}.uni-calendar__weeks-day[data-v-68231425]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-68231425]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-68231425]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-68231425]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-68231425]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-68231425]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-68231425]{padding:20px 15px}.uni-date-changed--time-start[data-v-68231425]{display:flex;align-items:center}.uni-date-changed--time-end[data-v-68231425]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-68231425]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-68231425]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-68231425]{margin-right:10px}.dialog-close[data-v-68231425]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-68231425]{width:16px;height:2px;background-color:#737987;border-radius:2px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.dialog-close-rotate[data-v-68231425]{position:absolute;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-68231425]{border-radius:100px;height:40px;line-height:40px;background-color:#007aff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-68231425]:active{opacity:.7}',""]),e.exports=t},3364:function(e,t,i){"use strict";var a=i("22ac"),n=i.n(a);n.a},"34a0":function(e,t,i){var a=i("160e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("4e735c00",a,!0,{sourceMap:!1,shadowMode:!1})},"3b78":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"uni-calendar-item__weeks-box",class:{"uni-calendar-item--disable":e.weeks.disable,"uni-calendar-item--before-checked-x":e.weeks.beforeMultiple,"uni-calendar-item--multiple":e.weeks.multiple,"uni-calendar-item--after-checked-x":e.weeks.afterMultiple},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.choiceDate(e.weeks)},mouseenter:function(t){arguments[0]=t=e.$handleEvent(t),e.handleMousemove(e.weeks)}}},[i("v-uni-view",{staticClass:"uni-calendar-item__weeks-box-item",class:{"uni-calendar-item--checked":e.calendar.fullDate===e.weeks.fullDate&&(e.calendar.userChecked||!e.checkHover),"uni-calendar-item--checked-range-text":e.checkHover,"uni-calendar-item--before-checked":e.weeks.beforeMultiple,"uni-calendar-item--multiple":e.weeks.multiple,"uni-calendar-item--after-checked":e.weeks.afterMultiple,"uni-calendar-item--disable":e.weeks.disable}},[e.selected&&e.weeks.extraInfo?i("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-circle"}):e._e(),i("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},[e._v(e._s(e.weeks.date))])],1),i("v-uni-view",{class:{"uni-calendar-item--today":e.weeks.isToday}})],1)},n=[]},"3e9e":function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.Calendar=void 0,t.addZero=l,t.checkDate=function(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)},t.dateCompare=u,t.fixIosDateFormat=f,t.getDate=d,t.getDateTime=function(e,t){return"".concat(d(e)," ").concat(c(e,t))},t.getDefaultSecond=function(e){return e?"00:00":"00:00:00"},t.getTime=c,i("14d9"),i("99af"),i("7db0"),i("d3b7"),i("c740"),i("e25e"),i("ac1f"),i("466d"),i("00b4"),i("5319");var n=a(i("2909")),r=a(i("d4ec")),s=a(i("bee2")),o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.selected,a=t.startDate,n=t.endDate,s=t.range;(0,r.default)(this,e),this.date=this.getDateObj(new Date),this.selected=i||[],this.startDate=a,this.endDate=n,this.range=s,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return(0,s.default)(e,[{key:"setDate",value:function(e){var t=this.getDateObj(e);this.getWeeks(t.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"setStartDate",value:function(e){this.startDate=e}},{key:"setEndDate",value:function(e){this.endDate=e}},{key:"getPreMonthObj",value:function(e){e=f(e),e=new Date(e);var t=e.getMonth();e.setMonth(t-1);var i=e.getMonth();return 0!==t&&i-t===0&&e.setMonth(i-1),this.getDateObj(e)}},{key:"getNextMonthObj",value:function(e){e=f(e),e=new Date(e);var t=e.getMonth();e.setMonth(t+1);var i=e.getMonth();return i-t>1&&e.setMonth(i-1),this.getDateObj(e)}},{key:"getDateObj",value:function(e){return e=f(e),e=new Date(e),{fullDate:d(e),year:e.getFullYear(),month:l(e.getMonth()+1),date:l(e.getDate()),day:e.getDay()}}},{key:"getPreMonthDays",value:function(e,t){for(var i=[],a=e-1;a>=0;a--){var n=t.month-1;i.push({date:new Date(t.year,n,-a).getDate(),month:n,disable:!0})}return i}},{key:"getCurrentMonthDays",value:function(e,t){for(var i=this,a=[],n=this.date.fullDate,r=function(e){var r="".concat(t.year,"-").concat(t.month,"-").concat(l(e)),s=n===r,o=i.selected&&i.selected.find((function(e){if(i.dateEqual(r,e.date))return e}));i.startDate&&u(i.startDate,r),i.endDate&&u(r,i.endDate);var d=i.multipleStatus.data,c=-1;i.range&&d&&(c=d.findIndex((function(e){return i.dateEqual(e,r)})));var h=-1!==c;a.push({fullDate:r,year:t.year,date:e,multiple:!!i.range&&h,beforeMultiple:i.isLogicBefore(r,i.multipleStatus.before,i.multipleStatus.after),afterMultiple:i.isLogicAfter(r,i.multipleStatus.before,i.multipleStatus.after),month:t.month,disable:i.startDate&&!u(i.startDate,r)||i.endDate&&!u(r,i.endDate),isToday:s,userChecked:!1,extraInfo:o})},s=1;s<=e;s++)r(s);return a}},{key:"_getNextMonthDays",value:function(e,t){for(var i=[],a=t.month+1,n=1;n<=e;n++)i.push({date:n,month:a,disable:!0});return i}},{key:"getInfo",value:function(e){var t=this;return e||(e=new Date),this.calendar.find((function(i){return i.fullDate===t.getDateObj(e).fullDate}))}},{key:"dateEqual",value:function(e,t){return e=new Date(f(e)),t=new Date(f(t)),e.valueOf()===t.valueOf()}},{key:"isLogicBefore",value:function(e,t,i){var a=t;return t&&i&&(a=u(t,i)?t:i),this.dateEqual(a,e)}},{key:"isLogicAfter",value:function(e,t,i){var a=i;return t&&i&&(a=u(t,i)?i:t),this.dateEqual(a,e)}},{key:"geDateAll",value:function(e,t){var i=[],a=e.split("-"),n=t.split("-"),r=new Date;r.setFullYear(a[0],a[1]-1,a[2]);var s=new Date;s.setFullYear(n[0],n[1]-1,n[2]);for(var o=r.getTime()-864e5,d=s.getTime()-864e5,c=o;c<=d;)c+=864e5,i.push(this.getDateObj(new Date(parseInt(c))).fullDate);return i}},{key:"setMultiple",value:function(e){if(this.range){var t=this.multipleStatus,i=t.before,a=t.after;if(i&&a){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else i?(this.multipleStatus.after=e,u(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}}},{key:"setHoverMultiple",value:function(e){if(this.range&&!this.lastHover){var t=this.multipleStatus.before;t?(this.multipleStatus.after=e,u(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}}},{key:"setDefaultMultiple",value:function(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(u(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}},{key:"getWeeks",value:function(e){for(var t=this.getDateObj(e),i=t.year,a=t.month,r=new Date(i,a-1,1).getDay(),s=this.getPreMonthDays(r,this.getDateObj(e)),o=new Date(i,a,0).getDate(),d=this.getCurrentMonthDays(o,this.getDateObj(e)),c=42-r-o,l=this._getNextMonthDays(c,this.getDateObj(e)),u=[].concat((0,n.default)(s),(0,n.default)(d),(0,n.default)(l)),h=new Array(6),f=0;fi&&i?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change(!0)}},changeMonth:function(e){var t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate:function(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};t.default=f},"5c40":function(e,t,i){"use strict";var a=i("309b"),n=i.n(a);n.a},"6d56":function(e,t,i){var a=i("7f6a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("58e484fc",a,!0,{sourceMap:!1,shadowMode:!1})},"787b":function(e,t,i){"use strict";i.r(t);var a=i("58db"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);t["default"]=n.a},"7f6a":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-datetime-picker[data-v-26d4ece7]{\r\n /* width: 100%; */}.uni-datetime-picker-view[data-v-26d4ece7]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-26d4ece7]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-26d4ece7]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-26d4ece7]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-26d4ece7]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-26d4ece7]{margin-right:30px}.uni-datetime-picker-mask[data-v-26d4ece7]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-26d4ece7]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-26d4ece7]{color:grey}.uni-datetime-picker-column[data-v-26d4ece7]{height:50px}.uni-datetime-picker-timebox[data-v-26d4ece7]{border:1px solid #e5e5e5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-26d4ece7]{cursor:pointer}.uni-datetime-picker-disabled[data-v-26d4ece7]{opacity:.4;cursor:not-allowed!important}.uni-datetime-picker-text[data-v-26d4ece7]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-26d4ece7]{position:absolute;top:53px;\r\n /* 减掉 10px 的元素高度,兼容nvue */color:#999}.sign-left[data-v-26d4ece7]{left:86px}.sign-right[data-v-26d4ece7]{right:86px}.sign-center[data-v-26d4ece7]{left:135px}.uni-datetime-picker__container-box[data-v-26d4ece7]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-26d4ece7]{width:180px}',""]),e.exports=t},"841d":function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}')},8548:function(e,t,i){"use strict";i.r(t);var a=i("8d87"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);t["default"]=n.a},"8a67":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return a}));var a={uniIcons:i("461b").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"uni-date"},[i("v-uni-view",{staticClass:"uni-date-editor",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.show.apply(void 0,arguments)}}},[e._t("default",[i("v-uni-view",{staticClass:"uni-date-editor--x",class:{"uni-date-editor--x__disabled":e.disabled,"uni-date-x--border":e.border}},[e.isRange?i("v-uni-view",{staticClass:"uni-date-x uni-date-range"},[i("uni-icons",{staticClass:"icon-calendar",attrs:{type:"calendar",color:"#c0c4cc",size:"22"}}),i("v-uni-view",{staticClass:"uni-date__x-input text-center"},[e._v(e._s(e.displayRangeValue.startDate||e.startPlaceholderText))]),i("v-uni-view",{staticClass:"range-separator"},[e._v(e._s(e.rangeSeparator))]),i("v-uni-view",{staticClass:"uni-date__x-input text-center"},[e._v(e._s(e.displayRangeValue.endDate||e.endPlaceholderText))])],1):i("v-uni-view",{staticClass:"uni-date-x uni-date-single"},[i("uni-icons",{staticClass:"icon-calendar",attrs:{type:"calendar",color:"#c0c4cc",size:"22"}}),i("v-uni-view",{staticClass:"uni-date__x-input"},[e._v(e._s(e.displayValue||e.singlePlaceholderText))])],1),e.showClearIcon?i("v-uni-view",{staticClass:"uni-date__icon-clear",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"clear",color:"#c0c4cc",size:"22"}})],1):e._e()],1)])],2),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.pickerVisible,expression:"pickerVisible"}],staticClass:"uni-date-mask--pc",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}}),e.isPhone?e._e():i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.pickerVisible,expression:"pickerVisible"}],ref:"datePicker",staticClass:"uni-date-picker__container"},[e.isRange?i("v-uni-view",{staticClass:"uni-date-range--x",style:e.pickerPositionStyle},[i("v-uni-view",{staticClass:"uni-popper__arrow"}),e.hasTime?i("v-uni-view",{staticClass:"popup-x-header uni-date-changed"},[i("v-uni-view",{staticClass:"popup-x-header--datetime"},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.startDateText},model:{value:e.tempRange.startDate,callback:function(t){e.$set(e.tempRange,"startDate",t)},expression:"tempRange.startDate"}}),i("time-picker",{attrs:{type:"time",start:e.timepickerStartTime,border:!1,disabled:!e.tempRange.startDate,hideSecond:e.hideSecond},model:{value:e.tempRange.startTime,callback:function(t){e.$set(e.tempRange,"startTime",t)},expression:"tempRange.startTime"}},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.startTimeText,disabled:!e.tempRange.startDate},model:{value:e.tempRange.startTime,callback:function(t){e.$set(e.tempRange,"startTime",t)},expression:"tempRange.startTime"}})],1)],1),i("uni-icons",{staticStyle:{"line-height":"40px"},attrs:{type:"arrowthinright",color:"#999"}}),i("v-uni-view",{staticClass:"popup-x-header--datetime"},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.endDateText},model:{value:e.tempRange.endDate,callback:function(t){e.$set(e.tempRange,"endDate",t)},expression:"tempRange.endDate"}}),i("time-picker",{attrs:{type:"time",end:e.timepickerEndTime,border:!1,disabled:!e.tempRange.endDate,hideSecond:e.hideSecond},model:{value:e.tempRange.endTime,callback:function(t){e.$set(e.tempRange,"endTime",t)},expression:"tempRange.endTime"}},[i("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.endTimeText,disabled:!e.tempRange.endDate},model:{value:e.tempRange.endTime,callback:function(t){e.$set(e.tempRange,"endTime",t)},expression:"tempRange.endTime"}})],1)],1)],1):e._e(),i("v-uni-view",{staticClass:"popup-x-body"},[i("Calendar",{ref:"left",staticStyle:{padding:"0 8px"},attrs:{showMonth:!1,"start-date":e.calendarRange.startDate,"end-date":e.calendarRange.endDate,range:!0,pleStatus:e.endMultipleStatus},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.leftChange.apply(void 0,arguments)},firstEnterCale:function(t){arguments[0]=t=e.$handleEvent(t),e.updateRightCale.apply(void 0,arguments)}}}),i("Calendar",{ref:"right",staticStyle:{padding:"0 8px","border-left":"1px solid #F1F1F1"},attrs:{showMonth:!1,"start-date":e.calendarRange.startDate,"end-date":e.calendarRange.endDate,range:!0,pleStatus:e.startMultipleStatus},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.rightChange.apply(void 0,arguments)},firstEnterCale:function(t){arguments[0]=t=e.$handleEvent(t),e.updateLeftCale.apply(void 0,arguments)}}})],1),e.hasTime?i("v-uni-view",{staticClass:"popup-x-footer"},[i("v-uni-text",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[e._v(e._s(e.clearText))]),i("v-uni-text",{staticClass:"confirm-text",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmRangeChange.apply(void 0,arguments)}}},[e._v(e._s(e.okText))])],1):e._e()],1):i("v-uni-view",{staticClass:"uni-date-single--x",style:e.pickerPositionStyle},[i("v-uni-view",{staticClass:"uni-popper__arrow"}),e.hasTime?i("v-uni-view",{staticClass:"uni-date-changed popup-x-header"},[i("v-uni-input",{staticClass:"uni-date__input text-center",attrs:{type:"text",placeholder:e.selectDateText},model:{value:e.inputDate,callback:function(t){e.inputDate=t},expression:"inputDate"}}),i("time-picker",{staticStyle:{width:"100%"},attrs:{type:"time",border:!1,disabled:!e.inputDate,start:e.timepickerStartTime,end:e.timepickerEndTime,hideSecond:e.hideSecond},model:{value:e.pickerTime,callback:function(t){e.pickerTime=t},expression:"pickerTime"}},[i("v-uni-input",{staticClass:"uni-date__input text-center",attrs:{type:"text",placeholder:e.selectTimeText,disabled:!e.inputDate},model:{value:e.pickerTime,callback:function(t){e.pickerTime=t},expression:"pickerTime"}})],1)],1):e._e(),i("Calendar",{ref:"pcSingle",staticStyle:{padding:"0 8px"},attrs:{showMonth:!1,"start-date":e.calendarRange.startDate,"end-date":e.calendarRange.endDate,date:e.calendarDate,"default-value":e.defaultValue},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.singleChange.apply(void 0,arguments)}}}),e.hasTime?i("v-uni-view",{staticClass:"popup-x-footer"},[i("v-uni-text",{staticClass:"confirm-text",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmSingleChange.apply(void 0,arguments)}}},[e._v(e._s(e.okText))])],1):e._e()],1)],1),e.isPhone?i("Calendar",{ref:"mobile",attrs:{clearDate:!1,date:e.calendarDate,defTime:e.mobileCalendarTime,"start-date":e.calendarRange.startDate,"end-date":e.calendarRange.endDate,selectableTimes:e.mobSelectableTime,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,"default-value":e.defaultValue,pleStatus:e.endMultipleStatus,showMonth:!1,range:e.isRange,hasTime:e.hasTime,insert:!1,hideSecond:e.hideSecond},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.mobileChange.apply(void 0,arguments)},maskClose:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)},change:function(t){arguments[0]=t=e.$handleEvent(t),e.calendarClick.apply(void 0,arguments)}}}):e._e()],1)},r=[]},"8d87":function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("3835"));i("a9e3"),i("c975"),i("99af"),i("ac1f"),i("5319");var r=a(i("d4fa")),s=a(i("ca88")),o=i("37dc"),d=a(i("f46c")),c=i("3e9e"),l={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:r.default,TimePicker:s.default},data:function(){return{isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:function(){}}},props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler:function(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},value:{immediate:!0,handler:function(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler:function(e){e&&(this.calendarRange.startDate=(0,c.getDate)(e),this.hasTime&&(this.calendarRange.startTime=(0,c.getTime)(e)))}},end:{immediate:!0,handler:function(e){e&&(this.calendarRange.endDate=(0,c.getDate)(e),this.hasTime&&(this.calendarRange.endTime=(0,c.getTime)(e,this.hideSecond)))}}},computed:{timepickerStartTime:function(){var e=this.isRange?this.tempRange.startDate:this.inputDate;return e===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime:function(){var e=this.isRange?this.tempRange.endDate:this.inputDate;return e===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime:function(){var e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime:function(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth:function(){return this.isRange?653:301},singlePlaceholderText:function(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText:function(){return this.startPlaceholder||this.startDateText},endPlaceholderText:function(){return this.endPlaceholder||this.endDateText},selectDateText:function(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText:function(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText:function(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText:function(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText:function(){return this.i18nT("uni-datetime-picker.startTime")},endDateText:function(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText:function(){return this.i18nT("uni-datetime-picker.endTime")},okText:function(){return this.i18nT("uni-datetime-picker.ok")},clearText:function(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon:function(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created:function(){this.initI18nT(),this.platform()},methods:{initI18nT:function(){var e=(0,o.initVueI18n)(d.default);this.i18nT=e.t},initPicker:function(e){var t=this;if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((function(){t.clear(!1)}));else if(Array.isArray(e)||this.isRange){var i=(0,n.default)(e,2),a=i[0],r=i[1];if(!a&&!r)return;var s=(0,c.getDate)(a),o=(0,c.getTime)(a,this.hideSecond),d=(0,c.getDate)(r),l=(0,c.getTime)(r,this.hideSecond),u=s,h=d;this.displayRangeValue.startDate=this.tempRange.startDate=u,this.displayRangeValue.endDate=this.tempRange.endDate=h,this.hasTime&&(this.displayRangeValue.startDate="".concat(s," ").concat(o),this.displayRangeValue.endDate="".concat(d," ").concat(l),this.tempRange.startTime=o,this.tempRange.endTime=l);var f={before:s,after:d};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,f,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,f,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=(0,c.getDate)(e),this.hasTime&&(this.pickerTime=(0,c.getTime)(e,this.hideSecond),this.displayValue="".concat(this.displayValue," ").concat(this.pickerTime))):this.defaultValue&&(this.inputDate=this.calendarDate=(0,c.getDate)(this.defaultValue),this.hasTime&&(this.pickerTime=(0,c.getTime)(this.defaultValue,this.hideSecond)))},updateLeftCale:function(e){var t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale:function(e){var t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform:function(){if("undefined"===typeof navigator){var e=uni.getSystemInfoSync(),t=e.windowWidth;this.isPhone=t<=500,this.windowWidth=t}else this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile")},show:function(){var e=this;if(this.$emit("show"),!this.disabled)if(this.platform(),this.isPhone)setTimeout((function(){e.$refs.mobile.open()}),0);else{this.pickerPositionStyle={top:"10px"};var t=uni.createSelectorQuery().in(this).select(".uni-date-editor");t.boundingClientRect((function(t){e.windowWidth-t.left2&&void 0!==arguments[2]&&arguments[2];if(e){t||(t=e);var a=i?"tempRange":"range",n=(0,c.dateCompare)(e,t);this[a].startDate=n?e:t,this[a].endDate=n?t:e}},dateCompare:function(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e<=t},diffDate:function(e,t){e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/"));var i=(t-e)/864e5;return Math.abs(i)},clear:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},calendarClick:function(e){this.$emit("calendarClick",e)}}};t.default=l},"9fd8":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"}')},a02c:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{weeks:{type:Object,default:function(){return{}}},calendar:{type:Object,default:function(){return{}}},selected:{type:Array,default:function(){return[]}},checkHover:{type:Boolean,default:!1}},methods:{choiceDate:function(e){this.$emit("change",e)},handleMousemove:function(e){this.$emit("handleMouse",e)}}};t.default=a},a41b:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"}')},a9c0:function(e,t,i){"use strict";i.r(t);var a=i("ccef"),n=i("ccc5");for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);i("017d"),i("3364");var s=i("f0c5"),o=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"2b2adf75",null,!1,a["a"],void 0);t["default"]=o.exports},b2ca:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"}')},b61e:function(e,t,i){"use strict";i.r(t);var a=i("5301"),n=i("efa1");for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);i("5c40");var s=i("f0c5"),o=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"ca305c04",null,!1,a["a"],void 0);t["default"]=o.exports},b8e8:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("f7c7")),r=a(i("b2ca")),s=a(i("841d")),o={en:n.default,"zh-Hans":r.default,"zh-Hant":s.default};t.default=o},c2b7:function(e,t,i){var a=i("3231");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("34025266",a,!0,{sourceMap:!1,shadowMode:!1})},c53d:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.index[data-v-2b2adf75]{height:100%;font-size:%?28?%}.index .index_title[data-v-2b2adf75]{color:#4b93d9;padding:%?40?%;font-weight:700}.index .index_picker[data-v-2b2adf75]{padding:0 %?20?%;margin-bottom:%?20?%}.index .back1[data-v-2b2adf75]{background-color:#ebebeb}.index .back2[data-v-2b2adf75]{background-color:#fff}.index .black[data-v-2b2adf75]{color:#000}.index .blue[data-v-2b2adf75]{color:#489ed9}.index .green[data-v-2b2adf75]{color:#7daf1d}.index .grey1[data-v-2b2adf75]{color:#959595}.index .grey2[data-v-2b2adf75]{color:#afafaf}.index .grey3[data-v-2b2adf75]{color:#939393}.index .index_list[data-v-2b2adf75]{padding:%?30?%;line-height:%?60?%;color:#939393;position:relative;font-weight:700}.index .index_list .index_list_size[data-v-2b2adf75]{font-size:%?34?%;font-weight:700}.index .index_list .index_list_color[data-v-2b2adf75]{font-size:%?26?%;font-weight:700}.index .index_list .Price_color[data-v-2b2adf75]{font-weight:700}.index .index_list .index_list_box1[data-v-2b2adf75]{border:1px solid #d82d33;border-radius:%?16?%;line-height:%?24?%;padding:%?4?%;position:absolute;top:25%;left:45%;-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}.index .index_list .index_list_box1 .index_list_box2[data-v-2b2adf75]{border:1px solid #d82d33;border-radius:%?16?%;padding:%?20?% %?30?%;color:#d82d33;font-weight:700}.index .index_list .index_list_box3[data-v-2b2adf75]{border:1px solid #939393;border-radius:%?16?%;line-height:%?24?%;padding:%?4?%;position:absolute;top:25%;left:45%;-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}.index .index_list .index_list_box3 .index_list_box4[data-v-2b2adf75]{border:1px solid #939393;border-radius:%?16?%;padding:%?20?% %?30?%;color:#939393;font-weight:700}.index .scroll-Y[data-v-2b2adf75]{width:100%;height:calc(100vh - 154px)}',""]),e.exports=t},c888:function(e,t,i){var a=i("07d6d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("3d0b6419",a,!0,{sourceMap:!1,shadowMode:!1})},ca88:function(e,t,i){"use strict";i.r(t);var a=i("dd4b"),n=i("e76a");for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);i("07a8");var s=i("f0c5"),o=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"26d4ece7",null,!1,a["a"],void 0);t["default"]=o.exports},cc7d:function(e,t,i){var a=i("00fd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("9af44c2a",a,!0,{sourceMap:!1,shadowMode:!1})},ccc5:function(e,t,i){"use strict";i.r(t);var a=i("e389"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);t["default"]=n.a},ccef:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return a}));var a={uniIcons:i("461b").default,uniDatetimePicker:i("fa70").default,uniLoadMore:i("b61e").default,uniPopup:i("9663").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"index"},[i("v-uni-view",[i("v-uni-view",{staticClass:"index_title"},[i("v-uni-view",{staticClass:"d-flex",staticStyle:{"justify-content":"flex-end"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toInvoicing.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"plus",size:"40rpx",color:"#4b93d9"}}),i("v-uni-view",[e._v("申请发票")])],1)],1),i("v-uni-view",{staticClass:"index_picker"},[i("uni-datetime-picker",{attrs:{type:"daterange",rangeSeparator:"至"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.handleDateTimeChange.apply(void 0,arguments)}},model:{value:e.datetimerange,callback:function(t){e.datetimerange=t},expression:"datetimerange"}})],1)],1),i("v-uni-scroll-view",{staticClass:"scroll-Y",attrs:{"scroll-y":"true","lower-threshold":0,"scroll-top":e.scrollTop},on:{scrolltolower:function(t){arguments[0]=t=e.$handleEvent(t),e.onReachBottom1.apply(void 0,arguments)},scroll:function(t){arguments[0]=t=e.$handleEvent(t),e.scrolltop.apply(void 0,arguments)}}},[e._l(e.universityList,(function(t,a){return i("v-uni-view",{key:a,staticClass:"index_list",class:"已作废"===t.status?"back1":"back2",staticStyle:{"margin-bottom":"20rpx"},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.toviewinvoice(t.serial_number,t.status)}}},[i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",{staticClass:"index_list_size",class:"已作废"===t.status?"grey1":"black"},[e._v("业务流水号"+e._s(t.serial_number))]),i("v-uni-view",{staticClass:"index_list_color",class:"已作废"===t.status?"grey2":"blue"},[e._v(e._s(t.status))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[e._v("开票项目")]),i("v-uni-view",[e._v(e._s(t.project_id))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[e._v("开票总金额")]),i("v-uni-view",{staticClass:"Price_color",class:"已作废"===t.status?"grey3":"green"},[e._v("¥"+e._s(t.amount))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[e._v("抬头类型")]),i("v-uni-view",[e._v(e._s(t.head_type))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[e._v("抬头名称")]),i("v-uni-view",[e._v(e._s(t.head_title))])],1),i("v-uni-view",{staticClass:"d-flex jcontent-between"},[i("v-uni-view",[e._v("申请时间")]),i("v-uni-view",[e._v(e._s(t.create_time))])],1),i("v-uni-view",{class:"已开票"===t.status?"index_list_box1":"已作废"===t.status?"index_list_box3":""},[i("v-uni-view",{class:"已开票"===t.status?"index_list_box2":"已作废"===t.status?"index_list_box4":""},[e._v(e._s("已开票"===t.status?"已开票":"已作废"===t.status?"已作废":""))])],1)],1)})),i("uni-load-more",{attrs:{status:e.status,"content-text":e.contentText}})],2),this.scrollTop>1500?i("v-uni-view",{staticStyle:{position:"fixed",bottom:"5%",right:"5%",width:"50px",height:"50px","background-color":"#55aaff",display:"flex","justify-content":"center","align-items":"center","border-radius":"40px"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goTop.apply(void 0,arguments)}}},[i("uni-icons",{attrs:{type:"arrow-up",size:"40rpx",color:"#fff"}})],1):e._e(),i("uni-popup",{ref:"popup",attrs:{type:"bottom","background-color":"#fff","border-radius":"10px 10px 0 0"},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}},[i("v-uni-view",{staticStyle:{height:"150px","text-align":"center"}},[i("v-uni-view",{staticStyle:{margin:"40rpx 80rpx"}},[i("v-uni-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.login.apply(void 0,arguments)}}},[e._v("登录")])],1)],1)],1)],1)},r=[]},d4fa:function(e,t,i){"use strict";i.r(t);var a=i("e212"),n=i("787b");for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);i("08d0");var s=i("f0c5"),o=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"68231425",null,!1,a["a"],void 0);t["default"]=o.exports},dd4b:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"uni-datetime-picker"},[i("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.initTimePicker.apply(void 0,arguments)}}},[e._t("default",[i("v-uni-view",{staticClass:"uni-datetime-picker-timebox-pointer",class:{"uni-datetime-picker-disabled":e.disabled,"uni-datetime-picker-timebox":e.border}},[i("v-uni-text",{staticClass:"uni-datetime-picker-text"},[e._v(e._s(e.time))]),e.time?e._e():i("v-uni-view",{staticClass:"uni-datetime-picker-time"},[i("v-uni-text",{staticClass:"uni-datetime-picker-text"},[e._v(e._s(e.selectTimeText))])],1)],1)])],2),e.visible?i("v-uni-view",{staticClass:"uni-datetime-picker-mask",attrs:{id:"mask"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.tiggerTimePicker.apply(void 0,arguments)}}}):e._e(),e.visible?i("v-uni-view",{staticClass:"uni-datetime-picker-popup",class:[e.dateShow&&e.timeShow?"":"fix-nvue-height"],style:e.fixNvueBug},[i("v-uni-view",{staticClass:"uni-title"},[i("v-uni-text",{staticClass:"uni-datetime-picker-text"},[e._v(e._s(e.selectTimeText))])],1),e.dateShow?i("v-uni-view",{staticClass:"uni-datetime-picker__container-box"},[i("v-uni-picker-view",{staticClass:"uni-datetime-picker-view",attrs:{"indicator-style":e.indicatorStyle,value:e.ymd},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindDateChange.apply(void 0,arguments)}}},[i("v-uni-picker-view-column",e._l(e.years,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),i("v-uni-picker-view-column",e._l(e.months,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),i("v-uni-picker-view-column",e._l(e.days,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1)],1),i("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-left"},[e._v("-")]),i("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-right"},[e._v("-")])],1):e._e(),e.timeShow?i("v-uni-view",{staticClass:"uni-datetime-picker__container-box"},[i("v-uni-picker-view",{staticClass:"uni-datetime-picker-view",class:[e.hideSecond?"time-hide-second":""],attrs:{"indicator-style":e.indicatorStyle,value:e.hms},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindTimeChange.apply(void 0,arguments)}}},[i("v-uni-picker-view-column",e._l(e.hours,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),i("v-uni-picker-view-column",e._l(e.minutes,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),e.hideSecond?e._e():i("v-uni-picker-view-column",e._l(e.seconds,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-datetime-picker-item"},[i("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1)],1),i("v-uni-text",{staticClass:"uni-datetime-picker-sign",class:[e.hideSecond?"sign-center":"sign-left"]},[e._v(":")]),e.hideSecond?e._e():i("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-right"},[e._v(":")])],1):e._e(),i("v-uni-view",{staticClass:"uni-datetime-picker-btn"},[i("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clearTime.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[e._v(e._s(e.clearText))])],1),i("v-uni-view",{staticClass:"uni-datetime-picker-btn-group"},[i("v-uni-view",{staticClass:"uni-datetime-picker-cancel",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.tiggerTimePicker.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[e._v(e._s(e.cancelText))])],1),i("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.setTime.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[e._v(e._s(e.okText))])],1)],1)],1)],1):e._e()],1)},n=[]},e212:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return a}));var a={uniIcons:i("461b").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"uni-calendar",on:{mouseleave:function(t){arguments[0]=t=e.$handleEvent(t),e.leaveCale.apply(void 0,arguments)}}},[!e.insert&&e.show?i("v-uni-view",{staticClass:"uni-calendar__mask",class:{"uni-calendar--mask-show":e.aniMaskShow},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.maskClick.apply(void 0,arguments)}}}):e._e(),e.insert||e.show?i("v-uni-view",{staticClass:"uni-calendar__content",class:{"uni-calendar--fixed":!e.insert,"uni-calendar--ani-show":e.aniMaskShow,"uni-calendar__content-mobile":e.aniMaskShow}},[i("v-uni-view",{staticClass:"uni-calendar__header",class:{"uni-calendar__header-mobile":!e.insert}},[i("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.changeMonth("pre")}}},[i("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--left"})],1),i("v-uni-picker",{attrs:{mode:"date",value:e.date,fields:"month"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindDateChange.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-calendar__header-text"},[e._v(e._s((e.nowDate.year||"")+e.yearText+(e.nowDate.month||"")+e.monthText))])],1),i("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.changeMonth("next")}}},[i("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--right"})],1),e.insert?e._e():i("v-uni-view",{staticClass:"dialog-close",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.maskClick.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"dialog-close-plus",attrs:{"data-id":"close"}}),i("v-uni-view",{staticClass:"dialog-close-plus dialog-close-rotate",attrs:{"data-id":"close"}})],1)],1),i("v-uni-view",{staticClass:"uni-calendar__box"},[e.showMonth?i("v-uni-view",{staticClass:"uni-calendar__box-bg"},[i("v-uni-text",{staticClass:"uni-calendar__box-bg-text"},[e._v(e._s(e.nowDate.month))])],1):e._e(),i("v-uni-view",{staticClass:"uni-calendar__weeks",staticStyle:{"padding-bottom":"7px"}},[i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.SUNText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.MONText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.TUEText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.WEDText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.THUText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.FRIText))])],1),i("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[i("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.SATText))])],1)],1),e._l(e.weeks,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-calendar__weeks"},e._l(t,(function(t,a){return i("v-uni-view",{key:a,staticClass:"uni-calendar__weeks-item"},[i("calendar-item",{staticClass:"uni-calendar-item--hook",attrs:{weeks:t,calendar:e.calendar,selected:e.selected,checkHover:e.range},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.choiceDate.apply(void 0,arguments)},handleMouse:function(t){arguments[0]=t=e.$handleEvent(t),e.handleMouse.apply(void 0,arguments)}}})],1)})),1)}))],2),e.insert||e.range||!e.hasTime?e._e():i("v-uni-view",{staticClass:"uni-date-changed uni-calendar--fixed-top",staticStyle:{padding:"0 80px"}},[i("v-uni-view",{staticClass:"uni-date-changed--time-date"},[e._v(e._s(e.tempSingleDate?e.tempSingleDate:e.selectDateText))]),i("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",start:e.timepickerStartTime,end:e.timepickerEndTime,disabled:!e.tempSingleDate,border:!1,"hide-second":e.hideSecond},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1),!e.insert&&e.range&&e.hasTime?i("v-uni-view",{staticClass:"uni-date-changed uni-calendar--fixed-top"},[i("v-uni-view",{staticClass:"uni-date-changed--time-start"},[i("v-uni-view",{staticClass:"uni-date-changed--time-date"},[e._v(e._s(e.tempRange.before?e.tempRange.before:e.startDateText))]),i("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",start:e.timepickerStartTime,border:!1,"hide-second":e.hideSecond,disabled:!e.tempRange.before},model:{value:e.timeRange.startTime,callback:function(t){e.$set(e.timeRange,"startTime",t)},expression:"timeRange.startTime"}})],1),i("v-uni-view",{staticStyle:{"line-height":"50px"}},[i("uni-icons",{attrs:{type:"arrowthinright",color:"#999"}})],1),i("v-uni-view",{staticClass:"uni-date-changed--time-end"},[i("v-uni-view",{staticClass:"uni-date-changed--time-date"},[e._v(e._s(e.tempRange.after?e.tempRange.after:e.endDateText))]),i("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",end:e.timepickerEndTime,border:!1,"hide-second":e.hideSecond,disabled:!e.tempRange.after},model:{value:e.timeRange.endTime,callback:function(t){e.$set(e.timeRange,"endTime",t)},expression:"timeRange.endTime"}})],1)],1):e._e(),e.insert?e._e():i("v-uni-view",{staticClass:"uni-date-changed uni-date-btn--ok"},[i("v-uni-view",{staticClass:"uni-datetime-picker--btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v(e._s(e.confirmText))])],1)],1):e._e()],1)},r=[]},e389:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("ac1f"),i("5319"),i("99af"),i("4d63"),i("c607"),i("2c3e"),i("25f0");var n=a(i("4d55")),r={data:function(){return{datetimerange:[],universityList:[],page:1,limit:10,status:"more",contentText:{contentdown:"查看更多",contentrefresh:"加载中....",contentnomore:"没有更多咯"},appId:"",redirectUri:"",state:"",scrollTop:0,start_date:"",end_date:""}},onLoad:function(e){var t=window.location.href,i=this.getUrlParams(t);i["code"],i["start"];uni.getStorageSync("AccessToken")||this.cont()},onShow:function(){uni.getStorageSync("AccessToken")&&this.getUniversityList()},mounted:function(){uni.getStorageSync("AccessToken")||this.$refs.popup.open()},methods:{getUrlParams:function(e){var t={};return e.replace(/[?&]+([^=&]+)=([^&]*)/gi,(function(e,i,a){t[i]=a})),t},cont:function(){var e=this,t=this.getUrlCode("code"),i=this.getUrlCode("state"),a={code:t,state:i};t&&i&&n.default.wx(a,(function(t){1==t.code?(e.removepath(),uni.showToast({title:t.msg,icon:"none"}),uni.setStorageSync("AccessToken",t.data.token),uni.setStorageSync("openid",t.data.openid),uni.setStorageSync("phone",t.data.phone),e.$refs.popup.close(),e.getUniversityList(),t.data.phone||uni.navigateTo({url:"/pages/wxlogin/registerphone"})):(uni.showToast({title:t.msg,icon:"none"}),e.login())}))},getWxCode:function(){var e=this;n.default.getWxCode({},(function(t){1==t.code&&(e.redirectUri=t.data.redirectUri,e.appId=t.data.appId,e.state=t.data.state)}))},getUniversityList:function(){var e=this,t={limit:this.limit,page:this.page,start_date:this.start_date,end_date:this.end_date};this.status="loading",setTimeout((function(){n.default.Home(t,(function(t){1==t.code&&(e.page=t.data.current_page,e.limit=t.data.per_page,1===e.page?e.universityList=t.data.data:e.universityList=e.universityList.concat(t.data.data),t.data.data.length3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",t,n,a)},getQrCode:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",t,n,a)},getApplyData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",t,n,a)},Home:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/getList",t,n,a)},sendSms:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/wechat/sendSms",t,n,a)},getWxCode:function(e,t,n){c.sendRequest("get",e,"/wechat/login/getWxCode",t,n)},wx:function(e,t,n){c.sendRequest("get",e,"/wechat/login/wx",t,n)},request:function(e,t,n,a){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c.sendRequest("post",t,e,n,a,o)},sendRequest:function(e,t,n,a,c,d){var s="";s="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};d&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,o.default)((0,o.default)({url:i+n,method:e,data:t},u),{},{success:function(e){1!=e.data.code?(-14==e.data.code&&(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),uni.showToast({title:e.data.msg||e.msg,icon:"none"})):a&&a(e.data)}}))}},d=c;t.default=d},"6a49":function(e,t,n){"use strict";n.r(t);var a=n("0601"),o=n("16f6");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var c=n("f0c5"),d=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"44bf1784",null,!1,a["a"],void 0);t["default"]=d.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-wxlogin-wxlogin"],{"0601":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},o=[]},"16f6":function(e,t,n){"use strict";n.r(t);var a=n("31af"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},"31af":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("4d55")),i={data:function(){return{code:"",state:"",state1:"",appId:"",redirectUri:""}},onLoad:function(e){this.checkWeChatCode()},methods:{checkWeChatCode:function(){var e=this;o.default.getWxCode({},(function(t){1==t.code&&(e.redirectUri=t.data.redirectUri,e.appId=t.data.appId,e.state=t.data.state,e.getCode())}))},getCode:function(){var e=encodeURIComponent("https://intp.xingtongworld.com/wechat/");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+this.appId+"&redirect_uri="+e+"&response_type=code&scope=snsapi_userinfo&state="+this.state+"#wechat_redirect"}}};t.default=i},"4d55":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("5530")),i="https://intp.xingtongworld.com",c={baseUrl:i,getJsSdkData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",t,n,a)},getQrCode:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",t,n,a)},getApplyData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",t,n,a)},Home:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/getList",t,n,a)},validateFeePay:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/validateFeePay",t,n,a)},sendSms:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/wechat/sendSms",t,n,a)},getWxCode:function(e,t,n){c.sendRequest("get",e,"/wechat/login/getWxCode",t,n)},wx:function(e,t,n){c.sendRequest("get",e,"/wechat/login/wx",t,n)},request:function(e,t,n,a){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c.sendRequest("post",t,e,n,a,o)},sendRequest:function(e,t,n,a,c,d){var s="";s="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};d&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,o.default)((0,o.default)({url:i+n,method:e,data:t},u),{},{success:function(e){1!=e.data.code&&-8!=e.data.code?(-14!=e.data.code&&-997!=e.data.code||(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),"/api/InvoiceIssuance/validateFeePay"!==n&&uni.showToast({title:e.data.msg||e.msg,icon:"none"})):a&&a(e.data)}}))}},d=c;t.default=d},"6a49":function(e,t,n){"use strict";n.r(t);var a=n("0601"),o=n("16f6");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var c=n("f0c5"),d=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"44bf1784",null,!1,a["a"],void 0);t["default"]=d.exports}}]); \ No newline at end of file