You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
13 KiB
1 lines
13 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Information-Information~pages-OrderDetails-OrderDetails~pages-warehouse-buy"],{"1ec1":function(e,t,i){"use strict";i.r(t);var a=i("f9b9"),u=i("feb0");for(var o in u)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return u[e]}))}(o);i("540b");var n=i("f0c5"),s=Object(n["a"])(u["default"],a["b"],a["c"],!1,null,"5f2310ee",null,!1,a["a"],void 0);t["default"]=s.exports},"3ef6":function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={watch:{accept:{immediate:!0,handler:function(e){"all"!==e&&"media"!==e||uni.$u.error("只有微信小程序才支持把accept配置为all、media之一")}}}};t.default=a},"3f8e":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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-5f2310ee], uni-scroll-view[data-v-5f2310ee], uni-swiper-item[data-v-5f2310ee]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-upload[data-v-5f2310ee]{display:flex;flex-direction:column;flex:1}.u-upload__wrap[data-v-5f2310ee]{display:flex;flex-direction:row;flex-wrap:wrap;flex:1}.u-upload__wrap__preview[data-v-5f2310ee]{border-radius:2px;margin:0 8px 8px 0;position:relative;overflow:hidden;display:flex;flex-direction:row}.u-upload__wrap__preview__image[data-v-5f2310ee]{width:80px;height:80px}.u-upload__wrap__preview__other[data-v-5f2310ee]{width:80px;height:80px;background-color:#f2f2f2;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.u-upload__wrap__preview__other__text[data-v-5f2310ee]{font-size:11px;color:#909193;margin-top:2px}.u-upload__deletable[data-v-5f2310ee]{position:absolute;top:0;right:0;background-color:#373737;height:14px;width:14px;display:flex;flex-direction:row;border-bottom-left-radius:100px;align-items:center;justify-content:center;z-index:3}.u-upload__deletable__icon[data-v-5f2310ee]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7);top:0;right:0;top:1px;right:0}.u-upload__success[data-v-5f2310ee]{position:absolute;bottom:0;right:0;display:flex;flex-direction:row;border-style:solid;border-top-color:transparent;border-left-color:transparent;border-bottom-color:#5ac725;border-right-color:#5ac725;border-width:9px;align-items:center;justify-content:center}.u-upload__success__icon[data-v-5f2310ee]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7);bottom:-10px;right:-10px}.u-upload__status[data-v-5f2310ee]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);display:flex;flex-direction:column;align-items:center;justify-content:center}.u-upload__status__icon[data-v-5f2310ee]{position:relative;z-index:1}.u-upload__status__message[data-v-5f2310ee]{font-size:12px;color:#fff;margin-top:5px}.u-upload__button[data-v-5f2310ee]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:80px;background-color:#f4f5f7;border-radius:2px;margin:0 8px 8px 0;box-sizing:border-box}.u-upload__button__text[data-v-5f2310ee]{font-size:11px;color:#909193;margin-top:2px}.u-upload__button--hover[data-v-5f2310ee]{background-color:#e6e7e9}.u-upload__button--disabled[data-v-5f2310ee]{opacity:.5}',""]),e.exports=t},"540b":function(e,t,i){"use strict";var a=i("f42c"),u=i.n(a);u.a},"65de":function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("d81d"),i("ac1f"),i("00b4"),i("d3b7"),i("4de4");var u=i("b237"),o=a(i("3ef6")),n=a(i("dc49")),s={name:"u-upload",mixins:[uni.$u.mpMixin,uni.$u.mixin,o.default,n.default],data:function(){return{lists:[],isInCount:!0}},watch:{fileList:{immediate:!0,handler:function(){this.formatFileList()}}},methods:{formatFileList:function(){var e=this,t=this.fileList,i=void 0===t?[]:t,a=this.maxCount,u=i.map((function(t){return Object.assign(Object.assign({},t),{isImage:"image"===e.accept||uni.$u.test.image(t.url||t.thumb),isVideo:"video"===e.accept||uni.$u.test.video(t.url||t.thumb),deletable:"boolean"===typeof t.deletable?t.deletable:e.deletable})}));this.lists=u,this.isInCount=u.length<a},chooseFile:function(){var e=this,t=this.maxCount,i=this.multiple,a=this.lists,o=this.disabled;if(!o){var n;try{n=uni.$u.test.array(this.capture)?this.capture:this.capture.split(",")}catch(s){n=[]}(0,u.chooseFile)(Object.assign({accept:this.accept,multiple:this.multiple,capture:n,compressed:this.compressed,maxDuration:this.maxDuration,sizeType:this.sizeType,camera:this.camera},{maxCount:t-a.length})).then((function(t){e.onBeforeRead(i?t:t[0])})).catch((function(t){e.$emit("error",t)}))}},onBeforeRead:function(e){var t=this,i=this.beforeRead,a=this.useBeforeRead,u=!0;uni.$u.test.func(i)&&(u=i(e,this.getDetail())),a&&(u=new Promise((function(i,a){t.$emit("beforeRead",Object.assign(Object.assign({file:e},t.getDetail()),{callback:function(e){e?i():a()}}))}))),u&&(uni.$u.test.promise(u)?u.then((function(i){return t.onAfterRead(i||e)})):this.onAfterRead(e))},getDetail:function(e){return{name:this.name,index:null==e?this.fileList.length:e}},onAfterRead:function(e){var t=this.maxSize,i=this.afterRead,a=Array.isArray(e)?e.some((function(e){return e.size>t})):e.size>t;a?this.$emit("oversize",Object.assign({file:e},this.getDetail())):("function"===typeof i&&i(e,this.getDetail()),this.$emit("afterRead",Object.assign({file:e},this.getDetail())))},deleteItem:function(e){this.$emit("delete",Object.assign(Object.assign({},this.getDetail(e)),{file:this.fileList[e]}))},onPreviewImage:function(e){var t=this;e.isImage&&this.previewFullImage&&uni.previewImage({urls:this.lists.filter((function(e){return"image"===t.accept||uni.$u.test.image(e.url||e.thumb)})).map((function(e){return e.url||e.thumb})),current:e.url||e.thumb,fail:function(){uni.$u.toast("预览图片失败")}})},onPreviewVideo:function(e){if(this.data.previewFullImage){var t=e.currentTarget.dataset.index,i=this.data.lists;wx.previewMedia({sources:i.filter((function(e){return isVideoFile(e)})).map((function(e){return Object.assign(Object.assign({},e),{type:"video"})})),current:t,fail:function(){uni.$u.toast("预览视频失败")}})}},onClickPreview:function(e){var t=e.currentTarget.dataset.index,i=this.data.lists[t];this.$emit("clickPreview",Object.assign(Object.assign({},i),this.getDetail(t)))}}};t.default=s},b237:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseFile=function(e){var t=e.accept,i=e.multiple,a=e.capture,s=e.compressed,r=e.maxDuration,l=e.sizeType,d=e.camera,c=e.maxCount;return new Promise((function(e,p){switch(t){case"image":uni.chooseImage({count:i?Math.min(c,9):1,sourceType:a,sizeType:l,success:function(t){return e(function(e){return e.tempFiles.map((function(e){return(0,u.default)((0,u.default)({},o(e,["path"])),{},{type:"image",url:e.path,thumb:e.path,size:e.size,name:e.name})}))}(t))},fail:p});break;case"video":uni.chooseVideo({sourceType:a,compressed:s,maxDuration:r,camera:d,success:function(t){return e(function(e){return[(0,u.default)((0,u.default)({},o(e,["tempFilePath","thumbTempFilePath","errMsg"])),{},{type:"video",url:e.tempFilePath,thumb:e.thumbTempFilePath,size:e.size,name:e.name})]}(t))},fail:p});break;case"file":uni.chooseFile({count:i?c:1,type:t,success:function(t){return e(n(t))},fail:p});break;default:uni.chooseFile({count:i?c:1,type:"all",success:function(t){return e(n(t))},fail:p})}}))};var u=a(i("5530"));function o(e,t){return["[object Object]","[object File]"].includes(Object.prototype.toString.call(e))?Object.keys(e).reduce((function(i,a){return t.includes(a)||(i[a]=e[a]),i}),{}):{}}function n(e){return e.tempFiles.map((function(e){return(0,u.default)((0,u.default)({},o(e,["path"])),{},{url:e.path,size:e.size,name:e.name,type:e.type})}))}i("caad"),i("d3b7"),i("13d5"),i("b64b"),i("2532"),i("d81d")},dc49:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("a9e3");var a={props:{accept:{type:String,default:uni.$u.props.upload.accept},capture:{type:[String,Array],default:uni.$u.props.upload.capture},compressed:{type:Boolean,default:uni.$u.props.upload.compressed},camera:{type:String,default:uni.$u.props.upload.camera},maxDuration:{type:Number,default:uni.$u.props.upload.maxDuration},uploadIcon:{type:String,default:uni.$u.props.upload.uploadIcon},uploadIconColor:{type:String,default:uni.$u.props.upload.uploadIconColor},useBeforeRead:{type:Boolean,default:uni.$u.props.upload.useBeforeRead},afterRead:{type:Function,default:null},beforeRead:{type:Function,default:null},previewFullImage:{type:Boolean,default:uni.$u.props.upload.previewFullImage},maxCount:{type:[String,Number],default:uni.$u.props.upload.maxCount},disabled:{type:Boolean,default:uni.$u.props.upload.disabled},imageMode:{type:String,default:uni.$u.props.upload.imageMode},name:{type:String,default:uni.$u.props.upload.name},sizeType:{type:Array,default:uni.$u.props.upload.sizeType},multiple:{type:Boolean,default:uni.$u.props.upload.multiple},deletable:{type:Boolean,default:uni.$u.props.upload.deletable},maxSize:{type:[String,Number],default:uni.$u.props.upload.maxSize},fileList:{type:Array,default:uni.$u.props.upload.fileList},uploadText:{type:String,default:uni.$u.props.upload.uploadText},width:{type:[String,Number],default:uni.$u.props.upload.width},height:{type:[String,Number],default:uni.$u.props.upload.height},previewImage:{type:Boolean,default:uni.$u.props.upload.previewImage}}};t.default=a},f42c:function(e,t,i){var a=i("3f8e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var u=i("4f06").default;u("30c3cdd9",a,!0,{sourceMap:!1,shadowMode:!1})},f9b9:function(e,t,i){"use strict";i.d(t,"b",(function(){return u})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var a={uIcon:i("63a6").default,uLoadingIcon:i("611f").default},u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"u-upload",style:[e.$u.addStyle(e.customStyle)]},[i("v-uni-view",{staticClass:"u-upload__wrap"},[e.previewImage?e._l(e.lists,(function(t,a){return i("v-uni-view",{key:a,staticClass:"u-upload__wrap__preview"},[t.isImage||t.type&&"image"===t.type?i("v-uni-image",{staticClass:"u-upload__wrap__preview__image",style:[{width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}],attrs:{src:t.thumb||t.url,mode:e.imageMode},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.onPreviewImage(t)}}}):i("v-uni-view",{staticClass:"u-upload__wrap__preview__other"},[i("u-icon",{attrs:{color:"#80CBF9",size:"26",name:t.isVideo||t.type&&"video"===t.type?"movie":"folder"}}),i("v-uni-text",{staticClass:"u-upload__wrap__preview__other__text"},[e._v(e._s(t.isVideo||t.type&&"video"===t.type?"视频":"文件"))])],1),"uploading"===t.status||"failed"===t.status?i("v-uni-view",{staticClass:"u-upload__status"},[i("v-uni-view",{staticClass:"u-upload__status__icon"},["failed"===t.status?i("u-icon",{attrs:{name:"close-circle",color:"#ffffff",size:"25"}}):i("u-loading-icon",{attrs:{size:"22",mode:"circle",color:"#ffffff"}})],1),t.message?i("v-uni-text",{staticClass:"u-upload__status__message"},[e._v(e._s(t.message))]):e._e()],1):e._e(),"uploading"!==t.status&&(e.deletable||t.deletable)?i("v-uni-view",{staticClass:"u-upload__deletable",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.deleteItem(a)}}},[i("v-uni-view",{staticClass:"u-upload__deletable__icon"},[i("u-icon",{attrs:{name:"close",color:"#ffffff",size:"10"}})],1)],1):e._e(),"success"===t.status?i("v-uni-view",{staticClass:"u-upload__success"},[i("v-uni-view",{staticClass:"u-upload__success__icon"},[i("u-icon",{attrs:{name:"checkmark",color:"#ffffff",size:"12"}})],1)],1):e._e()],1)})):e._e(),e.isInCount?[e.$slots.default||e.$slots.$default?i("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseFile.apply(void 0,arguments)}}},[e._t("default")],2):i("v-uni-view",{staticClass:"u-upload__button",class:[e.disabled&&"u-upload__button--disabled"],style:[{width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}],attrs:{"hover-class":e.disabled?"":"u-upload__button--hover","hover-stay-time":"150"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseFile.apply(void 0,arguments)}}},[i("u-icon",{attrs:{name:e.uploadIcon,size:"26",color:e.uploadIconColor}}),e.uploadText?i("v-uni-text",{staticClass:"u-upload__button__text"},[e._v(e._s(e.uploadText))]):e._e()],1)]:e._e()],2)],1)},o=[]},feb0:function(e,t,i){"use strict";i.r(t);var a=i("65de"),u=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=u.a}}]); |