1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-add~pages-index-realname"],{"0c0c":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uIcon:i("9eb7").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{},[i("v-uni-view",{staticClass:"u-navbar",class:{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom},style:[t.navbarStyle]},[i("v-uni-view",{staticClass:"u-status-bar",style:{height:t.statusBarHeight+"px"}}),i("v-uni-view",{staticClass:"u-navbar-inner",style:[t.navbarInnerStyle]},[t.isBack?i("v-uni-view",{staticClass:"u-back-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[i("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize}})],1),t.backText?i("v-uni-view",{staticClass:"u-icon-wrap u-back-text u-line-1",style:[t.backTextStyle]},[t._v(t._s(t.backText))]):t._e()],1):t._e(),t.title?i("v-uni-view",{staticClass:"u-navbar-content-title",style:[t.titleStyle]},[i("v-uni-view",{staticClass:"u-title u-line-1",style:{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}},[t._v(t._s(t.title))])],1):t._e(),i("v-uni-view",{staticClass:"u-slot-content"},[t._t("default")],2),i("v-uni-view",{staticClass:"u-slot-right"},[t._t("right")],2)],1)],1),t.isFixed&&!t.immersive?i("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},r=[]},"1b98":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("c7eb")),r=n(i("1da1"));i("a9e3"),i("d81d"),i("d3b7"),i("14d9"),i("ac1f"),i("00b4"),i("caad"),i("a434"),i("5319");var o={name:"u-upload",props:{showUploadList:{type:Boolean,default:!0},action:{type:String,default:""},maxCount:{type:[String,Number],default:52},showProgress:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},imageMode:{type:String,default:"aspectFill"},header:{type:Object,default:function(){return{}}},formData:{type:Object,default:function(){return{}}},name:{type:String,default:"file"},sizeType:{type:Array,default:function(){return["original","compressed"]}},sourceType:{type:Array,default:function(){return["album","camera"]}},previewFullImage:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},deletable:{type:Boolean,default:!0},maxSize:{type:[String,Number],default:Number.MAX_VALUE},fileList:{type:Array,default:function(){return[]}},uploadText:{type:String,default:"选择图片"},autoUpload:{type:Boolean,default:!0},showTips:{type:Boolean,default:!0},customBtn:{type:Boolean,default:!1},width:{type:[String,Number],default:200},height:{type:[String,Number],default:200},delBgColor:{type:String,default:"#fa3534"},delColor:{type:String,default:"#ffffff"},delIcon:{type:String,default:"close"},toJson:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeRemove:{type:Function,default:null},limitType:{type:Array,default:function(){return["png","jpg","jpeg","webp","gif","image"]}},index:{type:[Number,String],default:""}},mounted:function(){},data:function(){return{lists:[],isInCount:!0,uploading:!1}},watch:{fileList:{immediate:!0,handler:function(t){var e=this;t.map((function(t){var i=e.lists.some((function(e){return e.url==t.url}));!i&&e.lists.push({url:t.url,error:!1,progress:100})}))}},lists:function(t){this.$emit("on-list-change",t,this.index)}},methods:{clear:function(){this.lists=[]},reUpload:function(){this.uploadFile()},selectFile:function(){var t=this;if(!this.disabled){this.name;var e=this.maxCount,i=this.multiple,n=this.maxSize,a=this.sizeType,r=this.lists,o=(this.camera,this.compressed,this.maxDuration,this.sourceType),s=null,u=e-r.length;s=new Promise((function(t,e){uni.chooseImage({count:i?u>9?9:u:1,sourceType:o,sizeType:a,success:t,fail:e})})),s.then((function(a){var o=t.lists.length;a.tempFiles.map((function(a,o){if(t.checkFileExt(a)&&(i||!(o>=1)))if(a.size>n)t.$emit("on-oversize",a,t.lists,t.index),t.showToast("超出允许的文件大小");else{if(e<=r.length)return t.$emit("on-exceed",a,t.lists,t.index),void t.showToast("超出最大允许的文件个数");r.push({url:a.path,progress:0,error:!1,file:a})}})),t.$emit("on-choose-complete",t.lists,t.index),t.autoUpload&&t.uploadFile(o)})).catch((function(e){t.$emit("on-choose-fail",e)}))}},showToast:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(this.showTips||e)&&uni.showToast({title:t,icon:"none"})},upload:function(){this.uploadFile()},retry:function(t){this.lists[t].progress=0,this.lists[t].error=!1,this.lists[t].response=null,uni.showLoading({title:"重新上传"}),this.uploadFile(t)},uploadFile:function(){var t=arguments,e=this;return(0,r.default)((0,a.default)().mark((function i(){var n,r,o;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:0,!e.disabled){i.next=3;break}return i.abrupt("return");case 3:if(!e.uploading){i.next=5;break}return i.abrupt("return");case 5:if(!(n>=e.lists.length)){i.next=8;break}return e.$emit("on-uploaded",e.lists,e.index),i.abrupt("return");case 8:if(100!=e.lists[n].progress){i.next=11;break}return 0==e.autoUpload&&e.uploadFile(n+1),i.abrupt("return");case 11:if(!e.beforeUpload||"function"!==typeof e.beforeUpload){i.next=22;break}if(r=e.beforeUpload.bind(e.$u.$parent.call(e))(n,e.lists),!r||"function"!==typeof r.then){i.next=18;break}return i.next=16,r.then((function(t){})).catch((function(t){return e.uploadFile(n+1)}));case 16:i.next=22;break;case 18:if(!1!==r){i.next=22;break}return i.abrupt("return",e.uploadFile(n+1));case 22:if(e.action){i.next=25;break}return e.showToast("请配置上传地址",!0),i.abrupt("return");case 25:e.lists[n].error=!1,e.uploading=!0,o=uni.uploadFile({url:e.action,filePath:e.lists[n].url,name:e.name,formData:e.formData,header:e.header,success:function(t){var i=e.toJson&&e.$u.test.jsonString(t.data)?JSON.parse(t.data):t.data;[200,201,204].includes(t.statusCode)?(e.lists[n].response=i,e.lists[n].progress=100,e.lists[n].error=!1,e.$emit("on-success",i,n,e.lists,e.index)):e.uploadError(n,i)},fail:function(t){e.uploadError(n,t)},complete:function(t){uni.hideLoading(),e.uploading=!1,e.uploadFile(n+1),e.$emit("on-change",t,n,e.lists,e.index)}}),o.onProgressUpdate((function(t){t.progress>0&&(e.lists[n].progress=t.progress,e.$emit("on-progress",t,n,e.lists,e.index))}));case 29:case"end":return i.stop()}}),i)})))()},uploadError:function(t,e){this.lists[t].progress=0,this.lists[t].error=!0,this.lists[t].response=null,this.$emit("on-error",e,t,this.lists,this.index),this.showToast("上传失败,请重试")},deleteItem:function(t){var e=this;uni.showModal({title:"提示",content:"您确定要删除此项吗?",success:function(){var i=(0,r.default)((0,a.default)().mark((function i(n){var r;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!n.confirm){i.next=12;break}if(!e.beforeRemove||"function"!==typeof e.beforeRemove){i.next=11;break}if(r=e.beforeRemove.bind(e.$u.$parent.call(e))(t,e.lists),!r||"function"!==typeof r.then){i.next=8;break}return i.next=6,r.then((function(i){e.handlerDeleteItem(t)})).catch((function(t){e.showToast("已终止移除")}));case 6:i.next=9;break;case 8:!1===r?e.showToast("已终止移除"):e.handlerDeleteItem(t);case 9:i.next=12;break;case 11:e.handlerDeleteItem(t);case 12:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}()})},handlerDeleteItem:function(t){this.lists[t].process<100&&this.lists[t].process>0&&"undefined"!=typeof this.lists[t].uploadTask&&this.lists[t].uploadTask.abort(),this.lists.splice(t,1),this.$forceUpdate(),this.$emit("on-remove",t,this.lists,this.index),this.showToast("移除成功")},remove:function(t){t>=0&&t<this.lists.length&&(this.lists.splice(t,1),this.$emit("on-list-change",this.lists,this.index))},doPreviewImage:function(t,e){var i=this;if(this.previewFullImage){var n=this.lists.map((function(t){return t.url||t.path}));uni.previewImage({urls:n,current:t,success:function(){i.$emit("on-preview",t,i.lists,i.index)},fail:function(){uni.showToast({title:"预览图片失败",icon:"none"})}})}},checkFileExt:function(t){var e,i;return i=t.name.replace(/.+\./,"").toLowerCase(),e=this.limitType.some((function(t){return t.toLowerCase()===i})),e||this.showToast("不允许选择".concat(i,"格式的文件")),e}}};e.default=o},"2ec0":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uIcon:i("9eb7").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():i("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad,"show-menu-by-longpress":t.showMenuByLongpress},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?i("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?t._t("loading"):i("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?i("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):i("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},r=[]},"35b7":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-upload[data-v-5068f7a0]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.u-list-item[data-v-5068f7a0]{width:%?200?%;height:%?200?%;overflow:hidden;margin:%?10?%;background:#f4f5f6;position:relative;border-radius:%?10?%;display:flex;align-items:center;justify-content:center}.u-preview-wrap[data-v-5068f7a0]{border:1px solid #ebecee}.u-add-wrap[data-v-5068f7a0]{flex-direction:column;color:#606266;font-size:%?26?%}.u-add-tips[data-v-5068f7a0]{margin-top:%?20?%;line-height:%?40?%}.u-add-wrap__hover[data-v-5068f7a0]{background-color:#ebecee}.u-preview-image[data-v-5068f7a0]{display:block;width:100%;height:100%;border-radius:%?10?%}.u-delete-icon[data-v-5068f7a0]{position:absolute;top:%?10?%;right:%?10?%;z-index:10;background-color:#fa3534;border-radius:%?100?%;width:%?44?%;height:%?44?%;display:flex;flex-direction:row;align-items:center;justify-content:center}.u-icon[data-v-5068f7a0]{display:flex;flex-direction:row;align-items:center;justify-content:center}.u-progress[data-v-5068f7a0]{position:absolute;bottom:%?10?%;left:%?8?%;right:%?8?%;z-index:9;width:auto}.u-error-btn[data-v-5068f7a0]{color:#fff;background-color:#fa3534;font-size:%?20?%;padding:4px 0;text-align:center;position:absolute;bottom:0;left:0;right:0;z-index:9;line-height:1}',""]),t.exports=e},"3bbc":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-image[data-v-28c068b7]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-28c068b7]{width:100%;height:100%}.u-image__loading[data-v-28c068b7], .u-image__error[data-v-28c068b7]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909399;font-size:%?46?%}',""]),t.exports=e},"3d45":function(t,e,i){"use strict";function n(t,e,i){this.$children.map((function(a){t===a.$options.name?a.$emit.apply(a,[e].concat(i)):n.apply(a,[t,e].concat(i))}))}i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d81d"),i("99af");var a={methods:{dispatch:function(t,e,i){var n=this.$parent||this.$root,a=n.$options.name;while(n&&(!a||a!==t))n=n.$parent,n&&(a=n.$options.name);n&&n.$emit.apply(n,[e].concat(i))},broadcast:function(t,e,i){n.call(this,t,e,i)}}};e.default=a},"4beb":function(t,e,i){"use strict";i.r(e);var n=i("1b98"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"4df8":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n=uni.getSystemInfoSync(),a={},r={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:a,statusBarHeight:n.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(n.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(n.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};e.default=r},"55fa":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-progress[data-v-62fcb81c]{overflow:hidden;height:15px;display:inline-flex;align-items:center;width:100%;border-radius:%?100?%}.u-active[data-v-62fcb81c]{width:0;height:100%;align-items:center;display:flex;flex-direction:row;justify-items:flex-end;justify-content:space-around;font-size:%?20?%;color:#fff;transition:all .4s ease}.u-striped[data-v-62fcb81c]{background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-size:39px 39px}.u-striped-active[data-v-62fcb81c]{-webkit-animation:progress-stripes-data-v-62fcb81c 2s linear infinite;animation:progress-stripes-data-v-62fcb81c 2s linear infinite}@-webkit-keyframes progress-stripes-data-v-62fcb81c{0%{background-position:0 0}100%{background-position:39px 0}}@keyframes progress-stripes-data-v-62fcb81c{0%{background-position:0 0}100%{background-position:39px 0}}',""]),t.exports=e},"59dd":function(t,e,i){"use strict";var n=i("6127"),a=i.n(n);a.a},6127:function(t,e,i){var n=i("55fa");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("1ecbfc36",n,!0,{sourceMap:!1,shadowMode:!1})},"6d97":function(t,e,i){"use strict";var n=i("bdc1"),a=i.n(n);a.a},"72b0":function(t,e,i){var n=i("35b7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7d464ea2",n,!0,{sourceMap:!1,shadowMode:!1})},"7e2a":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uIcon:i("9eb7").default,uLineProgress:i("a662").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.disabled?t._e():i("v-uni-view",{staticClass:"u-upload"},[t._l(t.lists,(function(e,n){return t.showUploadList?i("v-uni-view",{key:n,staticClass:"u-list-item u-preview-wrap",style:{width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)}},[t.deletable?i("v-uni-view",{staticClass:"u-delete-icon",style:{background:t.delBgColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.deleteItem(n)}}},[i("u-icon",{staticClass:"u-icon",attrs:{name:t.delIcon,size:"20",color:t.delColor}})],1):t._e(),t.showProgress&&e.progress>0&&!e.error?i("u-line-progress",{staticClass:"u-progress",attrs:{"show-percent":!1,height:"16",percent:e.progress}}):t._e(),e.error?i("v-uni-view",{staticClass:"u-error-btn",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.retry(n)}}},[t._v("点击重试")]):t._e(),e.isImage?t._e():i("v-uni-image",{staticClass:"u-preview-image",attrs:{src:e.url||e.path,mode:t.imageMode},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.doPreviewImage(e.url||e.path,n)}}})],1):t._e()})),t._t("file",null,{file:t.lists}),t.maxCount>t.lists.length?i("v-uni-view",{staticStyle:{display:"inline-block"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectFile.apply(void 0,arguments)}}},[t._t("addBtn"),t.customBtn?t._e():i("v-uni-view",{staticClass:"u-list-item u-add-wrap",style:{width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)},attrs:{"hover-class":"u-add-wrap__hover","hover-stay-time":"150"}},[i("u-icon",{staticClass:"u-add-btn",attrs:{name:"plus",size:"40"}}),i("v-uni-view",{staticClass:"u-add-tips"},[t._v(t._s(t.uploadText))])],1)],2):t._e()],2)},r=[]},"89ac":function(t,e,i){"use strict";i.r(e);var n=i("b5752"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"8a10":function(t,e,i){"use strict";i.r(e);var n=i("2ec0"),a=i("89ac");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("6d97");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"28c068b7",null,!1,n["a"],void 0);e["default"]=s.exports},"934b":function(t,e,i){var n=i("a68f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("50442f4e",n,!0,{sourceMap:!1,shadowMode:!1})},9432:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("498a");var a=n(i("3d45")),r={name:"u-input",mixins:[a.default],props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:"请输入内容"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},placeholderStyle:{type:String,default:"color: #c0c4cc;"},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},autoHeight:{type:Boolean,default:!0},selectOpen:{type:Boolean,default:!1},height:{type:[Number,String],default:""},clearable:{type:Boolean,default:!0},cursorSpacing:{type:[Number,String],default:0},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},trim:{type:Boolean,default:!0},showConfirmbar:{type:Boolean,default:!0}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(t,e){this.defaultValue=t,t!=e&&"select"==this.type&&this.handleInput({detail:{value:t}})}},computed:{inputMaxlength:function(){return Number(this.maxlength)},getStyle:function(){var t={};return t.minHeight=this.height?this.height+"rpx":"textarea"==this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",t=Object.assign(t,this.customStyle),t},getCursorSpacing:function(){return Number(this.cursorSpacing)},uSelectionStart:function(){return String(this.selectionStart)},uSelectionEnd:function(){return String(this.selectionEnd)}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(t){var e=this,i=t.detail.value;this.trim&&(i=this.$u.trim(i)),this.$emit("input",i),this.defaultValue=i,setTimeout((function(){e.dispatch("u-form-item","on-form-change",i)}),40)},handleBlur:function(t){var e=this;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",t.detail.value),setTimeout((function(){e.dispatch("u-form-item","on-form-blur",t.detail.value)}),40)},onFormItemError:function(t){this.validateState=t},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};e.default=r},9907:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={name:"u-line-progress",props:{round:{type:Boolean,default:!0},type:{type:String,default:""},activeColor:{type:String,default:"#19be6b"},inactiveColor:{type:String,default:"#ececec"},percent:{type:Number,default:0},showPercent:{type:Boolean,default:!0},height:{type:[Number,String],default:28},striped:{type:Boolean,default:!1},stripedActive:{type:Boolean,default:!1}},data:function(){return{}},computed:{progressStyle:function(){var t={};return t.width=this.percent+"%",this.activeColor&&(t.backgroundColor=this.activeColor),t}},methods:{}};e.default=n},"9b10":function(t,e,i){"use strict";i.r(e);var n=i("7e2a"),a=i("4beb");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("d7b3");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"5068f7a0",null,!1,n["a"],void 0);e["default"]=s.exports},"9bd6":function(t,e,i){"use strict";i.r(e);var n=i("9907"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},a662:function(t,e,i){"use strict";i.r(e);var n=i("c4a4"),a=i("9bd6");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("59dd");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"62fcb81c",null,!1,n["a"],void 0);e["default"]=s.exports},a68f:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-input[data-v-23939e4b]{position:relative;flex:1;display:flex;flex-direction:row}.u-input__input[data-v-23939e4b]{font-size:%?28?%;color:#303133;flex:1}.u-input__textarea[data-v-23939e4b]{width:auto;font-size:%?28?%;color:#303133;padding:%?10?% 0;line-height:normal;flex:1}.u-input--border[data-v-23939e4b]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-input--error[data-v-23939e4b]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-23939e4b]{margin-left:%?10?%}.u-input__right-icon--select[data-v-23939e4b]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.u-input__right-icon--select--reverse[data-v-23939e4b]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},af4c:function(t,e,i){var n=i("c192");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("658f3248",n,!0,{sourceMap:!1,shadowMode:!1})},b36e:function(t,e,i){"use strict";var n=i("af4c"),a=i.n(n);a.a},b5752:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(t){t?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=n},bdc1:function(t,e,i){var n=i("3bbc");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("b92e9198",n,!0,{sourceMap:!1,shadowMode:!1})},bde1:function(t,e,i){"use strict";i.r(e);var n=i("0c0c"),a=i("cee4");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("b36e");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"1d7f90d0",null,!1,n["a"],void 0);e["default"]=s.exports},c192:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-navbar[data-v-1d7f90d0]{width:100%}.u-navbar-fixed[data-v-1d7f90d0]{position:fixed;left:0;right:0;top:0;z-index:991}.u-status-bar[data-v-1d7f90d0]{width:100%}.u-navbar-inner[data-v-1d7f90d0]{display:flex;flex-direction:row;justify-content:space-between;position:relative;align-items:center}.u-back-wrap[data-v-1d7f90d0]{display:flex;flex-direction:row;align-items:center;flex:1;flex-grow:0;padding:%?14?% %?14?% %?14?% %?24?%}.u-back-text[data-v-1d7f90d0]{padding-left:%?4?%;font-size:%?30?%}.u-navbar-content-title[data-v-1d7f90d0]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1;position:absolute;left:0;right:0;height:%?60?%;text-align:center;flex-shrink:0}.u-navbar-centent-slot[data-v-1d7f90d0]{flex:1}.u-title[data-v-1d7f90d0]{line-height:%?60?%;font-size:%?32?%;flex:1}.u-navbar-right[data-v-1d7f90d0]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.u-slot-content[data-v-1d7f90d0]{flex:1;display:flex;flex-direction:row;align-items:center}',""]),t.exports=e},c289:function(t,e,i){"use strict";var n=i("934b"),a=i.n(n);a.a},c4a4:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-progress",style:{borderRadius:t.round?"100rpx":0,height:t.height+"rpx",backgroundColor:t.inactiveColor}},[i("v-uni-view",{staticClass:"u-active",class:[t.type?"u-type-"+t.type+"-bg":"",t.striped?"u-striped":"",t.striped&&t.stripedActive?"u-striped-active":""],style:[t.progressStyle]},[t.$slots.default||t.$slots.$default?t._t("default"):t.showPercent?[t._v(t._s(t.percent+"%"))]:t._e()],2)],1)},a=[]},cee4:function(t,e,i){"use strict";i.r(e);var n=i("4df8"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},d7b3:function(t,e,i){"use strict";var n=i("72b0"),a=i.n(n);a.a},f2d8:function(t,e,i){"use strict";i.r(e);var n=i("f949"),a=i("f72b");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("c289");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"23939e4b",null,!1,n["a"],void 0);e["default"]=s.exports},f72b:function(t,e,i){"use strict";i.r(e);var n=i("9432"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},f949:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uIcon:i("9eb7").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-input",class:{"u-input--border":t.border,"u-input--error":t.validateState},style:{padding:"0 "+(t.border?20:0)+"rpx",borderColor:t.borderColor,textAlign:t.inputAlign},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.inputClick.apply(void 0,arguments)}}},["textarea"==t.type?i("v-uni-textarea",{staticClass:"u-input__input u-input__textarea",style:[t.getStyle],attrs:{value:t.defaultValue,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled,maxlength:t.inputMaxlength,fixed:t.fixed,focus:t.focus,autoHeight:t.autoHeight,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"cursor-spacing":t.getCursorSpacing,"show-confirm-bar":t.showConfirmbar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}):i("v-uni-input",{staticClass:"u-input__input",style:[t.getStyle],attrs:{type:"password"==t.type?"text":t.type,value:t.defaultValue,password:"password"==t.type&&!t.showPassword,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.inputMaxlength,focus:t.focus,confirmType:t.confirmType,"cursor-spacing":t.getCursorSpacing,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"show-confirm-bar":t.showConfirmbar},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"u-input__right-icon u-flex"},[t.clearable&&""!=t.value&&t.focused?i("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}},[i("u-icon",{attrs:{size:"32",name:"close-circle-fill",color:"#c0c4cc"}})],1):t._e(),t.passwordIcon&&"password"==t.type?i("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item"},[i("u-icon",{attrs:{size:"32",name:t.showPassword?"eye-fill":"eye",color:"#c0c4cc"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPassword=!t.showPassword}}})],1):t._e(),"select"==t.type?i("v-uni-view",{staticClass:"u-input__right-icon--select u-input__right-icon__item",class:{"u-input__right-icon--select--reverse":t.selectOpen}},[i("u-icon",{attrs:{name:"arrow-down-fill",size:"26",color:"#c0c4cc"}})],1):t._e()],1)],1)},r=[]}}]);
|