pages-profile-personPhoto.77b68d72.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-profile-personPhoto"],{"0e36":function(t,a,o){"use strict";o.r(a);var e=o("6991"),r=o("88d4");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(a,t,(function(){return r[t]}))}(i);o("ebe3");var n=o("f0c5"),d=Object(n["a"])(r["default"],e["b"],e["c"],!1,null,"9151f808",null,!1,e["a"],void 0);a["default"]=d.exports},4367:function(t,a,o){var e=o("d746");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var r=o("4f06").default;r("2ea364b9",e,!0,{sourceMap:!1,shadowMode:!1})},4759:function(t,a,o){var e=o("6a20");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var r=o("4f06").default;r("c36d2976",e,!0,{sourceMap:!1,shadowMode:!1})},"53f8":function(t,a,o){"use strict";o.r(a);var e=o("cfa3"),r=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){o.d(a,t,(function(){return e[t]}))}(i);a["default"]=r.a},5978:function(t,a,o){"use strict";var e=o("4759"),r=o.n(e);r.a},6991:function(t,a,o){"use strict";o.d(a,"b",(function(){return r})),o.d(a,"c",(function(){return i})),o.d(a,"a",(function(){return e}));var e={uUpload:o("9cf7").default},r=function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("v-uni-view",[o("u-upload",{attrs:{fileList:t.fileList,name:"3",multiple:!1,maxCount:t.maxCount,previewFullImage:!0,width:"110",height:"110",deletable:""==t.id},on:{afterRead:function(a){arguments[0]=a=t.$handleEvent(a),t.afterRead.apply(void 0,arguments)},delete:function(a){arguments[0]=a=t.$handleEvent(a),t.deletePic.apply(void 0,arguments)}}})],1)},i=[]},"6a20":function(t,a,o){var e=o("24fb");a=e(!1),a.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 */.u-line-1[data-v-26861ad0]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2[data-v-26861ad0]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3[data-v-26861ad0]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4[data-v-26861ad0]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5[data-v-26861ad0]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border[data-v-26861ad0]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-26861ad0]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-26861ad0]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-26861ad0]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-26861ad0]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-26861ad0]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-26861ad0]{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button[data-v-26861ad0]::after{border:none}.u-hover-class[data-v-26861ad0]{opacity:.7}.u-primary-light[data-v-26861ad0]{color:#ecf5ff}.u-warning-light[data-v-26861ad0]{color:#fdf6ec}.u-success-light[data-v-26861ad0]{color:#f5fff0}.u-error-light[data-v-26861ad0]{color:#fef0f0}.u-info-light[data-v-26861ad0]{color:#f4f4f5}.u-primary-light-bg[data-v-26861ad0]{background-color:#ecf5ff}.u-warning-light-bg[data-v-26861ad0]{background-color:#fdf6ec}.u-success-light-bg[data-v-26861ad0]{background-color:#f5fff0}.u-error-light-bg[data-v-26861ad0]{background-color:#fef0f0}.u-info-light-bg[data-v-26861ad0]{background-color:#f4f4f5}.u-primary-dark[data-v-26861ad0]{color:#398ade}.u-warning-dark[data-v-26861ad0]{color:#f1a532}.u-success-dark[data-v-26861ad0]{color:#53c21d}.u-error-dark[data-v-26861ad0]{color:#e45656}.u-info-dark[data-v-26861ad0]{color:#767a82}.u-primary-dark-bg[data-v-26861ad0]{background-color:#398ade}.u-warning-dark-bg[data-v-26861ad0]{background-color:#f1a532}.u-success-dark-bg[data-v-26861ad0]{background-color:#53c21d}.u-error-dark-bg[data-v-26861ad0]{background-color:#e45656}.u-info-dark-bg[data-v-26861ad0]{background-color:#767a82}.u-primary-disabled[data-v-26861ad0]{color:#9acafc}.u-warning-disabled[data-v-26861ad0]{color:#f9d39b}.u-success-disabled[data-v-26861ad0]{color:#a9e08f}.u-error-disabled[data-v-26861ad0]{color:#f7b2b2}.u-info-disabled[data-v-26861ad0]{color:#c4c6c9}.u-primary[data-v-26861ad0]{color:#3c9cff}.u-warning[data-v-26861ad0]{color:#f9ae3d}.u-success[data-v-26861ad0]{color:#5ac725}.u-error[data-v-26861ad0]{color:#f56c6c}.u-info[data-v-26861ad0]{color:#909399}.u-primary-bg[data-v-26861ad0]{background-color:#3c9cff}.u-warning-bg[data-v-26861ad0]{background-color:#f9ae3d}.u-success-bg[data-v-26861ad0]{background-color:#5ac725}.u-error-bg[data-v-26861ad0]{background-color:#f56c6c}.u-info-bg[data-v-26861ad0]{background-color:#909399}.u-main-color[data-v-26861ad0]{color:#303133}.u-content-color[data-v-26861ad0]{color:#606266}.u-tips-color[data-v-26861ad0]{color:#909193}.u-light-color[data-v-26861ad0]{color:#c0c4cc}.u-safe-area-inset-top[data-v-26861ad0]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-26861ad0]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-26861ad0]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-26861ad0]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast[data-v-26861ad0]{z-index:10090}uni-toast .uni-toast[data-v-26861ad0]{z-index:10090}[data-v-26861ad0]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\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-26861ad0], uni-scroll-view[data-v-26861ad0], uni-swiper-item[data-v-26861ad0]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-loading-icon[data-v-26861ad0]{flex-direction:row;align-items:center;justify-content:center;color:#c8c9cc}.u-loading-icon__text[data-v-26861ad0]{margin-left:4px;color:#606266;font-size:14px;line-height:20px}.u-loading-icon__spinner[data-v-26861ad0]{width:30px;height:30px;position:relative;box-sizing:border-box;max-width:100%;max-height:100%;-webkit-animation:u-rotate-data-v-26861ad0 1s linear infinite;animation:u-rotate-data-v-26861ad0 1s linear infinite}.u-loading-icon__spinner--semicircle[data-v-26861ad0]{border-width:2px;border-color:transparent;border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;border-style:solid}.u-loading-icon__spinner--circle[data-v-26861ad0]{border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;border-width:2px;border-top-color:#e5e5e5;border-right-color:#e5e5e5;border-bottom-color:#e5e5e5;border-left-color:#e5e5e5;border-style:solid}.u-loading-icon--vertical[data-v-26861ad0]{flex-direction:column}[data-v-26861ad0]:host{font-size:0;line-height:1}.u-loading-icon__spinner--spinner[data-v-26861ad0]{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.u-loading-icon__text[data-v-26861ad0]:empty{display:none}.u-loading-icon--vertical .u-loading-icon__text[data-v-26861ad0]{margin:6px 0 0;color:#606266}.u-loading-icon__dot[data-v-26861ad0]{position:absolute;top:0;left:0;width:100%;height:100%}.u-loading-icon__dot[data-v-26861ad0]:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(1){-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.u-loading-icon__dot[data-v-26861ad0]:nth-of-type(12){-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:.3125}@-webkit-keyframes u-rotate-data-v-26861ad0{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes u-rotate-data-v-26861ad0{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),t.exports=a},"80f2":function(t,a,o){"use strict";o("7a82");var e=o("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,o("99af"),o("d81d"),o("14d9"),o("d3b7");var r=e(o("c7eb")),i=e(o("5530")),n=e(o("1da1")),d={onLoad:function(t){t.id&&(this.id=t.id),this.getpersonPhoto()},data:function(){return{fileList:[],id:"",maxCount:10}},methods:{getpersonPhoto:function(){var t=this;uni.$u.http.post("/api/user/personal_album",{id:this.id?this.id:uni.getStorageSync("userId")}).then((function(a){1==a.code&&(t.fileList=a.data,t.id&&(t.maxCount=a.data.length))}))},deletePic:function(t){console.log(t);var a=this;uni.showModal({title:"",content:"是否删除这张图片",confirmColor:"#FF3D3D",confirmText:"删除",success:function(o){o.confirm?uni.$u.http.post("/api/user/del_album",{id:t.file.id}).then((function(t){1==t.code&&a.getpersonPhoto()})):o.cancel&&console.log("用户点击取消")}})},afterRead:function(t){var a=this;return(0,n.default)((0,r.default)().mark((function o(){var e,n,d;return(0,r.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:e=[].concat(t.file),a.fileList.length,e.map((function(t){a.fileList.push((0,i.default)((0,i.default)({},t),{},{status:"uploading",message:"上传中"}))})),n=0;case 4:if(!(n<e.length)){o.next=12;break}return o.next=7,a.uploadFilePromise(e[n].url);case 7:d=o.sent,uni.$u.http.post("/api/user/upload_album",{image:d,type:1}).then((function(t){1==t.code&&a.getpersonPhoto()}));case 9:n++,o.next=4;break;case 12:case"end":return o.stop()}}),o)})))()},uploadFilePromise:function(t){var a=this;return new Promise((function(o,e){uni.uploadFile({url:a.$url+"/api/Publics/uploadLocality",filePath:t,name:"file",formData:{user:"test"},success:function(t){setTimeout((function(){o(JSON.parse(t.data).data.url)}),1e3)}})}))}}};a.default=d},"88d4":function(t,a,o){"use strict";o.r(a);var e=o("80f2"),r=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){o.d(a,t,(function(){return e[t]}))}(i);a["default"]=r.a},"9acb":function(t,a,o){"use strict";o.d(a,"b",(function(){return e})),o.d(a,"c",(function(){return r})),o.d(a,"a",(function(){}));var e=function(){var t=this,a=t.$createElement,o=t._self._c||a;return t.show?o("v-uni-view",{staticClass:"u-loading-icon",class:[t.vertical&&"u-loading-icon--vertical"],style:[t.$u.addStyle(t.customStyle)]},[t.webviewHide?t._e():o("v-uni-view",{ref:"ani",staticClass:"u-loading-icon__spinner",class:["u-loading-icon__spinner--"+t.mode],style:{color:t.color,width:t.$u.addUnit(t.size),height:t.$u.addUnit(t.size),borderTopColor:t.color,borderBottomColor:t.otherBorderColor,borderLeftColor:t.otherBorderColor,borderRightColor:t.otherBorderColor,"animation-duration":t.duration+"ms","animation-timing-function":"semicircle"===t.mode||"circle"===t.mode?t.timingFunction:""}},["spinner"===t.mode?t._l(t.array12,(function(t,a){return o("v-uni-view",{key:a,staticClass:"u-loading-icon__dot"})})):t._e()],2),t.text?o("v-uni-text",{staticClass:"u-loading-icon__text",style:{fontSize:t.$u.addUnit(t.textSize),color:t.textColor}},[t._v(t._s(t.text))]):t._e()],1):t._e()},r=[]},adae:function(t,a,o){"use strict";o("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,o("a9e3");var e={props:{show:{type:Boolean,default:uni.$u.props.loadingIcon.show},color:{type:String,default:uni.$u.props.loadingIcon.color},textColor:{type:String,default:uni.$u.props.loadingIcon.textColor},vertical:{type:Boolean,default:uni.$u.props.loadingIcon.vertical},mode:{type:String,default:uni.$u.props.loadingIcon.mode},size:{type:[String,Number],default:uni.$u.props.loadingIcon.size},textSize:{type:[String,Number],default:uni.$u.props.loadingIcon.textSize},text:{type:[String,Number],default:uni.$u.props.loadingIcon.text},timingFunction:{type:String,default:uni.$u.props.loadingIcon.timingFunction},duration:{type:[String,Number],default:uni.$u.props.loadingIcon.duration},inactiveColor:{type:String,default:uni.$u.props.loadingIcon.inactiveColor}}};a.default=e},b514:function(t,a,o){"use strict";o.r(a);var e=o("9acb"),r=o("53f8");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(a,t,(function(){return r[t]}))}(i);o("5978");var n=o("f0c5"),d=Object(n["a"])(r["default"],e["b"],e["c"],!1,null,"26861ad0",null,!1,e["a"],void 0);a["default"]=d.exports},cfa3:function(t,a,o){"use strict";o("7a82");var e=o("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,o("a630"),o("3ca3");var r=e(o("adae")),i={name:"u-loading-icon",mixins:[uni.$u.mpMixin,uni.$u.mixin,r.default],data:function(){return{array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}},computed:{otherBorderColor:function(){var t=uni.$u.colorGradient(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:t:"transparent"}},watch:{show:function(t){}},mounted:function(){this.init()},methods:{init:function(){setTimeout((function(){}),20)},addEventListenerToWebview:function(){var t=this,a=getCurrentPages(),o=a[a.length-1],e=o.$getAppWebview();e.addEventListener("hide",(function(){t.webviewHide=!0})),e.addEventListener("show",(function(){t.webviewHide=!1}))}}};a.default=i},d746:function(t,a,o){var e=o("24fb");a=e(!1),a.push([t.i,"uni-page-body[data-v-9151f808]{padding:%?30?%}",""]),t.exports=a},ebe3:function(t,a,o){"use strict";var e=o("4367"),r=o.n(e);r.a}}]);