text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-complaint-complaint"],{"0189":function(t,e,a){"use strict";a.r(e);var i=a("30f6"),n=a("b6e9");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("67e3");var c,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"d14a5528",null,!1,i["a"],c);e["default"]=l.exports},"2c11":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".complaint-title[data-v-d14a5528]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?% %?25?%;color:#666}.complaint-star-view.complaint-title[data-v-d14a5528]{-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;margin:0}.cu-form-group uni-picker .picker[data-v-d14a5528]{text-align:left}.solids[data-v-d14a5528]::after{border:2px dashed #c5c5c5}.wanlian.cu-bar.tabbar[data-v-d14a5528]{background-color:transparent}.wanlian.cu-bar.tabbar .cu-btn[data-v-d14a5528]{width:calc(100% - %?50?%)}.wanlian.cu-bar.tabbar .cu-btn.lg[data-v-d14a5528]{font-size:%?32?%;height:%?86?%}",""]),t.exports=e},"30f6":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"edgeInsetTop"}),a("v-uni-view",{staticClass:"complaint-title"},[a("v-uni-view",[t._v("舉報"+t._s(t.typeName)+"理由")]),a("v-uni-view",{staticClass:"complaint-quick text-red"},[a("v-uni-text",{staticClass:"margin-right-xs"},[t._v(t._s(t.typeName)+"ID:"+t._s(t.complaintId))])],1)],1),a("v-uni-view",{staticClass:"cu-form-group"},[a("v-uni-picker",{attrs:{value:t.complaint.reason,range:t.picker},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.pickerChange.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"picker"},[t._v(t._s(t.complaint.reason>-1?t.picker[t.complaint.reason]:"请选择舉報理由"))])],1)],1),a("v-uni-view",{staticClass:"complaint-title"},[a("v-uni-text",[t._v(t._s(t.typeName)+"舉報截圖")])],1),a("v-uni-view",{staticClass:"cu-bar bg-white"},[a("v-uni-view",{staticClass:"action"},[t._v("点击預览圖片")]),a("v-uni-view",{staticClass:"action"},[t._v(t._s(t.complaint.images.length)+"/8")])],1),a("v-uni-view",{staticClass:"cu-form-group"},[a("v-uni-view",{staticClass:"grid col-4 grid-square flex-sub"},[t._l(t.complaint.images,(function(e,i){return a("v-uni-view",{key:i,staticClass:"bg-img"},[a("v-uni-image",{attrs:{src:e,mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage(t.complaint.images,i)}}}),a("v-uni-view",{staticClass:"cu-tag bg-red",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.close(i)}}},[a("v-uni-text",{staticClass:"wlIcon-shanchu2"})],1)],1)})),t.complaint.images.length<8?a("v-uni-view",{staticClass:"solids",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.chooseImg.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"wlIcon-31paishe"})],1):t._e()],2)],1),a("v-uni-view",{staticClass:"complaint-title"},[a("v-uni-view",[t._v(t._s(t.typeName)+"舉報详情")])],1),a("v-uni-view",{staticClass:"cu-form-group"},[a("v-uni-textarea",{attrs:{maxlength:"-1","placeholder-class":"placeholder",placeholder:"请详細描述舉報內容..."},model:{value:t.complaint.content,callback:function(e){t.$set(t.complaint,"content",e)},expression:"complaint.content"}})],1),a("v-uni-view",{staticClass:"wanlian cu-bar tabbar foot flex flex-direction"},[a("v-uni-button",{staticClass:"cu-btn wanl-bg-redorange lg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("发起舉報")])],1)],1)},o=[]},"67e3":function(t,e,a){"use strict";var i=a("769f"),n=a.n(i);n.a},"769f":function(t,e,a){var i=a("2c11");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("65e376ba",i,!0,{sourceMap:!1,shadowMode:!1})},b6e9:function(t,e,a){"use strict";a.r(e);var i=a("fdb6"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},b85c:function(t,e,a){"use strict";a("a4d3"),a("e01a"),a("d28b"),a("d3b7"),a("3ca3"),a("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(a("06c5"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=(0,i.default)(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 c,s=!0,l=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return s=t.done,t},e:function(t){l=!0,c=t},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(l)throw c}}}}},fdb6:function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("b85c")),o={data:function(){return{index:-1,picker:["虛假交易","诈騙欺诈","收到空包裹","假冒盜版","洩露资讯","違禁物品","未按成交价交易","未按約定時間发货","垃圾行销","涉黃资讯","不實资讯","人身攻击","違法资讯","诈騙资讯"],complaintId:0,typeName:"",complaint:{type:0,complaint_user_id:0,complaint_shop_id:0,complaint_goods_id:0,images:[],content:"",reason:-1}}},onLoad:function(t){this.complaint.type=t.type,this.complaintId=t.id,0==t.type?(this.typeName="用戶",this.complaint.complaint_user_id=t.id):1==t.type?(this.typeName="商品",this.complaint.complaint_goods_id=t.id):2==t.type&&(this.typeName="店铺",this.complaint.complaint_shop_id=t.id)},methods:{pickerChange:function(t){-1==t.detail.value?this.complaint.reason=0:this.complaint.reason=t.detail.value},chooseImg:function(){var t=this;uni.chooseImage({sourceType:["camera","album"],sizeType:"compressed",count:8-this.complaint.images.length,success:function(e){t.$api.get({url:"/wanlshop/common/uploadData",success:function(a){for(var i=0;i<e.tempFilePaths.length;i++)uni.getImageInfo({src:e.tempFilePaths[i],success:function(e){t.$api.upload({url:a.uploadurl,filePath:e.path,name:"file",formData:"local"==a.storage?null:a.multipart,success:function(e){t.complaint.images.push(e.fullurl)}})}})}})}})},close:function(t){this.complaint.images.splice(t,1)},previewImage:function(t,e){var a,i=[],o=(0,n.default)(t);try{for(o.s();!(a=o.n()).done;){var c=a.value;i=i.concat(this.$wanlshop.oss(c,500))}}catch(s){o.e(s)}finally{o.f()}uni.previewImage({urls:i,current:i[e],indicator:"number"})},submit:function(){var t=this;return-1==this.complaint.reason?(this.$wanlshop.msg("请选择舉報理由"),!1):this.complaint.content?void this.$api.post({url:"/wanlshop/complaint/add",data:this.complaint,success:function(e){t.$wanlshop.to("/pages/page/success?type=complaint")}}):(this.$wanlshop.msg("请填写舉報內容"),!1)}}};e.default=o}}]);