(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-policy-index"],{2217:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return i}));var i={uPopup:a("c992").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"u-select"},[a("u-popup",{attrs:{maskCloseAble:e.maskCloseAble,mode:"bottom",popup:!1,length:"auto",safeAreaInsetBottom:e.safeAreaInsetBottom,"z-index":e.uZIndex},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[a("v-uni-view",{staticClass:"u-select"},[a("v-uni-view",{staticClass:"u-select__header",on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)}}},[a("v-uni-view",{staticClass:"u-select__header__cancel u-select__header__btn",style:{color:e.cancelColor},attrs:{"hover-class":"u-hover-class","hover-stay-time":150},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getResult("cancel")}}},[e._v(e._s(e.cancelText))]),a("v-uni-view",{staticClass:"u-select__header__title"},[e._v(e._s(e.title))]),a("v-uni-view",{staticClass:"u-select__header__confirm u-select__header__btn",style:{color:e.moving?e.cancelColor:e.confirmColor},attrs:{"hover-class":"u-hover-class","hover-stay-time":150},on:{touchmove:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t)},click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.getResult("confirm")}}},[e._v(e._s(e.confirmText))])],1),a("v-uni-view",{staticClass:"u-select__body"},[e.value?a("v-uni-picker-view",{staticClass:"u-select__body__picker-view",attrs:{value:e.defaultSelector},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.columnChange.apply(void 0,arguments)},pickstart:function(t){arguments[0]=t=e.$handleEvent(t),e.pickstart.apply(void 0,arguments)},pickend:function(t){arguments[0]=t=e.$handleEvent(t),e.pickend.apply(void 0,arguments)}}},e._l(e.columnData,(function(t,i){return a("v-uni-picker-view-column",{key:i},e._l(t,(function(t,i){return a("v-uni-view",{key:i,staticClass:"u-select__body__picker-view__item"},[a("v-uni-view",{staticClass:"u-line-1"},[e._v(e._s(t[e.labelName]))])],1)})),1)})),1):e._e()],1)],1)],1)],1)},s=[]},"25e5":function(e,t,a){var i=a("baa1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("0d23c82e",i,!0,{sourceMap:!1,shadowMode:!1})},"27dd":function(e,t,a){"use strict";var i=a("7367"),n=a.n(i);n.a},"430c":function(e,t,a){"use strict";a.r(t);var i=a("dc25"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);t["default"]=n.a},4688:function(e,t,a){"use strict";var i=a("71fd"),n=a.n(i);n.a},"49fb":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return i}));var i={uBadge:a("bc9b").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"u-tabs",style:{background:e.bgColor}},[a("v-uni-view",[a("v-uni-scroll-view",{staticClass:"u-scroll-view",attrs:{"scroll-x":!0,"scroll-left":e.scrollLeft,"scroll-with-animation":!0}},[a("v-uni-view",{staticClass:"u-scroll-box",class:{"u-tabs-scorll-flex":!e.isScroll},attrs:{id:e.id}},[e._l(e.list,(function(t,i){return a("v-uni-view",{key:i,staticClass:"u-tab-item u-line-1",style:[e.tabItemStyle(i)],attrs:{id:"u-tab-item-"+i},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickTab(i)}}},[a("u-badge",{attrs:{count:t[e.count]||t["count"]||0,offset:e.offset,size:"mini"}}),e._v(e._s(t[e.name]||t["name"]))],1)})),e.showBar?a("v-uni-view",{staticClass:"u-tab-bar",style:[e.tabBarStyle]}):e._e()],2)],1)],1)],1)},s=[]},5508:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.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/* 行为相关颜色 */.footer[data-v-4d48ef70]{left:0;bottom:%?150?%;width:100%;padding:0 %?24?%;position:fixed;z-index:99}.footer .btn[data-v-4d48ef70]{height:%?84?%;line-height:%?84?%;background-color:#dd4250;box-shadow:%?0?% %?6?% %?12?% %?2?% rgba(243,113,113,.39);border-radius:%?18?% %?18?% %?18?% %?18?%}uni-page-body[data-v-4d48ef70]{padding:0}.talent-tab .title[data-v-4d48ef70]{font-size:%?36?%;font-weight:400;color:#333}[data-v-4d48ef70] .select_input{border:none!important}[data-v-4d48ef70] .select_modal_con{position:-webkit-sticky;position:sticky;margin-left:%?-200?%;width:%?700?%}[data-v-4d48ef70] .select_modal_con .select_modal{height:300px}[data-v-4d48ef70] .select_modal_con .select_content_li{text-align:left!important;white-space:normal!important;overflow:auto!important;height:auto!important;line-height:normal!important;margin-bottom:%?16?%!important}[data-v-4d48ef70] .select_modal_con ::-webkit-scrollbar{display:block;\n /*滚动条整体样式*/width:10px!important;\n /*高宽分别对应横竖滚动条的尺寸*/height:1px!important}[data-v-4d48ef70] .select_modal_con ::-webkit-scrollbar-thumb{\n /*滚动条里面小方块*/border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#535353}[data-v-4d48ef70] .select_modal_con ::-webkit-scrollbar-track{\n /*滚动条里面轨道*/-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);border-radius:10px;background:#ededed}',""]),e.exports=t},"56ea":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return i}));var i={uTabs:a("6c9f").default,uIcon:a("13a3").default,uPicker:a("d791").default,uCheckboxGroup:a("4e2d").default,uCheckbox:a("499e").default,uSelect:a("bb6d").default,uTabbar:a("fdab").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[a("v-uni-view",[a("v-uni-image",{staticClass:"w-full",attrs:{src:e.appConfig.policy_top_bg,mode:"widthFix"}})],1),a("u-tabs",{attrs:{list:e.typeList,"is-scroll":!1,bold:!0,"active-color":"#DD4250",height:"80","font-size":"28",current:e.currentTab},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTab.apply(void 0,arguments)}}}),0==e.currentTab?a("v-uni-view",{staticClass:"p-70 p-t-40 talent-tab"},[a("v-uni-view",{staticClass:"flex-col col-center"},e._l(e.talentTypeList,(function(e,t){return a("router-link",{staticClass:"m-t-20",attrs:{to:{path:"/pages/policy/talent",query:{type:e.type,title:e.title}}}},[a("v-uni-image",{attrs:{src:e.image,mode:"widthFix"}})],1)})),1)],1):e._e(),999==e.currentTab?a("v-uni-view",{staticClass:"huodong-details"},[a("v-uni-view",{staticClass:"p-30 "},[a("v-uni-view",{staticClass:"detail-title"},[e._v("人才信息提交")]),a("v-uni-view",{staticClass:"content-box bg-white m-t-30"},[e._l(e.surveyList,(function(t,i){return"array"!=t.type?a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.pickerShow(t.name)}}},[a("v-uni-view",{staticClass:"width75"},[e._v(e._s(t.description))]),"radio"==t.type||"select"==t.type?a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-text",{staticClass:"muted"},[e._v(e._s(t.value[e.survey[t.name]]))]),a("u-icon",{attrs:{name:"arrow-right",size:"28",color:"#B8B8B8","label-pos":"left"}}),a("u-picker",{attrs:{mode:"selector",range:t.value},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerConfirm(i,t)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerCancel(i)}},model:{value:e.show[t.name],callback:function(a){e.$set(e.show,t.name,a)},expression:"show[item.name]"}})],1):e._e(),"checkbox"==t.type?a("v-uni-view",{staticClass:"text-right flex-1"},[a("u-checkbox-group",{attrs:{shape:"circle","active-color":"#DD4250",name:t.name},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.groupChange(i,t)}}},e._l(t.value,(function(i,n){return a("u-checkbox",{key:n,attrs:{name:i},model:{value:t.checked[n],callback:function(a){e.$set(t.checked,n,a)},expression:"item.checked[key]"}},[e._v(e._s(i))])})),1)],1):e._e(),"text"==t.type?a("v-uni-view",{staticClass:"text-right flex-1"},[a("cus-selects",{attrs:{data:t.value,clearable:!0,filterable:!0,searchType:1,arrLeft:"300",placeholder:"输入搜索"},model:{value:e.survey[t.name],callback:function(a){e.$set(e.survey,t.name,a)},expression:"survey[item.name]"}})],1):e._e()],1):e._e()})),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("验证码")]),a("v-uni-view",{staticClass:"text-right flex-1 flex row-right"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.survey.code,callback:function(t){e.$set(e.survey,"code",t)},expression:"survey.code"}}),a("v-uni-image",{staticClass:"m-l-10",staticStyle:{height:"54rpx"},attrs:{src:e.captchaImg,mode:"heightFix"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refreshCaptcha.apply(void 0,arguments)}}})],1)],1)],2)],1),a("v-uni-view",{staticClass:"footer"},[a("v-uni-button",{staticClass:"white btn lg",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleConsult.apply(void 0,arguments)}}},[e._v("提交")])],1)],1):e._e(),1==e.currentTab?a("v-uni-view",[a("v-uni-view",{staticClass:"huodong-details"},[a("v-uni-view",{staticClass:"p-30 "},[a("v-uni-view",{staticClass:"detail-title"},[e._v("一、企业基本信息")]),a("v-uni-view",{staticClass:"content-box bg-white m-t-30"},[a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"width75"},[e._v("企业名称")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.name,callback:function(t){e.$set(e.info,"name",t)},expression:"info.name"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerShow("estdate")}}},[a("v-uni-view",{staticClass:"bold"},[e._v("企业成立日期")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-text",{staticClass:"muted"},[e._v(e._s(e.info.estdate))]),a("u-icon",{attrs:{name:"arrow-right",size:"28",color:"#B8B8B8",label:e.info.estdate?"":"请选择","label-pos":"left"}}),a("u-picker",{attrs:{mode:"time"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerConfirm("estdate",t)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerCancel("estdate")}},model:{value:e.show.estdate,callback:function(t){e.$set(e.show,"estdate",t)},expression:"show.estdate"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("企业注册地")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.address,callback:function(t){e.$set(e.info,"address",t)},expression:"info.address"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("企业实际经营地")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.busAddress,callback:function(t){e.$set(e.info,"busAddress",t)},expression:"info.busAddress"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("企业有效l类知识产权数")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.propertyNumber,callback:function(t){e.$set(e.info,"propertyNumber",t)},expression:"info.propertyNumber"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold",staticStyle:{width:"400rpx"}},[e._v("有效、高企认定中未使用过的II类知识产权数")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.propertyNumber2,callback:function(t){e.$set(e.info,"propertyNumber2",t)},expression:"info.propertyNumber2"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerShow("propertyMode")}}},[a("v-uni-view",{staticClass:"bold"},[e._v("知识产权获取方式")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-text",{staticClass:"muted"},[e._v(e._s(e.propertyMode.label))]),a("u-icon",{attrs:{name:"arrow-right",size:"28",color:"#B8B8B8",label:e.propertyMode?"":"请选择","label-pos":"left"}}),a("u-select",{attrs:{mode:"single-column",list:e.propertyModeList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerConfirm("propertyMode",t)}},model:{value:e.show.propertyMode,callback:function(t){e.$set(e.show,"propertyMode",t)},expression:"show.propertyMode"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerShow("isStandard")}}},[a("v-uni-view",{staticClass:"bold",staticStyle:{width:"400rpx"}},[e._v("企业参与编制国家标准、行业标准检测方法、技术规范的情况")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-text",{staticClass:"muted"},[e._v(e._s(e.isStandard.label))]),a("u-icon",{attrs:{name:"arrow-right",size:"28",color:"#B8B8B8",label:e.isStandard?"":"请选择","label-pos":"left"}}),a("u-select",{attrs:{mode:"single-column",list:e.isStandardList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerConfirm("isStandard",t)}},model:{value:e.show.isStandard,callback:function(t){e.$set(e.show,"isStandard",t)},expression:"show.isStandard"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold flex",staticStyle:{width:"400rpx"}},[a("v-uni-view",[e._v("科技成果数")]),a("v-uni-view",{staticClass:"m-l-8 m-r-8 primary",staticStyle:{"font-size":"20rpx"}},[e._v("科技成果数有效期提示")]),a("u-icon",{attrs:{name:"info-circle",color:"#DD4250"}})],1),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.achievementNumber,callback:function(t){e.$set(e.info,"achievementNumber",t)},expression:"info.achievementNumber"}})],1)],1)],1),a("v-uni-view",{staticClass:"detail-title m-t-30"},[e._v("二、研发组织管理水平评测(多选)")]),a("v-uni-view",{staticClass:"content-box m-t-30 bj-w "},[a("u-checkbox-group",{attrs:{shape:"circle","active-color":"#DD4250"}},e._l(e.manageLevelList,(function(t,i){return a("u-checkbox",{key:i,attrs:{name:t.name},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.checkboxChange(t)}},model:{value:t.checked,callback:function(a){e.$set(t,"checked",a)},expression:"item.checked"}},[e._v(e._s(t.label))])})),1)],1),a("v-uni-view",{staticClass:"detail-title m-t-30"},[e._v("三、企业成长性评测")]),a("v-uni-view",{staticClass:"content-box m-t-30 bj-w "},[a("v-uni-view",{staticClass:"detail-title p-t-30"},[e._v("第一年")]),a("v-uni-view",{staticClass:"detail-cell row-between "},[a("v-uni-view",{staticClass:"bold"},[e._v("净资产(万元)")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.netAssets1,callback:function(t){e.$set(e.info,"netAssets1",t)},expression:"info.netAssets1"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("销售收入(万元)")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.saleRevenue1,callback:function(t){e.$set(e.info,"saleRevenue1",t)},expression:"info.saleRevenue1"}})],1)],1),a("v-uni-view",{staticClass:"detail-title p-t-30"},[e._v("第二年")]),a("v-uni-view",{staticClass:"detail-cell row-between "},[a("v-uni-view",{staticClass:"bold"},[e._v("净资产(万元)")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.netAssets2,callback:function(t){e.$set(e.info,"netAssets2",t)},expression:"info.netAssets2"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("销售收入(万元)")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.saleRevenue2,callback:function(t){e.$set(e.info,"saleRevenue2",t)},expression:"info.saleRevenue2"}})],1)],1),a("v-uni-view",{staticClass:"detail-title p-t-30"},[e._v("第三年")]),a("v-uni-view",{staticClass:"detail-cell row-between "},[a("v-uni-view",{staticClass:"bold"},[e._v("净资产(万元)")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.netAssets3,callback:function(t){e.$set(e.info,"netAssets3",t)},expression:"info.netAssets3"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("销售收入(万元)")]),a("v-uni-view",{staticClass:"text-right flex-1"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.saleRevenue3,callback:function(t){e.$set(e.info,"saleRevenue3",t)},expression:"info.saleRevenue3"}})],1)],1),a("v-uni-view",{staticClass:"detail-cell row-between u-border-bottom"},[a("v-uni-view",{staticClass:"bold"},[e._v("验证码")]),a("v-uni-view",{staticClass:"text-right flex-1 flex row-right"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:e.info.code,callback:function(t){e.$set(e.info,"code",t)},expression:"info.code"}}),a("v-uni-image",{staticClass:"m-l-10",staticStyle:{height:"54rpx"},attrs:{src:e.captchaImg,mode:"heightFix"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refreshCaptcha.apply(void 0,arguments)}}})],1)],1)],1)],1),a("v-uni-view",{staticClass:"footer"},[a("v-uni-button",{staticClass:"white btn lg",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleConsult.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)],1):e._e(),a("u-tabbar",{attrs:{list:e.tabarList}})],1)},s=[]},6665:function(e,t,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("c7eb")),s=i(a("1da1"));a("a9e3"),a("ac1f");var l={name:"u-tabs",props:{isScroll:{type:Boolean,default:!0},list:{type:Array,default:function(){return[]}},current:{type:[Number,String],default:0},height:{type:[String,Number],default:80},fontSize:{type:[String,Number],default:30},duration:{type:[String,Number],default:.5},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#303133"},barWidth:{type:[String,Number],default:40},barHeight:{type:[String,Number],default:6},gutter:{type:[String,Number],default:30},bgColor:{type:String,default:"#ffffff"},name:{type:String,default:"name"},count:{type:String,default:"count"},offset:{type:Array,default:function(){return[5,20]}},bold:{type:Boolean,default:!0},activeItemStyle:{type:Object,default:function(){return{}}},showBar:{type:Boolean,default:!0},barStyle:{type:Object,default:function(){return{}}},itemWidth:{type:[Number,String],default:"auto"}},data:function(){return{scrollLeft:0,tabQueryInfo:[],componentWidth:0,scrollBarLeft:0,parentLeft:0,id:this.$u.guid(),currentIndex:this.current,barFirstTimeMove:!0}},watch:{list:function(e,t){var a=this;e.length!==t.length&&(this.currentIndex=0),this.$nextTick((function(){a.init()}))},current:{immediate:!0,handler:function(e,t){var a=this;this.$nextTick((function(){a.currentIndex=e,a.scrollByIndex()}))}}},computed:{tabBarStyle:function(){var e={width:this.barWidth+"rpx",transform:"translate(".concat(this.scrollBarLeft,"px, -100%)"),"transition-duration":"".concat(this.barFirstTimeMove?0:this.duration,"s"),"background-color":this.activeColor,height:this.barHeight+"rpx",opacity:this.barFirstTimeMove?0:1,"border-radius":"".concat(this.barHeight/2,"px")};return Object.assign(e,this.barStyle),e},tabItemStyle:function(){var e=this;return function(t){var a={height:e.height+"rpx","line-height":e.height+"rpx","font-size":e.fontSize+"rpx","transition-duration":"".concat(e.duration,"s"),padding:e.isScroll?"0 ".concat(e.gutter,"rpx"):"",flex:e.isScroll?"auto":"1",width:e.$u.addUnit(e.itemWidth)};return t==e.currentIndex&&e.bold&&(a.fontWeight="bold"),t==e.currentIndex?(a.color=e.activeColor,a=Object.assign(a,e.activeItemStyle)):a.color=e.inactiveColor,a}}},methods:{init:function(){var e=this;return(0,s.default)((0,n.default)().mark((function t(){var a;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$uGetRect("#"+e.id);case 2:a=t.sent,e.parentLeft=a.left,e.componentWidth=a.width,e.getTabRect();case 6:case"end":return t.stop()}}),t)})))()},clickTab:function(e){e!=this.currentIndex&&this.$emit("change",e)},getTabRect:function(){for(var e=uni.createSelectorQuery().in(this),t=0;t0&&void 0!==arguments[0]?arguments[0]:null;e&&this.$emit(e,this.selectValue),this.close()},selectHandler:function(){this.$emit("click")}}};t.default=i}}]);