You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2017/12/28 03:28:29 UTC
[25/52] [partial] incubator-weex git commit: - [example] remove
legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/minesweeper.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/minesweeper.js b/android/playground/app/src/main/assets/showcase/minesweeper.js
deleted file mode 100644
index 06fa880..0000000
--- a/android/playground/app/src/main/assets/showcase/minesweeper.js
+++ /dev/null
@@ -1,345 +0,0 @@
-/******/ (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__(241)
- var __weex_style__ = __webpack_require__(242)
- var __weex_script__ = __webpack_require__(243)
-
- __weex_define__('@weex-component/c0df89e239d226d3a0c6f418314cda04', [], 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__
-
- })
-
- __weex_bootstrap__('@weex-component/c0df89e239d226d3a0c6f418314cda04',undefined,undefined)
-
-/***/ },
-
-/***/ 241:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "children": [
- {
- "type": "text",
- "classList": [
- "btn"
- ],
- "attr": {
- "value": function () {return this.board}
- }
- },
- {
- "type": "container",
- "repeat": function () {return this.row},
- "style": {
- "flexDirection": "row",
- "flex": 1
- },
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.col},
- "style": {
- "flex": 1
- },
- "children": [
- {
- "type": "text",
- "attr": {
- "tid": function () {return this.tid},
- "around": function () {return this.around},
- "value": function () {return this.text}
- },
- "events": {
- "click": "onclick",
- "longpress": "onlongpress"
- },
- "classList": function () {return [this.state, 'tile']}
- }
- ]
- }
- ]
- },
- {
- "type": "text",
- "events": {
- "click": "restart"
- },
- "classList": [
- "btn"
- ],
- "attr": {
- "value": "START"
- }
- }
- ]
- }
-
-/***/ },
-
-/***/ 242:
-/***/ function(module, exports) {
-
- module.exports = {
- "btn": {
- "margin": 2,
- "backgroundColor": "#e74c3c",
- "color": "#ffffff",
- "textAlign": "center",
- "flex": 1,
- "fontSize": 66,
- "height": 80
- },
- "normal": {
- "backgroundColor": "#95a5a6"
- },
- "open": {
- "backgroundColor": "#34495e",
- "color": "#ffffff"
- },
- "flag": {
- "backgroundColor": "#95a5a6"
- },
- "tile": {
- "margin": 2,
- "fontSize": 56,
- "height": 80,
- "paddingTop": 0,
- "textAlign": "center"
- }
- }
-
-/***/ },
-
-/***/ 243:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){"use strict";
-
- module.exports = {
- data: function () {return {
- size: 9,
- max: 10,
- board: 0,
- row: [],
- vector: [[-1, 0], [-1, -1], [0, -1], [1, -1], [1, 0], [1, 1], [0, 1], [-1, 1]],
- strings: {
- mine: "💣",
- flag: "🚩",
- win: "YOU WIN!",
- lose: "YOU LOSE~"
- },
- finished: false
- }},
- methods: {
- map: function map(x, y, callback) {
- for (var i = 0; i < 8; ++i) {
- var mx = x + this.vector[i][0];
- var my = y + this.vector[i][1];
- if (mx >= 0 && my >= 0 && mx < this.size && my < this.size) {
- callback(this.row[mx].col[my]);
- }
- }
- },
- dfs: function dfs(tile) {
- var pos = this.position(tile.tid);
- var context = this;
- tile.state = "open";
- this.map(pos["x"], pos["y"], function (node) {
- if (node.around == 0 && node.state == "normal") {
- context.dfs(node);
- } else {
- context.display(node);
- }
- });
- },
- random: function random(min, max) {
- return parseInt(Math.random() * (max - min) + min);
- },
- plant: function plant() {
- var count = 0;
- while (count < this.max) {
- var x = this.random(0, this.size);
- var y = this.random(0, this.size);
- var tile = this.row[x].col[y];
- if (tile.value == 0) {
- ++count;
- tile.value = 1;
- }
- }
- },
- calculate: function calculate() {
- for (var i = 0; i < this.size; ++i) {
- for (var j = 0; j < this.size; ++j) {
- var around = 0;
- this.map(i, j, function (tile) {
- around += tile.value;
- });
- this.row[i].col[j].around = around;
- }
- }
- },
- restart: function restart(e) {
- var row = [];
- var count = 0;
- this.board = this.max;
- this.finished = false;
- for (var i = 0; i < this.size; ++i) {
- var col = { "col": [] };
- for (var j = 0; j < this.size; ++j) {
- var tid = i * this.size + j;
- col["col"][j] = {
- tid: "" + tid,
- state: "normal",
- value: 0,
- text: "",
- around: 0
- };
- }
- row[i] = col;
- }
- this.row = row;
- this.plant();
- this.calculate();
- },
- unfinished: function unfinished() {
- var finished = this.finished;
- if (this.finished) {
- this.restart();
- }
- return !finished;
- },
- position: function position(tid) {
- var row = parseInt(tid / this.size);
- var col = tid % this.size;
- return { x: row, y: col };
- },
- display: function display(tile) {
- tile.state = "open";
- tile.text = tile.around == 0 ? "" : tile.around;
- },
- tile: function tile(event) {
- var tid = event.target.attr["tid"];
- var pos = this.position(tid);
- return this.row[pos["x"]].col[pos["y"]];
- },
- onclick: function onclick(event) {
- if (this.unfinished()) {
- var tile = this.tile(event);
- if (tile.state == "normal") {
- if (tile.value == 1) {
- this.onfail();
- } else {
- this.display(tile);
- if (tile.around == 0) {
- this.dfs(tile);
- }
- this.judge();
- }
- }
- }
- },
- onlongpress: function onlongpress(event) {
- if (this.unfinished()) {
- var tile = this.tile(event);
- tile.state = tile.state == "flag" ? "normal" : "flag";
- if (tile.state == "flag") {
- --this.board;
- tile.text = this.strings.flag;
- } else {
- ++this.board;
- tile.text = "";
- }
- this.judge();
- }
- },
- foreach: function foreach(callback) {
- for (var i = 0; i < this.size; ++i) {
- for (var j = 0; j < this.size; ++j) {
- callback(this.row[i].col[j]);
- }
- }
- },
- judge: function judge() {
- var count = 0;
- this.foreach(function (tile) {
- if (tile.state == "open" || tile.state == "flag") {
- ++count;
- }
- });
- if (count == this.size * this.size) {
- this.finished = true;
- this.board = this.strings.win;
- }
- },
- onfail: function onfail() {
- this.board = this.strings.lose;
- this.finished = true;
- var mine = this.strings.mine;
- this.foreach(function (tile) {
- if (tile.value == 1) {
- tile.text = mine;
- }
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/banner.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/banner.js b/android/playground/app/src/main/assets/showcase/new-fashion/banner.js
deleted file mode 100644
index 5bbf0d8..0000000
--- a/android/playground/app/src/main/assets/showcase/new-fashion/banner.js
+++ /dev/null
@@ -1,116 +0,0 @@
-/******/ (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__(244)
- var __weex_script__ = __webpack_require__(245)
-
- __weex_define__('@weex-component/df4a1d587e74e64ad99011cd2bcf06b7', [], 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/df4a1d587e74e64ad99011cd2bcf06b7',undefined,undefined)
-
-/***/ },
-
-/***/ 244:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "image",
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height}
- },
- "attr": {
- "src": function () {return this.src},
- "imageQuality": function () {return this.quality}
- },
- "events": {
- "click": "_clickHandler"
- }
- }
-
-/***/ },
-
-/***/ 245:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- quality: 'normal',
- width: 0,
- height: 0,
- src: '',
- href: '',
- spmc: 0,
- spmd: 0
- }},
- methods: {
- ready: function ready() {},
- _clickHandler: function _clickHandler() {
- this.$call('modal', 'toast', {
- message: 'click',
- duration: 1
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/banners.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/banners.js b/android/playground/app/src/main/assets/showcase/new-fashion/banners.js
deleted file mode 100644
index 112fb13..0000000
--- a/android/playground/app/src/main/assets/showcase/new-fashion/banners.js
+++ /dev/null
@@ -1,235 +0,0 @@
-/******/ (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__) {
-
- __webpack_require__(246)
- var __weex_template__ = __webpack_require__(247)
- var __weex_script__ = __webpack_require__(248)
-
- __weex_define__('@weex-component/a29a28169794adc0c69ea3ddb07ed6a2', [], 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/a29a28169794adc0c69ea3ddb07ed6a2',undefined,undefined)
-
-/***/ },
-
-/***/ 244:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "image",
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height}
- },
- "attr": {
- "src": function () {return this.src},
- "imageQuality": function () {return this.quality}
- },
- "events": {
- "click": "_clickHandler"
- }
- }
-
-/***/ },
-
-/***/ 245:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- quality: 'normal',
- width: 0,
- height: 0,
- src: '',
- href: '',
- spmc: 0,
- spmd: 0
- }},
- methods: {
- ready: function ready() {},
- _clickHandler: function _clickHandler() {
- this.$call('modal', 'toast', {
- message: 'click',
- duration: 1
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ },
-
-/***/ 246:
-/***/ function(module, exports, __webpack_require__) {
-
- var __weex_template__ = __webpack_require__(244)
- var __weex_script__ = __webpack_require__(245)
-
- __weex_define__('@weex-component/banner', [], 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__
-
- })
-
-
-/***/ },
-
-/***/ 247:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "children": [
- {
- "type": "container",
- "shown": function () {return this.direction==='row'},
- "style": {
- "flexDirection": "row"
- },
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.ds},
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "marginLeft": function () {return this.space}
- },
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "src": function () {return this.img},
- "href": function () {return this.url}
- }
- }
- ]
- }
- ]
- },
- {
- "type": "container",
- "shown": function () {return this.direction==='column'},
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.ds},
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "marginTop": function () {return this.space}
- },
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "src": function () {return this.img},
- "href": function () {return this.url}
- }
- }
- ]
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 248:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- space: 0,
- width: 0,
- height: 0,
- spmc: 0,
- spmdprefix: '',
- ds: []
- }},
- methods: {
- ready: function ready() {
- var self = this;
- var ds = self.ds;
- var length = ds.length;
- for (var i = 0; i < length; i++) {
- var item = ds[i];
- item.index = i;
- item.space = i % length === 0 ? 0 : self.space;
- }
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/brand.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/brand.js b/android/playground/app/src/main/assets/showcase/new-fashion/brand.js
deleted file mode 100644
index 14ec49b..0000000
--- a/android/playground/app/src/main/assets/showcase/new-fashion/brand.js
+++ /dev/null
@@ -1,359 +0,0 @@
-/******/ (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__) {
-
- __webpack_require__(249)
- var __weex_template__ = __webpack_require__(250)
- var __weex_style__ = __webpack_require__(251)
- var __weex_script__ = __webpack_require__(252)
-
- __weex_define__('@weex-component/81fdd9b8b8bce1b304791aba10e15462', [], 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__
-
- })
-
- __weex_bootstrap__('@weex-component/81fdd9b8b8bce1b304791aba10e15462',undefined,undefined)
-
-/***/ },
-
-/***/ 244:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "image",
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height}
- },
- "attr": {
- "src": function () {return this.src},
- "imageQuality": function () {return this.quality}
- },
- "events": {
- "click": "_clickHandler"
- }
- }
-
-/***/ },
-
-/***/ 245:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- quality: 'normal',
- width: 0,
- height: 0,
- src: '',
- href: '',
- spmc: 0,
- spmd: 0
- }},
- methods: {
- ready: function ready() {},
- _clickHandler: function _clickHandler() {
- this.$call('modal', 'toast', {
- message: 'click',
- duration: 1
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ },
-
-/***/ 246:
-/***/ function(module, exports, __webpack_require__) {
-
- var __weex_template__ = __webpack_require__(244)
- var __weex_script__ = __webpack_require__(245)
-
- __weex_define__('@weex-component/banner', [], 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__
-
- })
-
-
-/***/ },
-
-/***/ 247:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "children": [
- {
- "type": "container",
- "shown": function () {return this.direction==='row'},
- "style": {
- "flexDirection": "row"
- },
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.ds},
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "marginLeft": function () {return this.space}
- },
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "src": function () {return this.img},
- "href": function () {return this.url}
- }
- }
- ]
- }
- ]
- },
- {
- "type": "container",
- "shown": function () {return this.direction==='column'},
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.ds},
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "marginTop": function () {return this.space}
- },
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "src": function () {return this.img},
- "href": function () {return this.url}
- }
- }
- ]
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 248:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- space: 0,
- width: 0,
- height: 0,
- spmc: 0,
- spmdprefix: '',
- ds: []
- }},
- methods: {
- ready: function ready() {
- var self = this;
- var ds = self.ds;
- var length = ds.length;
- for (var i = 0; i < length; i++) {
- var item = ds[i];
- item.index = i;
- item.space = i % length === 0 ? 0 : self.space;
- }
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ },
-
-/***/ 249:
-/***/ function(module, exports, __webpack_require__) {
-
- __webpack_require__(246)
- var __weex_template__ = __webpack_require__(247)
- var __weex_script__ = __webpack_require__(248)
-
- __weex_define__('@weex-component/banners', [], 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__
-
- })
-
-
-/***/ },
-
-/***/ 250:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "classList": [
- "container"
- ],
- "children": [
- {
- "type": "image",
- "shown": function () {return this.ds.floorTitle},
- "classList": [
- "title"
- ],
- "attr": {
- "src": function () {return this.ds.floorTitle}
- }
- },
- {
- "type": "container",
- "style": {
- "marginLeft": 4,
- "marginRight": 4
- },
- "children": [
- {
- "type": "banners",
- "attr": {
- "ds": function () {return this.bannerItems},
- "direction": "column",
- "width": function () {return this.NUMBER_742},
- "height": function () {return this.NUMBER_230},
- "space": function () {return this.NUMBER_4}
- }
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 251:
-/***/ function(module, exports) {
-
- module.exports = {
- "title": {
- "width": 750,
- "height": 100
- },
- "container": {
- "marginBottom": 4,
- "backgroundColor": "#C0BABC"
- }
- }
-
-/***/ },
-
-/***/ 252:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){"use strict";
-
- module.exports = {
- data: function () {return {
- NUMBER_742: 742,
- NUMBER_230: 230,
- NUMBER_4: 4
- }},
- methods: {
- ready: function ready() {
- var self = this;
- self._randomBrand();
- },
- _randomBrand: function _randomBrand() {
- var self = this;
- var bannerItems = self.ds.bannerItems;
- bannerItems = bannerItems.sort(function () {
- return Math.random() - 0.5;
- });
- self.bannerItems = bannerItems.slice(0, 8);
- for (var i = 0; i < bannerItems.length; i++) {
- var item = bannerItems[i];
- if (i % 2 === 0) {
- item.img = item.leftImg;
- item.url = item.rightUrl;
- } else {
- item.img = item.rightImg;
- item.url = item.rightUrl;
- }
- }
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/category.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/category.js b/android/playground/app/src/main/assets/showcase/new-fashion/category.js
deleted file mode 100644
index a5b54d0..0000000
--- a/android/playground/app/src/main/assets/showcase/new-fashion/category.js
+++ /dev/null
@@ -1,791 +0,0 @@
-/******/ (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__) {
-
- __webpack_require__(246)
- var __weex_template__ = __webpack_require__(253)
- var __weex_style__ = __webpack_require__(254)
- var __weex_script__ = __webpack_require__(255)
-
- __weex_define__('@weex-component/b33b928e3758831c19b31a06d4f5e634', [], 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__
-
- })
-
- __weex_bootstrap__('@weex-component/b33b928e3758831c19b31a06d4f5e634',undefined,undefined)
-
-/***/ },
-
-/***/ 244:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "image",
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height}
- },
- "attr": {
- "src": function () {return this.src},
- "imageQuality": function () {return this.quality}
- },
- "events": {
- "click": "_clickHandler"
- }
- }
-
-/***/ },
-
-/***/ 245:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- quality: 'normal',
- width: 0,
- height: 0,
- src: '',
- href: '',
- spmc: 0,
- spmd: 0
- }},
- methods: {
- ready: function ready() {},
- _clickHandler: function _clickHandler() {
- this.$call('modal', 'toast', {
- message: 'click',
- duration: 1
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ },
-
-/***/ 246:
-/***/ function(module, exports, __webpack_require__) {
-
- var __weex_template__ = __webpack_require__(244)
- var __weex_script__ = __webpack_require__(245)
-
- __weex_define__('@weex-component/banner', [], 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__
-
- })
-
-
-/***/ },
-
-/***/ 253:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "children": [
- {
- "type": "image",
- "shown": function () {return this.ds.floorTitle},
- "classList": [
- "title"
- ],
- "attr": {
- "src": function () {return this.ds.floorTitle}
- }
- },
- {
- "type": "container",
- "classList": [
- "item-container"
- ],
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.items},
- "style": {
- "width": 750,
- "paddingBottom": 14,
- "backgroundColor": function () {return this.colour}
- },
- "children": [
- {
- "type": "container",
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.NUMBER_750},
- "height": function () {return this.NUMBER_237},
- "src": function () {return this.bannerImg},
- "href": function () {return this.bannerUrl}
- }
- }
- ]
- },
- {
- "type": "container",
- "classList": [
- "shop-list"
- ],
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.shopList},
- "classList": [
- "shop-img-container"
- ],
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.NUMBER_186},
- "height": function () {return this.NUMBER_208},
- "src": function () {return this.picUrl},
- "href": function () {return this.shopUrl}
- }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "type": "container",
- "classList": [
- "sub-item-container"
- ],
- "style": {
- "height": function () {return Math.round(this.subItems.length/3)*(241+3)}
- },
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.subItems},
- "classList": [
- "sub-item"
- ],
- "style": {
- "top": function () {return this.top},
- "left": function () {return this.left}
- },
- "children": [
- {
- "type": "image",
- "classList": [
- "sub-item-bg"
- ],
- "attr": {
- "src": function () {return this.subItemBg}
- }
- },
- {
- "type": "container",
- "classList": [
- "sub-item-img"
- ],
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.NUMBER_248},
- "height": function () {return this.NUMBER_155},
- "src": function () {return this.industryImg},
- "href": function () {return this.industryUrl}
- }
- }
- ]
- },
- {
- "type": "container",
- "classList": [
- "sub-item-title"
- ],
- "children": [
- {
- "type": "text",
- "classList": [
- "industry-title"
- ],
- "attr": {
- "href": function () {return this.industryUrl},
- "value": function () {return this.industryTitle}
- }
- },
- {
- "type": "text",
- "classList": [
- "industry-benefit"
- ],
- "attr": {
- "href": function () {return this.industryUrl},
- "value": function () {return this.industryBenefit}
- }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 254:
-/***/ function(module, exports) {
-
- module.exports = {
- "title": {
- "width": 750,
- "height": 100
- },
- "shop-list": {
- "flexDirection": "row"
- },
- "shop-img-container": {
- "marginRight": 2
- },
- "sub-item": {
- "position": "absolute",
- "width": 248,
- "height": 241,
- "alignItems": "center",
- "backgroundColor": "#ffffff"
- },
- "sub-item-bg": {
- "width": 248,
- "height": 86
- },
- "sub-item-title": {
- "position": "absolute",
- "left": 0,
- "top": 0,
- "width": 248,
- "textAlign": "center"
- },
- "industry-title": {
- "fontSize": 28,
- "color": "#484848",
- "textAlign": "center",
- "marginTop": 10,
- "height": 34
- },
- "industry-benefit": {
- "fontSize": 24,
- "color": "#999999",
- "textAlign": "center"
- }
- }
-
-/***/ },
-
-/***/ 255:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){"use strict";
-
- module.exports = {
- data: function () {return {
- NUMBER_248: 248,
- NUMBER_155: 155,
- NUMBER_373: 373,
- NUMBER_237: 237,
- NUMBER_186: 186,
- NUMBER_208: 208,
- NUMBER_750: 750,
- subItemBg: '//gw.alicdn.com/tps/TB1QzUfLVXXXXaOXVXXXXXXXXXX-248-86.jpg',
- items: [],
- subItems: []
- }},
- methods: {
- ready: function ready() {
- var self = this;
- self._loadData();
- },
-
- _loadData: function _loadData() {
- var self = this;
- var content = {
- "main": [{
- "shopList": [{
- "id": "619123122",
- "picUrl": "//img.alicdn.com/tps/i1/TB1Cl5MLVXXXXXTaXXXSutbFXXX.jpg",
- "finalScore": "0.884765209440857",
- "shopUrl": "http://liangpinpuzi.tmall.com/campaign-3735-7.htm",
- "entityType": "SHOP",
- "brandId": "7724367"
- }, {
- "id": "880734502",
- "picUrl": "//img.alicdn.com/tps/i1/TB1HN2XLVXXXXbkXFXXSutbFXXX.jpg",
- "finalScore": "0.8822246866512714",
- "shopUrl": "http://sanzhisongshu.tmall.com/campaign-3735-7.htm",
- "entityType": "SHOP",
- "brandId": "147280915"
- }, {
- "id": "392147177",
- "picUrl": "//img.alicdn.com/tps/i1/TB1yq6dLVXXXXbXXpXXSutbFXXX.jpg",
- "finalScore": "0.8805854724243631",
- "shopUrl": "http://zhouheiya.tmall.com/campaign-3735-6.htm",
- "entityType": "SHOP",
- "brandId": "111496"
- }, {
- "id": "2081058060",
- "picUrl": "//img.alicdn.com/tps/i1/TB1w4jxLVXXXXaxXXXXtKXbFXXX.gif",
- "finalScore": "0.8640439551049249",
- "shopUrl": "http://rongxintang.tmall.com/campaign-3735-6.htm",
- "entityType": "SHOP",
- "brandId": "8709890"
- }],
- "finalScore": "4.657333333333334",
- "industryUrl": null,
- "entityType": "OTHER",
- "colour": "#fff5a3",
- "industryTitle": null,
- "bannerUrl": "//pages.tmall.com/wow/act/15617/newfood?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_12_735362&pos=1",
- "leftBannerImg": "http://img.alicdn.com/tps/i1/TB1LHh4MXXXXXbsXpXXeWjm2pXX-750-240.jpg",
- "_pos_": "1",
- "industryBenefit": null,
- "industryId": "12",
- "industryImg": null,
- "rightBannerImg": "//img.alicdn.com/tps/i4/TB1wshUMXXXXXXaXVXXeWjm2pXX-750-240.jpg"
- }, {
- "shopList": [{
- "id": "520557274",
- "picUrl": "//img.alicdn.com/tps/i1/TB1aMjXLVXXXXbUaXXXSutbFXXX.jpg",
- "finalScore": "0.8986382989845325",
- "shopUrl": "http://newbalance.tmall.com/campaign-3735-20.htm",
- "entityType": "SHOP",
- "brandId": "20584"
- }, {
- "id": "746866993",
- "picUrl": "//img.alicdn.com/tps/i1/TB1pXG9LVXXXXaLXFXXSutbFXXX.jpg",
- "finalScore": "0.8917855242977327",
- "shopUrl": "http://vans.tmall.com/campaign-3735-19.htm",
- "entityType": "SHOP",
- "brandId": "29529"
- }, {
- "id": "1612713147",
- "picUrl": "//img.alicdn.com/tps/i1/TB1jHfXLVXXXXXPXFXXSutbFXXX.jpg",
- "finalScore": "0.8895943606442631",
- "shopUrl": "http://dcshoecousa.tmall.com/campaign-3735-8.htm",
- "entityType": "SHOP",
- "brandId": "3851662"
- }, {
- "id": "2379251418",
- "picUrl": "//img.alicdn.com/tps/i1/TB1sbLlLVXXXXbeXXXXSutbFXXX.jpg",
- "finalScore": "0.8881539668874383",
- "shopUrl": "http://baijinydhw.tmall.com/campaign-3735-2.htm",
- "entityType": "SHOP",
- "brandId": "20579"
- }],
- "finalScore": "4.545333333333334",
- "industryUrl": null,
- "entityType": "OTHER",
- "colour": "#cbdbfe",
- "industryTitle": null,
- "bannerUrl": "//pages.tmall.com/wow/act/15617/ydhw?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_8_735362&pos=2",
- "leftBannerImg": "http://img.alicdn.com/tps/i3/TB1h4kzLVXXXXawXpXXeWjm2pXX-750-240.jpg",
- "_pos_": "2",
- "industryBenefit": null,
- "industryId": "8",
- "industryImg": null,
- "rightBannerImg": "//img.alicdn.com/tps/i4/TB19VMjLVXXXXaeaXXXeWjm2pXX-750-240.jpg"
- }, {
- "shopList": [{
- "id": "811383091",
- "picUrl": "//img.alicdn.com/tps/i1/TB1q49ZLVXXXXaJXVXXSutbFXXX.jpg",
- "finalScore": "0.8723682716749482",
- "shopUrl": "http://tongrentangbj.tmall.com/campaign-3735-9.htm",
- "entityType": "SHOP",
- "brandId": "44652"
- }, {
- "id": "838914626",
- "picUrl": "//img.alicdn.com/tps/i1/TB1GQYbLVXXXXaXXVXXSutbFXXX.jpg",
- "finalScore": "0.5027131908086584",
- "shopUrl": "http://jouo.tmall.com/campaign-3735-3.htm",
- "entityType": "SHOP",
- "brandId": "14170081"
- }, {
- "id": "1077716829",
- "picUrl": "//img.alicdn.com/tps/i1/TB1rdW2LVXXXXagapXXSutbFXXX.jpg",
- "finalScore": "0.5015387557024262",
- "shopUrl": "http://wetcode.tmall.com/campaign-3735-14.htm",
- "entityType": "SHOP",
- "brandId": "3675642"
- }, {
- "id": "1664976033",
- "picUrl": "//img.alicdn.com/tps/i1/TB1Q.rpLVXXXXXiXpXXSutbFXXX.jpg",
- "finalScore": "0.5014897109669442",
- "shopUrl": "http://hanhoohzp.tmall.com/campaign-3735-17.htm",
- "entityType": "SHOP",
- "brandId": "78888695"
- }],
- "finalScore": "4.526666666666666",
- "industryUrl": null,
- "entityType": "OTHER",
- "colour": "#ffd1b6",
- "industryTitle": null,
- "bannerUrl": "//pages.tmall.com/wow/act/15617/getbeauty?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_2_735362&pos=3",
- "leftBannerImg": "http://img.alicdn.com/tps/i4/TB1Djt9MXXXXXanXXXXeWjm2pXX-750-240.jpg",
- "_pos_": "3",
- "industryBenefit": null,
- "industryId": "2",
- "industryImg": null,
- "rightBannerImg": "//img.alicdn.com/tps/i3/TB1_gVQMXXXXXX9XVXXeWjm2pXX-750-240.jpg"
- }, {
- "shopList": [{
- "id": "2153169655",
- "picUrl": "//img.alicdn.com/tps/i1/TB1nlK7LVXXXXaRXFXXSutbFXXX.jpg",
- "finalScore": "0.8820210808835905",
- "shopUrl": "http://ctkicks.tmall.com/campaign-3735-15.htm",
- "entityType": "SHOP",
- "brandId": "20584"
- }, {
- "id": "2784101115",
- "picUrl": "//img.alicdn.com/tps/i1/TB1RrS.LVXXXXcrXpXXSutbFXXX.jpg",
- "finalScore": "0.5930383227012586",
- "shopUrl": "http://tomtailor.tmall.com/campaign-3735-0.htm",
- "entityType": "SHOP",
- "brandId": "213474060"
- }, {
- "id": "2183813726",
- "picUrl": "//img.alicdn.com/tps/i1/TB1kmS_LVXXXXaBaXXXSutbFXXX.jpg",
- "finalScore": "0.5882558957771681",
- "shopUrl": "http://huaiyuan.tmall.com/campaign-3735-5.htm",
- "entityType": "SHOP",
- "brandId": "29465"
- }, {
- "id": "1785908005",
- "picUrl": "//img.alicdn.com/tps/i1/TB1dB6zLVXXXXcJXXXXSutbFXXX.jpg",
- "finalScore": "0.5694211862124341",
- "shopUrl": "http://axonus.tmall.com/campaign-3735-1.htm",
- "entityType": "SHOP",
- "brandId": "115035841"
- }],
- "finalScore": "4.413955555555555",
- "industryUrl": null,
- "entityType": "OTHER",
- "colour": "#b9eaf2",
- "industryTitle": null,
- "bannerUrl": "//pages.tmall.com/wow/act/15617/guojixfs?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_1_735362&pos=4",
- "leftBannerImg": "http://img.alicdn.com/tps/i3/TB1_T7ALVXXXXXOXXXXeWjm2pXX-750-240.jpg",
- "_pos_": "4",
- "industryBenefit": null,
- "industryId": "1",
- "industryImg": null,
- "rightBannerImg": "//img.alicdn.com/tps/i2/TB1s7koLVXXXXafXFXXeWjm2pXX-750-240.jpg"
- }, {
- "shopList": [{
- "id": "2453054335",
- "picUrl": "//img.alicdn.com/tps/i1/TB1RX_vLVXXXXchXpXXSutbFXXX.jpg",
- "finalScore": "0.8463447899590267",
- "shopUrl": "http://nanshizixing.tmall.com/campaign-3735-2.htm",
- "entityType": "SHOP",
- "brandId": "844502560"
- }, {
- "id": "1041773234",
- "picUrl": "//img.alicdn.com/tps/i1/TB1Q7jpLVXXXXX8XpXXSutbFXXX.jpg",
- "finalScore": "0.560952734503075",
- "shopUrl": "http://dapu.tmall.com/campaign-3735-8.htm",
- "entityType": "SHOP",
- "brandId": "14493763"
- }, {
- "id": "300031438",
- "picUrl": "//img.alicdn.com/tps/i1/TB13VC4LVXXXXarXVXXSutbFXXX.jpg",
- "finalScore": "0.5450674634839442",
- "shopUrl": "http://kangerxin.tmall.com/campaign-3735-10.htm",
- "entityType": "SHOP",
- "brandId": "3781905"
- }, {
- "id": "92042735",
- "picUrl": "//img.alicdn.com/tps/i1/TB1PxYcLVXXXXasaXXXSutbFXXX.jpg",
- "finalScore": "0.5448023228053981",
- "shopUrl": "http://shuixing.tmall.com/campaign-3735-10.htm",
- "entityType": "SHOP",
- "brandId": "3685660"
- }],
- "finalScore": "4.13",
- "industryUrl": null,
- "entityType": "OTHER",
- "colour": "#bbffe5",
- "industryTitle": null,
- "bannerUrl": "//pages.tmall.com/wow/act/15617/jfjs?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_4_735362&pos=5",
- "leftBannerImg": "http://img.alicdn.com/tps/i3/TB1jeoCLVXXXXcoXXXXeWjm2pXX-750-240.jpg",
- "_pos_": "5",
- "industryBenefit": null,
- "industryId": "4",
- "industryImg": null,
- "rightBannerImg": "//img.alicdn.com/tps/i4/TB1C5.fLVXXXXb3aXXXeWjm2pXX-750-240.jpg"
- }, {
- "shopList": [{
- "id": "822428555",
- "picUrl": "//img.alicdn.com/tps/i1/TB1g46aLVXXXXcUXVXXSutbFXXX.jpg",
- "finalScore": "0.9183458776971917",
- "shopUrl": "http://playboyyd.tmall.com/campaign-3735-11.htm",
- "entityType": "SHOP",
- "brandId": "29510"
- }, {
- "id": "196993935",
- "picUrl": "//img.alicdn.com/tps/i1/TB1pHG8LVXXXXbraXXXSutbFXXX.jpg",
- "finalScore": "0.9105525246667775",
- "shopUrl": "https://uniqlo.tmall.com/campaign-3735-56.htm",
- "entityType": "SHOP",
- "brandId": "29527"
- }, {
- "id": "505753958",
- "picUrl": "//img.alicdn.com/tps/i1/TB1WKYyLVXXXXXHXXXXSutbFXXX.jpg",
- "finalScore": "0.90750966370726",
- "shopUrl": "http://bonas.tmall.com/campaign-3735-11.htm",
- "entityType": "SHOP",
- "brandId": "3486580"
- }, {
- "id": "2113823580",
- "picUrl": "//img.alicdn.com/tps/i1/TB1itHkLVXXXXX9XFXXSutbFXXX.jpg",
- "finalScore": "0.5900977955635289",
- "shopUrl": "http://kafanya.tmall.com/campaign-3735-7.htm",
- "entityType": "SHOP",
- "brandId": "110684218"
- }],
- "finalScore": "4.088",
- "industryUrl": null,
- "entityType": "OTHER",
- "colour": "#ffc7c9",
- "industryTitle": null,
- "bannerUrl": "//pages.tmall.com/wow/act/15617/neiyi328?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_9_735362&pos=6",
- "leftBannerImg": "http://img.alicdn.com/tps/i1/TB1tl3tLVXXXXbbXFXXeWjm2pXX-750-240.jpg",
- "_pos_": "6",
- "industryBenefit": null,
- "industryId": "9",
- "industryImg": null,
- "rightBannerImg": "//img.alicdn.com/tps/i2/TB1AkIyLVXXXXbjXpXXeWjm2pXX-750-240.jpg"
- }],
- "sub": [{
- "shopList": null,
- "finalScore": "4.033333333333333",
- "industryUrl": "//pages.tmall.com/wow/act/15617/zbps?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_3_735362&pos=7",
- "entityType": "OTHER",
- "colour": "#bbffe5",
- "industryTitle": "珠宝配饰",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "7",
- "industryBenefit": "大牌1折秒杀",
- "industryId": "3",
- "industryImg": "//img.alicdn.com/tps/i1/TB1s5y.LVXXXXb.aXXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "3.8773333333333335",
- "industryUrl": "//pages.tmall.com/wow/act/15617/dqc?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_15_735362&pos=8",
- "entityType": "OTHER",
- "colour": "#b4ebff",
- "industryTitle": "数码",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "8",
- "industryBenefit": "疯抢大牌新品",
- "industryId": "15",
- "industryImg": "//img.alicdn.com/tps/i4/TB1_xG.LVXXXXbWaXXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "3.8359999999999994",
- "industryUrl": "//pages.tmall.com/wow/act/15617/man?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_6_735362&pos=9",
- "entityType": "OTHER",
- "colour": "#cbe9a9",
- "industryTitle": "男装",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "9",
- "industryBenefit": "新品低至9.9元",
- "industryId": "6",
- "industryImg": "//img.alicdn.com/tps/i1/TB1mO2qLVXXXXXiXFXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "3.243333333333333",
- "industryUrl": "//pages.tmall.com/wow/act/15617/xihu?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_13_735362&pos=10",
- "entityType": "OTHER",
- "colour": "#cdffa4",
- "industryTitle": "洗护",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "10",
- "industryBenefit": "爆款1分钱抢",
- "industryId": "13",
- "industryImg": "//img.alicdn.com/tps/i3/TB1Ft_CLVXXXXX2XXXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "3.1553333333333335",
- "industryUrl": "//pages.tmall.com/wow/act/15617/myxfs?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_5_735362&pos=11",
- "entityType": "OTHER",
- "colour": "#f8e1ff",
- "industryTitle": "母婴童装",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "11",
- "industryBenefit": "跨店满299减40",
- "industryId": "5",
- "industryImg": "//img.alicdn.com/tps/i4/TB1c.HvLVXXXXXPXpXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "2.6739999999999995",
- "industryUrl": "//pages.tmall.com/wow/act/15617/nvzhuang?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_7_735362&pos=12",
- "entityType": "OTHER",
- "colour": "#d5cbe8",
- "industryTitle": "女装",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "12",
- "industryBenefit": "折后用券抢新",
- "industryId": "7",
- "industryImg": "//img.alicdn.com/tps/i3/TB1JdfsLVXXXXbRXpXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "0.0",
- "industryUrl": "//pages.tmall.com/wow/act/15617/mobilephone?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_14_735362&pos=13",
- "entityType": "OTHER",
- "colour": "#c5ffdf",
- "industryTitle": "手机",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "13",
- "industryBenefit": "1元抢优惠券",
- "industryId": "14",
- "industryImg": "//img.alicdn.com/tps/i4/TB1M3zhLVXXXXX4XVXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "0.0",
- "industryUrl": "//pages.tmall.com/wow/act/15617/xiangbaohuanxin?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_11_735362&pos=14",
- "entityType": "OTHER",
- "colour": "#ffccdc",
- "industryTitle": "箱包",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "14",
- "industryBenefit": "极致焕新尖货",
- "industryId": "11",
- "industryImg": "//img.alicdn.com/tps/i3/TB1gE6kLVXXXXcrXFXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }, {
- "shopList": null,
- "finalScore": "0.0",
- "industryUrl": "//pages.tmall.com/wow/act/15617/newnv?abbucket=_AB-M1011_B14&acm=03654.1003.1.735362&aldid=KXPpnvEH&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.OTHER_10_735362&pos=15",
- "entityType": "OTHER",
- "colour": "#fff8ee",
- "industryTitle": "鞋履",
- "bannerUrl": null,
- "leftBannerImg": null,
- "_pos_": "15",
- "industryBenefit": "潮品精选鞋履",
- "industryId": "10",
- "industryImg": "//img.alicdn.com/tps/i3/TB1.qzpLVXXXXX.XFXXrdvGIFXX-248-155.jpg",
- "rightBannerImg": null
- }],
- "isFormal": "false",
- "exposureParam": "//ac.mmstat.com/1.gif?apply=vote&abbucket=_AB-M1011_B14&com=02&acm=03654.1003.1.735362&cod=03654&cache=U5revsTn&aldid=KXPpnvEH&logtype=4&abtest=_AB-LR1011-PR1011&scm=1003.1.03654.735362&ip=",
- "id": "03654"
- };
- self._processData(content);
- },
- _processData: function _processData(content) {
- var self = this;
- var items = content.main;
- var subItems = content.sub;
- for (var j = 0; j < items.length; j++) {
- var item = items[j];
- item.index = j;
- item.bannerImg = j % 2 === 0 ? item.leftBannerImg : item.rightBannerImg;
- if (item.shopList) {
- for (var n = 0; n < item.shopList.length; n++) {
- item.shopList[n].idx = n;
- }
- }
- }
-
- for (var i = 0; i < subItems.length; i++) {
- var subItem = subItems[i];
- subItem.index = i;
- subItem.top = (i - i % 3) / 3 * (241 + 3);
- subItem.left = i % 3 * (248 + 3);
- }
-
- self.items = items;
- self.subItems = subItems;
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/coupon.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/coupon.js b/android/playground/app/src/main/assets/showcase/new-fashion/coupon.js
deleted file mode 100644
index 4e9aca6..0000000
--- a/android/playground/app/src/main/assets/showcase/new-fashion/coupon.js
+++ /dev/null
@@ -1,209 +0,0 @@
-/******/ (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__(256)
- var __weex_style__ = __webpack_require__(257)
- var __weex_script__ = __webpack_require__(258)
-
- __weex_define__('@weex-component/160152a0a99527e4b8664677a7d4610b', [], 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__
-
- })
-
- __weex_bootstrap__('@weex-component/160152a0a99527e4b8664677a7d4610b',undefined,undefined)
-
-/***/ },
-
-/***/ 256:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "children": [
- {
- "type": "image",
- "shown": function () {return this.ds.floorTitle},
- "classList": [
- "title"
- ],
- "attr": {
- "src": function () {return this.ds.floorTitle}
- }
- },
- {
- "type": "container",
- "classList": [
- "wrapper"
- ],
- "children": [
- {
- "type": "image",
- "classList": [
- "img"
- ],
- "attr": {
- "src": function () {return this.currentStatus}
- }
- },
- {
- "type": "container",
- "classList": [
- "my-coupon"
- ],
- "events": {
- "click": "handleClick"
- }
- },
- {
- "type": "container",
- "classList": [
- "guides"
- ],
- "events": {
- "click": "handleClick"
- }
- },
- {
- "type": "container",
- "classList": [
- "lottery"
- ],
- "events": {
- "click": "handleClick"
- }
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 257:
-/***/ function(module, exports) {
-
- module.exports = {
- "title": {
- "width": 750,
- "height": 100
- },
- "wrapper": {
- "color": "#FF4550",
- "width": 750,
- "height": 230
- },
- "my-coupon": {
- "width": 180,
- "height": 39,
- "position": "absolute",
- "top": 15,
- "right": 149
- },
- "guides": {
- "height": 39,
- "width": 110,
- "position": "absolute",
- "top": 15,
- "right": 32
- },
- "lottery": {
- "width": 348,
- "height": 76,
- "position": "absolute",
- "top": 132,
- "right": 70
- },
- "info": {
- "fontSize": 18,
- "position": "absolute",
- "top": 84,
- "right": 70
- },
- "img": {
- "width": 750,
- "height": 230
- }
- }
-
-/***/ },
-
-/***/ 258:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- var IS_WEB = typeof window !== 'undefined';
- var IS_APP = !IS_WEB || /AliApp\((?:tb|tm)/i.test(navigator.userAgent);
-
- module.exports = {
- data: function () {return {
- currentStatus: '//img.alicdn.com/tps/i4/TB1cYBKMXXXXXayaXXXkxHk2pXX-750-228.jpg_q75.jpg'
- }},
- methods: {
- ready: function ready() {},
- handleClick: function handleClick(e) {
- this.$call('modal', 'toast', {
- message: 'click',
- duration: 1
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/fashion.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/fashion.js b/android/playground/app/src/main/assets/showcase/new-fashion/fashion.js
deleted file mode 100644
index e275cf1..0000000
--- a/android/playground/app/src/main/assets/showcase/new-fashion/fashion.js
+++ /dev/null
@@ -1,361 +0,0 @@
-/******/ (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__) {
-
- __webpack_require__(246)
- __webpack_require__(249)
- var __weex_template__ = __webpack_require__(259)
- var __weex_style__ = __webpack_require__(260)
- var __weex_script__ = __webpack_require__(261)
-
- __weex_define__('@weex-component/3a0fc3e27dd7bb14f409fca1ac4baac7', [], 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__
-
- })
-
- __weex_bootstrap__('@weex-component/3a0fc3e27dd7bb14f409fca1ac4baac7',undefined,undefined)
-
-/***/ },
-
-/***/ 244:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "image",
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height}
- },
- "attr": {
- "src": function () {return this.src},
- "imageQuality": function () {return this.quality}
- },
- "events": {
- "click": "_clickHandler"
- }
- }
-
-/***/ },
-
-/***/ 245:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- quality: 'normal',
- width: 0,
- height: 0,
- src: '',
- href: '',
- spmc: 0,
- spmd: 0
- }},
- methods: {
- ready: function ready() {},
- _clickHandler: function _clickHandler() {
- this.$call('modal', 'toast', {
- message: 'click',
- duration: 1
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ },
-
-/***/ 246:
-/***/ function(module, exports, __webpack_require__) {
-
- var __weex_template__ = __webpack_require__(244)
- var __weex_script__ = __webpack_require__(245)
-
- __weex_define__('@weex-component/banner', [], 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__
-
- })
-
-
-/***/ },
-
-/***/ 247:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "children": [
- {
- "type": "container",
- "shown": function () {return this.direction==='row'},
- "style": {
- "flexDirection": "row"
- },
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.ds},
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "marginLeft": function () {return this.space}
- },
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "src": function () {return this.img},
- "href": function () {return this.url}
- }
- }
- ]
- }
- ]
- },
- {
- "type": "container",
- "shown": function () {return this.direction==='column'},
- "children": [
- {
- "type": "container",
- "repeat": function () {return this.ds},
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "marginTop": function () {return this.space}
- },
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.width},
- "height": function () {return this.height},
- "src": function () {return this.img},
- "href": function () {return this.url}
- }
- }
- ]
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 248:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- space: 0,
- width: 0,
- height: 0,
- spmc: 0,
- spmdprefix: '',
- ds: []
- }},
- methods: {
- ready: function ready() {
- var self = this;
- var ds = self.ds;
- var length = ds.length;
- for (var i = 0; i < length; i++) {
- var item = ds[i];
- item.index = i;
- item.space = i % length === 0 ? 0 : self.space;
- }
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ },
-
-/***/ 249:
-/***/ function(module, exports, __webpack_require__) {
-
- __webpack_require__(246)
- var __weex_template__ = __webpack_require__(247)
- var __weex_script__ = __webpack_require__(248)
-
- __weex_define__('@weex-component/banners', [], 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__
-
- })
-
-
-/***/ },
-
-/***/ 259:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "shown": function () {return !this.ds.isHide},
- "children": [
- {
- "type": "image",
- "shown": function () {return this.ds.floorTitle},
- "classList": [
- "title"
- ],
- "attr": {
- "src": function () {return this.ds.floorTitle}
- }
- },
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.NUMBER_750},
- "height": function () {return this.NUMBER_262},
- "src": function () {return this.ds.bigBannerImg},
- "href": function () {return this.ds.bigBannerUrl}
- }
- },
- {
- "type": "banners",
- "attr": {
- "ds": function () {return this.ds.smallBannerItems},
- "width": function () {return this.NUMBER_375},
- "height": function () {return this.NUMBER_262},
- "direction": "row"
- }
- },
- {
- "type": "container",
- "shown": function () {return !this.ds.isHideStarBanner},
- "children": [
- {
- "type": "banners",
- "attr": {
- "ds": function () {return this.ds.starBanners},
- "width": function () {return this.NUMBER_250},
- "height": function () {return this.NUMBER_220},
- "direction": "row"
- }
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 260:
-/***/ function(module, exports) {
-
- module.exports = {
- "title": {
- "width": 750,
- "height": 100
- }
- }
-
-/***/ },
-
-/***/ 261:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){"use strict";
-
- module.exports = {
- data: function () {return {
- NUMBER_750: 750,
- NUMBER_250: 250,
- NUMBER_220: 220,
- NUMBER_262: 262,
- NUMBER_375: 375
- }},
- methods: {
- ready: function ready() {
- var self = this;
- self._randomStarBanner();
- },
- _randomStarBanner: function _randomStarBanner() {
- var self = this;
- if (!self.ds || !self.ds.firstStarBannerItems || !self.ds.secondStarBannerItems || !self.ds.thirdStarBannerItems) return;
- var starBanners = [];
- starBanners.push(self._app.Util.randomItemFromArr(self.ds.firstStarBannerItems));
- starBanners.push(self._app.Util.randomItemFromArr(self.ds.secondStarBannerItems));
- starBanners.push(self._app.Util.randomItemFromArr(self.ds.thirdStarBannerItems));
- self.ds.starBanners = starBanners;
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/goods.js
----------------------------------------------------------------------
diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/goods.js b/android/playground/app/src/main/assets/showcase/new-fashion/goods.js
deleted file mode 100644
index ad689a0..0000000
--- a/android/playground/app/src/main/assets/showcase/new-fashion/goods.js
+++ /dev/null
@@ -1,321 +0,0 @@
-/******/ (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__) {
-
- __webpack_require__(246)
- var __weex_template__ = __webpack_require__(262)
- var __weex_style__ = __webpack_require__(263)
- var __weex_script__ = __webpack_require__(264)
-
- __weex_define__('@weex-component/4ee2a41c614b4058c24278d8a41a24eb', [], 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__
-
- })
-
- __weex_bootstrap__('@weex-component/4ee2a41c614b4058c24278d8a41a24eb',undefined,undefined)
-
-/***/ },
-
-/***/ 244:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "image",
- "style": {
- "width": function () {return this.width},
- "height": function () {return this.height}
- },
- "attr": {
- "src": function () {return this.src},
- "imageQuality": function () {return this.quality}
- },
- "events": {
- "click": "_clickHandler"
- }
- }
-
-/***/ },
-
-/***/ 245:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){'use strict';
-
- module.exports = {
- data: function () {return {
- quality: 'normal',
- width: 0,
- height: 0,
- src: '',
- href: '',
- spmc: 0,
- spmd: 0
- }},
- methods: {
- ready: function ready() {},
- _clickHandler: function _clickHandler() {
- this.$call('modal', 'toast', {
- message: 'click',
- duration: 1
- });
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ },
-
-/***/ 246:
-/***/ function(module, exports, __webpack_require__) {
-
- var __weex_template__ = __webpack_require__(244)
- var __weex_script__ = __webpack_require__(245)
-
- __weex_define__('@weex-component/banner', [], 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__
-
- })
-
-
-/***/ },
-
-/***/ 262:
-/***/ function(module, exports) {
-
- module.exports = {
- "type": "container",
- "shown": function () {return !this.ds.isHide},
- "children": [
- {
- "type": "image",
- "shown": function () {return this.ds.floorTitle},
- "classList": [
- "title"
- ],
- "attr": {
- "src": function () {return this.ds.floorTitle}
- }
- },
- {
- "type": "slider",
- "classList": [
- "slider"
- ],
- "attr": {
- "showIndicators": "true",
- "autoPlay": "true",
- "interval": "3000"
- },
- "children": [
- {
- "type": "container",
- "classList": [
- "pannel"
- ],
- "repeat": function () {return this.ds.bannerItems},
- "children": [
- {
- "type": "container",
- "children": [
- {
- "type": "banner",
- "style": {
- "marginBottom": 4
- },
- "attr": {
- "width": function () {return this.NUMBER_251},
- "height": function () {return this.NUMBER_292},
- "src": function () {return this.img1},
- "href": function () {return this.url1}
- }
- },
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.NUMBER_251},
- "height": function () {return this.NUMBER_292},
- "src": function () {return this.img2},
- "href": function () {return this.url2}
- }
- }
- ]
- },
- {
- "type": "container",
- "classList": [
- "middle-col"
- ],
- "children": [
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.NUMBER_240},
- "height": function () {return this.NUMBER_588},
- "src": function () {return this.img3},
- "href": function () {return this.url3}
- }
- }
- ]
- },
- {
- "type": "container",
- "children": [
- {
- "type": "banner",
- "style": {
- "marginBottom": 4
- },
- "attr": {
- "width": function () {return this.NUMBER_251},
- "height": function () {return this.NUMBER_292},
- "src": function () {return this.img4},
- "href": function () {return this.url4}
- }
- },
- {
- "type": "banner",
- "attr": {
- "width": function () {return this.NUMBER_251},
- "height": function () {return this.NUMBER_292},
- "src": function () {return this.img5},
- "href": function () {return this.url5}
- }
- }
- ]
- }
- ]
- },
- {
- "type": "indicator",
- "style": {
- "position": "absolute",
- "width": 714,
- "height": 200,
- "left": 10,
- "bottom": -80,
- "itemSize": 20,
- "itemColor": "#999999",
- "itemSelectedColor": "#000000"
- }
- }
- ]
- }
- ]
- }
-
-/***/ },
-
-/***/ 263:
-/***/ function(module, exports) {
-
- module.exports = {
- "title": {
- "width": 750,
- "height": 100
- },
- "slider": {
- "height": 652
- },
- "pannel": {
- "width": 750,
- "height": 592,
- "flexDirection": "row"
- },
- "middle-col": {
- "marginLeft": 4,
- "marginRight": 4,
- "width": 240,
- "height": 588
- }
- }
-
-/***/ },
-
-/***/ 264:
-/***/ function(module, exports) {
-
- module.exports = function(module, exports, __weex_require__){"use strict";
-
- module.exports = {
- data: function () {return {
- NUMBER_251: 251,
- NUMBER_240: 240,
- NUMBER_292: 292,
- NUMBER_588: 588
- }},
- methods: {
- ready: function ready() {
- var self = this;
- var ds = self.ds;
- if (!ds || !ds.bannerItems) return;
- var bannerItems = ds.bannerItems;
- for (var i = 0; i < bannerItems.length; i++) {
- bannerItems[i].index = i;
- }
- }
- }
- };}
- /* generated by weex-loader */
-
-
-/***/ }
-
-/******/ });
\ No newline at end of file