text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-supplysj"],{"0f5e":function(t,a,e){"use strict";e("a9e3"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i={name:"uniTopBar",props:{barid:{type:Number,default:0},title:{type:String},xueyuan:{type:String}},data:function(){return{modalName:"",loginbtn:"立即登录",height:"",img:!1,left:"",logo_right:""}},mounted:function(){this.height=this.StatusBar,1==this.barid?(this.left="3vw",this.logo_right="27vw"):(this.left="11vw",this.logo_right="32vw"),this.img=!0},methods:{navigateBack:function(){uni.navigateBack()}}};a.default=i},"74f3":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".cu-modal[data-v-1be9c3ce]{z-index:900}.rztitle[data-v-1be9c3ce]{position:fixed;left:0;right:0;font-size:4.5vw;font-weight:700;background-color:#fff;height:44px;line-height:44px;text-indent:3vw}.cu-bar[data-v-1be9c3ce]{position:static}.hongren[data-v-1be9c3ce]{bottom:0}.platform_list[data-v-1be9c3ce]{margin:3vw;background-color:#fff;border-radius:2vw}.platform_list .list[data-v-1be9c3ce]{overflow:hidden;border-radius:2vw;box-shadow:1px 1px 2px rgba(26,26,26,.1)}.cu-form-group[data-v-1be9c3ce]{margin:.5px 15px;padding:0}.cu-form-group .title[data-v-1be9c3ce]{width:24vw}.cor-e8.text-lg[data-v-1be9c3ce]{position:relative;left:-1vw;top:1vw}.cu-btn.lg[data-v-1be9c3ce]{padding:0 3vw}.cu-dialog[data-v-1be9c3ce]{max-height:60vh}.realmlist[data-v-1be9c3ce]{max-height:46vh;overflow-x:hidden;overflow-y:auto}.nothave[data-v-1be9c3ce]{font-size:3.5vw;padding-bottom:3vw;color:#999}.op-0[data-v-1be9c3ce]{opacity:0}.bg-img[data-v-1be9c3ce]{margin:1vw 3vw;box-shadow:1px 1px 2px rgba(26,26,26,.1)}.grid.col-4.grid-square>uni-view[data-v-1be9c3ce]:nth-child(4n){margin:1vw 3vw}.cu-btn.img[data-v-1be9c3ce]{height:24px;font-size:12px;background-color:#e71d36;color:#fff;padding:0 2vw}.text-orange[data-v-1be9c3ce], .line-orange[data-v-1be9c3ce], .lines-orange[data-v-1be9c3ce]{color:#999}.bg-orange[data-v-1be9c3ce]{background-color:#e71d36;color:#fff;border-radius:2px}.confirm[data-v-1be9c3ce]{background-color:#e71d36}uni-radio-group[data-v-1be9c3ce]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box!important;display:-webkit-flex!important;display:flex!important;font-size:3.5vw;-webkit-justify-content:space-around;justify-content:space-around}uni-radio-group span[data-v-1be9c3ce]{margin-right:1vw}.coent[data-v-1be9c3ce]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.cu-form-group uni-picker[data-v-1be9c3ce]::after{display:none}.cu-form-group uni-picker[data-v-1be9c3ce]{-webkit-box-flex:0;-webkit-flex:none;flex:none;border-radius:5px}.remarks[data-v-1be9c3ce]{text-align:center;padding:3vw 3vw;color:#e71d36;line-height:5vw;font-size:3.5vw;background-color:#fff}",""]),t.exports=a},"76ed":function(t,a,e){"use strict";e.r(a);var i=e("79ff"),s=e("aa40");for(var n in s)"default"!==n&&function(t){e.d(a,t,(function(){return s[t]}))}(n);e("e1cd");var o,c=e("f0c5"),r=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"1be9c3ce",null,!1,i["a"],o);a["default"]=r.exports},"79ff":function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return s})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){return i}));var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("uni-top-bar"),e("v-uni-view",{staticClass:"hongren",style:{top:t.height+43+"px"}},[3==t.examine&&t.remarks?e("v-uni-view",{staticClass:"remarks"},[t._v("未通过原因："+t._s(t.remarks))]):t._e(),e("v-uni-view",{staticClass:"platform_list clearfix"},[e("v-uni-view",{staticClass:"list clearfix"},[e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("标题")]),e("v-uni-input",{attrs:{type:"text",placeholder:"请输入标题"},model:{value:t.addressData.title,callback:function(a){t.$set(t.addressData,"title",a)},expression:"addressData.title"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("产品品牌")]),e("v-uni-input",{attrs:{type:"text",placeholder:"请输入产品品牌"},model:{value:t.addressData.brand,callback:function(a){t.$set(t.addressData,"brand",a)},expression:"addressData.brand"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("产品封面")]),e("v-uni-view",{staticClass:"coent",staticStyle:{color:"red","font-size":"3.5vw"}},[t._v("请上传正方形封面")]),e("v-uni-button",{staticClass:"img cu-btn shadow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.avatarImage.apply(void 0,arguments)}}},[t._v("上传封面")])],1),t.addressData.img?e("v-uni-view",{staticClass:"grid col-4 grid-square flex-sub"},[e("v-uni-view",{staticClass:"bg-img"},[e("v-uni-image",{attrs:{src:t.addressData.img,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"cu-tag bg-red",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.DelImg()}}},[e("v-uni-text",{staticClass:"cuIcon-close"})],1)],1)],1):t._e(),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("带货价格")]),e("v-uni-input",{attrs:{type:"number",placeholder:"请输入劵后价格"},model:{value:t.addressData.nowprice,callback:function(a){t.$set(t.addressData,"nowprice",a)},expression:"addressData.nowprice"}}),e("v-uni-view",{staticClass:"title"},[t._v("元")])],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("平台要求")]),e("v-uni-view",{staticClass:"coent"},[t._v(t._s(t.addressData.platform))]),e("v-uni-button",{staticClass:"img cu-btn shadow",attrs:{"data-target":"platformModal"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showModal.apply(void 0,arguments)}}},[t._v("选择平台")])],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("领域要求")]),e("v-uni-view",{staticClass:"coent"},[t._v(t._s(t.realmdata))]),e("v-uni-button",{staticClass:"img cu-btn shadow",attrs:{"data-target":"realmModal"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showModal.apply(void 0,arguments)}}},[t._v("选择领域")])],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("收费形式")]),e("v-uni-radio-group",{staticClass:"block",on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.RadioCharge.apply(void 0,arguments)}}},[e("v-uni-view",[e("span",[t._v("预付费")]),e("v-uni-radio",{staticClass:"blue radio sm",class:1==t.addressData.pay_type?"checked":"",attrs:{checked:1==t.addressData.pay_type,value:"1"}})],1),e("v-uni-view",[e("span",[t._v("纯佣金")]),e("v-uni-radio",{staticClass:"blue radio sm",class:2==t.addressData.pay_type?"checked":"",attrs:{checked:2==t.addressData.pay_type,value:"2"}})],1),e("v-uni-view",[e("span",[t._v("预付+纯佣")]),e("v-uni-radio",{staticClass:"blue radio sm",class:3==t.addressData.pay_type?"checked":"",attrs:{checked:3==t.addressData.pay_type,value:"3"}})],1)],1)],1),1==t.addressData.pay_type||3==t.addressData.pay_type?e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("预付费")]),e("v-uni-input",{attrs:{type:"number",placeholder:"请输入预付费"},model:{value:t.addressData.advance,callback:function(a){t.$set(t.addressData,"advance",a)},expression:"addressData.advance"}}),e("v-uni-view",{staticClass:"title"},[t._v("万")])],1):t._e(),2==t.addressData.pay_type||3==t.addressData.pay_type?e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("佣金比")]),e("v-uni-input",{attrs:{type:"number",placeholder:"请输入佣金"},model:{value:t.addressData.commission,callback:function(a){t.$set(t.addressData,"commission",a)},expression:"addressData.commission"}}),e("v-uni-view",{staticClass:"title"},[t._v("%")])],1):t._e(),e("v-uni-view",{staticClass:"cu-form-group align-start"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("产品详情")]),e("v-uni-textarea",{attrs:{placeholder:"请输入产品详情"},model:{value:t.addressData.details,callback:function(a){t.$set(t.addressData,"details",a)},expression:"addressData.details"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("详情图片")]),e("v-uni-view",{staticClass:"coent",staticStyle:{color:"red","font-size":"3.5vw"}},[t._v("上传图片保持宽度一致")]),e("v-uni-button",{staticClass:"img cu-btn shadow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.detailImage.apply(void 0,arguments)}}},[t._v(t._s(t.detailImagename))])],1),t.hackReset?e("v-uni-view",{staticClass:"grid col-4 grid-square flex-sub"},t._l(t.addressData.detailimg,(function(a,i){return e("v-uni-view",{key:i,staticClass:"bg-img"},[e("v-uni-image",{attrs:{src:a,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"cu-tag bg-red",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.DeldetailImg(i)}}},[e("v-uni-text",{staticClass:"cuIcon-close"})],1)],1)})),1):t._e(),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("粉丝要求")]),e("v-uni-input",{attrs:{type:"number",placeholder:"请输入粉丝量"},model:{value:t.addressData.fans,callback:function(a){t.$set(t.addressData,"fans",a)},expression:"addressData.fans"}}),e("v-uni-view",{staticClass:"title"},[t._v("万以上")])],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("对接商务")]),e("v-uni-input",{attrs:{type:"text",placeholder:"请输入联系人"},model:{value:t.addressData.contact,callback:function(a){t.$set(t.addressData,"contact",a)},expression:"addressData.contact"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("联系电话")]),e("v-uni-input",{attrs:{type:"number",placeholder:"请输入联系电话"},model:{value:t.addressData.mobile,callback:function(a){t.$set(t.addressData,"mobile",a)},expression:"addressData.mobile"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("微信号码")]),e("v-uni-input",{attrs:{type:"text",placeholder:"请输入微信号"},model:{value:t.addressData.wechat_work,callback:function(a){t.$set(t.addressData,"wechat_work",a)},expression:"addressData.wechat_work"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("span",{staticClass:"cor-e8 text-lg"},[t._v("*")]),t._v("截止日期")]),e("v-uni-input",{attrs:{type:"text",disabled:"disabled",placeholder:"请输入开始时间"},model:{value:t.addressData.endtime,callback:function(a){t.$set(t.addressData,"endtime",a)},expression:"addressData.endtime"}}),e("v-uni-picker",{staticClass:"img cu-btn shadow",attrs:{mode:"date",value:t.addressData.endtime},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.endtime.apply(void 0,arguments)}}},[t._v("选择时间")])],1)],1)],1),e("v-uni-view",{staticClass:"padding-xl"},[e("v-uni-button",{staticClass:"cu-btn confirm block bg-blue margin-tb-sm lg",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.confirm.apply(void 0,arguments)}}},[t._v(t._s(t.confirmbtn))])],1)],1),e("v-uni-view",{staticClass:"cu-modal",class:"realmModal"==t.modalName?"show":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.chkrealm.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"cu-dialog",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a)}}},[e("v-uni-view",{staticClass:"cu-bar bg-white"},[e("v-uni-view",{staticClass:"action text-blue"}),e("v-uni-view",{staticClass:"action text-green",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.chkrealm.apply(void 0,arguments)}}},[t._v("确定")])],1),e("v-uni-view",{staticClass:"realmlist"},t._l(t.realm,(function(a,i){return 0==a.pid?e("v-uni-view",{key:i,staticClass:"padding-xs"},[e("v-uni-view",[t._v(t._s(a.name))]),e("v-uni-view",{staticClass:"grid col-3 padding-sm"},t._l(t.realm,(function(i,s){return i.pid==a.id?e("v-uni-view",{key:s,staticClass:"padding-xs"},[e("v-uni-button",{staticClass:"box cu-btn block",class:i.checked?"bg-orange":"line-orange",attrs:{"data-value":i.id},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.Chooserealm(i)}}},[t._v(t._s(i.name))])],1):t._e()})),1)],1):t._e()})),1),e("v-uni-view",{staticClass:"nothave"},[t._v("没有找到？联系客服添加领域")])],1)],1),e("v-uni-view",{staticClass:"cu-modal top-modal",class:"platformModal"==t.modalName?"show":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.chkplatform.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"cu-dialog",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a)}}},[e("v-uni-view",{staticClass:"cu-bar bg-white"},[e("v-uni-view",{staticClass:"action text-blue"}),e("v-uni-view",{staticClass:"action text-green",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.chkplatform.apply(void 0,arguments)}}},[t._v("确定")])],1),e("v-uni-view",{staticClass:"grid col-3 padding-sm"},t._l(t.platform,(function(a,i){return e("v-uni-view",{key:i,staticClass:"padding-xs"},[e("v-uni-button",{staticClass:"cu-btn orange block",class:a.checked?"bg-orange":"line-orange",attrs:{"data-value":a.name},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.ChooseCheckbox(a)}}},[t._v(t._s(a.name))])],1)})),1),e("v-uni-view",{staticClass:"nothave"},[t._v("没有找到？联系客服添加分类")])],1)],1),e("v-uni-view",{staticClass:"cu-modal",class:"schedule"==t.modalName?"show":""},[e("v-uni-view",{staticClass:"cu-dialog",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.hideModal.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"cu-bar bg-white"},[e("v-uni-view",{staticClass:"action text-gray"},[t._v(t._s(t.scheduletitle))]),e("v-uni-view",{staticClass:"action text-green",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.hideModal.apply(void 0,arguments)}}},[t._v("确定")])],1),e("v-uni-view",{staticClass:"padding-sm"},[e("v-uni-view",{staticClass:"padding bg-white clearfix"},[e("v-uni-view",{staticClass:"cu-progress"},[e("v-uni-view",{staticClass:"bg-red",style:[{width:t.percent+"%"}]},[t._v(t._s(t.percent+"%"))])],1),e("v-uni-view",{staticStyle:{float:"left","margin-top":"2vw"}},[t._v(t._s(t.scheduletip))]),e("v-uni-view",{staticStyle:{float:"right","margin-top":"2vw"}},[t._v(t._s(t.totalBytesSent)+"/"+t._s(t.totalBytesExpectedToSend))])],1)],1)],1)],1)],1)},n=[]},"83cd":function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return s})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){return i}));var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"cu-bar bg-white",style:{height:t.height+44+"px",paddingTop:t.height+"px"}},[t.xueyuan?e("span",{staticStyle:{width:"100vw",height:"44px","vertical-align":"bottom"}},[e("img",{staticClass:"logo_left",style:{top:t.height+7+"px",left:t.left},attrs:{src:t.xueyuan}}),t.img?e("img",{staticClass:"logo_right",style:{top:t.height+2+"px",left:t.logo_right},attrs:{src:"https://www.hongrensutui.com/h5/img/logo_right.png"}}):t._e()]):t._e(),t.xueyuan?t._e():e("span",{staticStyle:{width:"100vw",height:"44px","vertical-align":"bottom"}},[1!=t.barid?e("span",[t.title?e("span",{style:{marginLeft:t.left,color:"#fff",fontSize:"4vw",lineHeight:"45px"}},[t._v(t._s(t.title))]):e("span",{style:{marginLeft:t.left,color:"#fff",fontSize:"4vw",lineHeight:"45px"}},[t._v("红人速推")])]):t._e(),t.img&&1==t.barid?e("img",{staticClass:"logo_left",style:{top:t.height+7+"px",left:t.left},attrs:{src:"https://www.hongrensutui.com/h5/img/logo_left.png"}}):t._e(),t.img&&1==t.barid?e("img",{staticClass:"logo_right",style:{top:t.height+2+"px",left:t.logo_right},attrs:{src:"https://www.hongrensutui.com/h5/img/logo_right.png"}}):t._e(),t.img&&1!=t.barid?e("img",{staticClass:"logo_right",style:{top:t.height+2+"px",left:t.logo_right},attrs:{src:"https://www.hongrensutui.com/h5/img/logo_right2.png"}}):t._e()])])},n=[]},"9b8e":function(t,a,e){"use strict";e.r(a);var i=e("0f5e"),s=e.n(i);for(var n in i)"default"!==n&&function(t){e.d(a,t,(function(){return i[t]}))}(n);a["default"]=s.a},aa40:function(t,a,e){"use strict";e.r(a);var i=e("e4ff"),s=e.n(i);for(var n in i)"default"!==n&&function(t){e.d(a,t,(function(){return i[t]}))}(n);a["default"]=s.a},aa9f:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'.auth[data-v-9df7cb58]{width:80vw;height:80vw;border-radius:1.5vw;background-color:#fff}.auth .title[data-v-9df7cb58]{color:#333;font-size:5vw;line-height:12vw;border-bottom:1px solid #efefef}.auth .logo[data-v-9df7cb58]{width:18vw;height:18vw;margin:6vw auto}.auth .logo img[data-v-9df7cb58]{width:100%;height:100%;border-radius:1.5vw}.auth .tip1[data-v-9df7cb58]{padding:0 5vw;text-align:left;color:#333;font-size:4.5vw;line-height:8vw}.auth .tip2[data-v-9df7cb58]{padding:0 5vw;text-align:left;color:#999;font-size:4vw;line-height:8vw}.auth uni-button[data-v-9df7cb58]{position:static;display:block;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;box-sizing:initial;font-size:4.5vw;text-align:center;text-decoration:none;line-height:%?80?%;border-radius:0;-webkit-tap-highlight-color:transparent;overflow:visible;color:#fff;background-color:#08c406;border-radius:1.5vw;margin:3vw ;margin-top:5vw}.cu-modal[data-v-9df7cb58]{height:100vh;z-index:300}.cu-bar[data-v-9df7cb58]{position:fixed;top:0;left:0;right:0;z-index:300;min-height:44px;background-color:#e71d36;-webkit-transform:translateZ(0);transform:translateZ(0)}.cu-bar .logo_left[data-v-9df7cb58]{position:absolute;\r\n\r\n\r\nleft:3vw;\r\nwidth:90px;height:30px}.cu-bar .logo_right[data-v-9df7cb58]{position:absolute;left:27vw;width:60vw}.cuIcon-back[data-v-9df7cb58]{color:#fff;font-size:6vw;height:44px;width:44px;line-height:44px;text-align:center}.cu-dialog[data-v-9df7cb58]{background-color:initial;width:auto;padding:4vw;height:auto}.cu-bar .action:first-child>uni-text[class*="cuIcon-"][data-v-9df7cb58]{margin:0}.cu-bar.tabbar .action [class*="cuIcon-"][data-v-9df7cb58]{width:auto}.cuIcon-close[data-v-9df7cb58]:before{background-color:rgba(0,0,0,.5);padding:1.5vw;border-radius:50%}',""]),t.exports=a},b17d:function(t,a,e){var i=e("aa9f");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("4f06").default;s("2d0d384a",i,!0,{sourceMap:!1,shadowMode:!1})},c4f3:function(t,a,e){"use strict";var i=e("b17d"),s=e.n(i);s.a},db29:function(t,a,e){var i=e("74f3");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("4f06").default;s("23e19c0f",i,!0,{sourceMap:!1,shadowMode:!1})},e1cd:function(t,a,e){"use strict";var i=e("db29"),s=e.n(i);s.a},e3d7:function(t,a,e){"use strict";e.r(a);var i=e("83cd"),s=e("9b8e");for(var n in s)"default"!==n&&function(t){e.d(a,t,(function(){return s[t]}))}(n);e("c4f3");var o,c=e("f0c5"),r=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"9df7cb58",null,!1,i["a"],o);a["default"]=r.exports},e4ff:function(t,a,e){"use strict";(function(t){var i=e("4ea4");e("4160"),e("a434"),e("4d63"),e("ac1f"),e("25f0"),e("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s=i(e("e3d7")),n={components:{uniTopBar:s.default},filters:{formatDate:function(t){var a=new Date(1e3*t),e=a.getFullYear(),i=a.getMonth()+1;i=i<10?"0"+i:i;var s=a.getDate();s=s<10?"0"+s:s;var n=a.getHours();n=n<10?"0"+n:n;var o=a.getMinutes();o=o<10?"0"+o:o;var c=a.getSeconds();return c=c<10?"0"+c:c,e+"-"+i+"-"+s}},data:function(){return{modalName:null,confirmbtn:"发布",taobaourl:!1,jingdongurl:!1,pinduoduourl:!1,kuaishouurl:!1,addressData:{title:"",brand:"",img:"",detailimg:[],category:"",platform:"",pay_type:2,advance:"",commission:"",nowprice:"",details:"",endtime:"",fans:"",contact:"",mobile:"",wechat_work:"",type:1},realm:"",realmdata:"",platform:"",userInfo:"",height:"",examine:"",remarks:"",hackReset:!0,detailImagename:"上传图片",scheduletitle:"",scheduletip:"",percent:0,totalBytesSent:0,totalBytesExpectedToSend:0}},onLoad:function(t){var a=this;a.height=this.StatusBar,uni.getStorage({key:"userInfo",success:function(e){e.data&&""!=e.data&&(a.userInfo=e.data,a.addressData.mid=a.userInfo.id,t.id?(a.supplysj(t.id),a.addressData.id=t.id,a.confirmbtn="修改"):(a.getRealm(),a.supplyplatform()))}}),a.servertime()},methods:{confirm:function(){return this.addressData.title?this.addressData.brand?this.addressData.img?this.addressData.nowprice?this.addressData.platform?this.addressData.category?this.addressData.contact?"1"!=this.addressData.pay_type||this.addressData.advance?"2"!=this.addressData.pay_type||this.addressData.commission?"3"!=this.addressData.pay_type||this.addressData.advance?"3"!=this.addressData.pay_type||this.addressData.commission?this.addressData.mobile?this.checkMobile(this.addressData.mobile)?this.addressData.wechat_work?void uni.request({url:"https://www.hongrensutui.com/api/index/supplysjadd",data:this.addressData,method:"post",header:{"Content-Type":"application/x-www-form-urlencoded"},dataType:"json",success:function(t){200==t.data.data.code?(uni.showToast({icon:"none",title:t.data.data.info}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)):uni.showToast({icon:"none",title:"发布失败！"})},fail:function(t){uni.showToast({icon:"none",title:"发布失败！"})}}):(uni.showToast({title:"微信号不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"联系电话格式不正确",icon:"none",duration:3e3}),!1):(uni.showToast({title:"联系电话不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"佣金不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"预付费不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"佣金不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"预付费不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"联系人不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"红人领域不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"平台要求不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"卷后价格不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"产品图片不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"产品品牌不能为空",icon:"none",duration:3e3}),!1):(uni.showToast({title:"标题不能为空",icon:"none",duration:3e3}),!1)},supplysj:function(t){var a=this;uni.request({url:"https://www.hongrensutui.com/api/index/supplyedit",data:{id:t},method:"POST",success:function(t){if(t.data.data.info){var e=t.data.data.info;a.addressData.mid=e.mid,a.addressData.title=e.title,a.addressData.brand=e.brand,a.addressData.img=e.img,a.addressData.detailimg=e.detailimg,a.addressData.pay_type=e.pay_type,a.addressData.advance=e.advance,a.addressData.commission=e.commission,a.addressData.nowprice=e.nowprice,a.addressData.category=e.category,a.addressData.platform=e.platform,a.addressData.details=e.details,a.addressData.endtime=e.endtime,a.addressData.fans=e.fans,a.addressData.contact=e.contact,a.addressData.mobile=e.mobile,a.addressData.wechat_work=e.wechat_work,a.addressData.type=e.type,a.examine=e.examine,a.remarks=e.remarks,a.realmdata=e.realmdata,a.getRealm(e.category),a.supplyplatform(e.platform),a.addressData.detailimg.length>0&&(a.detailImagename="继续上传",a.hackReset=!1,a.$nextTick((function(){a.hackReset=!0})))}else a.getRealm(),a.supplyplatform()}})},servertime:function(){var t=this;uni.request({url:"https://www.hongrensutui.com/api/index/servertime",method:"POST",success:function(a){t.addressData.endtime=t.formatDate(a.data.data.time)}})},formatDate:function(t){var a=new Date(1e3*t),e=a.getFullYear(),i=a.getMonth()+1;i=i<10?"0"+i:i;var s=a.getDate();s=s<10?"0"+s:s;var n=a.getHours();n=n<10?"0"+n:n;var o=a.getMinutes();o=o<10?"0"+o:o;var c=a.getSeconds();return c=c<10?"0"+c:c,e+"-"+i+"-"+s},getRealm:function(t){var a=this;uni.request({url:"https://www.hongrensutui.com/api/index/getRealm",data:{realm:t},method:"POST",success:function(t){a.realm=t.data.data.list}})},supplyplatform:function(t){var a=this;uni.request({url:"https://www.hongrensutui.com/api/index/supplyplatform",data:{platform:t},method:"POST",success:function(t){a.platform=t.data.data.list}})},checkMobile:function(t){return RegExp(/^1[34578]\d{9}$/).test(t)},endtime:function(t){this.addressData.endtime=t.detail.value},showModal:function(t){this.modalName=t.currentTarget.dataset.target},hideModal:function(t){this.modalName=null},avatarImage:function(){var t=this;t.scheduletip="",t.percent=0,uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(a){var e=a.tempFilePaths,i=uni.uploadFile({url:"https://www.hongrensutui.com/api/upload/index",filePath:e[0],name:"image",success:function(a){var e=JSON.parse(a.data);t.addressData.img=e.data.url}});i.onProgressUpdate((function(a){t.scheduletitle="封面上传",t.modalName="schedule",t.percent=a.progress,t.totalBytesSent=a.totalBytesSent,t.totalBytesExpectedToSend=a.totalBytesExpectedToSend,100==a.progress&&(t.scheduletip="图片上传完成")}))}})},DelImg:function(){var t=this;uni.showModal({title:"",content:"确定要删除图片么？",cancelText:"取消",confirmText:"确认",success:function(a){a.confirm&&(t.addressData.img="")}})},detailImage:function(){var a=this;if(a.scheduletip="",a.percent=0,a.addressData.detailimg.length>5)return uni.showToast({title:"详情图片不能超过6个",icon:"none",duration:3e3}),!1;uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(e){var i=e.tempFilePaths,s=uni.uploadFile({url:"https://www.hongrensutui.com/api/upload/index",filePath:i[0],name:"image",success:function(e){var i=JSON.parse(e.data);a.addressData.detailimg[a.addressData.detailimg.length]=i.data.url,a.detailImagename="继续上传",a.hackReset=!1,a.$nextTick((function(){a.hackReset=!0})),t.log(a.addressData.detailimg)}});s.onProgressUpdate((function(t){a.scheduletitle="详情图片上传",a.modalName="schedule",a.percent=t.progress,a.totalBytesSent=t.totalBytesSent,a.totalBytesExpectedToSend=t.totalBytesExpectedToSend,100==t.progress&&(a.scheduletip="图片上传完成")}))}})},DeldetailImg:function(t){var a=this;uni.showModal({title:"",content:"确定要删除图片么？",cancelText:"取消",confirmText:"确认",success:function(e){a.addressData.detailimg.splice(t,1)}})},chkrealm:function(t){var a=this,e=0,i=0;this.addressData.category="",this.realmdata="",this.realm.forEach((function(t,a){1==t.checked&&e++})),this.realm.forEach((function(t,s){1==t.checked&&(i++,i!=e?(a.addressData.category+=t.id+",",a.realmdata+=t.name+","):(a.addressData.category+=t.id,a.realmdata+=t.name))})),this.modalName=null},chkplatform:function(t){var a=this,e=0,i=0;this.addressData.platform="",this.platform.forEach((function(t,a){1==t.checked&&e++})),this.platform.forEach((function(t,s){1==t.checked&&(i++,a.addressData.platform+=i!=e?t.name+",":t.name)})),this.modalName=null},RadioCharge:function(t){this.addressData.pay_type=t.detail.value,"1"==this.addressData.pay_type&&(this.addressData.commission=""),"2"==this.addressData.pay_type&&(this.addressData.advance="")},ChooseCheckbox:function(t){t.checked=!t.checked},Chooserealm:function(t){if(1==t.checked)t.checked=!t.checked;else{var a=0;this.realm.forEach((function(t,e){1==t.checked&&a++})),a>=8?uni.showToast({title:"所选领域不能超过8个！",icon:"none",duration:2e3}):t.checked=!t.checked}}}};a.default=n}).call(this,e("5a52")["default"])}}]);