text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-complaints"],{"2a0e":function(i,n,e){n=i.exports=e("2350")(!1),n.push([i.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-2f00cd7a]{background-color:#f5f5f5}.content[data-v-2f00cd7a]{margin-top:%?1?%;background-color:#fff}.title[data-v-2f00cd7a]{padding:%?25?%}.title uni-text[data-v-2f00cd7a]{font-size:%?36?%;color:#333}.form-wrap[data-v-2f00cd7a]{padding:0 %?20?%}.form-wrap uni-textarea[data-v-2f00cd7a]{width:100%;box-sizing:border-box;padding:%?10?%;border:%?2?% solid #efefef;border-radius:%?5?%;outline:none}.album-wrap[data-v-2f00cd7a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding:0 %?20?%;margin-top:%?20?%}.album-wrap .image[data-v-2f00cd7a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?200?%;height:%?200?%;margin-right:%?20?%;margin-bottom:%?20?%;box-sizing:border-box;position:relative}.album-wrap .image uni-image[data-v-2f00cd7a]{width:%?200?%;height:%?200?%;border-radius:%?20?%;position:relative}.album-wrap .image uni-image.reviewing[data-v-2f00cd7a]:after{content:"\\5BA1\\6838\\4E2D\\2026\\2026";display:block;width:%?355?%;height:%?355?%;text-align:center;line-height:%?355?%;font-size:%?36?%;color:#fff;background-color:rgba(0,0,0,.7);border-radius:%?20?%;position:absolute;left:0;top:0}.album-wrap .image uni-image.disabled[data-v-2f00cd7a]:after{content:"\\5BA1\\6838\\4E0D\\901A\\8FC7";display:block;width:%?355?%;height:%?355?%;text-align:center;line-height:%?355?%;font-size:%?36?%;color:#fff;background-color:rgba(0,0,0,.9);border-radius:%?20?%;position:absolute;left:0;top:0}.album-wrap .image .delete[data-v-2f00cd7a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?60?%;height:%?60?%;background-color:rgba(0,0,0,.6);border-radius:%?60?%;position:absolute;right:%?10?%;bottom:%?10?%}.album-wrap .image .delete .uni-icon[data-v-2f00cd7a]{font-size:%?36?%;color:#fff}.album-wrap .add[data-v-2f00cd7a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?200?%;height:%?200?%;border:%?2?% solid #ddd;border-radius:%?20?%}.album-wrap .add .uni-icon[data-v-2f00cd7a]{font-size:%?160?%;color:#ddd}.btn-wrap[data-v-2f00cd7a]{padding:%?80?% %?50?%}.btn-wrap uni-button[data-v-2f00cd7a]{border-radius:%?80?%}body.?%PAGE?%[data-v-2f00cd7a]{background-color:#f5f5f5}',""])},"2bf5":function(i,n,e){"use strict";var t=function(){var i=this,n=i.$createElement,e=i._self._c||n;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",[i._v("举报原因")])],1),e("v-uni-view",{staticClass:"form-wrap"},[e("v-uni-textarea",{attrs:{placeholder:"请输入具体原因…"},model:{value:i.description,callback:function(n){i.description=n},expression:"description"}}),e("v-uni-view",{staticClass:"album-wrap"},[i._l(i.list,function(n,t){return e("v-uni-view",{key:t,staticClass:"image"},[e("v-uni-image",{class:[0==n.enabled?"reviewing":"",2==n.enabled?"disabled":""],attrs:{src:n.filename,mode:"aspectFill"},on:{click:function(n){arguments[0]=n=i.$handleEvent(n),i.previewImage(t)}}}),e("v-uni-view",{staticClass:"delete",on:{click:function(n){arguments[0]=n=i.$handleEvent(n),i.deletePhoto(t)}}},[e("v-uni-view",{staticClass:"uni-icon uni-icon-trash"})],1)],1)}),e("v-uni-view",{staticClass:"image"},[e("v-uni-view",{staticClass:"add",on:{click:function(n){arguments[0]=n=i.$handleEvent(n),i.upload.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"uni-icon uni-icon-plusempty"})],1)],1)],2)],1),e("v-uni-view",{staticClass:"btn-wrap"},[e("v-uni-button",{attrs:{type:"primary"},on:{click:function(n){arguments[0]=n=i.$handleEvent(n),i.submit.apply(void 0,arguments)}}},[i._v("提交")])],1)],1)},o=[];e.d(n,"a",function(){return t}),e.d(n,"b",function(){return o})},3528:function(i,n,e){"use strict";(function(i){var t=e("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(e("f499"));e("28a5");var a=t(e("9f05")),u={data:function(){return{userInfo:{},touid:"",description:"",qiniuToken:"",domain:"",progress:0,files:[],list:[]}},onLoad:function(i){this.touid=i.touid},onReady:function(){var i=this;uni.getStorage({key:"user_info",success:function(n){i.userInfo=n.data,i.getQiniuToken()}})},methods:{getQiniuToken:function(){var i=this;this.$api.api.ajaxData({method:"V1.QiniuToken",uid:this.userInfo.id,token:this.userInfo.token},function(n){n.status&&(i.qiniuToken=n.data.token,i.domain=n.data.domain)})},upload:function(){var n=this;uni.chooseImage({count:9,sourceType:["camera","album"],sizeType:["original","compressed"],success:function(e){for(var t=function(t){var u=e.tempFilePaths[t].split("/");uni.showLoading({title:n.progress+"%"}),a.default.upload(e.tempFilePaths[t],function(i){uni.hideLoading(),n.files.push(u[u.length-1]),n.list.push({filename:e.tempFilePaths[t],enabled:1})},function(n){i.log("七牛上传失败",(0,o.default)(n))},{region:"SCN",domain:n.domain,key:u[u.length-1],uptoken:n.qiniuToken},function(i){n.progress=i.progress},function(){},function(){},function(){})},u=0;u<e.tempFilePaths.length;u++)t(u)}})},previewImage:function(i){if(this.list.length>0){for(var n=[],e=0;e<this.list.length;e++)n.push(this.list[e].filename);uni.previewImage({current:this.list[i].filename,urls:n,indicator:"none",loop:!1})}},deletePhoto:function(i){var n=this;uni.showModal({title:"提示",content:"确定要删除此照片？",success:function(e){e.confirm&&(n.files.splice(i,1),n.list.splice(i,1))}})},submit:function(){return""==this.description?(uni.showToast({title:"请输入具体原因",position:"bottom",icon:"none"}),!1):""==this.files.join()?(uni.showToast({title:"请上传举报截图",position:"bottom",icon:"none"}),!1):(uni.showLoading({title:""}),void this.$api.api.ajaxData({method:"V1.EportUser",uid:this.userInfo.id,token:this.userInfo.token,touid:this.touid,description:this.description,files:this.files.join()},function(i){uni.hideLoading(),uni.showToast({title:i.msg,position:"bottom",icon:"none"}),i.status&&setTimeout(function(){uni.navigateBack({delta:1})},1e3)},function(i){uni.hideLoading(),uni.showToast({title:"系统异常",position:"bottom",icon:"none"})}))}}};n.default=u}).call(this,e("5a52")["default"])},"68d5":function(i,n,e){var t=e("2a0e");"string"===typeof t&&(t=[[i.i,t,""]]),t.locals&&(i.exports=t.locals);var o=e("4f06").default;o("451cf91f",t,!0,{sourceMap:!1,shadowMode:!1})},"9f05":function(i,n,e){"use strict";(function(n){e("28a5"),function(){var e={qiniuRegion:"",qiniuImageURLPrefix:"",qiniuUploadToken:"",qiniuUploadTokenURL:"",qiniuUploadTokenFunction:null,qiniuShouldUseQiniuFileName:!1};function t(i){e={qiniuRegion:"",qiniuImageURLPrefix:"",qiniuUploadToken:"",qiniuUploadTokenURL:"",qiniuUploadTokenFunction:null,qiniuShouldUseQiniuFileName:!1},o(i)}function o(i){i.region?e.qiniuRegion=i.region:n.error("qiniu uploader need your bucket region"),i.uptoken?e.qiniuUploadToken=i.uptoken:i.uptokenURL?e.qiniuUploadTokenURL=i.uptokenURL:i.uptokenFunc&&(e.qiniuUploadTokenFunction=i.uptokenFunc),i.domain&&(e.qiniuImageURLPrefix=i.domain),e.qiniuShouldUseQiniuFileName=i.shouldUseQiniuFileName}function a(i,t,a,s,l,c,d,f){if(null!=i)if(s&&o(s),e.qiniuUploadToken)u(i,t,a,s,l,c,d,f);else if(e.qiniuUploadTokenURL)r(function(){u(i,t,a,s,l,c,d,f)});else{if(!e.qiniuUploadTokenFunction)return void n.error("qiniu uploader need one of [uptoken, uptokenURL, uptokenFunc]");if(e.qiniuUploadToken=e.qiniuUploadTokenFunction(),null==e.qiniuUploadToken&&e.qiniuUploadToken.length>0)return void n.error("qiniu UploadTokenFunction result is null, please check the return value");u(i,t,a,s,l,c,d,f)}else n.error("qiniu uploader need filePath to upload")}function u(i,t,o,a,u,r,l,c){if(null==e.qiniuUploadToken&&e.qiniuUploadToken.length>0)n.error("qiniu UploadToken is null, please check the init config or networking");else{var d=s(e.qiniuRegion),f=i.split("//")[1];a&&a.key&&(f=a.key);var p={token:e.qiniuUploadToken};e.qiniuShouldUseQiniuFileName||(p["key"]=f),l&&l();var b=wx.uploadFile({url:d,filePath:i,name:"file",formData:p,success:function(i){var a=i.data;try{var u=JSON.parse(a),r=e.qiniuImageURLPrefix+"/"+u.key;u.fileUrl=r,u.imageURL=r,t&&t(u)}catch(s){n.log(s),n.log("parse JSON failed, origin String is: "+a),o&&o(s)}},fail:function(i){n.error(i),o&&o(i)},complete:function(i){c&&c(i)}});b.onProgressUpdate(function(i){u&&u(i)}),r&&r(function(){b.abort()})}}function r(i){wx.request({url:e.qiniuUploadTokenURL,success:function(t){var o=t.data.uptoken;o&&o.length>0?(e.qiniuUploadToken=o,i&&i()):n.error("qiniuUploader cannot get your token, please check the uptokenURL or server")},fail:function(i){n.error("qiniu UploadToken is null, please check the init config or networking: "+i)}})}function s(i){var e=null;switch(i){case"ECN":e="http://up.qiniup.com";break;case"NCN":e="https://up-z1.qiniup.com";break;case"SCN":e="https://up-z2.qiniup.com";break;case"NA":e="https://up-na0.qiniup.com";break;case"ASG":e="https://up-as0.qiniup.com";break;default:n.error("please make the region is with one of [ECN, SCN, NCN, NA, ASG]")}return e}i.exports={init:t,upload:a}}()}).call(this,e("5a52")["default"])},bcc1:function(i,n,e){"use strict";e.r(n);var t=e("2bf5"),o=e("e72b");for(var a in o)"default"!==a&&function(i){e.d(n,i,function(){return o[i]})}(a);e("d273");var u=e("f0c5"),r=Object(u["a"])(o["default"],t["a"],t["b"],!1,null,"2f00cd7a",null);n["default"]=r.exports},d273:function(i,n,e){"use strict";var t=e("68d5"),o=e.n(t);o.a},e72b:function(i,n,e){"use strict";e.r(n);var t=e("3528"),o=e.n(t);for(var a in t)"default"!==a&&function(i){e.d(n,i,function(){return t[i]})}(a);n["default"]=o.a}}]);