| /******/ (function(modules) { // webpackBootstrap |
| /******/ // The module cache |
| /******/ var installedModules = {}; |
| |
| /******/ // The require function |
| /******/ function __webpack_require__(moduleId) { |
| |
| /******/ // Check if module is in cache |
| /******/ if(installedModules[moduleId]) |
| /******/ return installedModules[moduleId].exports; |
| |
| /******/ // Create a new module (and put it into the cache) |
| /******/ var module = installedModules[moduleId] = { |
| /******/ exports: {}, |
| /******/ id: moduleId, |
| /******/ loaded: false |
| /******/ }; |
| |
| /******/ // Execute the module function |
| /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
| |
| /******/ // Flag the module as loaded |
| /******/ module.loaded = true; |
| |
| /******/ // Return the exports of the module |
| /******/ return module.exports; |
| /******/ } |
| |
| |
| /******/ // expose the modules object (__webpack_modules__) |
| /******/ __webpack_require__.m = modules; |
| |
| /******/ // expose the module cache |
| /******/ __webpack_require__.c = installedModules; |
| |
| /******/ // __webpack_public_path__ |
| /******/ __webpack_require__.p = ""; |
| |
| /******/ // Load entry module and return exports |
| /******/ return __webpack_require__(0); |
| /******/ }) |
| /************************************************************************/ |
| /******/ ([ |
| /* 0 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(344) |
| var __weex_script__ = __webpack_require__(345) |
| |
| __weex_define__('@weex-component/7c0aa0b76c7fe063e27065c721bee1a0', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| }) |
| |
| __weex_bootstrap__('@weex-component/7c0aa0b76c7fe063e27065c721bee1a0',undefined,undefined) |
| |
| /***/ }, |
| /* 1 */, |
| /* 2 */, |
| /* 3 */, |
| /* 4 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(5); |
| __webpack_require__(9); |
| __webpack_require__(13); |
| __webpack_require__(17); |
| __webpack_require__(21); |
| __webpack_require__(25); |
| __webpack_require__(66); |
| __webpack_require__(70); |
| __webpack_require__(74); |
| __webpack_require__(78); |
| __webpack_require__(79); |
| |
| |
| /***/ }, |
| /* 5 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(6) |
| var __weex_style__ = __webpack_require__(7) |
| var __weex_script__ = __webpack_require__(8) |
| |
| __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 6 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, |
| "children": [ |
| { |
| "type": "text", |
| "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, |
| "attr": { |
| "value": function () {return this.value} |
| } |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 7 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "btn": { |
| "marginBottom": 0, |
| "alignItems": "center", |
| "justifyContent": "center", |
| "borderWidth": 1, |
| "borderStyle": "solid", |
| "borderColor": "#333333" |
| }, |
| "btn-default": { |
| "color": "rgb(51,51,51)" |
| }, |
| "btn-primary": { |
| "backgroundColor": "rgb(40,96,144)", |
| "borderColor": "rgb(40,96,144)" |
| }, |
| "btn-success": { |
| "backgroundColor": "rgb(92,184,92)", |
| "borderColor": "rgb(76,174,76)" |
| }, |
| "btn-info": { |
| "backgroundColor": "rgb(91,192,222)", |
| "borderColor": "rgb(70,184,218)" |
| }, |
| "btn-warning": { |
| "backgroundColor": "rgb(240,173,78)", |
| "borderColor": "rgb(238,162,54)" |
| }, |
| "btn-danger": { |
| "backgroundColor": "rgb(217,83,79)", |
| "borderColor": "rgb(212,63,58)" |
| }, |
| "btn-link": { |
| "borderColor": "rgba(0,0,0,0)", |
| "borderRadius": 0 |
| }, |
| "btn-txt-default": { |
| "color": "rgb(51,51,51)" |
| }, |
| "btn-txt-primary": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-success": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-info": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-warning": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-danger": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-link": { |
| "color": "rgb(51,122,183)" |
| }, |
| "btn-sz-large": { |
| "width": 300, |
| "height": 100, |
| "paddingTop": 25, |
| "paddingBottom": 25, |
| "paddingLeft": 40, |
| "paddingRight": 40, |
| "borderRadius": 15 |
| }, |
| "btn-sz-middle": { |
| "width": 240, |
| "height": 80, |
| "paddingTop": 15, |
| "paddingBottom": 15, |
| "paddingLeft": 30, |
| "paddingRight": 30, |
| "borderRadius": 10 |
| }, |
| "btn-sz-small": { |
| "width": 170, |
| "height": 60, |
| "paddingTop": 12, |
| "paddingBottom": 12, |
| "paddingLeft": 25, |
| "paddingRight": 25, |
| "borderRadius": 7 |
| }, |
| "btn-txt-sz-large": { |
| "fontSize": 45 |
| }, |
| "btn-txt-sz-middle": { |
| "fontSize": 35 |
| }, |
| "btn-txt-sz-small": { |
| "fontSize": 30 |
| } |
| } |
| |
| /***/ }, |
| /* 8 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| type: 'default', |
| size: 'large', |
| value: '' |
| }}, |
| methods: {} |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 9 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(10) |
| var __weex_style__ = __webpack_require__(11) |
| var __weex_script__ = __webpack_require__(12) |
| |
| __weex_define__('@weex-component/wxc-hn', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 10 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": function () {return ['h' + (this.level)]}, |
| "style": { |
| "justifyContent": "center" |
| }, |
| "children": [ |
| { |
| "type": "text", |
| "classList": function () {return ['txt-h' + (this.level)]}, |
| "attr": { |
| "value": function () {return this.value} |
| } |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 11 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "h1": { |
| "height": 110, |
| "paddingTop": 20, |
| "paddingBottom": 20 |
| }, |
| "h2": { |
| "height": 110, |
| "paddingTop": 20, |
| "paddingBottom": 20 |
| }, |
| "h3": { |
| "height": 110, |
| "paddingTop": 20, |
| "paddingBottom": 20 |
| }, |
| "txt-h1": { |
| "fontSize": 70 |
| }, |
| "txt-h2": { |
| "fontSize": 52 |
| }, |
| "txt-h3": { |
| "fontSize": 42 |
| } |
| } |
| |
| /***/ }, |
| /* 12 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| level: 1, |
| value: '' |
| }}, |
| methods: {} |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 13 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(14) |
| var __weex_style__ = __webpack_require__(15) |
| var __weex_script__ = __webpack_require__(16) |
| |
| __weex_define__('@weex-component/wxc-list-item', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 14 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": [ |
| "item" |
| ], |
| "events": { |
| "touchstart": "touchstart", |
| "touchend": "touchend" |
| }, |
| "style": { |
| "backgroundColor": function () {return this.bgColor} |
| }, |
| "children": [ |
| { |
| "type": "content" |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 15 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "item": { |
| "paddingTop": 25, |
| "paddingBottom": 25, |
| "paddingLeft": 35, |
| "paddingRight": 35, |
| "height": 160, |
| "justifyContent": "center", |
| "borderBottomWidth": 1, |
| "borderColor": "#dddddd" |
| } |
| } |
| |
| /***/ }, |
| /* 16 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| bgColor: '#ffffff' |
| }}, |
| methods: { |
| touchstart: function touchstart() {}, |
| touchend: function touchend() {} |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 17 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(18) |
| var __weex_style__ = __webpack_require__(19) |
| var __weex_script__ = __webpack_require__(20) |
| |
| __weex_define__('@weex-component/wxc-panel', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 18 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": function () {return ['panel', 'panel-' + (this.type)]}, |
| "style": { |
| "borderWidth": function () {return this.border} |
| }, |
| "children": [ |
| { |
| "type": "text", |
| "classList": function () {return ['panel-header', 'panel-header-' + (this.type)]}, |
| "style": { |
| "paddingTop": function () {return this.paddingHead}, |
| "paddingBottom": function () {return this.paddingHead}, |
| "paddingLeft": function () {return this.paddingHead*1.5}, |
| "paddingRight": function () {return this.paddingHead*1.5} |
| }, |
| "attr": { |
| "value": function () {return this.title} |
| } |
| }, |
| { |
| "type": "div", |
| "classList": function () {return ['panel-body', 'panel-body-' + (this.type)]}, |
| "style": { |
| "paddingTop": function () {return this.paddingBody}, |
| "paddingBottom": function () {return this.paddingBody}, |
| "paddingLeft": function () {return this.paddingBody*1.5}, |
| "paddingRight": function () {return this.paddingBody*1.5} |
| }, |
| "children": [ |
| { |
| "type": "content" |
| } |
| ] |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 19 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "panel": { |
| "marginBottom": 20, |
| "backgroundColor": "#ffffff", |
| "borderColor": "#dddddd", |
| "borderWidth": 1 |
| }, |
| "panel-primary": { |
| "borderColor": "rgb(40,96,144)" |
| }, |
| "panel-success": { |
| "borderColor": "rgb(76,174,76)" |
| }, |
| "panel-info": { |
| "borderColor": "rgb(70,184,218)" |
| }, |
| "panel-warning": { |
| "borderColor": "rgb(238,162,54)" |
| }, |
| "panel-danger": { |
| "borderColor": "rgb(212,63,58)" |
| }, |
| "panel-header": { |
| "backgroundColor": "#f5f5f5", |
| "fontSize": 40, |
| "color": "#333333" |
| }, |
| "panel-header-primary": { |
| "backgroundColor": "rgb(40,96,144)", |
| "color": "#ffffff" |
| }, |
| "panel-header-success": { |
| "backgroundColor": "rgb(92,184,92)", |
| "color": "#ffffff" |
| }, |
| "panel-header-info": { |
| "backgroundColor": "rgb(91,192,222)", |
| "color": "#ffffff" |
| }, |
| "panel-header-warning": { |
| "backgroundColor": "rgb(240,173,78)", |
| "color": "#ffffff" |
| }, |
| "panel-header-danger": { |
| "backgroundColor": "rgb(217,83,79)", |
| "color": "#ffffff" |
| } |
| } |
| |
| /***/ }, |
| /* 20 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| type: 'default', |
| title: '', |
| paddingBody: 20, |
| paddingHead: 20, |
| dataClass: '', |
| border: 0 |
| }}, |
| ready: function ready() {} |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 21 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(22) |
| var __weex_style__ = __webpack_require__(23) |
| var __weex_script__ = __webpack_require__(24) |
| |
| __weex_define__('@weex-component/wxc-tip', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 22 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": function () {return ['tip', 'tip-' + (this.type)]}, |
| "children": [ |
| { |
| "type": "text", |
| "classList": function () {return ['tip-txt', 'tip-txt-' + (this.type)]}, |
| "attr": { |
| "value": function () {return this.value} |
| } |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 23 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "tip": { |
| "paddingLeft": 36, |
| "paddingRight": 36, |
| "paddingTop": 36, |
| "paddingBottom": 36, |
| "borderRadius": 10 |
| }, |
| "tip-txt": { |
| "fontSize": 28 |
| }, |
| "tip-success": { |
| "backgroundColor": "#dff0d8", |
| "borderColor": "#d6e9c6" |
| }, |
| "tip-txt-success": { |
| "color": "#3c763d" |
| }, |
| "tip-info": { |
| "backgroundColor": "#d9edf7", |
| "borderColor": "#bce8f1" |
| }, |
| "tip-txt-info": { |
| "color": "#31708f" |
| }, |
| "tip-warning": { |
| "backgroundColor": "#fcf8e3", |
| "borderColor": "#faebcc" |
| }, |
| "tip-txt-warning": { |
| "color": "#8a6d3b" |
| }, |
| "tip-danger": { |
| "backgroundColor": "#f2dede", |
| "borderColor": "#ebccd1" |
| }, |
| "tip-txt-danger": { |
| "color": "#a94442" |
| } |
| } |
| |
| /***/ }, |
| /* 24 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| type: 'success', |
| value: '' |
| }} |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 25 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(26) |
| var __weex_style__ = __webpack_require__(27) |
| var __weex_script__ = __webpack_require__(28) |
| |
| __weex_define__('@weex-component/wxc-countdown', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 26 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "style": { |
| "overflow": "hidden", |
| "flexDirection": "row" |
| }, |
| "events": { |
| "appear": "appeared", |
| "disappear": "disappeared" |
| }, |
| "children": [ |
| { |
| "type": "content" |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 27 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "wrap": { |
| "overflow": "hidden" |
| } |
| } |
| |
| /***/ }, |
| /* 28 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| var _assign = __webpack_require__(29); |
| |
| var _assign2 = _interopRequireDefault(_assign); |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| module.exports = { |
| data: function () {return { |
| now: 0, |
| remain: 0, |
| time: { |
| elapse: 0, |
| D: '0', |
| DD: '0', |
| h: '0', |
| hh: '00', |
| H: '0', |
| HH: '0', |
| m: '0', |
| mm: '00', |
| M: '0', |
| MM: '0', |
| s: '0', |
| ss: '00', |
| S: '0', |
| SS: '0' |
| }, |
| outofview: false |
| }}, |
| ready: function ready() { |
| if (this.remain <= 0) { |
| return; |
| } |
| |
| this.now = Date.now(); |
| this.nextTick(); |
| }, |
| methods: { |
| nextTick: function nextTick() { |
| if (this.outofview) { |
| setTimeout(this.nextTick.bind(this), 1000); |
| } else { |
| this.time.elapse = parseInt((Date.now() - this.now) / 1000); |
| |
| if (this.calc()) { |
| this.$emit('tick', (0, _assign2.default)({}, this.time)); |
| setTimeout(this.nextTick.bind(this), 1000); |
| } else { |
| this.$emit('alarm', (0, _assign2.default)({}, this.time)); |
| } |
| this._app.updateActions(); |
| } |
| }, |
| format: function format(str) { |
| if (str.length >= 2) { |
| return str; |
| } else { |
| return '0' + str; |
| } |
| }, |
| calc: function calc() { |
| var remain = this.remain - this.time.elapse; |
| if (remain < 0) { |
| remain = 0; |
| } |
| this.time.D = String(parseInt(remain / 86400)); |
| this.time.DD = this.format(this.time.D); |
| this.time.h = String(parseInt((remain - parseInt(this.time.D) * 86400) / 3600)); |
| this.time.hh = this.format(this.time.h); |
| this.time.H = String(parseInt(remain / 3600)); |
| this.time.HH = this.format(this.time.H); |
| this.time.m = String(parseInt((remain - parseInt(this.time.H) * 3600) / 60)); |
| this.time.mm = this.format(this.time.m); |
| this.time.M = String(parseInt(remain / 60)); |
| this.time.MM = this.format(this.time.M); |
| this.time.s = String(remain - parseInt(this.time.M) * 60); |
| this.time.ss = this.format(this.time.s); |
| this.time.S = String(remain); |
| this.time.SS = this.format(this.time.S); |
| |
| return remain > 0; |
| }, |
| appeared: function appeared() { |
| this.outofview = false; |
| }, |
| disappeared: function disappeared() { |
| this.outofview = true; |
| } |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 29 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = { "default": __webpack_require__(30), __esModule: true }; |
| |
| /***/ }, |
| /* 30 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(31); |
| module.exports = __webpack_require__(34).Object.assign; |
| |
| /***/ }, |
| /* 31 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 19.1.3.1 Object.assign(target, source) |
| var $export = __webpack_require__(32); |
| |
| $export($export.S + $export.F, 'Object', {assign: __webpack_require__(47)}); |
| |
| /***/ }, |
| /* 32 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var global = __webpack_require__(33) |
| , core = __webpack_require__(34) |
| , ctx = __webpack_require__(35) |
| , hide = __webpack_require__(37) |
| , PROTOTYPE = 'prototype'; |
| |
| var $export = function(type, name, source){ |
| var IS_FORCED = type & $export.F |
| , IS_GLOBAL = type & $export.G |
| , IS_STATIC = type & $export.S |
| , IS_PROTO = type & $export.P |
| , IS_BIND = type & $export.B |
| , IS_WRAP = type & $export.W |
| , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) |
| , expProto = exports[PROTOTYPE] |
| , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] |
| , key, own, out; |
| if(IS_GLOBAL)source = name; |
| for(key in source){ |
| // contains in native |
| own = !IS_FORCED && target && target[key] !== undefined; |
| if(own && key in exports)continue; |
| // export native or passed |
| out = own ? target[key] : source[key]; |
| // prevent global pollution for namespaces |
| exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] |
| // bind timers to global for call from export context |
| : IS_BIND && own ? ctx(out, global) |
| // wrap global constructors for prevent change them in library |
| : IS_WRAP && target[key] == out ? (function(C){ |
| var F = function(a, b, c){ |
| if(this instanceof C){ |
| switch(arguments.length){ |
| case 0: return new C; |
| case 1: return new C(a); |
| case 2: return new C(a, b); |
| } return new C(a, b, c); |
| } return C.apply(this, arguments); |
| }; |
| F[PROTOTYPE] = C[PROTOTYPE]; |
| return F; |
| // make static versions for prototype methods |
| })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; |
| // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% |
| if(IS_PROTO){ |
| (exports.virtual || (exports.virtual = {}))[key] = out; |
| // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% |
| if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out); |
| } |
| } |
| }; |
| // type bitmap |
| $export.F = 1; // forced |
| $export.G = 2; // global |
| $export.S = 4; // static |
| $export.P = 8; // proto |
| $export.B = 16; // bind |
| $export.W = 32; // wrap |
| $export.U = 64; // safe |
| $export.R = 128; // real proto method for `library` |
| module.exports = $export; |
| |
| /***/ }, |
| /* 33 */ |
| /***/ function(module, exports) { |
| |
| // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 |
| var global = module.exports = typeof window != 'undefined' && window.Math == Math |
| ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); |
| if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef |
| |
| /***/ }, |
| /* 34 */ |
| /***/ function(module, exports) { |
| |
| var core = module.exports = {version: '2.4.0'}; |
| if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef |
| |
| /***/ }, |
| /* 35 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // optional / simple context binding |
| var aFunction = __webpack_require__(36); |
| module.exports = function(fn, that, length){ |
| aFunction(fn); |
| if(that === undefined)return fn; |
| switch(length){ |
| case 1: return function(a){ |
| return fn.call(that, a); |
| }; |
| case 2: return function(a, b){ |
| return fn.call(that, a, b); |
| }; |
| case 3: return function(a, b, c){ |
| return fn.call(that, a, b, c); |
| }; |
| } |
| return function(/* ...args */){ |
| return fn.apply(that, arguments); |
| }; |
| }; |
| |
| /***/ }, |
| /* 36 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(it){ |
| if(typeof it != 'function')throw TypeError(it + ' is not a function!'); |
| return it; |
| }; |
| |
| /***/ }, |
| /* 37 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var dP = __webpack_require__(38) |
| , createDesc = __webpack_require__(46); |
| module.exports = __webpack_require__(42) ? function(object, key, value){ |
| return dP.f(object, key, createDesc(1, value)); |
| } : function(object, key, value){ |
| object[key] = value; |
| return object; |
| }; |
| |
| /***/ }, |
| /* 38 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var anObject = __webpack_require__(39) |
| , IE8_DOM_DEFINE = __webpack_require__(41) |
| , toPrimitive = __webpack_require__(45) |
| , dP = Object.defineProperty; |
| |
| exports.f = __webpack_require__(42) ? Object.defineProperty : function defineProperty(O, P, Attributes){ |
| anObject(O); |
| P = toPrimitive(P, true); |
| anObject(Attributes); |
| if(IE8_DOM_DEFINE)try { |
| return dP(O, P, Attributes); |
| } catch(e){ /* empty */ } |
| if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); |
| if('value' in Attributes)O[P] = Attributes.value; |
| return O; |
| }; |
| |
| /***/ }, |
| /* 39 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var isObject = __webpack_require__(40); |
| module.exports = function(it){ |
| if(!isObject(it))throw TypeError(it + ' is not an object!'); |
| return it; |
| }; |
| |
| /***/ }, |
| /* 40 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(it){ |
| return typeof it === 'object' ? it !== null : typeof it === 'function'; |
| }; |
| |
| /***/ }, |
| /* 41 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = !__webpack_require__(42) && !__webpack_require__(43)(function(){ |
| return Object.defineProperty(__webpack_require__(44)('div'), 'a', {get: function(){ return 7; }}).a != 7; |
| }); |
| |
| /***/ }, |
| /* 42 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // Thank's IE8 for his funny defineProperty |
| module.exports = !__webpack_require__(43)(function(){ |
| return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; |
| }); |
| |
| /***/ }, |
| /* 43 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(exec){ |
| try { |
| return !!exec(); |
| } catch(e){ |
| return true; |
| } |
| }; |
| |
| /***/ }, |
| /* 44 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var isObject = __webpack_require__(40) |
| , document = __webpack_require__(33).document |
| // in old IE typeof document.createElement is 'object' |
| , is = isObject(document) && isObject(document.createElement); |
| module.exports = function(it){ |
| return is ? document.createElement(it) : {}; |
| }; |
| |
| /***/ }, |
| /* 45 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 7.1.1 ToPrimitive(input [, PreferredType]) |
| var isObject = __webpack_require__(40); |
| // instead of the ES6 spec version, we didn't implement @@toPrimitive case |
| // and the second argument - flag - preferred type is a string |
| module.exports = function(it, S){ |
| if(!isObject(it))return it; |
| var fn, val; |
| if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; |
| if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val; |
| if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; |
| throw TypeError("Can't convert object to primitive value"); |
| }; |
| |
| /***/ }, |
| /* 46 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(bitmap, value){ |
| return { |
| enumerable : !(bitmap & 1), |
| configurable: !(bitmap & 2), |
| writable : !(bitmap & 4), |
| value : value |
| }; |
| }; |
| |
| /***/ }, |
| /* 47 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| // 19.1.2.1 Object.assign(target, source, ...) |
| var getKeys = __webpack_require__(48) |
| , gOPS = __webpack_require__(63) |
| , pIE = __webpack_require__(64) |
| , toObject = __webpack_require__(65) |
| , IObject = __webpack_require__(52) |
| , $assign = Object.assign; |
| |
| // should work with symbols and should have deterministic property order (V8 bug) |
| module.exports = !$assign || __webpack_require__(43)(function(){ |
| var A = {} |
| , B = {} |
| , S = Symbol() |
| , K = 'abcdefghijklmnopqrst'; |
| A[S] = 7; |
| K.split('').forEach(function(k){ B[k] = k; }); |
| return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; |
| }) ? function assign(target, source){ // eslint-disable-line no-unused-vars |
| var T = toObject(target) |
| , aLen = arguments.length |
| , index = 1 |
| , getSymbols = gOPS.f |
| , isEnum = pIE.f; |
| while(aLen > index){ |
| var S = IObject(arguments[index++]) |
| , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S) |
| , length = keys.length |
| , j = 0 |
| , key; |
| while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key]; |
| } return T; |
| } : $assign; |
| |
| /***/ }, |
| /* 48 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 19.1.2.14 / 15.2.3.14 Object.keys(O) |
| var $keys = __webpack_require__(49) |
| , enumBugKeys = __webpack_require__(62); |
| |
| module.exports = Object.keys || function keys(O){ |
| return $keys(O, enumBugKeys); |
| }; |
| |
| /***/ }, |
| /* 49 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var has = __webpack_require__(50) |
| , toIObject = __webpack_require__(51) |
| , arrayIndexOf = __webpack_require__(55)(false) |
| , IE_PROTO = __webpack_require__(59)('IE_PROTO'); |
| |
| module.exports = function(object, names){ |
| var O = toIObject(object) |
| , i = 0 |
| , result = [] |
| , key; |
| for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); |
| // Don't enum bug & hidden keys |
| while(names.length > i)if(has(O, key = names[i++])){ |
| ~arrayIndexOf(result, key) || result.push(key); |
| } |
| return result; |
| }; |
| |
| /***/ }, |
| /* 50 */ |
| /***/ function(module, exports) { |
| |
| var hasOwnProperty = {}.hasOwnProperty; |
| module.exports = function(it, key){ |
| return hasOwnProperty.call(it, key); |
| }; |
| |
| /***/ }, |
| /* 51 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // to indexed object, toObject with fallback for non-array-like ES3 strings |
| var IObject = __webpack_require__(52) |
| , defined = __webpack_require__(54); |
| module.exports = function(it){ |
| return IObject(defined(it)); |
| }; |
| |
| /***/ }, |
| /* 52 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // fallback for non-array-like ES3 and non-enumerable old V8 strings |
| var cof = __webpack_require__(53); |
| module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ |
| return cof(it) == 'String' ? it.split('') : Object(it); |
| }; |
| |
| /***/ }, |
| /* 53 */ |
| /***/ function(module, exports) { |
| |
| var toString = {}.toString; |
| |
| module.exports = function(it){ |
| return toString.call(it).slice(8, -1); |
| }; |
| |
| /***/ }, |
| /* 54 */ |
| /***/ function(module, exports) { |
| |
| // 7.2.1 RequireObjectCoercible(argument) |
| module.exports = function(it){ |
| if(it == undefined)throw TypeError("Can't call method on " + it); |
| return it; |
| }; |
| |
| /***/ }, |
| /* 55 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // false -> Array#indexOf |
| // true -> Array#includes |
| var toIObject = __webpack_require__(51) |
| , toLength = __webpack_require__(56) |
| , toIndex = __webpack_require__(58); |
| module.exports = function(IS_INCLUDES){ |
| return function($this, el, fromIndex){ |
| var O = toIObject($this) |
| , length = toLength(O.length) |
| , index = toIndex(fromIndex, length) |
| , value; |
| // Array#includes uses SameValueZero equality algorithm |
| if(IS_INCLUDES && el != el)while(length > index){ |
| value = O[index++]; |
| if(value != value)return true; |
| // Array#toIndex ignores holes, Array#includes - not |
| } else for(;length > index; index++)if(IS_INCLUDES || index in O){ |
| if(O[index] === el)return IS_INCLUDES || index || 0; |
| } return !IS_INCLUDES && -1; |
| }; |
| }; |
| |
| /***/ }, |
| /* 56 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 7.1.15 ToLength |
| var toInteger = __webpack_require__(57) |
| , min = Math.min; |
| module.exports = function(it){ |
| return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 |
| }; |
| |
| /***/ }, |
| /* 57 */ |
| /***/ function(module, exports) { |
| |
| // 7.1.4 ToInteger |
| var ceil = Math.ceil |
| , floor = Math.floor; |
| module.exports = function(it){ |
| return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); |
| }; |
| |
| /***/ }, |
| /* 58 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var toInteger = __webpack_require__(57) |
| , max = Math.max |
| , min = Math.min; |
| module.exports = function(index, length){ |
| index = toInteger(index); |
| return index < 0 ? max(index + length, 0) : min(index, length); |
| }; |
| |
| /***/ }, |
| /* 59 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var shared = __webpack_require__(60)('keys') |
| , uid = __webpack_require__(61); |
| module.exports = function(key){ |
| return shared[key] || (shared[key] = uid(key)); |
| }; |
| |
| /***/ }, |
| /* 60 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var global = __webpack_require__(33) |
| , SHARED = '__core-js_shared__' |
| , store = global[SHARED] || (global[SHARED] = {}); |
| module.exports = function(key){ |
| return store[key] || (store[key] = {}); |
| }; |
| |
| /***/ }, |
| /* 61 */ |
| /***/ function(module, exports) { |
| |
| var id = 0 |
| , px = Math.random(); |
| module.exports = function(key){ |
| return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); |
| }; |
| |
| /***/ }, |
| /* 62 */ |
| /***/ function(module, exports) { |
| |
| // IE 8- don't enum bug keys |
| module.exports = ( |
| 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' |
| ).split(','); |
| |
| /***/ }, |
| /* 63 */ |
| /***/ function(module, exports) { |
| |
| exports.f = Object.getOwnPropertySymbols; |
| |
| /***/ }, |
| /* 64 */ |
| /***/ function(module, exports) { |
| |
| exports.f = {}.propertyIsEnumerable; |
| |
| /***/ }, |
| /* 65 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 7.1.13 ToObject(argument) |
| var defined = __webpack_require__(54); |
| module.exports = function(it){ |
| return Object(defined(it)); |
| }; |
| |
| /***/ }, |
| /* 66 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(67) |
| var __weex_style__ = __webpack_require__(68) |
| var __weex_script__ = __webpack_require__(69) |
| |
| __weex_define__('@weex-component/wxc-marquee', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 67 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": [ |
| "wrap" |
| ], |
| "events": { |
| "appear": "appeared", |
| "disappear": "disappeared" |
| }, |
| "children": [ |
| { |
| "type": "div", |
| "id": "anim", |
| "classList": [ |
| "anim" |
| ], |
| "children": [ |
| { |
| "type": "content" |
| } |
| ] |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 68 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "wrap": { |
| "overflow": "hidden", |
| "position": "relative" |
| }, |
| "anim": { |
| "flexDirection": "column", |
| "position": "absolute", |
| "transform": "translateY(0) translateZ(0)" |
| } |
| } |
| |
| /***/ }, |
| /* 69 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| step: 0, |
| count: 0, |
| index: 1, |
| duration: 0, |
| interval: 0, |
| outofview: false |
| }}, |
| ready: function ready() { |
| if (this.interval > 0 && this.step > 0 && this.duration > 0) { |
| this.nextTick(); |
| } |
| }, |
| methods: { |
| nextTick: function nextTick() { |
| var self = this; |
| if (this.outofview) { |
| setTimeout(self.nextTick.bind(self), self.interval); |
| } else { |
| setTimeout(function () { |
| self.animation(self.nextTick.bind(self)); |
| }, self.interval); |
| } |
| }, |
| animation: function animation(cb) { |
| var self = this; |
| var offset = -self.step * self.index; |
| var $animation = __weex_require__('@weex-module/animation'); |
| $animation.transition(this.$el('anim'), { |
| styles: { |
| transform: 'translateY(' + String(offset) + 'px) translateZ(0)' |
| }, |
| timingFunction: 'ease', |
| duration: self.duration |
| }, function () { |
| self.index = (self.index + 1) % self.count; |
| self.$emit('change', { |
| index: self.index, |
| count: self.count |
| }); |
| cb && cb(); |
| }); |
| }, |
| appeared: function appeared() { |
| this.outofview = false; |
| }, |
| disappeared: function disappeared() { |
| this.outofview = true; |
| } |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 70 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(71) |
| var __weex_style__ = __webpack_require__(72) |
| var __weex_script__ = __webpack_require__(73) |
| |
| __weex_define__('@weex-component/wxc-navbar', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 71 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": [ |
| "container" |
| ], |
| "style": { |
| "height": function () {return this.height}, |
| "backgroundColor": function () {return this.backgroundColor} |
| }, |
| "attr": { |
| "dataRole": function () {return this.dataRole} |
| }, |
| "children": [ |
| { |
| "type": "text", |
| "classList": [ |
| "right-text" |
| ], |
| "style": { |
| "color": function () {return this.rightItemColor} |
| }, |
| "attr": { |
| "naviItemPosition": "right", |
| "value": function () {return this.rightItemTitle} |
| }, |
| "shown": function () {return !this.rightItemSrc}, |
| "events": { |
| "click": "onclickrightitem" |
| } |
| }, |
| { |
| "type": "image", |
| "classList": [ |
| "right-image" |
| ], |
| "attr": { |
| "naviItemPosition": "right", |
| "src": function () {return this.rightItemSrc} |
| }, |
| "shown": function () {return this.rightItemSrc}, |
| "events": { |
| "click": "onclickrightitem" |
| } |
| }, |
| { |
| "type": "text", |
| "classList": [ |
| "left-text" |
| ], |
| "style": { |
| "color": function () {return this.leftItemColor} |
| }, |
| "attr": { |
| "naviItemPosition": "left", |
| "value": function () {return this.leftItemTitle} |
| }, |
| "shown": function () {return !this.leftItemSrc}, |
| "events": { |
| "click": "onclickleftitem" |
| } |
| }, |
| { |
| "type": "image", |
| "classList": [ |
| "left-image" |
| ], |
| "attr": { |
| "naviItemPosition": "left", |
| "src": function () {return this.leftItemSrc} |
| }, |
| "shown": function () {return this.leftItemSrc}, |
| "events": { |
| "click": "onclickleftitem" |
| } |
| }, |
| { |
| "type": "text", |
| "classList": [ |
| "center-text" |
| ], |
| "style": { |
| "color": function () {return this.titleColor} |
| }, |
| "attr": { |
| "naviItemPosition": "center", |
| "value": function () {return this.title} |
| } |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 72 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "container": { |
| "flexDirection": "row", |
| "position": "fixed", |
| "top": 0, |
| "left": 0, |
| "right": 0, |
| "width": 750 |
| }, |
| "right-text": { |
| "position": "absolute", |
| "bottom": 28, |
| "right": 32, |
| "textAlign": "right", |
| "fontSize": 32, |
| "fontFamily": "'Open Sans', sans-serif" |
| }, |
| "left-text": { |
| "position": "absolute", |
| "bottom": 28, |
| "left": 32, |
| "textAlign": "left", |
| "fontSize": 32, |
| "fontFamily": "'Open Sans', sans-serif" |
| }, |
| "center-text": { |
| "position": "absolute", |
| "bottom": 25, |
| "left": 172, |
| "right": 172, |
| "textAlign": "center", |
| "fontSize": 36, |
| "fontWeight": "bold" |
| }, |
| "left-image": { |
| "position": "absolute", |
| "bottom": 20, |
| "left": 28, |
| "width": 50, |
| "height": 50 |
| }, |
| "right-image": { |
| "position": "absolute", |
| "bottom": 20, |
| "right": 28, |
| "width": 50, |
| "height": 50 |
| } |
| } |
| |
| /***/ }, |
| /* 73 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| dataRole: 'navbar', |
| |
| backgroundColor: 'black', |
| |
| height: 88, |
| |
| title: "", |
| |
| titleColor: 'black', |
| |
| rightItemSrc: '', |
| |
| rightItemTitle: '', |
| |
| rightItemColor: 'black', |
| |
| leftItemSrc: '', |
| |
| leftItemTitle: '', |
| |
| leftItemColor: 'black' |
| }}, |
| methods: { |
| onclickrightitem: function onclickrightitem(e) { |
| this.$dispatch('naviBar.rightItem.click', {}); |
| }, |
| onclickleftitem: function onclickleftitem(e) { |
| this.$dispatch('naviBar.leftItem.click', {}); |
| } |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 74 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(70) |
| var __weex_template__ = __webpack_require__(75) |
| var __weex_style__ = __webpack_require__(76) |
| var __weex_script__ = __webpack_require__(77) |
| |
| __weex_define__('@weex-component/wxc-navpage', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 75 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": [ |
| "wrapper" |
| ], |
| "children": [ |
| { |
| "type": "wxc-navbar", |
| "attr": { |
| "dataRole": function () {return this.dataRole}, |
| "height": function () {return this.height}, |
| "backgroundColor": function () {return this.backgroundColor}, |
| "title": function () {return this.title}, |
| "titleColor": function () {return this.titleColor}, |
| "leftItemSrc": function () {return this.leftItemSrc}, |
| "leftItemTitle": function () {return this.leftItemTitle}, |
| "leftItemColor": function () {return this.leftItemColor}, |
| "rightItemSrc": function () {return this.rightItemSrc}, |
| "rightItemTitle": function () {return this.rightItemTitle}, |
| "rightItemColor": function () {return this.rightItemColor} |
| } |
| }, |
| { |
| "type": "div", |
| "classList": [ |
| "wrapper" |
| ], |
| "style": { |
| "marginTop": function () {return this.height} |
| }, |
| "children": [ |
| { |
| "type": "content" |
| } |
| ] |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 76 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "wrapper": { |
| "position": "absolute", |
| "top": 0, |
| "left": 0, |
| "right": 0, |
| "bottom": 0, |
| "width": 750 |
| } |
| } |
| |
| /***/ }, |
| /* 77 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| dataRole: 'navbar', |
| backgroundColor: 'black', |
| height: 88, |
| title: "", |
| titleColor: 'black', |
| rightItemSrc: '', |
| rightItemTitle: '', |
| rightItemColor: 'black', |
| leftItemSrc: '', |
| leftItemTitle: '', |
| leftItemColor: 'black' |
| }} |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 78 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(79) |
| var __weex_template__ = __webpack_require__(83) |
| var __weex_style__ = __webpack_require__(84) |
| var __weex_script__ = __webpack_require__(85) |
| |
| __weex_define__('@weex-component/wxc-tabbar', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 79 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(80) |
| var __weex_style__ = __webpack_require__(81) |
| var __weex_script__ = __webpack_require__(82) |
| |
| __weex_define__('@weex-component/wxc-tabitem', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 80 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": [ |
| "container" |
| ], |
| "style": { |
| "backgroundColor": function () {return this.backgroundColor} |
| }, |
| "events": { |
| "click": "onclickitem" |
| }, |
| "children": [ |
| { |
| "type": "image", |
| "classList": [ |
| "top-line" |
| ], |
| "attr": { |
| "src": "http://gtms03.alicdn.com/tps/i3/TB1mdsiMpXXXXXpXXXXNw4JIXXX-640-4.png" |
| } |
| }, |
| { |
| "type": "image", |
| "classList": [ |
| "tab-icon" |
| ], |
| "attr": { |
| "src": function () {return this.icon} |
| } |
| }, |
| { |
| "type": "text", |
| "classList": [ |
| "tab-text" |
| ], |
| "style": { |
| "color": function () {return this.titleColor} |
| }, |
| "attr": { |
| "value": function () {return this.title} |
| } |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 81 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "container": { |
| "flex": 1, |
| "flexDirection": "column", |
| "alignItems": "center", |
| "justifyContent": "center", |
| "height": 88 |
| }, |
| "top-line": { |
| "position": "absolute", |
| "top": 0, |
| "left": 0, |
| "right": 0, |
| "height": 2 |
| }, |
| "tab-icon": { |
| "marginTop": 5, |
| "width": 40, |
| "height": 40 |
| }, |
| "tab-text": { |
| "marginTop": 5, |
| "textAlign": "center", |
| "fontSize": 20 |
| } |
| } |
| |
| /***/ }, |
| /* 82 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| index: 0, |
| title: '', |
| titleColor: '#000000', |
| icon: '', |
| backgroundColor: '#ffffff' |
| }}, |
| methods: { |
| onclickitem: function onclickitem(e) { |
| var vm = this; |
| var params = { |
| index: vm.index |
| }; |
| vm.$dispatch('tabItem.onClick', params); |
| } |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 83 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": [ |
| "wrapper" |
| ], |
| "children": [ |
| { |
| "type": "embed", |
| "classList": [ |
| "content" |
| ], |
| "style": { |
| "visibility": function () {return this.visibility} |
| }, |
| "repeat": function () {return this.tabItems}, |
| "attr": { |
| "src": function () {return this.src}, |
| "type": "weex" |
| } |
| }, |
| { |
| "type": "div", |
| "classList": [ |
| "tabbar" |
| ], |
| "append": "tree", |
| "children": [ |
| { |
| "type": "wxc-tabitem", |
| "repeat": function () {return this.tabItems}, |
| "attr": { |
| "index": function () {return this.index}, |
| "icon": function () {return this.icon}, |
| "title": function () {return this.title}, |
| "titleColor": function () {return this.titleColor} |
| } |
| } |
| ] |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 84 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "wrapper": { |
| "width": 750, |
| "position": "absolute", |
| "top": 0, |
| "left": 0, |
| "right": 0, |
| "bottom": 0 |
| }, |
| "content": { |
| "position": "absolute", |
| "top": 0, |
| "left": 0, |
| "right": 0, |
| "bottom": 0, |
| "marginTop": 0, |
| "marginBottom": 88 |
| }, |
| "tabbar": { |
| "flexDirection": "row", |
| "position": "fixed", |
| "bottom": 0, |
| "left": 0, |
| "right": 0, |
| "height": 88 |
| } |
| } |
| |
| /***/ }, |
| /* 85 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| module.exports = { |
| data: function () {return { |
| tabItems: [], |
| selectedIndex: 0, |
| selectedColor: '#ff0000', |
| unselectedColor: '#000000' |
| }}, |
| created: function created() { |
| this.selected(this.selectedIndex); |
| |
| this.$on('tabItem.onClick', function (e) { |
| var detail = e.detail; |
| this.selectedIndex = detail.index; |
| this.selected(detail.index); |
| |
| var params = { |
| index: detail.index |
| }; |
| this.$dispatch('tabBar.onClick', params); |
| }); |
| }, |
| methods: { |
| selected: function selected(index) { |
| for (var i = 0; i < this.tabItems.length; i++) { |
| var tabItem = this.tabItems[i]; |
| if (i == index) { |
| tabItem.icon = tabItem.selectedImage; |
| tabItem.titleColor = this.selectedColor; |
| tabItem.visibility = 'visible'; |
| } else { |
| tabItem.icon = tabItem.image; |
| tabItem.titleColor = this.unselectedColor; |
| tabItem.visibility = 'hidden'; |
| } |
| } |
| } |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 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 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| "use strict"; |
| |
| exports.__esModule = true; |
| |
| var _iterator = __webpack_require__(116); |
| |
| var _iterator2 = _interopRequireDefault(_iterator); |
| |
| var _symbol = __webpack_require__(136); |
| |
| var _symbol2 = _interopRequireDefault(_symbol); |
| |
| var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { |
| return typeof obj === "undefined" ? "undefined" : _typeof(obj); |
| } : function (obj) { |
| return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); |
| }; |
| |
| /***/ }, |
| /* 116 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = { "default": __webpack_require__(117), __esModule: true }; |
| |
| /***/ }, |
| /* 117 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(118); |
| __webpack_require__(131); |
| module.exports = __webpack_require__(135).f('iterator'); |
| |
| /***/ }, |
| /* 118 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| var $at = __webpack_require__(119)(true); |
| |
| // 21.1.3.27 String.prototype[@@iterator]() |
| __webpack_require__(120)(String, 'String', function(iterated){ |
| this._t = String(iterated); // target |
| this._i = 0; // next index |
| // 21.1.5.2.1 %StringIteratorPrototype%.next() |
| }, function(){ |
| var O = this._t |
| , index = this._i |
| , point; |
| if(index >= O.length)return {value: undefined, done: true}; |
| point = $at(O, index); |
| this._i += point.length; |
| return {value: point, done: false}; |
| }); |
| |
| /***/ }, |
| /* 119 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var toInteger = __webpack_require__(57) |
| , defined = __webpack_require__(54); |
| // true -> String#at |
| // false -> String#codePointAt |
| module.exports = function(TO_STRING){ |
| return function(that, pos){ |
| var s = String(defined(that)) |
| , i = toInteger(pos) |
| , l = s.length |
| , a, b; |
| if(i < 0 || i >= l)return TO_STRING ? '' : undefined; |
| a = s.charCodeAt(i); |
| return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff |
| ? TO_STRING ? s.charAt(i) : a |
| : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; |
| }; |
| }; |
| |
| /***/ }, |
| /* 120 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| var LIBRARY = __webpack_require__(121) |
| , $export = __webpack_require__(32) |
| , redefine = __webpack_require__(122) |
| , hide = __webpack_require__(37) |
| , has = __webpack_require__(50) |
| , Iterators = __webpack_require__(123) |
| , $iterCreate = __webpack_require__(124) |
| , setToStringTag = __webpack_require__(128) |
| , getPrototypeOf = __webpack_require__(130) |
| , ITERATOR = __webpack_require__(129)('iterator') |
| , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` |
| , FF_ITERATOR = '@@iterator' |
| , KEYS = 'keys' |
| , VALUES = 'values'; |
| |
| var returnThis = function(){ return this; }; |
| |
| module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){ |
| $iterCreate(Constructor, NAME, next); |
| var getMethod = function(kind){ |
| if(!BUGGY && kind in proto)return proto[kind]; |
| switch(kind){ |
| case KEYS: return function keys(){ return new Constructor(this, kind); }; |
| case VALUES: return function values(){ return new Constructor(this, kind); }; |
| } return function entries(){ return new Constructor(this, kind); }; |
| }; |
| var TAG = NAME + ' Iterator' |
| , DEF_VALUES = DEFAULT == VALUES |
| , VALUES_BUG = false |
| , proto = Base.prototype |
| , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] |
| , $default = $native || getMethod(DEFAULT) |
| , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined |
| , $anyNative = NAME == 'Array' ? proto.entries || $native : $native |
| , methods, key, IteratorPrototype; |
| // Fix native |
| if($anyNative){ |
| IteratorPrototype = getPrototypeOf($anyNative.call(new Base)); |
| if(IteratorPrototype !== Object.prototype){ |
| // Set @@toStringTag to native iterators |
| setToStringTag(IteratorPrototype, TAG, true); |
| // fix for some old engines |
| if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis); |
| } |
| } |
| // fix Array#{values, @@iterator}.name in V8 / FF |
| if(DEF_VALUES && $native && $native.name !== VALUES){ |
| VALUES_BUG = true; |
| $default = function values(){ return $native.call(this); }; |
| } |
| // Define iterator |
| if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){ |
| hide(proto, ITERATOR, $default); |
| } |
| // Plug for library |
| Iterators[NAME] = $default; |
| Iterators[TAG] = returnThis; |
| if(DEFAULT){ |
| methods = { |
| values: DEF_VALUES ? $default : getMethod(VALUES), |
| keys: IS_SET ? $default : getMethod(KEYS), |
| entries: $entries |
| }; |
| if(FORCED)for(key in methods){ |
| if(!(key in proto))redefine(proto, key, methods[key]); |
| } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); |
| } |
| return methods; |
| }; |
| |
| /***/ }, |
| /* 121 */ |
| /***/ function(module, exports) { |
| |
| module.exports = true; |
| |
| /***/ }, |
| /* 122 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = __webpack_require__(37); |
| |
| /***/ }, |
| /* 123 */ |
| /***/ function(module, exports) { |
| |
| module.exports = {}; |
| |
| /***/ }, |
| /* 124 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| var create = __webpack_require__(125) |
| , descriptor = __webpack_require__(46) |
| , setToStringTag = __webpack_require__(128) |
| , IteratorPrototype = {}; |
| |
| // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() |
| __webpack_require__(37)(IteratorPrototype, __webpack_require__(129)('iterator'), function(){ return this; }); |
| |
| module.exports = function(Constructor, NAME, next){ |
| Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); |
| setToStringTag(Constructor, NAME + ' Iterator'); |
| }; |
| |
| /***/ }, |
| /* 125 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) |
| var anObject = __webpack_require__(39) |
| , dPs = __webpack_require__(126) |
| , enumBugKeys = __webpack_require__(62) |
| , IE_PROTO = __webpack_require__(59)('IE_PROTO') |
| , Empty = function(){ /* empty */ } |
| , PROTOTYPE = 'prototype'; |
| |
| // Create object with fake `null` prototype: use iframe Object with cleared prototype |
| var createDict = function(){ |
| // Thrash, waste and sodomy: IE GC bug |
| var iframe = __webpack_require__(44)('iframe') |
| , i = enumBugKeys.length |
| , lt = '<' |
| , gt = '>' |
| , iframeDocument; |
| iframe.style.display = 'none'; |
| __webpack_require__(127).appendChild(iframe); |
| iframe.src = 'javascript:'; // eslint-disable-line no-script-url |
| // createDict = iframe.contentWindow.Object; |
| // html.removeChild(iframe); |
| iframeDocument = iframe.contentWindow.document; |
| iframeDocument.open(); |
| iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); |
| iframeDocument.close(); |
| createDict = iframeDocument.F; |
| while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]]; |
| return createDict(); |
| }; |
| |
| module.exports = Object.create || function create(O, Properties){ |
| var result; |
| if(O !== null){ |
| Empty[PROTOTYPE] = anObject(O); |
| result = new Empty; |
| Empty[PROTOTYPE] = null; |
| // add "__proto__" for Object.getPrototypeOf polyfill |
| result[IE_PROTO] = O; |
| } else result = createDict(); |
| return Properties === undefined ? result : dPs(result, Properties); |
| }; |
| |
| |
| /***/ }, |
| /* 126 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var dP = __webpack_require__(38) |
| , anObject = __webpack_require__(39) |
| , getKeys = __webpack_require__(48); |
| |
| module.exports = __webpack_require__(42) ? Object.defineProperties : function defineProperties(O, Properties){ |
| anObject(O); |
| var keys = getKeys(Properties) |
| , length = keys.length |
| , i = 0 |
| , P; |
| while(length > i)dP.f(O, P = keys[i++], Properties[P]); |
| return O; |
| }; |
| |
| /***/ }, |
| /* 127 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = __webpack_require__(33).document && document.documentElement; |
| |
| /***/ }, |
| /* 128 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var def = __webpack_require__(38).f |
| , has = __webpack_require__(50) |
| , TAG = __webpack_require__(129)('toStringTag'); |
| |
| module.exports = function(it, tag, stat){ |
| if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag}); |
| }; |
| |
| /***/ }, |
| /* 129 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var store = __webpack_require__(60)('wks') |
| , uid = __webpack_require__(61) |
| , Symbol = __webpack_require__(33).Symbol |
| , USE_SYMBOL = typeof Symbol == 'function'; |
| |
| var $exports = module.exports = function(name){ |
| return store[name] || (store[name] = |
| USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); |
| }; |
| |
| $exports.store = store; |
| |
| /***/ }, |
| /* 130 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) |
| var has = __webpack_require__(50) |
| , toObject = __webpack_require__(65) |
| , IE_PROTO = __webpack_require__(59)('IE_PROTO') |
| , ObjectProto = Object.prototype; |
| |
| module.exports = Object.getPrototypeOf || function(O){ |
| O = toObject(O); |
| if(has(O, IE_PROTO))return O[IE_PROTO]; |
| if(typeof O.constructor == 'function' && O instanceof O.constructor){ |
| return O.constructor.prototype; |
| } return O instanceof Object ? ObjectProto : null; |
| }; |
| |
| /***/ }, |
| /* 131 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(132); |
| var global = __webpack_require__(33) |
| , hide = __webpack_require__(37) |
| , Iterators = __webpack_require__(123) |
| , TO_STRING_TAG = __webpack_require__(129)('toStringTag'); |
| |
| for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){ |
| var NAME = collections[i] |
| , Collection = global[NAME] |
| , proto = Collection && Collection.prototype; |
| if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME); |
| Iterators[NAME] = Iterators.Array; |
| } |
| |
| /***/ }, |
| /* 132 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| var addToUnscopables = __webpack_require__(133) |
| , step = __webpack_require__(134) |
| , Iterators = __webpack_require__(123) |
| , toIObject = __webpack_require__(51); |
| |
| // 22.1.3.4 Array.prototype.entries() |
| // 22.1.3.13 Array.prototype.keys() |
| // 22.1.3.29 Array.prototype.values() |
| // 22.1.3.30 Array.prototype[@@iterator]() |
| module.exports = __webpack_require__(120)(Array, 'Array', function(iterated, kind){ |
| this._t = toIObject(iterated); // target |
| this._i = 0; // next index |
| this._k = kind; // kind |
| // 22.1.5.2.1 %ArrayIteratorPrototype%.next() |
| }, function(){ |
| var O = this._t |
| , kind = this._k |
| , index = this._i++; |
| if(!O || index >= O.length){ |
| this._t = undefined; |
| return step(1); |
| } |
| if(kind == 'keys' )return step(0, index); |
| if(kind == 'values')return step(0, O[index]); |
| return step(0, [index, O[index]]); |
| }, 'values'); |
| |
| // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) |
| Iterators.Arguments = Iterators.Array; |
| |
| addToUnscopables('keys'); |
| addToUnscopables('values'); |
| addToUnscopables('entries'); |
| |
| /***/ }, |
| /* 133 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(){ /* empty */ }; |
| |
| /***/ }, |
| /* 134 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(done, value){ |
| return {value: value, done: !!done}; |
| }; |
| |
| /***/ }, |
| /* 135 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| exports.f = __webpack_require__(129); |
| |
| /***/ }, |
| /* 136 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = { "default": __webpack_require__(137), __esModule: true }; |
| |
| /***/ }, |
| /* 137 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(138); |
| __webpack_require__(147); |
| __webpack_require__(148); |
| __webpack_require__(149); |
| module.exports = __webpack_require__(34).Symbol; |
| |
| /***/ }, |
| /* 138 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| // ECMAScript 6 symbols shim |
| var global = __webpack_require__(33) |
| , has = __webpack_require__(50) |
| , DESCRIPTORS = __webpack_require__(42) |
| , $export = __webpack_require__(32) |
| , redefine = __webpack_require__(122) |
| , META = __webpack_require__(139).KEY |
| , $fails = __webpack_require__(43) |
| , shared = __webpack_require__(60) |
| , setToStringTag = __webpack_require__(128) |
| , uid = __webpack_require__(61) |
| , wks = __webpack_require__(129) |
| , wksExt = __webpack_require__(135) |
| , wksDefine = __webpack_require__(140) |
| , keyOf = __webpack_require__(141) |
| , enumKeys = __webpack_require__(142) |
| , isArray = __webpack_require__(143) |
| , anObject = __webpack_require__(39) |
| , toIObject = __webpack_require__(51) |
| , toPrimitive = __webpack_require__(45) |
| , createDesc = __webpack_require__(46) |
| , _create = __webpack_require__(125) |
| , gOPNExt = __webpack_require__(144) |
| , $GOPD = __webpack_require__(146) |
| , $DP = __webpack_require__(38) |
| , $keys = __webpack_require__(48) |
| , gOPD = $GOPD.f |
| , dP = $DP.f |
| , gOPN = gOPNExt.f |
| , $Symbol = global.Symbol |
| , $JSON = global.JSON |
| , _stringify = $JSON && $JSON.stringify |
| , PROTOTYPE = 'prototype' |
| , HIDDEN = wks('_hidden') |
| , TO_PRIMITIVE = wks('toPrimitive') |
| , isEnum = {}.propertyIsEnumerable |
| , SymbolRegistry = shared('symbol-registry') |
| , AllSymbols = shared('symbols') |
| , OPSymbols = shared('op-symbols') |
| , ObjectProto = Object[PROTOTYPE] |
| , USE_NATIVE = typeof $Symbol == 'function' |
| , QObject = global.QObject; |
| // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 |
| var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; |
| |
| // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 |
| var setSymbolDesc = DESCRIPTORS && $fails(function(){ |
| return _create(dP({}, 'a', { |
| get: function(){ return dP(this, 'a', {value: 7}).a; } |
| })).a != 7; |
| }) ? function(it, key, D){ |
| var protoDesc = gOPD(ObjectProto, key); |
| if(protoDesc)delete ObjectProto[key]; |
| dP(it, key, D); |
| if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc); |
| } : dP; |
| |
| var wrap = function(tag){ |
| var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); |
| sym._k = tag; |
| return sym; |
| }; |
| |
| var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){ |
| return typeof it == 'symbol'; |
| } : function(it){ |
| return it instanceof $Symbol; |
| }; |
| |
| var $defineProperty = function defineProperty(it, key, D){ |
| if(it === ObjectProto)$defineProperty(OPSymbols, key, D); |
| anObject(it); |
| key = toPrimitive(key, true); |
| anObject(D); |
| if(has(AllSymbols, key)){ |
| if(!D.enumerable){ |
| if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {})); |
| it[HIDDEN][key] = true; |
| } else { |
| if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false; |
| D = _create(D, {enumerable: createDesc(0, false)}); |
| } return setSymbolDesc(it, key, D); |
| } return dP(it, key, D); |
| }; |
| var $defineProperties = function defineProperties(it, P){ |
| anObject(it); |
| var keys = enumKeys(P = toIObject(P)) |
| , i = 0 |
| , l = keys.length |
| , key; |
| while(l > i)$defineProperty(it, key = keys[i++], P[key]); |
| return it; |
| }; |
| var $create = function create(it, P){ |
| return P === undefined ? _create(it) : $defineProperties(_create(it), P); |
| }; |
| var $propertyIsEnumerable = function propertyIsEnumerable(key){ |
| var E = isEnum.call(this, key = toPrimitive(key, true)); |
| if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false; |
| return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; |
| }; |
| var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){ |
| it = toIObject(it); |
| key = toPrimitive(key, true); |
| if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return; |
| var D = gOPD(it, key); |
| if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true; |
| return D; |
| }; |
| var $getOwnPropertyNames = function getOwnPropertyNames(it){ |
| var names = gOPN(toIObject(it)) |
| , result = [] |
| , i = 0 |
| , key; |
| while(names.length > i){ |
| if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key); |
| } return result; |
| }; |
| var $getOwnPropertySymbols = function getOwnPropertySymbols(it){ |
| var IS_OP = it === ObjectProto |
| , names = gOPN(IS_OP ? OPSymbols : toIObject(it)) |
| , result = [] |
| , i = 0 |
| , key; |
| while(names.length > i){ |
| if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]); |
| } return result; |
| }; |
| |
| // 19.4.1.1 Symbol([description]) |
| if(!USE_NATIVE){ |
| $Symbol = function Symbol(){ |
| if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!'); |
| var tag = uid(arguments.length > 0 ? arguments[0] : undefined); |
| var $set = function(value){ |
| if(this === ObjectProto)$set.call(OPSymbols, value); |
| if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false; |
| setSymbolDesc(this, tag, createDesc(1, value)); |
| }; |
| if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set}); |
| return wrap(tag); |
| }; |
| redefine($Symbol[PROTOTYPE], 'toString', function toString(){ |
| return this._k; |
| }); |
| |
| $GOPD.f = $getOwnPropertyDescriptor; |
| $DP.f = $defineProperty; |
| __webpack_require__(145).f = gOPNExt.f = $getOwnPropertyNames; |
| __webpack_require__(64).f = $propertyIsEnumerable; |
| __webpack_require__(63).f = $getOwnPropertySymbols; |
| |
| if(DESCRIPTORS && !__webpack_require__(121)){ |
| redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); |
| } |
| |
| wksExt.f = function(name){ |
| return wrap(wks(name)); |
| } |
| } |
| |
| $export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol}); |
| |
| for(var symbols = ( |
| // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 |
| 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' |
| ).split(','), i = 0; symbols.length > i; )wks(symbols[i++]); |
| |
| for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]); |
| |
| $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { |
| // 19.4.2.1 Symbol.for(key) |
| 'for': function(key){ |
| return has(SymbolRegistry, key += '') |
| ? SymbolRegistry[key] |
| : SymbolRegistry[key] = $Symbol(key); |
| }, |
| // 19.4.2.5 Symbol.keyFor(sym) |
| keyFor: function keyFor(key){ |
| if(isSymbol(key))return keyOf(SymbolRegistry, key); |
| throw TypeError(key + ' is not a symbol!'); |
| }, |
| useSetter: function(){ setter = true; }, |
| useSimple: function(){ setter = false; } |
| }); |
| |
| $export($export.S + $export.F * !USE_NATIVE, 'Object', { |
| // 19.1.2.2 Object.create(O [, Properties]) |
| create: $create, |
| // 19.1.2.4 Object.defineProperty(O, P, Attributes) |
| defineProperty: $defineProperty, |
| // 19.1.2.3 Object.defineProperties(O, Properties) |
| defineProperties: $defineProperties, |
| // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) |
| getOwnPropertyDescriptor: $getOwnPropertyDescriptor, |
| // 19.1.2.7 Object.getOwnPropertyNames(O) |
| getOwnPropertyNames: $getOwnPropertyNames, |
| // 19.1.2.8 Object.getOwnPropertySymbols(O) |
| getOwnPropertySymbols: $getOwnPropertySymbols |
| }); |
| |
| // 24.3.2 JSON.stringify(value [, replacer [, space]]) |
| $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){ |
| var S = $Symbol(); |
| // MS Edge converts symbol values to JSON as {} |
| // WebKit converts symbol values to JSON as null |
| // V8 throws on boxed symbols |
| return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}'; |
| })), 'JSON', { |
| stringify: function stringify(it){ |
| if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined |
| var args = [it] |
| , i = 1 |
| , replacer, $replacer; |
| while(arguments.length > i)args.push(arguments[i++]); |
| replacer = args[1]; |
| if(typeof replacer == 'function')$replacer = replacer; |
| if($replacer || !isArray(replacer))replacer = function(key, value){ |
| if($replacer)value = $replacer.call(this, key, value); |
| if(!isSymbol(value))return value; |
| }; |
| args[1] = replacer; |
| return _stringify.apply($JSON, args); |
| } |
| }); |
| |
| // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) |
| $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(37)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); |
| // 19.4.3.5 Symbol.prototype[@@toStringTag] |
| setToStringTag($Symbol, 'Symbol'); |
| // 20.2.1.9 Math[@@toStringTag] |
| setToStringTag(Math, 'Math', true); |
| // 24.3.3 JSON[@@toStringTag] |
| setToStringTag(global.JSON, 'JSON', true); |
| |
| /***/ }, |
| /* 139 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var META = __webpack_require__(61)('meta') |
| , isObject = __webpack_require__(40) |
| , has = __webpack_require__(50) |
| , setDesc = __webpack_require__(38).f |
| , id = 0; |
| var isExtensible = Object.isExtensible || function(){ |
| return true; |
| }; |
| var FREEZE = !__webpack_require__(43)(function(){ |
| return isExtensible(Object.preventExtensions({})); |
| }); |
| var setMeta = function(it){ |
| setDesc(it, META, {value: { |
| i: 'O' + ++id, // object ID |
| w: {} // weak collections IDs |
| }}); |
| }; |
| var fastKey = function(it, create){ |
| // return primitive with prefix |
| if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; |
| if(!has(it, META)){ |
| // can't set metadata to uncaught frozen object |
| if(!isExtensible(it))return 'F'; |
| // not necessary to add metadata |
| if(!create)return 'E'; |
| // add missing metadata |
| setMeta(it); |
| // return object ID |
| } return it[META].i; |
| }; |
| var getWeak = function(it, create){ |
| if(!has(it, META)){ |
| // can't set metadata to uncaught frozen object |
| if(!isExtensible(it))return true; |
| // not necessary to add metadata |
| if(!create)return false; |
| // add missing metadata |
| setMeta(it); |
| // return hash weak collections IDs |
| } return it[META].w; |
| }; |
| // add metadata on freeze-family methods calling |
| var onFreeze = function(it){ |
| if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it); |
| return it; |
| }; |
| var meta = module.exports = { |
| KEY: META, |
| NEED: false, |
| fastKey: fastKey, |
| getWeak: getWeak, |
| onFreeze: onFreeze |
| }; |
| |
| /***/ }, |
| /* 140 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var global = __webpack_require__(33) |
| , core = __webpack_require__(34) |
| , LIBRARY = __webpack_require__(121) |
| , wksExt = __webpack_require__(135) |
| , defineProperty = __webpack_require__(38).f; |
| module.exports = function(name){ |
| var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); |
| if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); |
| }; |
| |
| /***/ }, |
| /* 141 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var getKeys = __webpack_require__(48) |
| , toIObject = __webpack_require__(51); |
| module.exports = function(object, el){ |
| var O = toIObject(object) |
| , keys = getKeys(O) |
| , length = keys.length |
| , index = 0 |
| , key; |
| while(length > index)if(O[key = keys[index++]] === el)return key; |
| }; |
| |
| /***/ }, |
| /* 142 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // all enumerable object keys, includes symbols |
| var getKeys = __webpack_require__(48) |
| , gOPS = __webpack_require__(63) |
| , pIE = __webpack_require__(64); |
| module.exports = function(it){ |
| var result = getKeys(it) |
| , getSymbols = gOPS.f; |
| if(getSymbols){ |
| var symbols = getSymbols(it) |
| , isEnum = pIE.f |
| , i = 0 |
| , key; |
| while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key); |
| } return result; |
| }; |
| |
| /***/ }, |
| /* 143 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 7.2.2 IsArray(argument) |
| var cof = __webpack_require__(53); |
| module.exports = Array.isArray || function isArray(arg){ |
| return cof(arg) == 'Array'; |
| }; |
| |
| /***/ }, |
| /* 144 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window |
| var toIObject = __webpack_require__(51) |
| , gOPN = __webpack_require__(145).f |
| , toString = {}.toString; |
| |
| var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames |
| ? Object.getOwnPropertyNames(window) : []; |
| |
| var getWindowNames = function(it){ |
| try { |
| return gOPN(it); |
| } catch(e){ |
| return windowNames.slice(); |
| } |
| }; |
| |
| module.exports.f = function getOwnPropertyNames(it){ |
| return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); |
| }; |
| |
| |
| /***/ }, |
| /* 145 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) |
| var $keys = __webpack_require__(49) |
| , hiddenKeys = __webpack_require__(62).concat('length', 'prototype'); |
| |
| exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ |
| return $keys(O, hiddenKeys); |
| }; |
| |
| /***/ }, |
| /* 146 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var pIE = __webpack_require__(64) |
| , createDesc = __webpack_require__(46) |
| , toIObject = __webpack_require__(51) |
| , toPrimitive = __webpack_require__(45) |
| , has = __webpack_require__(50) |
| , IE8_DOM_DEFINE = __webpack_require__(41) |
| , gOPD = Object.getOwnPropertyDescriptor; |
| |
| exports.f = __webpack_require__(42) ? gOPD : function getOwnPropertyDescriptor(O, P){ |
| O = toIObject(O); |
| P = toPrimitive(P, true); |
| if(IE8_DOM_DEFINE)try { |
| return gOPD(O, P); |
| } catch(e){ /* empty */ } |
| if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]); |
| }; |
| |
| /***/ }, |
| /* 147 */ |
| /***/ function(module, exports) { |
| |
| |
| |
| /***/ }, |
| /* 148 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(140)('asyncIterator'); |
| |
| /***/ }, |
| /* 149 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(140)('observable'); |
| |
| /***/ }, |
| /* 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 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(208) |
| var __weex_template__ = __webpack_require__(212) |
| var __weex_style__ = __webpack_require__(213) |
| var __weex_script__ = __webpack_require__(214) |
| |
| __weex_define__('@weex-component/example-list', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 208 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __weex_template__ = __webpack_require__(209) |
| var __weex_style__ = __webpack_require__(210) |
| var __weex_script__ = __webpack_require__(211) |
| |
| __weex_define__('@weex-component/example-list-item', [], function(__weex_require__, __weex_exports__, __weex_module__) { |
| |
| __weex_script__(__weex_module__, __weex_exports__, __weex_require__) |
| if (__weex_exports__.__esModule && __weex_exports__.default) { |
| __weex_module__.exports = __weex_exports__.default |
| } |
| |
| __weex_module__.exports.template = __weex_template__ |
| |
| __weex_module__.exports.style = __weex_style__ |
| |
| }) |
| |
| |
| /***/ }, |
| /* 209 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "classList": [ |
| "item" |
| ], |
| "style": { |
| "backgroundColor": function () {return this.bgColor} |
| }, |
| "events": { |
| "click": "redirect" |
| }, |
| "children": [ |
| { |
| "type": "text", |
| "classList": [ |
| "item-txt" |
| ], |
| "attr": { |
| "value": function () {return this.title} |
| } |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 210 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "item-txt": { |
| "fontSize": 48, |
| "color": "#555555" |
| }, |
| "item": { |
| "paddingTop": 25, |
| "paddingBottom": 25, |
| "paddingLeft": 35, |
| "paddingRight": 35, |
| "height": 160, |
| "justifyContent": "center", |
| "borderBottomWidth": 1, |
| "borderColor": "#dddddd", |
| "paddingTop:active": 25, |
| "paddingBottom:active": 25, |
| "paddingLeft:active": 35, |
| "paddingRight:active": 35, |
| "height:active": 160, |
| "justifyContent:active": "center", |
| "backgroundColor:active": "#00BDFF", |
| "borderBottomWidth:active": 1, |
| "borderColor:active": "#dddddd" |
| } |
| } |
| |
| /***/ }, |
| /* 211 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| __webpack_require__(4); |
| module.exports = { |
| data: function () {return { |
| title: '', |
| url: '', |
| bgColor: '#ffffff' |
| }}, |
| methods: { |
| redirect: function redirect() { |
| this.$openURL(this.url); |
| } |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 212 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "list", |
| "children": [ |
| { |
| "type": "cell", |
| "append": "tree", |
| "repeat": function () {return this.items}, |
| "children": [ |
| { |
| "type": "example-list-item", |
| "attr": { |
| "title": function () {return this.title}, |
| "url": function () {return this.url} |
| } |
| } |
| ] |
| } |
| ] |
| } |
| |
| /***/ }, |
| /* 213 */ |
| /***/ function(module, exports) { |
| |
| module.exports = {} |
| |
| /***/ }, |
| /* 214 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| var _typeof2 = __webpack_require__(115); |
| |
| var _typeof3 = _interopRequireDefault(_typeof2); |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| __webpack_require__(4); |
| module.exports = { |
| data: function () {return { |
| root: '', |
| items: [{ name: 'hello', title: 'Hello World', url: '' }] |
| }}, |
| created: function created() { |
| var bundleUrl = this.$getConfig().bundleUrl; |
| console.log('hit', bundleUrl); |
| var dirs = this.root.split('/'); |
| dirs.forEach(function (dir, index) { |
| if (!dir) dirs.splice(index, 1); |
| }); |
| var root = dirs.length > 0 ? dirs[0] : ''; |
| var subRoot = dirs.length > 1 ? dirs.slice(1).join('/') + '/' : ''; |
| |
| var nativeBase; |
| var isAndroidAssets = bundleUrl.indexOf('your_current_IP') >= 0 || bundleUrl.indexOf('file://assets/') >= 0; |
| var isiOSAssets = bundleUrl.indexOf('file:///') >= 0 && bundleUrl.indexOf('WeexDemo.app') > 0; |
| if (isAndroidAssets) { |
| nativeBase = 'file://assets/'; |
| } else if (isiOSAssets) { |
| nativeBase = bundleUrl.substring(0, bundleUrl.lastIndexOf('/') + 1); |
| } else { |
| var host = 'localhost:12580'; |
| var matches = /\/\/([^\/]+?)\//.exec(this.$getConfig().bundleUrl); |
| if (matches && matches.length >= 2) { |
| host = matches[1]; |
| } |
| nativeBase = '//' + host + '/' + root + '/build/' + subRoot; |
| } |
| var h5Base = './index.html?page=./' + root + '/build/' + subRoot; |
| |
| var base = nativeBase; |
| if ((typeof window === 'undefined' ? 'undefined' : (0, _typeof3.default)(window)) === 'object') { |
| base = h5Base; |
| } |
| |
| for (var i in this.items) { |
| var item = this.items[i]; |
| if (!item.url) { |
| item.url = base + item.name + '.js'; |
| } |
| } |
| |
| if (this.items.length) console.log('hit', this.items[0].url); |
| } |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| /* 215 */, |
| /* 216 */, |
| /* 217 */, |
| /* 218 */, |
| /* 219 */, |
| /* 220 */, |
| /* 221 */, |
| /* 222 */, |
| /* 223 */, |
| /* 224 */, |
| /* 225 */, |
| /* 226 */, |
| /* 227 */, |
| /* 228 */, |
| /* 229 */, |
| /* 230 */, |
| /* 231 */, |
| /* 232 */, |
| /* 233 */, |
| /* 234 */, |
| /* 235 */, |
| /* 236 */, |
| /* 237 */, |
| /* 238 */, |
| /* 239 */, |
| /* 240 */, |
| /* 241 */, |
| /* 242 */, |
| /* 243 */, |
| /* 244 */, |
| /* 245 */, |
| /* 246 */, |
| /* 247 */, |
| /* 248 */, |
| /* 249 */, |
| /* 250 */, |
| /* 251 */, |
| /* 252 */, |
| /* 253 */, |
| /* 254 */, |
| /* 255 */, |
| /* 256 */, |
| /* 257 */, |
| /* 258 */, |
| /* 259 */, |
| /* 260 */, |
| /* 261 */, |
| /* 262 */, |
| /* 263 */, |
| /* 264 */, |
| /* 265 */, |
| /* 266 */, |
| /* 267 */, |
| /* 268 */, |
| /* 269 */, |
| /* 270 */, |
| /* 271 */, |
| /* 272 */, |
| /* 273 */, |
| /* 274 */, |
| /* 275 */, |
| /* 276 */, |
| /* 277 */, |
| /* 278 */, |
| /* 279 */, |
| /* 280 */, |
| /* 281 */, |
| /* 282 */, |
| /* 283 */, |
| /* 284 */, |
| /* 285 */, |
| /* 286 */, |
| /* 287 */, |
| /* 288 */, |
| /* 289 */, |
| /* 290 */, |
| /* 291 */, |
| /* 292 */, |
| /* 293 */, |
| /* 294 */, |
| /* 295 */, |
| /* 296 */, |
| /* 297 */, |
| /* 298 */, |
| /* 299 */, |
| /* 300 */, |
| /* 301 */, |
| /* 302 */, |
| /* 303 */, |
| /* 304 */, |
| /* 305 */, |
| /* 306 */, |
| /* 307 */, |
| /* 308 */, |
| /* 309 */, |
| /* 310 */, |
| /* 311 */, |
| /* 312 */, |
| /* 313 */, |
| /* 314 */, |
| /* 315 */, |
| /* 316 */, |
| /* 317 */, |
| /* 318 */, |
| /* 319 */, |
| /* 320 */, |
| /* 321 */, |
| /* 322 */, |
| /* 323 */, |
| /* 324 */, |
| /* 325 */, |
| /* 326 */, |
| /* 327 */, |
| /* 328 */, |
| /* 329 */, |
| /* 330 */, |
| /* 331 */, |
| /* 332 */, |
| /* 333 */, |
| /* 334 */, |
| /* 335 */, |
| /* 336 */, |
| /* 337 */, |
| /* 338 */, |
| /* 339 */, |
| /* 340 */, |
| /* 341 */, |
| /* 342 */, |
| /* 343 */, |
| /* 344 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "example-list", |
| "attr": { |
| "items": function () {return this.items}, |
| "root": function () {return this.root} |
| } |
| } |
| |
| /***/ }, |
| /* 345 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| __webpack_require__(207); |
| module.exports = { |
| data: function () {return { |
| root: 'examples', |
| items: [{ name: 'syntax/hello-world', title: 'Hello World' }, { name: 'syntax/hello-world-1', title: 'Hello World 1' }, { name: 'syntax/hello-world-2', title: 'Hello World 2' }, { name: 'syntax/hello-world-3', title: 'Hello World 3' }, { name: 'syntax/hello-world-4', title: 'Hello World 4' }, { name: 'syntax/hello-world-5', title: 'Hello World 5' }, { name: 'syntax/script-component', title: 'Script Component' }, { name: 'syntax/script-data', title: 'Script Data' }, { name: 'syntax/script-events', title: 'Script Event' }, { name: 'syntax/script-instance', title: 'Script Instance' }, { name: 'syntax/script-lifecycle', title: 'Script Lifecycle' }, { name: 'syntax/script-module', title: 'Script Module' }, { name: 'syntax/script-options', title: 'Script Option' }, { name: 'syntax/template-class', title: 'Template Class' }, { name: 'syntax/template-content', title: 'Template Content' }, { name: 'syntax/template-event', title: 'Template Event' }, { name: 'syntax/template-if', title: 'Template IF' }, { name: 'syntax/template-repeat', title: 'Template Repeat' }, { name: 'syntax/template-repeat-update', title: 'Template Repeat Update' }, { name: 'syntax/template-style', title: 'Template Style' }] |
| }} |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ } |
| /******/ ]); |