"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 N=Object.create;var D=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var M=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of O(t))!P.call(e,a)&&a!==i&&D(e,a,{get:()=>t[a],enumerable:!(n=U(t,a))||n.enumerable});return e};var S=(e,t,i)=>(i=e!=null?N(R(e)):{},M(t||!e||!e.__esModule?D(i,"default",{value:e,enumerable:!0}):i,e));var x=(e,t,i)=>new Promise((n,a)=>{var o=c=>{try{l(i.next(c))}catch(d){a(d)}},g=c=>{try{l(i.throw(c))}catch(d){a(d)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,g);l((i=i.apply(e,t)).next())});var w=z((te,A)=>{A.exports=Vue});var ie=S(w());function E(e,t,...i){uni.__log__?uni.__log__(e,t,...i):console[e].apply(console,[...i,t])}var W={tips(e,t=2e3,i="bottom"){plus.nativeUI.toast(e,{type:"text",duration:t,align:"center",verticalAlign:i})},isIOS(){return uni.getSystemInfoSync().platform==="ios"},isAndroid(){return uni.getSystemInfoSync().platform==="android"},getUUID(){return x(this,null,function*(){return new Promise((e,t)=>{plus.device.getInfo({success:i=>{e(i.uuid)},fail:i=>{t(i)}})})})},timeToTimestamp(e){return new Date(e.replace(/-/g,"/"))},friendlyDate(e){let t=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"},n=Date.now(),a=Math.floor((n-t)/1e3),o=Math.floor(a/60),g=Math.floor(o/60),l=Math.floor(g/24),c=Math.floor(l/30),d=Math.floor(c/12),u="",h=0;return d>0?(u="year",h=d):c>0?(u="month",h=c):l>0?(u="day",h=l):g>0?(u="hour",h=g):o>0?(u="minute",h=o):(u="second",h=a===0?a=1:a),i[u].replace("%n%",h)},base64Encode(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="",n,a,o,g,l,c,d,u=0;for(e=this.utf8Encode(e);u<e.length;)n=e.charCodeAt(u++),a=e.charCodeAt(u++),o=e.charCodeAt(u++),g=n>>2,l=(n&3)<<4|a>>4,c=(a&15)<<2|o>>6,d=o&63,isNaN(a)?c=d=64:isNaN(o)&&(d=64),i=i+t.charAt(g)+t.charAt(l)+t.charAt(c)+t.charAt(d);return i},utf8Encode(e){e=e.replace(/\r\n/g,`
`);for(var t="",i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(n&63|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(n&63|128))}return t},utf8Decode(e){var t=[],i=0,n=0,a=0,o=0,g=0;for(e+="";i<e.length;)a=e.charCodeAt(i),a<128?(t[n++]=String.fromCharCode(a),i++):a>191&&a<224?(o=e.charCodeAt(i+1),t[n++]=String.fromCharCode((a&31)<<6|o&63),i+=2):(o=e.charCodeAt(i+1),g=e.charCodeAt(i+2),t[n++]=String.fromCharCode((a&15)<<12|(o&63)<<6|g&63),i+=3);return t.join("")},base64Decode(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,n,a,o,g,l,c,d,u=0,h=0,I="",v=[];if(!e)return e;for(e+="";u<e.length;)o=t.indexOf(e.charAt(u++)),g=t.indexOf(e.charAt(u++)),l=t.indexOf(e.charAt(u++)),c=t.indexOf(e.charAt(u++)),d=o<<18|g<<12|l<<6|c,i=d>>16&255,n=d>>8&255,a=d&255,l==64?v[h++]=String.fromCharCode(i):c==64?v[h++]=String.fromCharCode(i,n):v[h++]=String.fromCharCode(i,n,a);return I=v.join(""),this.utf8Decode(I)},hasNotchInScreen(){return plus.navigator.hasNotchInScreen()}},_=W,k=!1;function p(e){uni.getNetworkType({success:function(n){if(n.networkType=="none")return _.tips("\u8BF7\u68C0\u6D4B\u7F51\u7EDC\u8FDE\u63A5"),!1}}),e.loading&&uni.showLoading({title:"\u52A0\u8F7D\u4E2D...",mask:!0,icon:"none"});let t={};var i=uni.getStorageSync("USER_TOKEN");return t.Authorization=i,t["Content-Type"]="application/x-www-form-urlencoded",new Promise((n,a)=>{uni.request({url:e.url,method:e.method||"POST",data:e.data||{},header:t,timeout:5e3,success:o=>{k&&E("log","at utils/request.js:48",o),n(o.data)},fail:o=>{k&&E("log","at utils/request.js:52",o),a(o)},complete:o=>{e.loading&&uni.hideLoading()}})})}p.baseURL="https://newapp.cheshi.com";var C="USER_TOKEN",b="USER_INFO",f=p.baseURL+"/v1",H={baseURL:f,STORAGE_USER_KEY:b,isLogin(){return!!(uni.getStorageSync(C)&&uni.getStorageSync(b))},login(){return uni.navigateTo({url:"/pages/login/index"}),!1},bindThird(e){let t={url:f+"/user/bind-app",data:{openid:e.openid,type:e.type,unionid:e.unionid,nickname:e.nickname,avatar:e.avatar}};return p(t)},getUserInfo(e=!1){return x(this,null,function*(){if(!e){let n=uni.getStorageSync(b);if(n)return n}let t={url:f+"/person/user-info"};return(yield p(t)).data})},getCode(e,t,i,n){let a={url:f+"/user/get-code",data:{device_id:e,mobile:t,token:i,type:n}};return p(a)},fastLogin(e,t){let i={url:f+"/user/fast-login",data:{mobile:e,code:t}};return p(i)},logOff(){let e={url:f+"/person/log-off"};return p(e)},oAuthLogin(e,t,i,n,a,o,g){let l={url:f+"/user/oauth-login",data:{openid:e,type:t,unionid:i,nickname:n,user_img:a,mobile:o,code:g}};return p(l)},updateUserInfo(e,t){let i={url:f+"/person/update-user-info",data:{key:e,value:t}};return p(i)},bindMobile(e,t){let i={url:f+"/user/bind-mobile",data:{mobile:e,code:t}};return p(i)},getNewsHistory(e,t="news",i=10){let n={url:f+"/person/my-history",data:{type:t,page:e,limit:i},method:"POST"};return p(n)},getFocus(e,t=10){let i={url:f+"/person/my-focus",data:{page:e,limit:t},method:"POST"};return p(i)},addFocus(e){let t={url:f+"/person/add-focus",data:{to_uid:e},method:"post"};return p(t)},delFocus(e){let t={url:f+"/person/del-focus",data:{to_uid:e},method:"post"};return p(t)},getMyLikes(e){let t={url:f+"/collect/list",data:{type:e.type,page:e.page,limit:e.limit||30},method:"post"};return p(t)},getProvinceList(){let e={url:f+"/user/get-provinces"};return p(e)},getCityList(e){let t={url:f+"/user/get-citys",data:{provinceID:e}};return p(t)},logout(){this.updateUserClientId("del"),uni.removeStorageSync(C),uni.removeStorageSync(b)},getFavoriteList(e){let t={url:f+"/story/collectlist",data:{action:e.type||"all",page:e.page||1,pagesize:e.limit||10}};return p(t)},thirdLogin(e){return x(this,null,function*(){let t={url:f+"/user/oauth-login",data:{openid:e.openid,type:e.type,unionid:e.unionid,nickname:e.nickname,avatar:e.avatar,mobile:e.mobile,code:e.code}},i=yield p(t);if(_.tips(i.message),i.code==204&&e.mobile==0&&e.code==0)return uni.setStorageSync("LOGIN_BIND_INFO",t.data),uni.redirectTo({url:"/pages/user/bind-mobile/index"}),!1;if(i.code!=200)return uni.removeStorageSync(C),uni.removeStorageSync(b),!1;uni.setStorageSync(C,i.data.login_token),uni.setStorageSync(b,i.data.user_info),this.updateUserClientId("add"),uni.switchTab({url:"/pages/index/index"})})},share(e){return x(this,null,function*(){if(!this.isAppExists("wechat"))return!1;let[t,i]=yield uni.showActionSheet({itemList:["\u5206\u4EAB\u7ED9\u670B\u53CB","\u5206\u4EAB\u5230\u670B\u53CB\u5708"]});if(!i)return!1;let n=yield this.getUserInfo(),a=["video","live"].includes(e.imageType)?n.base_share_host+"/app_"+e.imageType+"_"+e.id+"/?s_id="+n.id:n.base_share_host+"/kaizen/article/"+n.id+"/"+e.id+".html",o=e.title_pic1||e.share_logo,g={provider:"weixin",scene:i.tapIndex==0?"WXSceneSession":"WXSenceTimeline",type:0,href:a,title:e.title+" - KAIZEN",summary:e.short_summary,imageUrl:o};uni.setClipboardData({data:e.short_summary}),yield uni.share(g);let l={url:f+"/story/share",data:{favid:e.id,action:e.imageType}};yield p(l)})},updateUserClientId(e){let t=uni.getStorageSync("UNI_PUSH_CLIENT_ID")||"";if(t=="")return!1;let i={url:f+"/user/push-device",data:{action:e,cid:t,from:_.isIOS()?"ios":"android"}};return p(i)},updateAppBadge(){let e=uni.getStorageSync("UNI_PUSH_CLIENT_ID")||"";if(e==""||_.isAndroid())return!1;let t={url:f+"/public/delete-badge",data:{cid:e,badge:0}};return p(t)},isAppExists(e){let t={};switch(e){case"wechat":t.pname="com.tencent.mm",t.action="weixin://";break;default:t.pname="",t.action=""}return plus.runtime.isApplicationExist(t)}},j=H;var m=S(w());var y=(e,t)=>{let i=e.__vccOpts||e;for(let[n,a]of t)i[n]=a;return i};var q={nodata_template:{"":{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},wrap:{".nodata_template ":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},nodataimg:{".nodata_template .wrap ":{width:"360rpx",marginBottom:"20rpx"}},text:{".nodata_template .wrap .nodatatxt ":{textAlign:"center",fontSize:"24rpx",color:"#8E8E93"}}},V={props:{oWidth:{type:[String],default:"750rpx"},oHeight:{type:[String],default:"600rpx"},oTxt:{type:[String],default:"\u6682\u65E0\u6570\u636E"}},methods:{}};function G(e,t,i,n,a,o){return(0,m.openBlock)(),(0,m.createElementBlock)("view",{class:"nodata_template",style:(0,m.normalizeStyle)({height:i.oHeight,width:i.oWidth}),renderWhole:!0},[(0,m.createElementVNode)("view",{class:"wrap"},[(0,m.createElementVNode)("u-image",{class:"nodataimg",src:"/static/nodata.png",mode:"widthFix"}),(0,m.createElementVNode)("view",{class:"nodatatxt"},[(0,m.createElementVNode)("u-text",{class:"text"},(0,m.toDisplayString)(i.oTxt),1)])])],4)}var B=y(V,[["render",G],["styles",[q]]]);var r=S(w());var K={"page-news":{"":{flex:1,flexDirection:"column",position:"absolute",left:0,top:0,right:0,bottom:0}},listview:{"":{position:"absolute",left:0,top:0,right:0,bottom:0}},infobox:{"":{marginTop:"30rpx",marginRight:0,marginBottom:"30rpx",marginLeft:0,flexDirection:"row",alignItems:"center",justifyContent:"space-between"}},"info-left":{"":{justifyContent:"center"}},carname:{"":{width:"426rpx",fontSize:"36rpx",fontWeight:"600",color:"#333333",lineHeight:"50rpx",marginBottom:"10rpx"}},pricebox:{"":{flexDirection:"row",height:"33rpx",alignItems:"center"}},normal:{"":{lineHeight:"33rpx",fontSize:"20rpx",color:"#c7c7cc",marginRight:"10rpx"}},price:{"":{fontSize:"24rpx",fontWeight:"600",color:"#ff0005"}},"info-right":{"":{width:"240rpx",height:"160rpx"}},carimg:{"":{width:"240rpx",height:"160rpx"}},newstitle:{"":{width:"430rpx",lines:2,textOverflow:"ellipsis",fontSize:"36rpx",fontWeight:"600",color:"#333333",lineHeight:"50rpx",marginBottom:"8rpx"}},newsdate:{"":{lineHeight:"33rpx",fontSize:"24rpx",color:"#8E8E93"}},"news-right":{"":{width:"226rpx",height:"150rpx",borderRadius:"16rpx",overflow:"hidden"}},newsimg:{"":{width:"226rpx",height:"150rpx",borderRadius:"16rpx"}},"video-right":{"":{width:"226rpx",height:"142rpx",alignItems:"center",justifyContent:"center"}},"video-img":{"":{width:"226rpx",height:"142rpx",position:"absolute",top:0,left:0,borderRadius:"16rpx"}},bf:{"":{width:"50rpx",height:"50rpx"}},nodata:{"":{paddingTop:"100rpx",paddingRight:0,paddingBottom:"100rpx",paddingLeft:0,color:"#8E8E93",fontSize:"24rpx",textAlign:"center"}},ldbox:{"":{paddingTop:"20rpx",paddingRight:0,paddingBottom:"20rpx",paddingLeft:0,textAlign:"center",flexDirection:"row",justifyContent:"center",alignItems:"flex-start"}}},Y={components:{noData:B},props:{ntype:{type:[String],default:""}},data(){return{dataList:[],canLoad:!1,isLoading:!1,page:1,loadingText:"\u52A0\u8F7D\u4E2D..."}},created(){this.pullTimer=null,this.requestParams={type:this.ntype,page:this.page,limit:30}},methods:{loadDate(){return x(this,null,function*(){if(this.canLoad)return;this.canLoad=!0;let e=yield j.getMyLikes(this.requestParams);e.code==200?(e.data.length>0?(this.dataList=this.dataList.concat(e.data),this.canLoad=!1,this.isLoading=!1):this.loadingText="\u6CA1\u6709\u66F4\u591A\u4E86",this.page+=1):uni.showToast({title:e.message,icon:"none",mask:!0})})},onloading(){this.isLoading=!0,setTimeout(()=>{this.loadDate()},2e3)},goDetail(e){e.type=="bseries"&&uni.navigateTo({url:"/pages/bseries/index?id="+e.eid}),e.type=="model"&&uni.navigateTo({url:"/pages/bseries/model?id="+e.eid}),e.type=="news"&&uni.navigateTo({url:"/pages/news/index?id="+e.eid+"&type=news"}),e.type=="video"&&uni.navigateTo({url:"/pages/video/index?id="+e.eid+"&type=video"})}}};function X(e,t,i,n,a,o){let g=(0,r.resolveComponent)("no-data");return(0,r.openBlock)(),(0,r.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,r.createElementVNode)("view",{class:"page-news"},[(0,r.createElementVNode)("list",{ref:"list",class:"listview",bounce:!0,loadmoreoffset:"1"},[a.dataList.length>0&&!a.isLoading?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(a.dataList,(l,c)=>((0,r.openBlock)(),(0,r.createElementBlock)("cell",{key:c,onClick:d=>o.goDetail(l)},[i.ntype=="bseries"?((0,r.openBlock)(),(0,r.createElementBlock)("view",{key:0,class:"infobox"},[(0,r.createElementVNode)("view",{class:"info-left"},[(0,r.createElementVNode)("u-text",{class:"carname"},(0,r.toDisplayString)(l.info.name),1),(0,r.createElementVNode)("view",{class:"pricebox"},[(0,r.createElementVNode)("u-text",{class:"normal"},"\u6307\u5BFC\u4EF7"),(0,r.createElementVNode)("u-text",{class:"price"},(0,r.toDisplayString)((l.info.minmsrp/1e4).toFixed(2))+" - "+(0,r.toDisplayString)((l.info.maxmsrp/1e4).toFixed(2))+"\u4E07",1)])]),(0,r.createElementVNode)("view",{class:"info-right"},[(0,r.createElementVNode)("u-image",{class:"carimg",src:l.info.pic,mode:""},null,8,["src"])])])):(0,r.createCommentVNode)("",!0),i.ntype=="model"?((0,r.openBlock)(),(0,r.createElementBlock)("view",{key:1,class:"infobox"},[(0,r.createElementVNode)("view",{class:"info-left"},[(0,r.createElementVNode)("u-text",{class:"carname"},(0,r.toDisplayString)(l.info.name),1),(0,r.createElementVNode)("view",{class:"pricebox"},[(0,r.createElementVNode)("u-text",{class:"normal"},"\u6307\u5BFC\u4EF7"),(0,r.createElementVNode)("u-text",{class:"price"},(0,r.toDisplayString)((l.info.minprice/1e4).toFixed(2))+" - "+(0,r.toDisplayString)((l.info.maxprice/1e4).toFixed(2))+"\u4E07",1)])]),(0,r.createElementVNode)("view",{class:"info-right"},[(0,r.createElementVNode)("u-image",{class:"carimg",src:l.info.imgurl,mode:""},null,8,["src"])])])):(0,r.createCommentVNode)("",!0),i.ntype=="news"?((0,r.openBlock)(),(0,r.createElementBlock)("view",{key:2,class:"infobox"},[(0,r.createElementVNode)("view",{class:"info-left"},[(0,r.createElementVNode)("u-text",{class:"newstitle"},(0,r.toDisplayString)(l.info.title),1),(0,r.createElementVNode)("u-text",{class:"newsdate"},(0,r.toDisplayString)(l.info.modi_date),1)]),(0,r.createElementVNode)("view",{class:"news-right"},[(0,r.createElementVNode)("u-image",{class:"newsimg",src:l.info.title_pic1,mode:""},null,8,["src"])])])):(0,r.createCommentVNode)("",!0),i.ntype=="video"?((0,r.openBlock)(),(0,r.createElementBlock)("view",{key:3,class:"infobox"},[(0,r.createElementVNode)("view",{class:"info-left"},[(0,r.createElementVNode)("u-text",{class:"newstitle"},(0,r.toDisplayString)(l.info.title),1),(0,r.createElementVNode)("u-text",{class:"newsdate"},(0,r.toDisplayString)(l.info.modi_date),1)]),(0,r.createElementVNode)("view",{class:"video-right"},[(0,r.createElementVNode)("u-image",{class:"video-img",src:l.info.title_pic1,mode:""},null,8,["src"]),(0,r.createElementVNode)("u-image",{class:"bf",src:"/static/bf.png",mode:""})])])):(0,r.createCommentVNode)("",!0)],8,["onClick"]))),128)):a.isLoading?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("cell",{key:1},[(0,r.createVNode)(g,{oHeight:"800rpx",oWidth:"686rpx"})])),a.isLoading?((0,r.openBlock)(),(0,r.createElementBlock)("cell",{key:2},[(0,r.createElementVNode)("view",{class:"ldbox"},[(0,r.createElementVNode)("u-text",null,(0,r.toDisplayString)(a.loadingText),1)])])):(0,r.createCommentVNode)("",!0),a.dataList.length>20?((0,r.openBlock)(),(0,r.createElementBlock)("loading",{key:3,class:"loadingbox",onLoading:t[0]||(t[0]=(...l)=>o.onloading&&o.onloading(...l)),display:a.isLoading?"show":"hide"},null,40,["display"])):(0,r.createCommentVNode)("",!0)],512)])])}var F=y(Y,[["render",X],["styles",[K]]]);var s=S(w());var J={tabs:{"":{flex:1,flexDirection:"column",overflow:"hidden",backgroundColor:"#ffffff",paddingTop:"20rpx",paddingRight:"32rpx",paddingBottom:0,paddingLeft:"32rpx"}},tabbox:{"":{height:"84rpx",flexDirection:"row",justifyContent:"space-between"}},"uni-tab-item":{"":{flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",height:"84rpx"}},"uni-tab-item-title":{"":{color:"#333333",fontSize:"36rpx",height:"68rpx",lineHeight:"68rpx",flexWrap:"nowrap"}},"uni-tab-item-title-active":{"":{fontWeight:"600",fontSize:"48rpx"}},"tab-bar-line":{"":{width:0,height:"0rpx",borderRadius:"4rpx",backgroundColor:"#ff0005",transitionProperty:"width,height",transitionDuration:300}},"tab-bar-line-active":{"":{height:"8rpx",width:"24rpx"}},"tab-box":{"":{flex:1}},"swiper-item":{"":{flex:1}},"page-item":{"":{flex:1,flexDirection:"row",position:"absolute",left:0,top:0,right:0,bottom:0}},"@TRANSITION":{"tab-bar-line":{property:"width,height",duration:300}}},Q=100,Z={components:{collectPage:F},data(){return{tabList:[{id:"tab01",name:"\u8F66\u7CFB",type:"bseries"},{id:"tab02",name:"\u8F66\u578B",type:"model"},{id:"tab03",name:"\u6587\u7AE0",type:"news"},{id:"tab04",name:"\u89C6\u9891",type:"video"}],tabIndex:0,cacheTab:[],theList:[],isTap:!1,pages:1,isLoading:!1,canLoad:!1,loadingText:"\u52A0\u8F7D\u4E2D..."}},onLoad(e){return x(this,null,function*(){})},onReady(){this._lastTabIndex=0,this._touchTabIndex=0,this.pageList=[];for(var e=0;e<this.tabList.length;e++){let t=this.$refs["page"+e];Array.isArray(t)?this.pageList.push(t[0]):this.pageList.push(t)}setTimeout(()=>{this.switchTab(this.tabIndex)},10)},methods:{ontabtap(e){let t=e.target.dataset.current||e.currentTarget.dataset.current;this.switchTab(t)},switchTab(e){this.pageList[e].dataList.length===0&&this.loadTabData(e),this.tabIndex!==e&&(this.pageList[this.tabIndex].dataList.length>Q&&this.cacheTab.indexOf(this.tabIndex)<0&&this.cacheTab.push(this.tabIndex),this.tabIndex=e)},onswiperscroll(e){if(!this.isTap){var t=this._lastTabIndex;t===this._lastTabIndex||t<0||t>this.pageList.length-1||this.pageList[t].dataList.length===0&&this.loadTabData(t)}},onswiperchange(e){let t=e.target.current||e.detail.current;this.switchTab(t)},animationfinish(e){let t=e.detail.current;this._touchTabIndex===t&&(this.isTap=!1),this._lastTabIndex=t,this.switchTab(t)},loadTabData(e){this.pageList[e].loadDate()}}};function $(e,t,i,n,a,o){let g=(0,s.resolveComponent)("collectPage"),l=(0,s.resolveComponent)("swiper-item"),c=(0,s.resolveComponent)("swiper");return(0,s.openBlock)(),(0,s.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,s.createElementVNode)("view",{class:"tabs"},[(0,s.createElementVNode)("view",{class:"tabbox"},[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(a.tabList,(d,u)=>((0,s.openBlock)(),(0,s.createElementBlock)("view",{class:"uni-tab-item",key:d.id,id:d.id,ref_for:!0,ref:"tabitem"+u,"data-id":u,"data-current":u,onClick:t[0]||(t[0]=(...h)=>o.ontabtap&&o.ontabtap(...h))},[(0,s.createElementVNode)("u-text",{class:(0,s.normalizeClass)(["uni-tab-item-title",a.tabIndex==u?"uni-tab-item-title-active":""])},(0,s.toDisplayString)(d.name),3),(0,s.createElementVNode)("view",{class:(0,s.normalizeClass)(["tab-bar-line",a.tabIndex==u?"tab-bar-line-active":""])},null,2)],8,["id","data-id","data-current"]))),128))]),(0,s.createVNode)(c,{class:"tab-box",ref:"swiper1",current:a.tabIndex,duration:300,onChange:o.onswiperchange,onTransition:o.onswiperscroll,onAnimationfinish:o.animationfinish,onOnAnimationEnd:o.animationfinish},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(a.tabList,(d,u)=>((0,s.openBlock)(),(0,s.createBlock)(l,{class:"swiper-item",key:u},{default:(0,s.withCtx)(()=>[(0,s.createVNode)(g,{class:"page-item",ntype:d.type,ref_for:!0,ref:"page"+u},null,8,["ntype"])]),_:2},1024))),128))]),_:1},8,["current","onChange","onTransition","onAnimationfinish","onOnAnimationEnd"])])])}var T=y(Z,[["render",$],["styles",[J]]]);var L=plus.webview.currentWebview();if(L){let e=parseInt(L.id),t="pages/mycenter/collect",i={};try{i=JSON.parse(L.__query__)}catch(a){}T.mpType="page";let n=Vue.createPageApp(T,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:t,__pageQuery:i});n.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...T.styles||[]])),n.mount("#root")}})();
