app-navigation.js 2.6 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/app-navigation/app-navigation"],{"0d2c":function(t,e,n){},"4b8e":function(t,e,n){"use strict";n.r(e);var a=n("774d"),i=n("e745");for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n("d48d");var o=n("828b"),r=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"3e1fb9a0",null,!1,a["a"],void 0);e["default"]=r.exports},"5ab7":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n("516c");var a={name:"app-navigation",props:{active:{type:String,default:""}},computed:{myIcon:function(){return"../../static/img/appnav-my".concat("my"==this.active?".active":"",".svg")},homeIcon:function(){return"../../static/img/appnav-home".concat("home"==this.active?".active":"",".svg")}},methods:{act:function(e){if(e!=this.active){var n="";switch(e){case"home":n="/pages/index/index";break;case"my":n="/pages/my/my";break}n&&t.reLaunch({url:n})}},sacn:function(){var t=this;this.$app.act.scan().then((function(e){var n=t.getUrlParams(e.result);n&&n.connectorCode?t.getDeviceInfo(n.connectorCode):t.$app.popup.alert("二维码不正确。","温馨提示!")}))},getUrlParams:function(t){var e,n=/[?&]+([^=&]+)=([^&]*)/gi,a={};while(e=n.exec(t))a[e[1]]=e[2];return a},getDeviceInfo:function(t){var e=this;this.$api.base("post","/chargeApi/checkDevicesBySn",{sn:t},{}).then((function(t){console.log("设备信息:",t);var n=t.device;0!=n.deviceStatus&&255!=n.deviceStatus&&e.$app.url.goto("/pages/terminal/terminal?deviceId="+n.id+"&deviceStatus="+n.deviceStatus)}))}}};e.default=a}).call(this,n("df3c")["default"])},"774d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return a}));var a={axIosIndicator:function(){return n.e("components/ax-ios-indicator/ax-ios-indicator").then(n.bind(null,"2348"))}},i=function(){var t=this.$createElement;this._self._c},c=[]},d48d:function(t,e,n){"use strict";var a=n("0d2c"),i=n.n(a);i.a},e745:function(t,e,n){"use strict";n.r(e);var a=n("5ab7"),i=n.n(a);for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=i.a}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/app-navigation/app-navigation-create-component',
  4. {
  5. 'components/app-navigation/app-navigation-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('df3c')['createComponent'](__webpack_require__("4b8e"))
  7. })
  8. },
  9. [['components/app-navigation/app-navigation-create-component']]
  10. ]);