OSDN Git Service

fix: update api url
[bytom/Byone.git] / new / js / 23.js
1 // [AIV_SHORT]  Build version: 2.2.0 - Thursday, June 4th, 2020, 2:31:20 PM  
2  webpackJsonp([23],{
3
4 /***/ 532:
5 /***/ (function(module, exports, __webpack_require__) {
6
7 "use strict";
8
9
10 exports.__esModule = true;
11
12 var _assign = __webpack_require__(69);
13
14 var _assign2 = _interopRequireDefault(_assign);
15
16 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
18 exports.default = _assign2.default || function (target) {
19   for (var i = 1; i < arguments.length; i++) {
20     var source = arguments[i];
21
22     for (var key in source) {
23       if (Object.prototype.hasOwnProperty.call(source, key)) {
24         target[key] = source[key];
25       }
26     }
27   }
28
29   return target;
30 };
31
32 /***/ }),
33
34 /***/ 553:
35 /***/ (function(module, __webpack_exports__, __webpack_require__) {
36
37 "use strict";
38 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
39 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_homeMenu_vue__ = __webpack_require__(610);
40 /* empty harmony namespace reexport */
41 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_53770914_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_homeMenu_vue__ = __webpack_require__(684);
42 function injectStyle (ssrContext) {
43   __webpack_require__(682)
44 }
45 var normalizeComponent = __webpack_require__(266)
46 /* script */
47
48
49 /* template */
50
51 /* template functional */
52 var __vue_template_functional__ = false
53 /* styles */
54 var __vue_styles__ = injectStyle
55 /* scopeId */
56 var __vue_scopeId__ = "data-v-53770914"
57 /* moduleIdentifier (server only) */
58 var __vue_module_identifier__ = null
59 var Component = normalizeComponent(
60   __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_homeMenu_vue__["a" /* default */],
61   __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_53770914_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_homeMenu_vue__["a" /* default */],
62   __vue_template_functional__,
63   __vue_styles__,
64   __vue_scopeId__,
65   __vue_module_identifier__
66 )
67
68 /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
69
70
71 /***/ }),
72
73 /***/ 610:
74 /***/ (function(module, __webpack_exports__, __webpack_require__) {
75
76 "use strict";
77 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(532);
78 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
79 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_constants__ = __webpack_require__(268);
80 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vuex__ = __webpack_require__(433);
81 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__store_constants__ = __webpack_require__(269);
82
83 //
84 //
85 //
86 //
87 //
88 //
89 //
90 //
91 //
92 //
93 //
94 //
95 //
96 //
97 //
98 //
99 //
100 //
101 //
102 //
103 //
104 //
105 //
106 //
107 //
108 //
109 //
110 //
111 //
112 //
113 //
114 //
115 //
116 //
117 //
118 //
119 //
120 //
121 //
122 //
123 //
124 //
125 //
126 //
127 //
128 //
129 //
130 //
131 //
132 //
133 //
134 //
135 //
136 //
137 //
138 //
139 //
140 //
141 //
142 //
143 //
144 //
145 //
146 //
147 //
148 //
149 //
150 //
151 //
152 //
153 //
154 //
155 //
156 //
157 //
158 //
159 //
160 //
161 //
162 //
163 //
164 //
165 //
166 //
167 //
168 //
169 //
170 //
171 //
172 //
173 //
174 //
175 //
176 //
177 //
178 //
179 //
180 //
181 //
182 //
183 //
184 //
185 //
186 //
187 //
188 //
189 //
190 //
191 //
192 //
193 //
194 //
195 //
196 //
197 //
198 //
199 //
200 //
201 //
202 //
203 //
204 //
205 //
206 //
207 //
208 //
209 //
210 //
211 //
212
213
214
215
216
217 /* harmony default export */ __webpack_exports__["a"] = ({
218   name: "",
219   data: function data() {
220     return {};
221   },
222
223   computed: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_2_vuex__["d" /* mapState */])(['bytom']), Object(__WEBPACK_IMPORTED_MODULE_2_vuex__["c" /* mapGetters */])(['currentAccount', 'accountList'])),
224   watch: {},
225   methods: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({
226     accountSelected: function accountSelected(accountInfo) {
227       var _this = this;
228
229       var bytom = this.bytom.clone();
230
231       if (bytom.currentAccount != accountInfo) {
232         bytom.currentAccount = accountInfo;
233         this[__WEBPACK_IMPORTED_MODULE_3__store_constants__["n" /* UPDATE_STORED_BYTOM */]](bytom).then(function () {
234           _this.$router.push('/');
235         });
236       }
237     },
238     calculateBalance: function calculateBalance(balances) {
239       if (balances && balances.length > 0) {
240         var balanceObject = balances.filter(function (b) {
241           return b.asset === __WEBPACK_IMPORTED_MODULE_1__utils_constants__["a" /* BTM */];
242         })[0];
243         var balance = balanceObject.balance / Math.pow(10, balanceObject.decimals);
244         return balance;
245       }
246       return 0.00;
247     }
248   }, Object(__WEBPACK_IMPORTED_MODULE_2_vuex__["b" /* mapActions */])([__WEBPACK_IMPORTED_MODULE_3__store_constants__["n" /* UPDATE_STORED_BYTOM */]])),
249   mounted: function mounted() {}
250 });
251
252 /***/ }),
253
254 /***/ 682:
255 /***/ (function(module, exports, __webpack_require__) {
256
257 // style-loader: Adds some css to the DOM by adding a <style> tag
258
259 // load the styles
260 var content = __webpack_require__(683);
261 if(typeof content === 'string') content = [[module.i, content, '']];
262 if(content.locals) module.exports = content.locals;
263 // add the styles to the DOM
264 var update = __webpack_require__(84)("a9d9cd4e", content, true, {});
265
266 /***/ }),
267
268 /***/ 683:
269 /***/ (function(module, exports, __webpack_require__) {
270
271 exports = module.exports = __webpack_require__(83)(false);
272 // imports
273
274
275 // module
276 exports.push([module.i, ".accounts[data-v-53770914]{width:100%;height:250px;overflow-x:hidden;overflow-y:scroll;margin-bottom:25px}.accounts .list-item[data-v-53770914]{background:#3c3c3c;padding:10px;border-radius:4px;margin-bottom:16px}.accounts .list-item[data-v-53770914]:active,.accounts .list-item[data-v-53770914]:focus,.accounts .list-item[data-v-53770914]:hover{background:#035bd4}.accounts[data-v-53770914]::-webkit-scrollbar{display:none}.accounts i[data-v-53770914]{margin-left:2px}.menu-panel[data-v-53770914]{height:560px;width:260px;padding:20px}.menu-list[data-v-53770914]{margin:0 -20px}.menu-list .list-item[data-v-53770914]{color:#fff;padding:10px 20px}.menu-list .list-item[data-v-53770914]:active,.menu-list .list-item[data-v-53770914]:focus,.menu-list .list-item[data-v-53770914]:hover{background:#3c3c3c}.account[data-v-53770914]{width:200px;display:flex;justify-content:center;align-items:center}.account-alias[data-v-53770914]{width:200px;font-size:18px;color:#fff;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-asset[data-v-53770914]{font-size:12px;color:#9e9e9e}.wallet[data-v-53770914]{width:25px;height:25px;background:hsla(0,0%,100%,.1);border-radius:50%;color:#fff;padding:8px;margin-right:15px}.list-item[data-v-53770914]{display:flex}", ""]);
277
278 // exports
279
280
281 /***/ }),
282
283 /***/ 684:
284 /***/ (function(module, __webpack_exports__, __webpack_require__) {
285
286 "use strict";
287 var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bg-sideBar menu-panel warp-chlid"},[_c('div',[_c('i',{staticClass:"iconfont btn-close",on:{"click":function($event){_vm.$router.go(-1)}}},[_vm._v("")]),_vm._v(" "),_c('div',{staticClass:"menu-title"},[_vm._v(_vm._s(_vm.$t('menu.title')))])]),_vm._v(" "),_c('div',{staticClass:"menu-content"},[_c('div',{staticClass:"list accounts"},_vm._l((_vm.accountList),function(account,index){return _c('div',{key:index,on:{"click":function($event){_vm.accountSelected(account)}}},[_c('div',{class:(_vm.currentAccount != undefined && account.address == _vm.currentAccount.address) ? 'list-item active': 'list-item'},[_vm._m(0,true),_vm._v(" "),_c('div',{staticClass:"account"},[_c('div',{staticClass:"account-alias"},[_vm._v(_vm._s(account.alias))])])])])})),_vm._v(" "),_c('div',[_c('div',{staticClass:"menu-title"},[_vm._v(_vm._s(_vm.$t('menu.setting')))])]),_vm._v(" "),_c('div',{staticClass:"list menu-list"},[_c('router-link',{attrs:{"to":{name: 'menu-account-creation'}}},[_c('div',{staticClass:"list-item"},[_c('i',{staticClass:"iconfont icon-create"}),_vm._v(_vm._s(_vm.$t('menu.createAccount'))+"\n                ")])]),_vm._v(" "),_c('router-link',{attrs:{"to":{name: 'menu-backup'}}},[_c('div',{staticClass:"list-item"},[_c('i',{staticClass:"iconfont icon-backup"}),_vm._v(_vm._s(_vm.$t('menu.backup'))+"\n                ")])]),_vm._v(" "),_c('router-link',{attrs:{"to":{name: 'menu-help'}}},[_c('div',{staticClass:"list-item"},[_c('i',{staticClass:"iconfont icon-support"}),_vm._v(_vm._s(_vm.$t('menu.help'))+"\n                ")])]),_vm._v(" "),_c('router-link',{attrs:{"to":{name: 'menu-settings'}}},[_c('div',{staticClass:"list-item"},[_c('i',{staticClass:"iconfont icon-setting"}),_vm._v(_vm._s(_vm.$t('menu.setting'))+"\n                ")])])],1)]),_vm._v(" "),_c('router-view')],1)}
288 var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wallet"},[_c('i',{staticClass:"iconfont icon-wallet"})])}]
289 var esExports = { render: render, staticRenderFns: staticRenderFns }
290 /* harmony default export */ __webpack_exports__["a"] = (esExports);
291
292 /***/ })
293
294 });
295 //# sourceMappingURL=23.js.map