"use weex:vue";

if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
  Promise.prototype.finally = function(callback) {
    const promise = this.constructor
    return this.then(
      value => promise.resolve(callback()).then(() => value),
      reason => promise.resolve(callback()).then(() => {
        throw reason
      })
    )
  }
};

if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
  const global = uni.requireGlobal()
  ArrayBuffer = global.ArrayBuffer
  Int8Array = global.Int8Array
  Uint8Array = global.Uint8Array
  Uint8ClampedArray = global.Uint8ClampedArray
  Int16Array = global.Int16Array
  Uint16Array = global.Uint16Array
  Int32Array = global.Int32Array
  Uint32Array = global.Uint32Array
  Float32Array = global.Float32Array
  Float64Array = global.Float64Array
  BigInt64Array = global.BigInt64Array
  BigUint64Array = global.BigUint64Array
};


(()=>{var R=Object.create;var k=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var H=(e,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of A(r))!j.call(e,n)&&n!==i&&k(e,n,{get:()=>r[n],enumerable:!(s=E(r,n))||s.enumerable});return e};var w=(e,r,i)=>(i=e!=null?R(z(e)):{},H(r||!e||!e.__esModule?k(i,"default",{value:e,enumerable:!0}):i,e));var I=(e,r,i)=>new Promise((s,n)=>{var l=u=>{try{a(i.next(u))}catch(m){n(m)}},c=u=>{try{a(i.throw(u))}catch(m){n(m)}},a=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,c);a((i=i.apply(e,r)).next())});var b=N((ge,S)=>{S.exports=Vue});var t=w(b());var f=(e,r)=>{let i=e.__vccOpts||e;for(let[s,n]of r)i[s]=n;return i};var me=w(b()),P=e=>typeof e=="string";function T(e,r,...i){uni.__log__?uni.__log__(e,r,...i):console[e].apply(console,[...i,r])}function y(e,r){return P(e)?r:e}var O={tips(e,r=2e3,i="bottom"){plus.nativeUI.toast(e,{type:"text",duration:r,align:"center",verticalAlign:i})},isIOS(){return uni.getSystemInfoSync().platform==="ios"},isAndroid(){return uni.getSystemInfoSync().platform==="android"},getUUID(){return I(this,null,function*(){return new Promise((e,r)=>{plus.device.getInfo({success:i=>{e(i.uuid)},fail:i=>{r(i)}})})})},timeToTimestamp(e){return new Date(e.replace(/-/g,"/"))},friendlyDate(e){let r=this.timeToTimestamp(e);var i={year:"%n% \u5E74\u524D",month:"%n% \u6708\u524D",day:"%n% \u5929\u524D",hour:"%n% \u5C0F\u65F6\u524D",minute:"%n% \u5206\u949F\u524D",second:"%n% \u79D2\u524D"},s=Date.now(),n=Math.floor((s-r)/1e3),l=Math.floor(n/60),c=Math.floor(l/60),a=Math.floor(c/24),u=Math.floor(a/30),m=Math.floor(u/12),p="",d=0;return m>0?(p="year",d=m):u>0?(p="month",d=u):a>0?(p="day",d=a):c>0?(p="hour",d=c):l>0?(p="minute",d=l):(p="second",d=n===0?n=1:n),i[p].replace("%n%",d)},base64Encode(e){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="",s,n,l,c,a,u,m,p=0;for(e=this.utf8Encode(e);p<e.length;)s=e.charCodeAt(p++),n=e.charCodeAt(p++),l=e.charCodeAt(p++),c=s>>2,a=(s&3)<<4|n>>4,u=(n&15)<<2|l>>6,m=l&63,isNaN(n)?u=m=64:isNaN(l)&&(m=64),i=i+r.charAt(c)+r.charAt(a)+r.charAt(u)+r.charAt(m);return i},utf8Encode(e){e=e.replace(/\r\n/g,`
`);for(var r="",i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?r+=String.fromCharCode(s):s>127&&s<2048?(r+=String.fromCharCode(s>>6|192),r+=String.fromCharCode(s&63|128)):(r+=String.fromCharCode(s>>12|224),r+=String.fromCharCode(s>>6&63|128),r+=String.fromCharCode(s&63|128))}return r},utf8Decode(e){var r=[],i=0,s=0,n=0,l=0,c=0;for(e+="";i<e.length;)n=e.charCodeAt(i),n<128?(r[s++]=String.fromCharCode(n),i++):n>191&&n<224?(l=e.charCodeAt(i+1),r[s++]=String.fromCharCode((n&31)<<6|l&63),i+=2):(l=e.charCodeAt(i+1),c=e.charCodeAt(i+2),r[s++]=String.fromCharCode((n&15)<<12|(l&63)<<6|c&63),i+=3);return r.join("")},base64Decode(e){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,s,n,l,c,a,u,m,p=0,d=0,h="",x=[];if(!e)return e;for(e+="";p<e.length;)l=r.indexOf(e.charAt(p++)),c=r.indexOf(e.charAt(p++)),a=r.indexOf(e.charAt(p++)),u=r.indexOf(e.charAt(p++)),m=l<<18|c<<12|a<<6|u,i=m>>16&255,s=m>>8&255,n=m&255,a==64?x[d++]=String.fromCharCode(i):u==64?x[d++]=String.fromCharCode(i,s):x[d++]=String.fromCharCode(i,s,n);return h=x.join(""),this.utf8Decode(h)},hasNotchInScreen(){return plus.navigator.hasNotchInScreen()}},W=O,B=!1;function C(e){uni.getNetworkType({success:function(s){if(s.networkType=="none")return W.tips("\u8BF7\u68C0\u6D4B\u7F51\u7EDC\u8FDE\u63A5"),!1}}),e.loading&&uni.showLoading({title:"\u52A0\u8F7D\u4E2D...",mask:!0,icon:"none"});let r={};var i=uni.getStorageSync("USER_TOKEN");return r.Authorization=i,r["Content-Type"]="application/x-www-form-urlencoded",new Promise((s,n)=>{uni.request({url:e.url,method:e.method||"POST",data:e.data||{},header:r,timeout:5e3,success:l=>{B&&T("log","at utils/request.js:48",l),s(l.data)},fail:l=>{B&&T("log","at utils/request.js:52",l),n(l)},complete:l=>{e.loading&&uni.hideLoading()}})})}C.baseURL="https://newapp.cheshi.com";var g=w(b());var q={tabbar_wrap:{"":{position:"fixed",bottom:0,left:0,width:"750rpx",height:"184rpx",backgroundColor:"rgba(0,0,0,0)",display:"flex",justifyContent:"center",alignItems:"center"}},tabbar:{"":{width:"686rpx",height:"120rpx",flexDirection:"row",paddingLeft:"86rpx",paddingRight:"86rpx",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",borderRadius:"32rpx",boxShadow:"0rpx 0rpx 32rpx 0rpx rgba(0,0,0,0.1)"}},tab:{"":{alignItems:"center",justifyContent:"center"}},tabimg:{"":{width:"48rpx",height:"48rpx",marginBottom:"3rpx"}},"tab-text":{"":{fontSize:"24rpx",lineHeight:"33rpx",textAlign:"center",fontWeight:"400",color:"#8E8E93"}},"bar-cur":{"":{color:"#333333",fontWeight:"600"}}},V={props:{currentPage:{type:Number,default:0}},data(){return{currentItem:0,tabs:[{id:0,path:"/pages/index/index",text:"\u9996\u9875",icon:"/static/home.png",selectIcon:"/static/home1.png"},{id:1,path:"/pages/select/index",text:"\u9009\u8F66\u4E2D\u5FC3",icon:"/static/select.png",selectIcon:"/static/select1.png"},{id:2,path:"/pages/mycenter/index",text:"\u6211\u7684",icon:"/static/center.png",selectIcon:"/static/center1.png"}]}},mounted(){this.currentItem=this.currentPage,uni.hideTabBar()},methods:{changeItem(e){uni.switchTab({url:e.path})},stopClick(){return!1}}};function M(e,r,i,s,n,l){return(0,g.openBlock)(),(0,g.createElementBlock)("view",{class:"tabbar_wrap",onClick:r[0]||(r[0]=(0,g.withModifiers)((...c)=>l.stopClick&&l.stopClick(...c),["stop"])),renderWhole:!0},[(0,g.createElementVNode)("view",{class:"tabbar"},[((0,g.openBlock)(!0),(0,g.createElementBlock)(g.Fragment,null,(0,g.renderList)(n.tabs,(c,a)=>((0,g.openBlock)(),(0,g.createElementBlock)("view",{class:"tab",onClick:(0,g.withModifiers)(u=>l.changeItem(c),["stop"])},[(0,g.createElementVNode)("u-image",{class:"tabimg",src:n.currentItem==c.id?c.selectIcon:c.icon,mode:""},null,8,["src"]),(0,g.createElementVNode)("u-text",{class:(0,g.normalizeClass)(n.currentItem==c.id?"tab-text bar-cur":"tab-text")},(0,g.toDisplayString)(c.text),3)],8,["onClick"]))),256))])])}var D=f(V,[["render",M],["styles",[q]]]);var o=w(b());var U="/static/link-outlined.png",G="/static/bf.png",K={newsitem:{"":{width:"686rpx",backgroundColor:"#FFFFFF",borderRadius:"16rpx",overflow:"hidden",paddingTop:"30rpx",paddingRight:"20rpx",paddingBottom:"30rpx",paddingLeft:"20rpx"}},columnType:{".newsitem ":{height:"32rpx",alignItems:"flex-start",marginBottom:"20rpx"}},"type-text":{".newsitem .columnType ":{fontSize:"20rpx",color:"#8E8E93",fontWeight:"400",backgroundColor:"#efeff4",height:"32rpx",lineHeight:"32rpx",paddingTop:0,paddingRight:"10rpx",paddingBottom:0,paddingLeft:"10rpx"}},onebox:{".newsitem .nrbox ":{flexDirection:"row",justifyContent:"space-between"}},onetitle:{".newsitem .nrbox .onebox ":{width:"388rpx",height:"150rpx"}},"one-title-text":{".newsitem .nrbox .onebox .onetitle ":{overflow:"hidden",lines:3,textOverflow:"ellipsis",fontSize:"36rpx",color:"#333333",fontWeight:"600",lineHeight:"48rpx"}},"one-img-box":{".newsitem .nrbox .onebox ":{width:"226rpx",height:"150rpx",overflow:"hidden",borderRadius:"16rpx"}},"one-img":{".newsitem .nrbox .onebox .one-img-box ":{borderRadius:"16rpx",width:"226rpx",height:"150rpx"}},moretitle:{".newsitem .nrbox .morebox ":{marginBottom:"20rpx"},".newsitem .vbox ":{marginBottom:"20rpx"}},"more-title-text":{".newsitem .nrbox .morebox .moretitle ":{fontSize:"36rpx",color:"#333333",fontWeight:"600",lineHeight:"48rpx"},".newsitem .vbox .moretitle ":{fontSize:"36rpx",color:"#333333",fontWeight:"600",lineHeight:"48rpx"}},"more-img-box":{".newsitem .nrbox .morebox ":{width:"646rpx",height:"142rpx",overflow:"hidden",borderRadius:"16rpx",flexDirection:"row",justifyContent:"space-between"}},"more-img":{".newsitem .nrbox .morebox .more-img-box ":{width:"213rpx",height:"142rpx"}},"img-right":{".newsitem .nrbox .morebox .more-img-box ":{borderTopRightRadius:"16rpx",borderBottomRightRadius:"16rpx"}},"bottom-box":{".newsitem .nrbox ":{marginTop:"20rpx",height:"33rpx",lineHeight:"33rpx",flexDirection:"row",alignItems:"center"}},"b-t-box":{".newsitem .nrbox .bottom-box ":{flexDirection:"row",alignItems:"center",height:"33rpx",marginRight:"10rpx"}},"bot-text":{".newsitem .nrbox .bottom-box .b-t-box ":{fontSize:"24rpx",color:"#8E8E93",marginRight:"10rpx"}},xline:{".newsitem .nrbox .bottom-box .b-t-box ":{width:"1rpx",height:"20rpx",backgroundColor:"#D1D1D6"}},"ser-box":{".newsitem .nrbox .bottom-box ":{marginLeft:"16rpx",flexDirection:"row",alignItems:"center"}},cxtb:{".newsitem .nrbox .bottom-box .ser-box ":{width:"24rpx",height:"24rpx",marginRight:"10rpx"}},cxm:{".newsitem .nrbox .bottom-box .ser-box ":{fontSize:"24rpx",color:"#333333"}},vinner:{".newsitem .vbox ":{width:"646rpx",height:"404rpx",overflow:"hidden",borderRadius:"16rpx",alignItems:"center"}},"v-img":{".newsitem .vbox .vinner ":{width:"646rpx",height:"404rpx",borderRadius:"16rpx",flex:1}},"bf-icon":{".newsitem .vbox .vinner ":{width:"120rpx",height:"120rpx",position:"absolute",top:"142rpx",left:"263rpx"}},"v-time":{".newsitem .vbox .vinner ":{backgroundColor:"rgba(0,0,0,0.5)",fontSize:"24rpx",color:"#FFFFFF",height:"33rpx",lineHeight:"33rpx",paddingTop:0,paddingRight:"8rpx",paddingBottom:0,paddingLeft:"8rpx",position:"absolute",bottom:"10rpx",right:"10rpx",borderRadius:"8rpx"}}},J={props:{newsItem:{type:Object,default:function(e){return{}}},stype:{type:[String],default:""}},methods:{click(){this.$emit("click")},bseriesFn(e){e.stopPropagation(),this.$emit("bseriesFn")}}};function Q(e,r,i,s,n,l){return(0,o.openBlock)(),(0,o.createElementBlock)("view",{class:"newsitem",onClick:r[1]||(r[1]=(...c)=>l.click&&l.click(...c)),renderWhole:!0},[i.stype!="search"?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:0,class:"columnType"},[(0,o.createElementVNode)("u-text",{class:"type-text"},(0,o.toDisplayString)(i.newsItem.columnType),1)])):(0,o.createCommentVNode)("",!0),i.newsItem.imgType!="video"?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:1,class:"nrbox"},[i.newsItem.imgType=="one"?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:0,class:"onebox"},[(0,o.createElementVNode)("view",{class:"onetitle"},[(0,o.createElementVNode)("u-text",{class:"one-title-text"},(0,o.toDisplayString)(i.newsItem.title),1)]),(0,o.createElementVNode)("view",{class:"one-img-box"},[(0,o.createElementVNode)("u-image",{class:"one-img",src:i.newsItem.title_pic1,fadeShow:"true"},null,8,["src"])])])):(0,o.createCommentVNode)("",!0),i.newsItem.imgType=="more"?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:1,class:"morebox"},[(0,o.createElementVNode)("view",{class:"moretitle"},[(0,o.createElementVNode)("u-text",{class:"more-title-text"},(0,o.toDisplayString)(i.newsItem.title),1)]),(0,o.createElementVNode)("view",{class:"more-img-box"},[((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(3,c=>(0,o.createElementVNode)("u-image",{class:(0,o.normalizeClass)(["more-img",c==3?"img-right":""]),src:i.newsItem.picList[c-1],fadeShow:"true",style:(0,o.normalizeStyle)(c==1?"border-top-left-radius: 16rpx;border-bottom-left-radius: 16rpx;":"")},null,14,["src"])),64))])])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("view",{class:"bottom-box"},[i.newsItem.author?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:0,class:"b-t-box"},[(0,o.createElementVNode)("u-text",{class:"bot-text"},(0,o.toDisplayString)(i.newsItem.author),1)])):(0,o.createCommentVNode)("",!0),i.newsItem.commentCount!=""?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:1,class:"b-t-box"},[(0,o.createElementVNode)("u-text",{class:"bot-text"},(0,o.toDisplayString)(i.newsItem.commentCount)+"\u6761\u8BC4\u8BBA",1)])):(0,o.createCommentVNode)("",!0),i.newsItem.modi_date_format?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:2,class:"b-t-box"},[(0,o.createElementVNode)("u-text",{class:"bot-text"},(0,o.toDisplayString)(i.newsItem.modi_date_format),1)])):(0,o.createCommentVNode)("",!0),i.newsItem.bseries.name!=""?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:3,class:"ser-box",onClick:r[0]||(r[0]=(0,o.withModifiers)((...c)=>l.bseriesFn&&l.bseriesFn(...c),["stop"]))},[(0,o.createElementVNode)("u-image",{class:"cxtb",src:U,mode:""}),(0,o.createElementVNode)("u-text",{class:"cxm"},(0,o.toDisplayString)(i.newsItem.bseries.name),1)])):(0,o.createCommentVNode)("",!0)])])):(0,o.createCommentVNode)("",!0),i.newsItem.imgType=="video"?((0,o.openBlock)(),(0,o.createElementBlock)("view",{key:2,class:"vbox"},[(0,o.createElementVNode)("view",{class:"moretitle"},[(0,o.createElementVNode)("u-text",{class:"more-title-text"},(0,o.toDisplayString)(i.newsItem.title),1)]),(0,o.createElementVNode)("view",{class:"vinner"},[(0,o.createElementVNode)("u-image",{class:"v-img",src:i.newsItem.title_pic1,mode:""},null,8,["src"]),(0,o.createElementVNode)("u-image",{class:"bf-icon",src:G,mode:""}),(0,o.createElementVNode)("u-text",{class:"v-time"},(0,o.toDisplayString)(i.newsItem.video_length),1)])])):(0,o.createCommentVNode)("",!0)])}var F=f(J,[["render",Q],["styles",[K]]]);var X={"uni-swiper__warp":{"":{flex:1,flexDirection:"column",position:"relative",overflow:"hidden"}},"uni-swiper__dots-box":{"":{position:"absolute",bottom:"10rpx",left:0,right:0,flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center"}},"uni-swiper__dots-item":{"":{width:"8rpx",borderRadius:"100rpx",marginLeft:"6rpx",backgroundColor:"rgba(0,0,0,0.4)","marginTop:first-child":0,"marginRight:first-child":0,"marginBottom:first-child":0,"marginLeft:first-child":0}},"uni-swiper__dots-default":{"":{borderRadius:"100rpx"}},"uni-swiper__dots-long":{"":{borderRadius:"50rpx"}},"uni-swiper__dots-bar":{"":{borderRadius:"50rpx"}},"uni-swiper__dots-nav":{"":{bottom:"0rpx",height:"40rpx",flex:1,flexDirection:"row",justifyContent:"flex-start",alignItems:"center",backgroundColor:"rgba(0,0,0,0.2)"}},"uni-swiper__dots-nav-item":{"":{fontSize:14,color:"#ffffff",marginTop:0,marginRight:"15rpx",marginBottom:0,marginLeft:"15rpx"}},"uni-swiper__dots-indexes":{"":{justifyContent:"center",alignItems:"center"}},"uni-swiper__dots-indexes-text":{"":{color:"#ffffff",fontSize:12}}},Y={name:"UniSwiperDot",emits:["clickItem"],props:{info:{type:Array,default(){return[]}},current:{type:Number,default:0},dotsStyles:{type:Object,default(){return{}}},mode:{type:String,default:"default"},field:{type:String,default:""}},data(){return{dots:{width:8,height:8,bottom:10,color:"#fff",backgroundColor:"rgba(0, 0, 0, .3)",border:"1rpx rgba(0, 0, 0, .3) solid",selectedBackgroundColor:"#333",selectedBorder:"1rpx rgba(0, 0, 0, .9) solid"}}},watch:{dotsStyles(e){this.dots=Object.assign(this.dots,this.dotsStyles)},mode(e){e==="indexes"?(this.dots.width=20,this.dots.height=20):(this.dots.width=8,this.dots.height=8)}},created(){this.mode==="indexes"&&(this.dots.width=20,this.dots.height=20),this.dots=Object.assign(this.dots,this.dotsStyles)},methods:{clickItem(e){this.$emit("clickItem",e)}}};function Z(e,r,i,s,n,l){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"uni-swiper__warp",renderWhole:!0},[(0,t.renderSlot)(e.$slots,"default"),i.mode==="default"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{style:(0,t.normalizeStyle)({bottom:n.dots.bottom+"rpx"}),class:"uni-swiper__dots-box",key:"default"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.info,(c,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{onClick:u=>l.clickItem(a),style:(0,t.normalizeStyle)({width:(a===i.current?n.dots.width*2:n.dots.width)+"rpx",height:n.dots.width/3+"rpx","background-color":a!==i.current?n.dots.backgroundColor:n.dots.selectedBackgroundColor,"border-radius":"0rpx"}),key:a,class:"uni-swiper__dots-item uni-swiper__dots-bar"},null,12,["onClick"]))),128))],4)):(0,t.createCommentVNode)("",!0),i.mode==="dot"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{style:(0,t.normalizeStyle)({bottom:n.dots.bottom+"rpx"}),class:"uni-swiper__dots-box",key:"dot"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.info,(c,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{onClick:u=>l.clickItem(a),style:(0,t.normalizeStyle)({width:n.dots.width+"rpx",height:n.dots.height+"rpx","background-color":a!==i.current?n.dots.backgroundColor:n.dots.selectedBackgroundColor,border:a!==i.current?n.dots.border:n.dots.selectedBorder}),key:a,class:"uni-swiper__dots-item"},null,12,["onClick"]))),128))],4)):(0,t.createCommentVNode)("",!0),i.mode==="round"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{style:(0,t.normalizeStyle)({bottom:n.dots.bottom+"rpx"}),class:"uni-swiper__dots-box",key:"round"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.info,(c,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{onClick:u=>l.clickItem(a),class:(0,t.normalizeClass)([[a===i.current&&"uni-swiper__dots-long"],"uni-swiper__dots-item"]),style:(0,t.normalizeStyle)({width:(a===i.current?n.dots.width*3:n.dots.width)+"rpx",height:n.dots.height+"rpx","background-color":a!==i.current?n.dots.backgroundColor:n.dots.selectedBackgroundColor,border:a!==i.current?n.dots.border:n.dots.selectedBorder}),key:a},null,14,["onClick"]))),128))],4)):(0,t.createCommentVNode)("",!0),i.mode==="nav"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"nav",style:(0,t.normalizeStyle)({"background-color":i.dotsStyles.backgroundColor,bottom:"0"}),class:"uni-swiper__dots-box uni-swiper__dots-nav"},[(0,t.createElementVNode)("u-text",{style:(0,t.normalizeStyle)({color:i.dotsStyles.color}),class:"uni-swiper__dots-nav-item"},(0,t.toDisplayString)(i.current+1+"/"+i.info.length+" "+i.info[i.current][i.field]),5)],4)):(0,t.createCommentVNode)("",!0),i.mode==="indexes"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"indexes",style:(0,t.normalizeStyle)({bottom:n.dots.bottom+"rpx"}),class:"uni-swiper__dots-box"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.info,(c,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{onClick:u=>l.clickItem(a),style:(0,t.normalizeStyle)({width:n.dots.width+"rpx",height:n.dots.height+"rpx",color:a===i.current?n.dots.selectedColor:n.dots.color,"background-color":a!==i.current?n.dots.backgroundColor:n.dots.selectedBackgroundColor,border:a!==i.current?n.dots.border:n.dots.selectedBorder}),key:a,class:"uni-swiper__dots-item uni-swiper__dots-indexes"},[(0,t.createElementVNode)("u-text",{class:"uni-swiper__dots-indexes-text"},(0,t.toDisplayString)(a+1),1)],12,["onClick"]))),128))],4)):(0,t.createCommentVNode)("",!0)])}var $=f(Y,[["render",Z],["styles",[X]]]),L=C.baseURL,ee={components:{newsItem:F},data(){return{pageHeight:500,last_id:"",tabType:"recom",tabIndex:0,tabList:[],dataList:[],isNoData:!1,isLoading:!1,loadingText:"\u52A0\u8F7D\u66F4\u591A",cacheTab:[],refreshing:!1,refreshText:"\u2193 \u4E0B\u62C9\u5237\u65B0",iStatusBarHeight:0,searchText:"\u6377\u9014X90 | \u6377\u8FBEVS7 | \u5965\u8FEAA6L",swiperDot:{current:0,dotIndex:0,autoplay:!0,interval:4e3,dotStyle:{backgroundColor:"rgba(255, 255, 255, .5)",border:"0",selectedBackgroundColor:"#ff0005",selectedBorder:"0",bottom:16},info:[]}}},mounted(){let e=uni.getSystemInfoSync();this.pageHeight=e.windowHeight,this.iStatusBarHeight=e.statusBarHeight,this._lastTabIndex=0,this._touchTabIndex=0,this.pageList=[],this.loadBanner(),this.loadData()},onReady(){},methods:{setScrollRef(e,r){},change(e){this.swiperDot.current=e.detail.current},goSelect(e){uni.navigateTo({url:"/pages/select/filter"})},tabFun(e){this.tabIndex=e,this.tabType=this.tabList[e].type,this.last_id="",this.dataList=[],this.loadData()},onpullingdown(e){this.refreshing||(Math.abs(e.pullingDistance)>Math.abs(e.viewHeight)?this.refreshText="\u677E\u624B\u5373\u53EF\u5237\u65B0":this.refreshText="\u4E0B\u62C9\u5237\u65B0")},onrefresh(e){this.refreshing||(this.refreshing=!0,this.refreshText="\u6B63\u5728\u5237\u65B0\u6570\u636E...",setTimeout(()=>{this.last_id="",this.loadBanner(),this.dataList=[],this.loadData()},1e3))},loadBanner(){uni.request({url:L+"/v1/news/index",method:"GET",success:e=>{let r=e.data;r.code==200&&(this.swiperDot.info=r.data.banner)},fail:e=>{},complete:e=>{}})},loadData(e){this.isLoading||(this.isLoading=!0,this.isNoData=!1,uni.request({url:L+"/v1/news/list",method:"GET",data:{type:this.tabType,last_id:this.last_id},success:r=>{let i=r.data;if(i.code==200){this.tabList.length<1&&(this.tabList=i.data.column),this.last_id=i.data.last_id;let s=i.data.data;this.dataList=this.dataList.concat(s)}},fail:r=>{this.dataList.length==0&&(this.isNoData=!0)},complete:r=>{this.isLoading=!1,this.refreshing=!1}}))},onloading(e){this.loadData()},loadmore(e){},goDetail(e){e.type=="video"&&uni.navigateTo({url:"/pages/video/index?id="+e.id+"&type="+e.type}),e.type=="news"&&uni.navigateTo({url:"/pages/news/index?id="+e.id+"&type="+e.type})},goSearch(){uni.navigateTo({url:"/pages/search/index"})},goPk(){uni.navigateTo({url:"/pages/pk/index"})},goCalculator(){uni.navigateTo({url:"/pages/select/calculator?type=index"})},goBseries(e){uni.navigateTo({url:"/pages/bseries/index?id="+e.bseries.id})},goPrice(e,r){uni.navigateTo({url:"/pages/inquiry/index"})},goPaihang(){uni.navigateTo({url:"/pages/select/rank"})},onBanner(e){e.type=="video"&&uni.navigateTo({url:"/pages/video/index?id="+e.cmsId+"&type="+e.type}),e.type=="news"&&uni.navigateTo({url:"/pages/news/index?id="+e.cmsId+"&type="+e.type})},switchTab(e){},scrollTabTo(e){},animationfinish(e){let r=e.detail.current;this._touchTabIndex===r&&(this.isTap=!1),this._lastTabIndex=r,this.switchTab(r)},onswiperscroll(){}}},te="/static/topbg.png",ie="/static/searchicon.png",re="/static/tjxc.png",oe="/static/sbxc.png",ne="/static/xdj.png",se="/static/jsq.png",ae="/static/pk.png",le="/static/tabbg.png",de={content:{"":{backgroundColor:"#f5f6f9",flex:1}},topview:{"":{position:"relative",alignItems:"center",paddingBottom:"20rpx"}},searchbox:{"":{width:"686rpx",height:"68rpx",backgroundColor:"#FFFFFF",boxShadow:"0rpx 0rpx 32rpx 0rpx rgba(0, 0, 0, 0.1)",borderRadius:"34rpx",paddingTop:0,paddingRight:"30rpx",paddingBottom:0,paddingLeft:"30rpx",flexDirection:"row",alignItems:"center"}},"search-icon":{"":{width:"38rpx",height:"38rpx",marginRight:"20rpx"}},"search-text":{"":{fontSize:"26rpx",color:"#C7C7CC",fontWeight:"400"}},bgimg:{"":{width:"750rpx",height:"450rpx",position:"absolute",left:0,top:0}},biglist:{"":{backgroundColor:"rgba(0,0,0,0)",flex:1}},refreshbox:{"":{left:0,right:0,paddingTop:"20rpx",paddingRight:"20rpx",paddingBottom:"20rpx",paddingLeft:"20rpx",flexDirection:"row",alignItems:"center",justifyContent:"center"}},limg:{"":{marginLeft:"20rpx"},".loadingbox ":{marginLeft:"20rpx",height:"26rpx",width:"26rpx"}},retext:{"":{fontSize:"26rpx",color:"#333333"}},"swiper-box":{"":{height:"288rpx",width:"686rpx",borderRadius:"16rpx",overflow:"hidden",backgroundColor:"rgba(0,0,0,0)"}},"swiper-item":{"":{flexDirection:"column",justifyContent:"center",alignItems:"center",color:"#ffffff"}},"swiper-wrap":{"":{height:"298rpx",alignItems:"center",paddingTop:"10rpx"}},image:{"":{width:"686rpx",height:"288rpx",borderRadius:"16rpx"}},laz:{"":{width:"686rpx",height:"288rpx",borderRadius:"16rpx"}},"icon-box":{"":{paddingTop:"40rpx",paddingRight:"32rpx",paddingBottom:"30rpx",paddingLeft:"32rpx",flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:"#f5f6f9"}},iconview:{"":{flex:1,alignItems:"center"}},"icon-img":{"":{width:"72rpx",height:"72rpx",marginBottom:"16rpx"}},"icon-text":{"":{fontSize:"24rpx",lineHeight:"33rpx",textAlign:"center",color:"#333333"}},xiding:{"":{backgroundColor:"#f5f6f9"}},newstab:{"":{flexDirection:"row",paddingTop:"10rpx",paddingRight:"32rpx",paddingBottom:"20rpx",paddingLeft:"32rpx",alignItems:"center",backgroundColor:"#f5f6f9",justifyContent:"space-between",height:"110rpx"}},tabitem:{"":{height:"50rpx",lineHeight:"50rpx",fontSize:"36rpx",color:"#333333",fontWeight:"400",transitionProperty:"width,height,bottom",transitionDuration:300,transitionTimingFunction:"cubic-bezier(0.25,0.1,0.25,1)"}},tabtext:{"":{lineHeight:"50rpx",height:"50rpx",fontSize:"36rpx"}},tabcur:{"":{alignItems:"center",height:"80rpx",position:"relative",lineHeight:"67rpx"}},"text-cur":{"":{height:"67rpx",lineHeight:"67rpx",fontSize:"48rpx",fontWeight:"600"}},tabbg:{"":{width:"90rpx",height:"38rpx",position:"absolute",bottom:0}},newslist:{"":{paddingTop:"10rpx",paddingRight:"32rpx",paddingBottom:"10rpx",paddingLeft:"32rpx",display:"flex"}},loadingbox:{"":{left:0,right:0,paddingTop:"20rpx",paddingRight:"20rpx",paddingBottom:"20rpx",paddingLeft:"20rpx",flexDirection:"row",justifyContent:"center",alignItems:"flex-start"}},loadtext:{"":{fontSize:"26rpx",color:"#333333",lineHeight:"26rpx"}},"@TRANSITION":{tabitem:{property:"width,height,bottom",duration:300,timingFunction:"cubic-bezier(0.25,0.1,0.25,1)"}}};function ce(e,r,i,s,n,l){let c=(0,t.resolveComponent)("swiper-item"),a=(0,t.resolveComponent)("swiper"),u=y((0,t.resolveDynamicComponent)("uni-swiper-dot"),$),m=(0,t.resolveComponent)("news-item"),p=y((0,t.resolveDynamicComponent)("TabBars"),D);return(0,t.openBlock)(),(0,t.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,t.createElementVNode)("view",{class:"content"},[(0,t.createElementVNode)("u-image",{class:"bgimg",src:te}),(0,t.createElementVNode)("view",{class:"topview"},[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)({height:e.iStatusBarHeight+"px"})},null,4),(0,t.createElementVNode)("view",{class:"searchbox",onClick:r[0]||(r[0]=(...d)=>e.goSearch&&e.goSearch(...d))},[(0,t.createElementVNode)("u-image",{class:"search-icon",src:ie}),(0,t.createElementVNode)("u-text",{class:"search-text"},(0,t.toDisplayString)(e.searchText),1)])]),(0,t.createElementVNode)("list",{id:"page",class:"biglist",bounce:!0,showScrollbar:!1,loadmoreoffset:"2"},[(0,t.createElementVNode)("refresh",{class:"refreshbox",onPullingdown:r[1]||(r[1]=(...d)=>e.onpullingdown&&e.onpullingdown(...d)),onRefresh:r[2]||(r[2]=(...d)=>e.onrefresh&&e.onrefresh(...d)),display:e.refreshing?"show":"hide"},[(0,t.createElementVNode)("u-text",{class:"retext"},(0,t.toDisplayString)(e.refreshText),1),(0,t.createElementVNode)("loading-indicator",{class:"limg"})],40,["display"]),(0,t.createElementVNode)("cell",null,[(0,t.createElementVNode)("view",{class:"swiper-wrap"},[(0,t.createElementVNode)("view",{class:"rabox"},[(0,t.createVNode)(u,{class:"uni-swiper-dot-box",info:e.swiperDot.info,current:e.swiperDot.current,mode:"round","dots-styles":e.swiperDot.dotStyle},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{class:"swiper-box",onChange:e.change,autoplay:e.swiperDot.autoplay,interval:e.swiperDot.interval,circular:"true"},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.swiperDot.info,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(c,{key:h},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:"swiper-item"},[(0,t.createElementVNode)("u-image",{class:"image",src:d.pic,draggable:!1,onClick:x=>e.onBanner(d),fadeShow:"true"},null,8,["src","onClick"])])]),_:2},1024))),128))]),_:1},8,["onChange","autoplay","interval"])]),_:1},8,["info","current","dots-styles"])])]),(0,t.createElementVNode)("view",{class:"icon-box"},[(0,t.createElementVNode)("view",{class:"iconview",onClick:r[3]||(r[3]=(...d)=>e.goSelect&&e.goSelect(...d))},[(0,t.createElementVNode)("u-image",{class:"icon-img",src:re}),(0,t.createElementVNode)("u-text",{class:"icon-text"},"\u6761\u4EF6\u9009\u8F66")]),(0,t.createElementVNode)("view",{class:"iconview",onClick:r[4]||(r[4]=(...d)=>e.goPaihang&&e.goPaihang(...d))},[(0,t.createElementVNode)("u-image",{class:"icon-img",src:oe}),(0,t.createElementVNode)("u-text",{class:"icon-text"},"\u9500\u91CF\u6392\u884C")]),(0,t.createElementVNode)("view",{class:"iconview",onClick:r[5]||(r[5]=(...d)=>e.goPrice&&e.goPrice(...d))},[(0,t.createElementVNode)("u-image",{class:"icon-img",src:ne}),(0,t.createElementVNode)("u-text",{class:"icon-text"},"\u5E95\u4EF7\u67E5\u8BE2")]),(0,t.createElementVNode)("view",{class:"iconview",onClick:r[6]||(r[6]=(...d)=>e.goCalculator&&e.goCalculator(...d))},[(0,t.createElementVNode)("u-image",{class:"icon-img",src:se}),(0,t.createElementVNode)("u-text",{class:"icon-text"},"\u8BA1\u7B97\u5668")]),(0,t.createElementVNode)("view",{class:"iconview",onClick:r[7]||(r[7]=(...d)=>e.goPk&&e.goPk(...d))},[(0,t.createElementVNode)("u-image",{class:"icon-img",src:ae}),(0,t.createElementVNode)("u-text",{class:"icon-text"},"\u8F66\u578B\u5BF9\u6BD4")])])]),(0,t.createElementVNode)("header",{class:"xiding",ref:"xiding"},[(0,t.createElementVNode)("view",{class:"newstab"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.tabList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["tabitem",e.tabIndex==h?"tabcur":""]),onClick:x=>e.tabFun(h),key:h},[e.tabIndex==h?((0,t.openBlock)(),(0,t.createElementBlock)("u-image",{key:0,class:(0,t.normalizeClass)(e.tabIndex==h?"tabbg":""),src:le},null,2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("u-text",{class:(0,t.normalizeClass)(["tabtext",e.tabIndex==h?"text-cur":""])},(0,t.toDisplayString)(d.title),3)],10,["onClick"]))),128))])],512),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.dataList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("cell",{class:"newslist",key:h},[(0,t.createElementVNode)("view",{class:"newsbox"},[(0,t.createVNode)(m,{newsItem:d,onClick:x=>e.goDetail(d),onBseriesFn:x=>e.goBseries(d)},null,8,["newsItem","onClick","onBseriesFn"])])]))),128)),(0,t.createElementVNode)("loading",{class:"loadingbox",onLoading:r[8]||(r[8]=(...d)=>e.onloading&&e.onloading(...d)),display:e.isLoading?"show":"hide"},[(0,t.createElementVNode)("u-text",{class:"loadtext"},"\u52A0\u8F7D\u4E2D..."),(0,t.createElementVNode)("loading-indicator",{class:"limg"})],40,["display"])])]),(0,t.createVNode)(p,{"current-page":0})])}var v=f(ee,[["render",ce],["styles",[de]]]);var _=plus.webview.currentWebview();if(_){let e=parseInt(_.id),r="pages/index/index",i={};try{i=JSON.parse(_.__query__)}catch(n){}v.mpType="page";let s=Vue.createPageApp(v,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:r,__pageQuery:i});s.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...v.styles||[]])),s.mount("#root")}})();
