"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 g=Object.create;var w=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var y=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of b(e))!m.call(t,i)&&i!==s&&w(t,i,{get:()=>e[i],enumerable:!(r=h(e,i))||r.enumerable});return t};var x=(t,e,s)=>(s=t!=null?g(f(t)):{},y(e||!t||!t.__esModule?w(s,"default",{value:t,enumerable:!0}):s,t));var u=_((B,p)=>{p.exports=Vue});var o=x(u());var c=(t,e)=>{let s=t.__vccOpts||t;for(let[r,i]of e)s[r]=i;return s};var v={bigbox:{"":{flex:1,position:"fixed",left:0,top:0,width:"750rpx"}},box:{"":{flex:1,backgroundColor:"#ffffff",position:"fixed",left:0,top:0}}},k={data(){return{webviewStyles:{progress:{color:"#FF3333"}},iStatusBarHeight:0,scrollHeight:0,windowHeight:0,windowWidth:0,windowScale:1,webViewTop:0,webViewHeight:0,rankParam:""}},onLoad(t){let e=uni.getSystemInfoSync();this.iStatusBarHeight=e.statusBarHeight,this.windowHeight=e.windowHeight,this.windowWidth=e.windowWidth,this.windowScale=750/this.windowWidth,e.platform=="ios"?(this.webViewHeight=e.windowHeight+e.statusBarHeight,this.webViewTop=-e.statusBarHeight):this.webViewHeight=e.windowHeight;function s(r){return Object.keys(r).map(i=>i+"="+r[i]).join("&")}this.rankParam=t.type?s(t):""},methods:{postMessage(t){switch(t.detail.data[0].type){case"bseries":uni.navigateTo({url:"/pages/bseries/index?id="+t.detail.data[0].id});break;case"model":uni.navigateTo({url:"/pages/bseries/model?bid="+t.detail.data[0].id});break;case"inquiry":uni.navigateTo({url:"/pages/inquiry/index?detail="+encodeURIComponent({bseriesId:t.detail.data[0].id})});break;case"back":uni.navigateBack();break}}}};function H(t,e,s,r,i,l){return(0,o.openBlock)(),(0,o.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,o.createElementVNode)("view",{class:"bigbox"},[(0,o.createElementVNode)("u-web-view",{class:"box",style:(0,o.normalizeStyle)({height:i.webViewHeight+"px",width:i.windowWidth+"px",top:i.webViewTop+"px"}),updateTitle:"true",webviewStyles:i.webviewStyles,src:"/hybrid/html/rank_newapp.html?statusBarHeight="+i.iStatusBarHeight+"&"+i.rankParam,onOnPostMessage:e[0]||(e[0]=(...d)=>l.postMessage&&l.postMessage(...d))},null,44,["webviewStyles","src"])])])}var a=c(k,[["render",H],["styles",[v]]]);var n=plus.webview.currentWebview();if(n){let t=parseInt(n.id),e="pages/select/rank",s={};try{s=JSON.parse(n.__query__)}catch(i){}a.mpType="page";let r=Vue.createPageApp(a,{$store:getApp({allowDefault:!0}).$store,__pageId:t,__pagePath:e,__pageQuery:s});r.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...a.styles||[]])),r.mount("#root")}})();
