电子屏项目
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

322 řádky
15 KiB

  1. // { "framework": "Vue"}
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, {
  41. /******/ configurable: false,
  42. /******/ enumerable: true,
  43. /******/ get: getter
  44. /******/ });
  45. /******/ }
  46. /******/ };
  47. /******/
  48. /******/ // getDefaultExport function for compatibility with non-harmony modules
  49. /******/ __webpack_require__.n = function(module) {
  50. /******/ var getter = module && module.__esModule ?
  51. /******/ function getDefault() { return module['default']; } :
  52. /******/ function getModuleExports() { return module; };
  53. /******/ __webpack_require__.d(getter, 'a', getter);
  54. /******/ return getter;
  55. /******/ };
  56. /******/
  57. /******/ // Object.prototype.hasOwnProperty.call
  58. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  59. /******/
  60. /******/ // __webpack_public_path__
  61. /******/ __webpack_require__.p = "";
  62. /******/
  63. /******/ // Load entry module and return exports
  64. /******/ return __webpack_require__(__webpack_require__.s = 3);
  65. /******/ })
  66. /************************************************************************/
  67. /******/ ([
  68. /* 0 */
  69. /***/ (function(module, exports, __webpack_require__) {
  70. var __vue_exports__, __vue_options__
  71. var __vue_styles__ = []
  72. /* template */
  73. var __vue_template__ = __webpack_require__(1)
  74. __vue_options__ = __vue_exports__ = __vue_exports__ || {}
  75. if (
  76. typeof __vue_exports__.default === "object" ||
  77. typeof __vue_exports__.default === "function"
  78. ) {
  79. if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
  80. __vue_options__ = __vue_exports__ = __vue_exports__.default
  81. }
  82. if (typeof __vue_options__ === "function") {
  83. __vue_options__ = __vue_options__.options
  84. }
  85. __vue_options__.__file = "D:\\demo\\androidweex\\src\\components\\HelloWorld.vue"
  86. __vue_options__.render = __vue_template__.render
  87. __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
  88. __vue_options__.style = __vue_options__.style || {}
  89. __vue_styles__.forEach(function (module) {
  90. for (var name in module) {
  91. __vue_options__.style[name] = module[name]
  92. }
  93. })
  94. if (typeof __register_static_styles__ === "function") {
  95. __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
  96. }
  97. module.exports = __vue_exports__
  98. /***/ }),
  99. /* 1 */
  100. /***/ (function(module, exports) {
  101. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  102. return _c('text', {
  103. staticClass: ["message"]
  104. }, [_vm._v("Now, let's use Vue.js to build your Weex app.")])
  105. },staticRenderFns: []}
  106. module.exports.render._withStripped = true
  107. /***/ }),
  108. /* 2 */,
  109. /* 3 */
  110. /***/ (function(module, exports, __webpack_require__) {
  111. "use strict";
  112. var _index = __webpack_require__(4);
  113. var _index2 = _interopRequireDefault(_index);
  114. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  115. _index2.default.el = '#root';
  116. new Vue(_index2.default);
  117. /***/ }),
  118. /* 4 */
  119. /***/ (function(module, exports, __webpack_require__) {
  120. var __vue_exports__, __vue_options__
  121. var __vue_styles__ = []
  122. /* styles */
  123. __vue_styles__.push(__webpack_require__(5)
  124. )
  125. /* script */
  126. __vue_exports__ = __webpack_require__(6)
  127. /* template */
  128. var __vue_template__ = __webpack_require__(8)
  129. __vue_options__ = __vue_exports__ = __vue_exports__ || {}
  130. if (
  131. typeof __vue_exports__.default === "object" ||
  132. typeof __vue_exports__.default === "function"
  133. ) {
  134. if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
  135. __vue_options__ = __vue_exports__ = __vue_exports__.default
  136. }
  137. if (typeof __vue_options__ === "function") {
  138. __vue_options__ = __vue_options__.options
  139. }
  140. __vue_options__.__file = "D:\\demo\\androidweex\\src\\index.vue"
  141. __vue_options__.render = __vue_template__.render
  142. __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
  143. __vue_options__._scopeId = "data-v-1a4d8e3c"
  144. __vue_options__.style = __vue_options__.style || {}
  145. __vue_styles__.forEach(function (module) {
  146. for (var name in module) {
  147. __vue_options__.style[name] = module[name]
  148. }
  149. })
  150. if (typeof __register_static_styles__ === "function") {
  151. __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
  152. }
  153. module.exports = __vue_exports__
  154. /***/ }),
  155. /* 5 */
  156. /***/ (function(module, exports) {
  157. module.exports = {
  158. "wrapper": {
  159. "justifyContent": "center",
  160. "alignItems": "center"
  161. },
  162. "logo": {
  163. "width": "424",
  164. "height": "200"
  165. },
  166. "greeting": {
  167. "textAlign": "center",
  168. "fontSize": "50",
  169. "color": "#FF0000",
  170. "position": "absolute",
  171. "left": "10",
  172. "top": "10",
  173. "paddingTop": "50",
  174. "paddingRight": "50",
  175. "paddingBottom": "50",
  176. "paddingLeft": "50"
  177. },
  178. "message": {
  179. "marginTop": "30",
  180. "marginRight": "30",
  181. "marginBottom": "30",
  182. "marginLeft": "30",
  183. "fontSize": "32",
  184. "color": "#727272"
  185. }
  186. }
  187. /***/ }),
  188. /* 6 */
  189. /***/ (function(module, exports, __webpack_require__) {
  190. "use strict";
  191. Object.defineProperty(exports, "__esModule", {
  192. value: true
  193. });
  194. var _HelloWorld = __webpack_require__(0);
  195. var _HelloWorld2 = _interopRequireDefault(_HelloWorld);
  196. var _dayjs = __webpack_require__(7);
  197. var _dayjs2 = _interopRequireDefault(_dayjs);
  198. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  199. //
  200. //
  201. //
  202. //
  203. //
  204. //
  205. //
  206. //
  207. //
  208. //
  209. //
  210. //
  211. //
  212. //
  213. //
  214. //
  215. exports.default = {
  216. name: 'App',
  217. components: {
  218. HelloWorld: _HelloWorld2.default
  219. },
  220. data: function data() {
  221. return {
  222. logo: 'https://gw.alicdn.com/tfs/TB1yopEdgoQMeJjy1XaXXcSsFXa-640-302.png',
  223. params: "",
  224. day: (0, _dayjs2.default)().format("YYYY_MM_DD")
  225. };
  226. },
  227. mounted: function mounted() {
  228. this.params = weex.config.params;
  229. localStorage.key = "nihao";
  230. console.log("dsdishids", localStorage.key);
  231. var json = {
  232. a: 1111,
  233. b: 2222
  234. };
  235. alert(JSON.stringify(json));
  236. },
  237. methods: {
  238. onJumpClick: function onJumpClick() {
  239. var json = {
  240. url: "weex/reader.js",
  241. params: "你好rader,我是首页"
  242. };
  243. try {
  244. // weex.requireModule("navevent").toast("显示消息")
  245. weex.requireModule("navevent").navigateTo("weex/reader.js", "你好rader,我是首页");
  246. this.params = "点击了图片";
  247. } catch (error) {
  248. this.params = JSON.stringify(error);
  249. }
  250. // weex.requireModule("activity").navigateTo(json)
  251. }
  252. }
  253. };
  254. /***/ }),
  255. /* 7 */
  256. /***/ (function(module, exports, __webpack_require__) {
  257. !function(t,e){ true?module.exports=e():"function"==typeof define&&define.amd?define(e):t.dayjs=e()}(this,function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",s="week",u="month",a="quarter",o="year",f="date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},l={s:$,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+$(r,2,"0")+":"+$(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),s=n-i<0,a=e.clone().add(r+(s?-1:1),u);return+(-(r+(n-i)/(s?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return{M:u,y:o,w:s,d:i,D:f,h:r,m:n,s:e,ms:t,Q:a}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",M={};M[y]=d;var m=function(t){return t instanceof S},D=function(t,e,n){var r;if(!t)return y;if("string"==typeof t)M[t]&&(r=t),e&&(M[t]=e,r=t);else{var i=t.name;M[i]=t,r=i}return!n&&r&&(y=r),r||!n&&y},v=function(t,e){if(m(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},g=l;g.l=D,g.i=m,g.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function d(t){this.$L=D(t.locale,null,!0),this.parse(t)}var $=d.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(g.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return g},$.isValid=function(){return!("Invalid Date"===this.$d.toString())},$.isSame=function(t,e){var n=v(t);return this.startOf(e)<=n&&n<=this.endOf(e)},$.isAfter=function(t,e){return v(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<v(t)},$.$g=function(t,e,n){return g.u(t)?this[e]:this.set(n,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,a){var h=this,c=!!g.u(a)||a,d=g.p(t),$=function(t,e){var n=g.w(h.$u?Date.UTC(h.$y,e,t):new Date(h.$y,e,t),h);return c?n:n.endOf(i)},l=function(t,e){return g.w(h.toDate()[t].apply(h.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),h)},y=this.$W,M=this.$M,m=this.$D,D="set"+(this.$u?"UTC":"");switch(d){case o:return c?$(1,0):$(31,11);case u:return c?$(1,M):$(0,M+1);case s:var v=this.$locale().weekStart||0,S=(y<v?y+7:y)-v;return $(c?m-S:m+(6-S),M);case i:case f:return l(D+"Hours",0);case r:return l(D+"Minutes",1);case n:return l(D+"Seconds",2);case e:return l(D+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(s,a){var h,c=g.p(s),d="set"+(this.$u?"UTC":""),$=(h={},h[i]=d+"Date",h[f]=d+"Date",h[u]=d+"Month",h[o]=d+"FullYear",h[r]=d+"Hours",h[n]=d+"Minutes",h[e]=d+"Seconds",h[t]=d+"Milliseconds",h)[c],l=c===i?this.$D+(a-this.$W):a;if(c===u||c===o){var y=this.clone().set(f,1);y.$d[$](l),y.init(),this.$d=y.set(f,Math.min(this.$D,y.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[g.p(t)]()},$.add=function(t,a){var f,h=this;t=Number(t);var c=g.p(a),d=function(e){var n=v(h);return g.w(n.date(n.date()+Math.round(e*t)),h)};if(c===u)return this.set(u,this.$M+t);if(c===o)return this.set(o,this.$y+t);if(c===i)return d(1);if(c===s)return d(7);var $=(f={},f[n]=6e4,f[r]=36e5,f[e]=1e3,f)[c]||1,l=this.$d.getTime()+t*$;return g.w(l,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=g.z(this),i=this.$locale(),s=this.$H,u=this.$m,a=this.$M,o=i.weekdays,f=i.months,h=function(t,r,i,s){return t&&(t[r]||t(e,n))||i[r].substr(0,s)},d=function(t){return g.s(s%12||12,t,"0")},$=i.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:g.s(a+1,2,"0"),MMM:h(i.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:h(i.weekdaysMin,this.$W,o,2),ddd:h(i.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:g.s(s,2,"0"),h:d(1),hh:d(2),a:$(s,u,!0),A:$(s,u,!1),m:String(u),mm:g.s(u,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:r};return n.replace(c,function(t,e){return e||l[t]||r.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(t,f,h){var c,d=g.p(f),$=v(t),l=6e4*($.utcOffset()-this.utcOffset()),y=this-$,M=g.m(this,$);return M=(c={},c[o]=M/12,c[u]=M,c[a]=M/3,c[s]=(y-l)/6048e5,c[i]=(y-l)/864e5,c[r]=y/36e5,c[n]=y/6e4,c[e]=y/1e3,c)[d]||y,h?M:g.a(M)},$.daysInMonth=function(){return this.endOf(u).$D},$.$locale=function(){return M[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=D(t,e,!0);return r&&(n.$L=r),n},$.clone=function(){return g.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},d}(),p=S.prototype;return v.prototype=p,[["$ms",t],["$s",e],["$m",n],["$H",r],["$W",i],["$M",u],["$y",o],["$D",f]].forEach(function(t){p[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),v.extend=function(t,e){return t.$i||(t(e,S,v),t.$i=!0),v},v.locale=D,v.isDayjs=m,v.unix=function(t){return v(1e3*t)},v.en=M[y],v.Ls=M,v.p={},v});
  258. /***/ }),
  259. /* 8 */
  260. /***/ (function(module, exports) {
  261. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  262. return _c('div', {
  263. staticClass: ["wrapper"]
  264. }, [_c('image', {
  265. staticClass: ["logo"],
  266. attrs: {
  267. "src": _vm.logo
  268. },
  269. on: {
  270. "click": _vm.onJumpClick
  271. }
  272. }), _c('text', {
  273. staticClass: ["greeting"]
  274. }, [_vm._v("这是首页")]), _c('text', {}, [_vm._v(_vm._s(_vm.params))]), _c('text', {}, [_vm._v(_vm._s(_vm.day))]), _c('HelloWorld')], 1)
  275. },staticRenderFns: []}
  276. module.exports.render._withStripped = true
  277. /***/ })
  278. /******/ ]);