"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 A=Object.create;var v=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var I=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports);var H=(e,i,o,r)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of B(i))!L.call(e,n)&&n!==o&&v(e,n,{get:()=>i[n],enumerable:!(r=E(i,n))||r.enumerable});return e};var C=(e,i,o)=>(o=e!=null?A(F(e)):{},H(i||!e||!e.__esModule?v(o,"default",{value:e,enumerable:!0}):o,e));var h=(e,i,o)=>new Promise((r,n)=>{var a=l=>{try{g(o.next(l))}catch(u){n(u)}},s=l=>{try{g(o.throw(l))}catch(u){n(u)}},g=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,s);g((o=o.apply(e,i)).next())});var x=I((j,S)=>{S.exports=Vue});var O=C(x());function T(e,i,...o){uni.__log__?uni.__log__(e,i,...o):console[e].apply(console,[...o,i])}var _={tips(e,i=2e3,o="bottom"){plus.nativeUI.toast(e,{type:"text",duration:i,align:"center",verticalAlign:o})},isIOS(){return uni.getSystemInfoSync().platform==="ios"},isAndroid(){return uni.getSystemInfoSync().platform==="android"},getUUID(){return h(this,null,function*(){return new Promise((e,i)=>{plus.device.getInfo({success:o=>{e(o.uuid)},fail:o=>{i(o)}})})})},timeToTimestamp(e){return new Date(e.replace(/-/g,"/"))},friendlyDate(e){let i=this.timeToTimestamp(e);var o={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"},r=Date.now(),n=Math.floor((r-i)/1e3),a=Math.floor(n/60),s=Math.floor(a/60),g=Math.floor(s/24),l=Math.floor(g/30),u=Math.floor(l/12),c="",p=0;return u>0?(c="year",p=u):l>0?(c="month",p=l):g>0?(c="day",p=g):s>0?(c="hour",p=s):a>0?(c="minute",p=a):(c="second",p=n===0?n=1:n),o[c].replace("%n%",p)},base64Encode(e){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="",r,n,a,s,g,l,u,c=0;for(e=this.utf8Encode(e);c<e.length;)r=e.charCodeAt(c++),n=e.charCodeAt(c++),a=e.charCodeAt(c++),s=r>>2,g=(r&3)<<4|n>>4,l=(n&15)<<2|a>>6,u=a&63,isNaN(n)?l=u=64:isNaN(a)&&(u=64),o=o+i.charAt(s)+i.charAt(g)+i.charAt(l)+i.charAt(u);return o},utf8Encode(e){e=e.replace(/\r\n/g,`
`);for(var i="",o=0;o<e.length;o++){var r=e.charCodeAt(o);r<128?i+=String.fromCharCode(r):r>127&&r<2048?(i+=String.fromCharCode(r>>6|192),i+=String.fromCharCode(r&63|128)):(i+=String.fromCharCode(r>>12|224),i+=String.fromCharCode(r>>6&63|128),i+=String.fromCharCode(r&63|128))}return i},utf8Decode(e){var i=[],o=0,r=0,n=0,a=0,s=0;for(e+="";o<e.length;)n=e.charCodeAt(o),n<128?(i[r++]=String.fromCharCode(n),o++):n>191&&n<224?(a=e.charCodeAt(o+1),i[r++]=String.fromCharCode((n&31)<<6|a&63),o+=2):(a=e.charCodeAt(o+1),s=e.charCodeAt(o+2),i[r++]=String.fromCharCode((n&15)<<12|(a&63)<<6|s&63),o+=3);return i.join("")},base64Decode(e){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,r,n,a,s,g,l,u,c=0,p=0,y="",f=[];if(!e)return e;for(e+="";c<e.length;)a=i.indexOf(e.charAt(c++)),s=i.indexOf(e.charAt(c++)),g=i.indexOf(e.charAt(c++)),l=i.indexOf(e.charAt(c++)),u=a<<18|s<<12|g<<6|l,o=u>>16&255,r=u>>8&255,n=u&255,g==64?f[p++]=String.fromCharCode(o):l==64?f[p++]=String.fromCharCode(o,r):f[p++]=String.fromCharCode(o,r,n);return y=f.join(""),this.utf8Decode(y)},hasNotchInScreen(){return plus.navigator.hasNotchInScreen()}},b=_,k=!1;function d(e){uni.getNetworkType({success:function(r){if(r.networkType=="none")return b.tips("\u8BF7\u68C0\u6D4B\u7F51\u7EDC\u8FDE\u63A5"),!1}}),e.loading&&uni.showLoading({title:"\u52A0\u8F7D\u4E2D...",mask:!0,icon:"none"});let i={};var o=uni.getStorageSync("USER_TOKEN");return i.Authorization=o,i["Content-Type"]="application/x-www-form-urlencoded",new Promise((r,n)=>{uni.request({url:e.url,method:e.method||"POST",data:e.data||{},header:i,timeout:5e3,success:a=>{k&&T("log","at utils/request.js:48",a),r(a.data)},fail:a=>{k&&T("log","at utils/request.js:52",a),n(a)},complete:a=>{e.loading&&uni.hideLoading()}})})}d.baseURL="https://newapp.cheshi.com";var t=C(x());var D=(e,i)=>{let o=e.__vccOpts||e;for(let[r,n]of i)o[r]=n;return o};var z=weex.requireModule("dom");z.addRule("fontFace",{fontFamily:"uniicons",src:"url('/static/uni.ttf')"});var R={components:{},data(){return{baseUrl:d.baseURL,iStatusBarHeight:0,scrollHeight:0,windowHeight:0,windowWidth:0,windowScale:1,signid:0,signName:"",currentType:0,currentAutoType:0,dataList:[],currentEnergy:{},showEnergy:!1,signHot:[]}},mounted(){let e=uni.getSystemInfoSync();this.iStatusBarHeight=e.statusBarHeight,this.windowHeight=e.windowHeight,this.windowWidth=e.windowWidth,this.windowScale=750/this.windowWidth,this.scrollHeight=this.windowHeight-108/this.windowScale-this.iStatusBarHeight},onLoad(e){this.signid=e.signid||0,this.signName=e.signname||"",this.getDataList()},methods:{getDataList(){return h(this,null,function*(){let e={url:this.baseUrl+"/v1/select/get-series?id="+this.signid,method:"GET",loading:!1},i=yield d(e),o=i.data?i.data.list:[];if(i.code==200){if(o){for(let r in o)for(let n in o[r].list)for(let a in o[r].list[n].list)for(let s in o[r].list[n].list[a].list)if(o[r].list[n].list[a].list[s].enegry_type!="")switch(o[r].list[n].list[a].list[s].enegry_type){case"\u63D2\u7535\u6DF7":o[r].list[n].list[a].list[s].enegry_img="../../../image/product/chadian.png";break;case"\u7EAF\u7535\u52A8":o[r].list[n].list[a].list[s].enegry_img="../../../image/product/chundian.png";break;case"\u6CB9\u7535\u6DF7":o[r].list[n].list[a].list[s].enegry_img="../../../image/product/youdian.png";break}}this.dataList=o,this.signHot=i.data?i.data.hot_bseries:[],this.signName=i.data.signinfo.signname}else b.tips(i.message)})},changeType(e){let i=e;this.currentType=i,this.dataList[this.currentType]&&!this.dataList[this.currentType].list[this.currentAutoType]&&(this.currentAutoType=0)},changeAutoType(e){let i=e;this.currentAutoType=i},showEnergyFn(e){let i=e||{};if(!i.name)return!1;this.currentEnergy=i,this.showEnergy=!0},closeEnergy(e){this.showEnergy=!1},navigateTo(e){uni.navigateTo({url:e})},navigateBack(){uni.navigateBack({delta:1})}}},N={content:{"":{backgroundColor:"#f5f6f9",position:"relative",flex:1,width:"750rpx"}},bgimg:{"":{width:"750rpx",height:"450rpx",position:"absolute",left:0,top:0}},toptool:{"":{alignItems:"center",justifyContent:"center",position:"relative",height:"88rpx"}},back_btn:{".toptool ":{position:"absolute",left:"32rpx",top:"32rpx",height:"24rpx",width:"24rpx",borderLeftWidth:"3rpx",borderLeftStyle:"solid",borderLeftColor:"#ffffff",borderBottomWidth:"3rpx",borderBottomStyle:"solid",borderBottomColor:"#ffffff",transform:"rotate(45deg)"}},back:{".toptool ":{fontFamily:"uniicons",fontWeight:"normal",color:"#ffffff",position:"absolute",left:"32rpx",top:"20rpx",fontSize:"40rpx"}},main_tit:{".toptool ":{color:"#ffffff",fontSize:"36rpx",fontWeight:"bold",textAlign:"center"}},back_btn_black:{".toptool ":{borderLeftWidth:"3rpx",borderLeftStyle:"solid",borderLeftColor:"#333333",borderBottomWidth:"3rpx",borderBottomStyle:"solid",borderBottomColor:"#333333"}},back_black:{".toptool ":{color:"#333333"}},main_tit_black:{".toptool ":{color:"#333333"}},tab:{"":{flexDirection:"row",paddingTop:"20rpx",alignItems:"center",justifyContent:"center",marginBottom:"30rpx"}},tabitem:{".tab ":{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)",position:"relative",justifyContent:"center",alignItems:"center",marginTop:0,marginRight:"25rpx",marginBottom:0,marginLeft:"25rpx",flexDirection:"row"},".tab .tabcur":{alignItems:"center",height:"80rpx",position:"relative",lineHeight:"67rpx"}},tabtext:{".tab .tabitem ":{lineHeight:"50rpx",height:"50rpx",fontSize:"36rpx",position:"relative"}},"text-cur":{".tab .tabitem ":{height:"67rpx",lineHeight:"67rpx",fontSize:"48rpx",fontWeight:"600",position:"relative"}},tabbg:{".tab .tabitem ":{height:"38rpx",flex:1,alignItems:"center",position:"absolute",bottom:0}},img:{".tab .tabitem .tabbg ":{width:"90rpx",height:"38rpx"}},container:{"":{marginTop:"20rpx"}},"sign-info-box":{"":{backgroundColor:"#ffffff",display:"flex",borderRadius:"16rpx",marginTop:0,marginRight:0,marginBottom:"10rpx",marginLeft:"32rpx",flexDirection:"column",width:"686rpx",paddingTop:"20rpx",paddingRight:"20rpx",paddingBottom:"20rpx",paddingLeft:"20rpx"}},"sign-logo":{".sign-info-box ":{alignItems:"center",flexDirection:"row",justifyContent:"space-between"}},logo_l:{".sign-info-box .sign-logo ":{flexDirection:"row",alignItems:"center"}},logo:{".sign-info-box .sign-logo .logo_l ":{width:"80rpx",marginRight:"30rpx"}},"logo-txt":{".sign-info-box .sign-logo .logo_l ":{fontSize:"32rpx",lineHeight:"45rpx",color:"#333333",fontWeight:"400"}},more:{".sign-info-box .sign-logo ":{flexDirection:"row",alignItems:"center"}},text:{".sign-info-box .sign-logo .more ":{fontSize:"24rpx",color:"#333333"},".subtab .item ":{fontSize:"26rpx",color:"#8E8E93"},".subtab .active ":{color:"#FF0005"},".list .type ":{fontSize:"24rpx",color:"#333333"},".list .list-item .series-info-box .name-val ":{fontSize:"36rpx",fontWeight:"bold",color:"#333333"},".list .list-item .series-info-box .price-box .price-txt ":{fontSize:"20rpx",color:"#C7C7CC"},".list .list-item .series-info-box .price-box .price-val ":{fontSize:"24rpx",color:"#FF0005",fontWeight:"bold"}},arrow:{".sign-info-box .sign-logo .more ":{fontSize:"30rpx",color:"#333333",fontFamily:"uniicons"}},"hot-sign-box":{".sign-info-box ":{marginTop:"20rpx",flexWrap:"nowrap",flexDirection:"row"}},"hot-sign":{".sign-info-box .hot-sign-box ":{flexDirection:"column",alignItems:"center",width:"198rpx",position:"relative"}},hot:{".sign-info-box .hot-sign-box .hot-sign ":{position:"absolute",top:0,left:0,width:"64rpx",height:"32rpx",fontSize:"20rpx"}},"series-pic":{".sign-info-box .hot-sign-box .hot-sign ":{width:"198rpx",height:"132rpx"}},"series-name":{".sign-info-box .hot-sign-box .hot-sign ":{fontSize:"24rpx",lineHeight:"40rpx",fontWeight:"bold",marginTop:"10rpx",color:"#333333"}},price:{".sign-info-box .hot-sign-box .hot-sign ":{fontSize:"24rpx",lineHeight:"40rpx",fontWeight:"bold",marginTop:"10rpx",color:"#FF0005"}},"hot-sign2":{".sign-info-box .hot-sign-box ":{marginTop:0,marginRight:"26rpx",marginBottom:0,marginLeft:"26rpx"}},subtab:{"":{display:"flex",alignItems:"center",flexDirection:"row",paddingTop:"30rpx",paddingRight:0,paddingBottom:"30rpx",paddingLeft:"8rpx",backgroundColor:"#f5f6f9"}},item:{".subtab ":{lineHeight:"37rpx",paddingTop:"10rpx",paddingRight:"24rpx",paddingBottom:"10rpx",paddingLeft:"24rpx",borderRadius:"28.5rpx",backgroundColor:"#ffffff",marginLeft:"20rpx"}},active:{".subtab ":{backgroundColor:"#FFE5E6"}},list:{"":{flexDirection:"column",alignItems:"center"}},type:{".list ":{height:"48rpx",alignItems:"center",flexDirection:"row",marginBottom:"20rpx",width:"686rpx"}},"list-item":{".list ":{width:"686rpx",backgroundColor:"#ffffff",paddingTop:"7rpx",paddingRight:"30rpx",paddingBottom:"7rpx",paddingLeft:"30rpx",borderRadius:"16rpx",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"20rpx"}},"series-thumb":{".list .list-item ":{width:"210rpx",height:"140rpx"}},"series-info-box":{".list .list-item ":{flexDirection:"column",width:"400rpx"}},"price-box":{".list .list-item .series-info-box ":{marginTop:"12rpx",flexDirection:"row",alignItems:"center"}},"price-txt":{".list .list-item .series-info-box .price-box ":{lineHeight:"37rpx",marginRight:"14rpx"}},"@TRANSITION":{tabitem:{property:"width,height,bottom",duration:300,timingFunction:"cubic-bezier(0.25,0.1,0.25,1)"}}};function W(e,i,o,r,n,a){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:"/static/topbg.png"}),(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)({height:e.iStatusBarHeight+"px"})},null,4),(0,t.createElementVNode)("view",{class:"toptool"},[(0,t.createElementVNode)("u-text",{class:"back back_black",onClick:i[0]||(i[0]=s=>e.navigateBack())},"\uE582"),(0,t.createElementVNode)("view",{class:"tab"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.dataList,(s,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["tabitem",e.currentType==g?"tabcur":""]),onClick:l=>e.changeType(g)},[e.currentType==g?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.currentType==g?"tabbg":"")},[(0,t.createElementVNode)("u-image",{class:"img",src:"/static/tabbg.png"})],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("u-text",{class:(0,t.normalizeClass)(["tabtext",e.currentType==g?"text-cur":""])},(0,t.toDisplayString)(s.name?s.name:""),3)],10,["onClick"]))),256))])]),(0,t.createElementVNode)("list",{class:"container",scrollY:"true",style:(0,t.normalizeStyle)("height: "+e.scrollHeight+"px")},[e.signid>0?((0,t.openBlock)(),(0,t.createElementBlock)("cell",{key:0},[(0,t.createElementVNode)("view",{class:"sign-info-box"},[(0,t.createElementVNode)("view",{class:"sign-logo"},[(0,t.createElementVNode)("view",{class:"logo_l"},[(0,t.createElementVNode)("u-image",{class:"logo",src:"https://icon.cheshi-img.com/logo_icon/"+e.signid+"_120.jpg",mode:"widthFix"},null,8,["src"]),(0,t.createElementVNode)("u-text",{class:"logo-txt"},(0,t.toDisplayString)(e.signName),1)]),(0,t.createElementVNode)("view",{class:"more",onClick:i[1]||(i[1]=s=>e.navigateTo("/pages/select/sign_introduce?id="+e.signid))},[(0,t.createElementVNode)("u-text",{class:"text"},"\u54C1\u724C\u4ECB\u7ECD "),(0,t.createElementVNode)("u-text",{class:"arrow"},"\uE470")])]),(0,t.createElementVNode)("view",{class:"hot-sign-box"},[e.signHot.length>0?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.signHot,(s,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{onClick:l=>e.navigateTo("/pages/bseries/index?id="+s.id),class:(0,t.normalizeClass)(["hot-sign",g==1?"hot-sign2":""])},[(0,t.createElementVNode)("u-image",{class:"series-pic",src:s.imgurl},null,8,["src"]),(0,t.createElementVNode)("u-image",{class:"hot",src:"/static/hot_icon.png"}),(0,t.createElementVNode)("u-text",{class:"series-name"},(0,t.toDisplayString)(s.name?s.name:""),1),(0,t.createElementVNode)("u-text",{class:"price"},(0,t.toDisplayString)(s.price),1)],10,["onClick"]))),256)):(0,t.createCommentVNode)("",!0)])])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("header",null,[(0,t.createElementVNode)("scroll-view",{class:"subtab",scrollX:"true",showScrollbar:"false"},[e.dataList[e.currentType]?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.dataList[e.currentType].list,(s,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["item",g==e.currentAutoType?"active":""]),onClick:l=>e.changeAutoType(g)},[(0,t.createElementVNode)("u-text",{class:"text",style:(0,t.normalizeStyle)({color:g==e.currentAutoType?"#FF0005":"#8E8E93"})},(0,t.toDisplayString)(s.name?s.name:""),5)],10,["onClick"]))),256)):(0,t.createCommentVNode)("",!0)])]),(0,t.createElementVNode)("cell",null,[e.dataList[e.currentType]?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.dataList[e.currentType].list[e.currentAutoType].list,(s,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"list"},[(0,t.createElementVNode)("view",{class:"type"},[(0,t.createElementVNode)("u-text",{class:"text"},(0,t.toDisplayString)(s.brandname),1)]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.list,(l,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"list-item",onClick:c=>e.navigateTo("/pages/bseries/index?id="+l.seriesId)},[(0,t.createElementVNode)("view",{class:"series-info-box"},[(0,t.createElementVNode)("view",{class:"name-val"},[(0,t.createElementVNode)("u-text",{class:"text"},(0,t.toDisplayString)(l.seriesName),1)]),(0,t.createElementVNode)("view",{class:"price-box"},[l.msrp!="\u6682\u65E0\u62A5\u4EF7"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"price-txt"},[(0,t.createElementVNode)("u-text",{class:"text"},(0,t.toDisplayString)(l.auto_status==25?"\u9884\u552E":"\u6307\u5BFC")+"\u4EF7",1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"price-val"},[(0,t.createElementVNode)("u-text",{class:"text"},(0,t.toDisplayString)(l.msrp),1)])])]),(0,t.createElementVNode)("u-image",{class:"series-thumb",src:l.imgurl,mode:"widthFix"},null,8,["src"])],8,["onClick"]))),256))]))),256)):(0,t.createCommentVNode)("",!0)])],4)])])}var m=D(R,[["render",W],["styles",[N]]]);var w=plus.webview.currentWebview();if(w){let e=parseInt(w.id),i="pages/select/bseries_list",o={};try{o=JSON.parse(w.__query__)}catch(n){}m.mpType="page";let r=Vue.createPageApp(m,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:i,__pageQuery:o});r.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...m.styles||[]])),r.mount("#root")}})();
