(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-no-network/u-no-network"],{"0bd9":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("a34a"));function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i,n,o,r,u){try{var A=t[r](u),s=A.value}catch(c){return void i(c)}A.done?e(s):Promise.resolve(s).then(n,o)}function u(t){return function(){var e=this,i=arguments;return new Promise((function(n,o){var u=t.apply(e,i);function A(t){r(u,n,o,A,s,"next",t)}function s(t){r(u,n,o,A,s,"throw",t)}A(void 0)}))}}var A={name:"u-no-network",props:{tips:{type:String,default:"哎呀，网络信号丢失"},zIndex:{type:[Number,String],default:""},image:{type:String,default:"data:image/png;base64,[encoded data, 15464 characters]"}},data:function(){return{isConnected:!0,networkType:"none"}},computed:{uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.noNetwork}},mounted:function(){var e=this;this.isIOS="ios"===t.getSystemInfoSync().platform,t.onNetworkStatusChange((function(t){e.isConnected=t.isConnected,e.networkType=t.networkType})),t.getNetworkType({success:function(t){e.networkType=t.networkType,"none"==t.networkType?e.isConnected=!1:e.isConnected=!0}})},methods:{retry:function(){var e=this;t.getNetworkType({success:function(i){e.networkType=i.networkType,"none"==i.networkType?(t.showToast({title:"无网络连接",icon:"none",position:"top"}),e.isConnected=!1):(t.showToast({title:"网络已连接",icon:"none",position:"top"}),e.isConnected=!0)}}),this.$emit("retry")},openSettings:function(){var t=this;return u(n.default.mark((function e(){return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("none"!=t.networkType){e.next=3;break}return t.openSystemSettings(),e.abrupt("return");case 3:case"end":return e.stop()}}),e)})))()},openAppSettings:function(){this.gotoAppSetting()},openSystemSettings:function(){this.isIOS?this.gotoiOSSetting():this.gotoAndroidSetting()},network:function(){var t=null,e=plus.ios.newObject("CTCellularData"),i=e.plusGetAttribute("restrictedState");return 0==i?t=null:2==i?t=1:1==i&&(t=2),plus.ios.deleteObject(e),t},gotoAppSetting:function(){if(this.isIOS){var t=plus.ios.import("UIApplication"),e=t.sharedApplication(),i=plus.ios.import("NSURL"),n=i.URLWithString("app-settings:");e.openURL(n),plus.ios.deleteObject(n),plus.ios.deleteObject(i),plus.ios.deleteObject(e)}else{var o=plus.android.importClass("android.content.Intent"),r=plus.android.importClass("android.provider.Settings"),u=plus.android.importClass("android.net.Uri"),A=plus.android.runtimeMainActivity(),s=new o;s.setAction(r.ACTION_APPLICATION_DETAILS_SETTINGS);var c=u.fromParts("package",A.getPackageName(),null);s.setData(c),A.startActivity(s)}},gotoiOSSetting:function(){var t=plus.ios.import("UIApplication"),e=t.sharedApplication(),i=plus.ios.import("NSURL"),n=i.URLWithString("App-prefs:root=General");e.openURL(n),plus.ios.deleteObject(n),plus.ios.deleteObject(i),plus.ios.deleteObject(e)},gotoAndroidSetting:function(){var t=plus.android.importClass("android.content.Intent"),e=plus.android.importClass("android.provider.Settings"),i=plus.android.runtimeMainActivity(),n=new t(e.ACTION_SETTINGS);i.startActivity(n)}}};e.default=A}).call(this,i("543d")["default"])},"2d91":function(t,e,i){"use strict";i.r(e);var n=i("0bd9"),o=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=o.a},"36dd":function(t,e,i){"use strict";i.r(e);var n=i("97f8"),o=i("2d91");for(var r in o)"default"!==r&&function(t){i.d(e,t,(function(){return o[t]}))}(r);i("9ff9");var u,A=i("f0c5"),s=Object(A["a"])(o["default"],n["b"],n["c"],!1,null,"77eeb170",null,!1,n["a"],u);e["default"]=s.exports},"77c6":function(t,e,i){},"97f8":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(t){t.stopPropagation(),t.preventDefault()})},r=[]},"9ff9":function(t,e,i){"use strict";var n=i("77c6"),o=i.n(n);o.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uview-ui/components/u-no-network/u-no-network-create-component',
    {
        'uview-ui/components/u-no-network/u-no-network-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("36dd"))
        })
    },
    [['uview-ui/components/u-no-network/u-no-network-create-component']]
]);
