(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setting-functionList-storInfo-basic-qualification"],{"0753":function(t,e,a){"use strict";var i=a("187c"),n=a.n(i);n.a},"14e8":function(t,e,a){var i=a("5d85");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("21dee80a",i,!0,{sourceMap:!1,shadowMode:!1})},1526:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */\n/* 页面 start*/.shangpu-shadow[data-v-2090784c]{border-radius:%?15?%;box-shadow:%?0?% %?0?% %?50?% %?0?% rgba(0,0,0,.07)}.submit-btn[data-v-2090784c]{border-radius:%?14?%}',""]),t.exports=e},"187c":function(t,e,a){var i=a("1526");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("24b2c7e8",i,!0,{sourceMap:!1,shadowMode:!1})},"245c":function(t,e,a){"use strict";a.r(e);var i=a("514d"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"2afb":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa");var n=i(a("7caa")),o={mixins:[n.default],name:"tn-list-cell",props:{index:{type:[Number,String],default:"0"},padding:{type:String,default:""},arrow:{type:Boolean,default:!1},arrowRight:{type:Boolean,default:!0},hover:{type:Boolean,default:!1},unlined:{type:Boolean,default:!1},lineLeft:{type:Boolean,default:!0},lineRight:{type:Boolean,default:!0},radius:{type:Boolean,default:!1}},computed:{cellClass:function(){var t="";return this.arrow&&(t+=" tn-list-cell--arrow",this.arrowRight||(t+=" tn-list-cell--arrow--none-right")),this.unlined?t+=" tn-list-cell--unlined":(this.lineLeft&&(t+=" tn-list-cell--line-left"),this.lineRight&&(t+=" tn-list-cell--line-right")),this.radius&&(t+=" tn-list-cell--radius"),t},cellStyle:function(){var t={};return this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),this.fontColorStyle&&(t.color=this.fontColorStyle),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),this.padding&&(t.padding=this.padding),t}},data:function(){return{}},methods:{handleClick:function(){this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}}};e.default=o},"453d":function(t,e,a){"use strict";a.r(e);var i=a("2afb"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"514d":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("aa9c"),a("bf0f"),a("2797"),a("bd06"),a("dd2b"),a("8f71"),a("d4b5");var n=i(a("2634")),o=i(a("2fdc")),r=a("e480"),s=(a("f0de"),i(a("5b42")),a("7cb7")),u=i(a("b8ff")),c={data:function(){return{id:0,type:"qualification",store:{qualification:{business:{},service:{},more1:{},more2:{}}},qualification:{business:[{url:""}],service:[{url:""}],moreimg:[]},formData:{uniacid:1,thumb:1},action:(uni.getStorageSync("base_url")?uni.getStorageSync("base_url"):u.default.sitebase_cir)+"/api/upload/image",header:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded;charset=utf-8",token:""},islegal:!1,showPreLoading:!0,sucMore:[]}},onLoad:function(){this._sid=this.util.getStorageSync("__sid"),this.formData.token=this.util.getStorageSync("clerkInfo"),this.getImageData(this.type),this.formData.uniacid=s.uniacid,this.header.token=this.util.getStorageSync("clerkInfo")},methods:{imageUpload:function(){var t=this;return(0,o.default)((0,n.default)().mark((function e(){var a,i,o;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,e.next=3,(0,r.imageUpload)({vue:a,autoAssign:!0,variable:"store"},{type:a.type});case 3:if(i=e.sent,i)for(o in a.islegal=!0,a.store.qualification)"business"!=o&&"service"!=o&&"more1"!=o&&"more2"!=o||(a.qualification[o][0]["url"]=a.store.qualification[o]["thumb"]);case 5:case"end":return e.stop()}}),e)})))()},getImageData:function(){var t=this;return(0,o.default)((0,n.default)().mark((function e(){var a,i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("获取图片"),t.islegal=!0,e.next=4,(0,r.getImageUrl)({sid:t._sid});case 4:if(a=e.sent,a.data.store.qualification){e.next=7;break}return e.abrupt("return");case 7:for(i in t.store.qualification=a.data.store.qualification,t.qualification.moreimg=[],t.store.qualification)"business"==i||"service"==i?t.$set(t.qualification[i][0],"url",t.store.qualification[i]["thumb"]):t.qualification["moreimg"].push({url:t.store.qualification[i]["thumb"]}),"more1"!=i&&"more2"!=i||t.sucMore.push(t.store.qualification[i].thumb);t.qualification.moreimg.forEach((function(e){var a=t.qualification.moreimg.findIndex((function(t){return"http://qny.wdsp666.com/?imageMogr2/thumbnail/300x"==t.url}));a>=0&&(console.log(111),t.qualification.moreimg.splice(a,1))})),console.log(t.qualification.moreimg),t.sucMore=t.sucMore.filter((function(t){return t})),console.log(2,t.sucMore);case 14:case"end":return e.stop()}}),e)})))()},sucBusUp:function(t){this.store.qualification["business"].thumb=t.data.uri},sucSerUp:function(t){this.store.qualification["service"].thumb=t.data.uri},sucMoreUp:function(t){this.sucMore.push(t.data.uri),1===this.sucMore.length?(this.store.qualification.more1.thumb=this.sucMore[0],this.store.qualification.more2.thumb=""):2===this.sucMore.length&&(this.store.qualification.more1.thumb=this.sucMore[0],this.store.qualification.more2.thumb=this.sucMore[1]),console.log(this.store.qualification)},removeBus:function(t){this.store.qualification["business"].thumb=""},removeSer:function(t){this.store.qualification["service"].thumb=""},removeMore:function(t){this.sucMore.splice(t,1),0===this.sucMore.length?(this.store.qualification.more1.thumb="",this.store.qualification.more2.thumb=""):1===this.sucMore.length?(this.store.qualification.more1.thumb=this.sucMore[0],this.store.qualification.more2.thumb=""):2===this.sucMore.length&&(this.store.qualification.more1.thumb=this.sucMore[0],this.store.qualification.more2.thumb=this.sucMore[1]),console.log("更新后的store.qualification",this.store.qualification)},submit:function(){var t=this;return(0,o.default)((0,n.default)().mark((function e(){var a,i,o;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.$refs,a.imageBusiness,a.imageMore,a.imageService,i=t.store.qualification,i.business,i.more1,i.more2,i.service,e.next=4,(0,r.submitImg)({sid:t._sid,type:t.type,value:JSON.stringify(t.store.qualification)});case 4:if(o=e.sent,!o){e.next=7;break}return e.abrupt("return",t.util.$toast(o.msg));case 7:case"end":return e.stop()}}),e)})))()}}};e.default=c},"5d85":function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-list-cell[data-v-52ee05d6]{position:relative;width:100%;box-sizing:border-box;background-color:#fff;color:#080808;font-size:%?28?%;padding:%?26?% %?30?%}.tn-list-cell--radius[data-v-52ee05d6]{border-radius:%?12?%;overflow:hidden}.tn-list-cell--arrow[data-v-52ee05d6]::before{content:" ";position:absolute;top:50%;right:%?30?%;width:%?20?%;height:%?20?%;margin-top:%?-12?%;border-width:%?4?% %?4?% 0 0;border-color:#e6e6e6;border-style:solid;-webkit-transform:matrix(.5,.5,-.5,.5,0,0);transform:matrix(.5,.5,-.5,.5,0,0)}.tn-list-cell--arrow--none-right[data-v-52ee05d6]::before{right:0!important}.tn-list-cell[data-v-52ee05d6]::after{content:" ";position:absolute;bottom:0;right:0;left:0;pointer-events:none;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5) translateZ(0);transform:scaleY(.5) translateZ(0);-webkit-transform-origin:0 100%;transform-origin:0 100%}.tn-list-cell--line-left[data-v-52ee05d6]::after{left:%?30?%!important}.tn-list-cell--line-right[data-v-52ee05d6]::after{right:%?30?%!important}.tn-list-cell--unlined[data-v-52ee05d6]::after{border-bottom:0!important}',""]),t.exports=e},b099:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={tnNavBar:a("3703").default,tnListCell:a("c6ed").default,tnImageUpload:a("713d").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{attrs:{id:"shop-home"}},[a("tn-nav-bar",{attrs:{fixed:!0}},[t._v("营业资质")]),a("v-uni-view",{staticClass:"tn-margin",style:{marginTop:t.vuex_custom_bar_height+10+"px"}},[a("v-uni-view",{staticClass:"shangpu-shadow tn-margin-bottom tn-margin-top"},[a("tn-list-cell",{attrs:{hover:!0,unlined:!0,radius:!0,fontSize:30}},[a("v-uni-view",{staticClass:" tn-flex-1"},[t._v("营业执照")]),a("v-uni-view",{staticClass:"tn-margin-top",on:{click:function(e){arguments[0]=e=t.$handleEvent(e)}}},[a("tn-image-upload",{ref:"imageBusiness",attrs:{fileList:t.qualification.business,action:t.action,formData:t.formData,maxCount:1},on:{"on-success":function(e){arguments[0]=e=t.$handleEvent(e),t.sucBusUp.apply(void 0,arguments)},"on-remove":function(e){arguments[0]=e=t.$handleEvent(e),t.removeBus.apply(void 0,arguments)}}})],1)],1),a("tn-list-cell",{attrs:{hover:!0,unlined:!0,radius:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex-1"},[t._v("餐饮服务许可证")]),a("v-uni-view",{staticClass:"tn-margin-top"},[a("tn-image-upload",{ref:"imageService",attrs:{fileList:t.qualification.service,action:t.action,formData:t.formData,maxCount:1},on:{"on-success":function(e){arguments[0]=e=t.$handleEvent(e),t.sucSerUp.apply(void 0,arguments)},"on-remove":function(e){arguments[0]=e=t.$handleEvent(e),t.removeSer.apply(void 0,arguments)}}})],1)],1),a("tn-list-cell",{attrs:{hover:!0,unlined:!0,radius:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex-1"},[t._v("更多资质")]),a("v-uni-view",{staticClass:"tn-margin-top"},[a("tn-image-upload",{ref:"imageMore",attrs:{fileList:t.qualification.moreimg,action:t.action,maxCount:2,formData:t.formData},on:{"on-success":function(e){arguments[0]=e=t.$handleEvent(e),t.sucMoreUp.apply(void 0,arguments)},"on-remove":function(e){arguments[0]=e=t.$handleEvent(e),t.removeMore.apply(void 0,arguments)}}})],1)],1),a("tn-list-cell",{attrs:{hover:!0,unlined:!0,radius:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex-1"},[t._v("建议上传图片添加水印")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-margin tn-padding tn-text-center submit-btn",staticStyle:{"background-color":"#33aafc",color:"white"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit()}}},[t._v("提交")])],1)},o=[]},be1e:function(t,e,a){"use strict";a.r(e);var i=a("b099"),n=a("245c");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("0753");var r=a("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2090784c",null,!1,i["a"],void 0);e["default"]=s.exports},c3df:function(t,e,a){"use strict";var i=a("14e8"),n=a.n(i);n.a},c6ed:function(t,e,a){"use strict";a.r(e);var i=a("c94a"),n=a("453d");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("c3df");var r=a("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"52ee05d6",null,!1,i["a"],void 0);e["default"]=s.exports},c94a:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-list-cell-class tn-list-cell",class:[t.backgroundColorClass,t.fontColorClass,t.cellClass],style:[t.cellStyle],attrs:{"hover-class":t.hover?"tn-hover":"","hover-stay-time":150},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t._t("default")],2)},n=[]},e480:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.BranchInformation=u,e.InformationSettings=p,e.OperatingStatus=b,e.accountSetting=w,e.accountSubmit=y,e.administration=m,e.checkAuthcodeApi=U,e.couponScan=I,e.couponSubmit=D,e.default=void 0,e.getDrawFirmCharts=k,e.getDrawInvestCharts=C,e.getDrawMakeupCharts=_,e.getDrawMonthCharts=M,e.getDrawOverviewCharts=q,e.getImageUrl=function(t){return o.default.get("api/manage.shop.config/info",{params:t})},e.getPill=S,e.getQrcodeApi=O,e.getVipSetting=c,e.gitCommit=g,e.imageUpload=f,e.pillSubmit=x,e.setVipConfig=l,e.shopStatus=v,e.shopStting=h,e.submitImg=d,e.updateLogo=r,e.updateThumbs=s,e.useAuthcodeApi=$;var n=i(a("9b1b")),o=i(a("5b42"));function r(t){return o.default.post("api/manage.shop.config/logo",t)}function s(t){return o.default.post("api/manage.shop.config/thumbs",t)}function u(t){return o.default.get("api/manage.shop.config/info",{params:t})}function c(t){return o.default.get("api/manage.shop.config/vipConfig",{params:t})}function l(t){return o.default.post("api/manage.shop.config/setVipConfig",t,{headers:{"Content-Type":"application/json"}})}function f(t,e){return util.request((0,n.default)({method:"post",url:"manage/shop/index/info",data:t},e))}function d(t,e){return o.default.post("api/manage.shop.config/setting",t)}function m(t,e){return util.request((0,n.default)({method:"get",url:"manage/shop/index/index",data:t},e))}function p(t){return o.default.get("api/manage.shop.config/info",{params:t})}function g(t,e){return o.default.post("api/manage.shop.config/setting",t)}function h(t){return o.default.get("api/manage.shop.config/index",{params:t})}function v(t){return o.default.get("api/manage.shop.config/status",{params:t})}function b(t,e){return util.request((0,n.default)({method:"post",url:"manage/shop/index/status",data:t},e))}function w(t){return o.default.get("api/manage.shop.config/index",{params:t})}function y(t){return o.default.post("api/manage.shop.config/account",t)}function S(t){return o.default.get("api/manage.shop.config/pill",{params:t})}function x(t){return o.default.post("api/manage.shop.config/pill",t)}function C(t){return o.default.get("api/manage.statistic.count/drawInvestCharts",{params:t})}function q(t){return o.default.get("api/manage.statistic.count/drawOverviewCharts",{params:t})}function M(t){return o.default.get("api/manage.statistic.count/drawMonthCharts",{params:t})}function _(t){return o.default.get("api/manage.statistic.count/drawMakeupCharts",{params:t})}function k(t){return o.default.get("api/manage.statistic.count/drawFirmCharts",{params:t})}function D(t){return o.default.post("api/manage.coupon.coupon/submit",t)}function I(t){return o.default.post("api/manage.coupon.coupon/ScanCode",t)}function U(t){return o.default.post("api/manage.authcode.credit_authcode/checkAuthcode",t)}function $(t){return o.default.post("api/manage.authcode.credit_authcode/useAuthcode",t)}function O(t){return o.default.get("api/manage.shop.config/getQrcode",{params:t})}var B={updateLogo:r,shopStatus:v,pillSubmit:x,getPill:S,accountSubmit:y,BranchInformation:u,imageUpload:f,submitImg:d,administration:m,InformationSettings:p,gitCommit:g,shopStting:h,OperatingStatus:b,accountSetting:w,getDrawInvestCharts:C,getDrawOverviewCharts:q,getDrawMonthCharts:M,getDrawMakeupCharts:_,getDrawFirmCharts:k,couponSubmit:D,couponScan:I,checkAuthcodeApi:U,useAuthcodeApi:$,getQrcodeApi:O,getVipSetting:c,setVipConfig:l,updateThumbs:s};e.default=B},f0de:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getData=function(t){return t.vue.util.request({url:t.url,data:t.data}).then((function(e){t.vue.showPreLoading&&(t.vue.showPreLoading=!1);var a=e.data.message;return a.errno?t.fail&&"function"===typeof t.fail?(t.fail(a),!1):(t.vue.util.$toast(a.message),!1):(a=a.message,t.data&&1==t.data.menufooter&&(t.vue.menufooter=window.immenufooter),t.autoAssign&&t.variable&&a[t.variable]&&(t.vue[t.variable]=t.vue.util.extend(t.vue[t.variable],a[t.variable])),!t.success||"function"!==typeof t.success||(t.success(a),!1))})),!0},e.getRecords=function(t){t.force&&(t.vue.records={page:1,psize:15,loading:!0,finished:!1,empty:!1,data:[]});if(t.vue.records.finished)return!1;var e={page:t.vue.records.page,psize:t.vue.records.psize};t.data&&(e=Object.assign(t.data,e));t.vue.filter&&(e.filter=JSON.stringify(t.vue.filter.items));return t.vue.util.request({url:t.url,data:e}).then((function(e){t.vue.showPreLoading&&(t.vue.showPreLoading=!1);var a=e.data.message;if(a.errno)return t.vue.util.$toast(a.message),!1;if(t.data&&1==t.data.menufooter&&(t.vue.menufooter=window.immenufooter),t.recordsName)var i=a.message[t.recordsName];else i=a.message.records;return t.vue.records.data=[].concat((0,n.default)(t.vue.records.data),(0,n.default)(i)),t.vue.records.data.length||(t.vue.records.empty=!0),i&&i.length