Browse Source

Signed-off-by: Changpeng Duan <838560574@qq.com>

Changpeng Duan 4 năm trước cách đây
mục cha
commit
b6b5a27e36
100 tập tin đã thay đổi với 17045 bổ sung495 xóa
  1. 505 495
      app/src/page/record.vue
  2. 5 0
      v2tv/.idea/codeStyles/codeStyleConfig.xml
  3. 4 0
      v2tv/.idea/encodings.xml
  4. 6 0
      v2tv/.idea/misc.xml
  5. 8 0
      v2tv/.idea/modules.xml
  6. 12 0
      v2tv/.idea/tv.iml
  7. 6 0
      v2tv/.idea/vcs.xml
  8. BIN
      v2tv/.idea/workspace.xml
  9. 214 0
      v2tv/README.md
  10. 5 0
      v2tv/babel.config.js
  11. 42 0
      v2tv/package.json
  12. BIN
      v2tv/public/favicon.ico
  13. 22 0
      v2tv/public/index.html
  14. 8390 0
      v2tv/public/mui.js
  15. 47 0
      v2tv/src/App.vue
  16. 494 0
      v2tv/src/Global.js
  17. 437 0
      v2tv/src/Mock/index.js
  18. 223 0
      v2tv/src/api/Navs.js
  19. 125 0
      v2tv/src/api/getApiRes.js
  20. 393 0
      v2tv/src/api/test.js
  21. BIN
      v2tv/src/assets/404/back.png
  22. BIN
      v2tv/src/assets/404/back_w.png
  23. BIN
      v2tv/src/assets/404/homepage.png
  24. BIN
      v2tv/src/assets/404/homepage_w.png
  25. BIN
      v2tv/src/assets/404/man.png
  26. BIN
      v2tv/src/assets/404/refresh.png
  27. BIN
      v2tv/src/assets/404/refresh_w.png
  28. 69 0
      v2tv/src/assets/css/bg.css
  29. 1217 0
      v2tv/src/assets/css/main.css
  30. 1197 0
      v2tv/src/assets/css/mainBk.css
  31. 1498 0
      v2tv/src/assets/css/mainBk2.css
  32. 384 0
      v2tv/src/assets/css/panel.css
  33. BIN
      v2tv/src/assets/font/vista.otf
  34. 62 0
      v2tv/src/assets/img/2pkRank/2pkTitle.svg
  35. 46 0
      v2tv/src/assets/img/2pkRank/blueMvp.svg
  36. 3 0
      v2tv/src/assets/img/2pkRank/flag.svg
  37. 3 0
      v2tv/src/assets/img/2pkRank/king.svg
  38. 46 0
      v2tv/src/assets/img/2pkRank/redMvp.svg
  39. 3 0
      v2tv/src/assets/img/3pkRank/3pkbg.svg
  40. 46 0
      v2tv/src/assets/img/3pkRank/blueMvp.svg
  41. 16 0
      v2tv/src/assets/img/3pkRank/bluetit.svg
  42. 17 0
      v2tv/src/assets/img/3pkRank/pk.svg
  43. 9 0
      v2tv/src/assets/img/3pkRank/rank1.svg
  44. 9 0
      v2tv/src/assets/img/3pkRank/rank2.svg
  45. 9 0
      v2tv/src/assets/img/3pkRank/rank3.svg
  46. 46 0
      v2tv/src/assets/img/3pkRank/redMvp.svg
  47. 16 0
      v2tv/src/assets/img/3pkRank/redtit.svg
  48. 46 0
      v2tv/src/assets/img/3pkRank/yellowMvp.svg
  49. 19 0
      v2tv/src/assets/img/3pkRank/yellowtit.svg
  50. BIN
      v2tv/src/assets/img/birth/birthCrow.png
  51. BIN
      v2tv/src/assets/img/birth/birthText.png
  52. BIN
      v2tv/src/assets/img/border/bbl.png
  53. BIN
      v2tv/src/assets/img/border/bbr.png
  54. BIN
      v2tv/src/assets/img/border/btl.png
  55. BIN
      v2tv/src/assets/img/border/btr.png
  56. 0 0
      v2tv/src/assets/img/comm/hat.svg
  57. BIN
      v2tv/src/assets/img/header/left.png
  58. BIN
      v2tv/src/assets/img/header/ltehead.png
  59. BIN
      v2tv/src/assets/img/header/right.png
  60. BIN
      v2tv/src/assets/img/icon/addMemo.png
  61. BIN
      v2tv/src/assets/img/icon/equip.png
  62. BIN
      v2tv/src/assets/img/icon/header.png
  63. BIN
      v2tv/src/assets/img/icon/home.png
  64. BIN
      v2tv/src/assets/img/icon/list.png
  65. BIN
      v2tv/src/assets/img/icon/location.png
  66. BIN
      v2tv/src/assets/img/icon/logout.png
  67. BIN
      v2tv/src/assets/img/icon/qrcode.png
  68. BIN
      v2tv/src/assets/img/icon/question_icon.png
  69. BIN
      v2tv/src/assets/img/icon/setting.png
  70. BIN
      v2tv/src/assets/img/icon/user.png
  71. BIN
      v2tv/src/assets/img/lessonTable/star.png
  72. BIN
      v2tv/src/assets/img/login/bg.png
  73. BIN
      v2tv/src/assets/img/login/logo.png
  74. BIN
      v2tv/src/assets/img/main/Oval.png
  75. BIN
      v2tv/src/assets/img/main/appoint.png
  76. BIN
      v2tv/src/assets/img/main/empty.jpg
  77. BIN
      v2tv/src/assets/img/main/lesson.png
  78. BIN
      v2tv/src/assets/img/main/member.png
  79. BIN
      v2tv/src/assets/img/nav/head.png
  80. BIN
      v2tv/src/assets/img/nav/home.png
  81. BIN
      v2tv/src/assets/img/nav/logo.png
  82. 21 0
      v2tv/src/assets/img/pk/blueFlag.svg
  83. 12 0
      v2tv/src/assets/img/pk/blueGood.svg
  84. 21 0
      v2tv/src/assets/img/pk/redFlag.svg
  85. 12 0
      v2tv/src/assets/img/pk/redGood.svg
  86. 11 0
      v2tv/src/assets/img/pk/vs.svg
  87. 21 0
      v2tv/src/assets/img/pk/yellowFlag.svg
  88. BIN
      v2tv/src/assets/img/threepk/threepkbg.png
  89. BIN
      v2tv/src/assets/pk.png
  90. 239 0
      v2tv/src/components/Headside.vue
  91. 241 0
      v2tv/src/components/levelIcon.vue
  92. 164 0
      v2tv/src/components/newRecord.vue
  93. 222 0
      v2tv/src/components/newStudent.vue
  94. 39 0
      v2tv/src/components/power.vue
  95. 82 0
      v2tv/src/components/sumNumber.vue
  96. 20 0
      v2tv/src/components/upimg.vue
  97. 21 0
      v2tv/src/libs/rem.js
  98. 34 0
      v2tv/src/main.js
  99. 61 0
      v2tv/src/plugins/axios.js
  100. 125 0
      v2tv/src/router/index.js

+ 505 - 495
app/src/page/record.vue

@@ -1,613 +1,623 @@
 <template>
-  <div class="pages">
-    <img src="../static/images/main/banner.png" width="100%"/>
-    <div class="context">
-            <span class="num">
-                记录共 {{ num }} 条
-            </span>
-      <mu-tabs :value.sync="active" color="#F2F2F2" indicator-color="#ffffff" center>
-        <mu-tab>已预约</mu-tab>
-        <mu-tab>预约记录</mu-tab>
-        <mu-tab>消费记录</mu-tab>
-      </mu-tabs>
-<!--      <div class="whiteCube"></div>-->
-      <ul class="list">
-        <mu-load-more @refresh="refresh" :refreshing="refreshing" :loading="loading" @load="load">
-          <li v-for="l in list">
-            <div class="lt" v-if="active != 2">
-              <h5>{{ l.CurrentDate }}</h5>
-              <em>{{ l.CurrentDate |filterWeek}}</em>
-              <span>{{ l.BeginStr }}-{{ l.EndStr }}</span>
-            </div>
-            <div class="lt" v-if="active == 2">
-              <h5>{{ l.CreatedAt|filterTime }}</h5>
-              <span>剩余课时 {{ l.AfterNormalhour }}</span>
-            </div>
-            <div class="md">
-              <em>
-                                <span class="lessons" :style="{ background:l.ClassColor }">
-                                     {{ l.ClassName }}
-                                </span>
-              </em>
-<!--              <span class="green" v-if="l.Status == 0">-->
-<!--                            预约上课-->
-<!--                        </span>-->
-<!--              <span class="green" v-if="l.Status == 1 && active == 0">-->
-<!--                            已预约-->
-<!--                        </span>-->
-            </div>
-            <div class="rt">
-              <mu-button color="error" flat  v-if="l.Status == 0"  @click="cancleAppoint(l)">取消预约</mu-button>
-              <span v-if="l.Status == 1" class="isFinish">
-<!--                            已预约-->
-                             <mu-button color="error" flat  @click="cancleAppoint(l)">取消预约</mu-button>
-                        </span>
-              <span class="red" v-if="l.Status == 2">
-                            已取消
-                        </span>
-              <span class="red" v-if="l.Status == 3">
-                            预约未到
-                        </span>
-              <span class="green" v-if="l.Status == 4">
-                            已完成
-                        </span>
-              <em v-if="active == 2">
-                - {{ l.NormalHour  + l.GiftHour}}课时
-              </em>
-            </div>
-          </li>
-        </mu-load-more>
-        <div class="tips">
-          <p v-if="active == 0 && list == null">
-            暂无已预约
-          </p>
-          <p v-if="active == 1 && list == null">
-            暂无预约记录
-          </p>
-          <p v-if="active == 2 && list == ''">
-            暂无消费记录
-          </p>
-        </div>
-      </ul>
-    </div>
-    <bottomTab :curTab="thisTab"></bottomTab>
-    <!--        <span v-if="scope.row.Status == 1">已预约</span>-->
-    <!--        <span v-if="scope.row.Status == 2">已取消</span>-->
-    <!--        <span v-if="scope.row.Status == 3">预约未到</span>-->
-    <!--        <span v-if="scope.row.Status == 4">已完成</span>-->
-    <alert ref="alertPart"></alert>
-  </div>
+	<div class="pages">
+		<img src="../static/images/main/banner.png" width="100%" />
+		<div class="context">
+			<span class="num"> 记录共 {{ num }} 条 </span>
+			<mu-tabs
+				:value.sync="active"
+				color="#F2F2F2"
+				indicator-color="#ffffff"
+				center
+			>
+				<mu-tab>已预约</mu-tab>
+				<mu-tab>预约记录</mu-tab>
+				<mu-tab>消费记录</mu-tab>
+			</mu-tabs>
+			<!--      <div class="whiteCube"></div>-->
+			<ul class="list">
+				<mu-load-more
+					@refresh="refresh"
+					:refreshing="refreshing"
+					:loading="loading"
+					@load="load"
+				>
+					<li v-for="l in list">
+						<div class="lt" v-if="active != 2">
+							<h5>{{ l.CurrentDate }}</h5>
+							<em>{{ l.CurrentDate | filterWeek }}</em>
+							<span>{{ l.BeginStr }}-{{ l.EndStr }}</span>
+						</div>
+						<div class="lt" v-if="active == 2">
+							<h5>{{ l.CreatedAt | filterTime }}</h5>
+							<span>剩余课时 {{ l.AfterNormalhour + l.AfterGifthour }}</span>
+						</div>
+						<div class="md">
+							<em>
+								<span class="lessons" :style="{ background: l.ClassColor }">
+									{{ l.ClassName }}
+								</span>
+							</em>
+							<!--              <span class="green" v-if="l.Status == 0">-->
+							<!--                            预约上课-->
+							<!--                        </span>-->
+							<!--              <span class="green" v-if="l.Status == 1 && active == 0">-->
+							<!--                            已预约-->
+							<!--                        </span>-->
+						</div>
+						<div class="rt">
+							<mu-button
+								color="error"
+								flat
+								v-if="l.Status == 0"
+								@click="cancleAppoint(l)"
+								>取消预约</mu-button
+							>
+							<span v-if="l.Status == 1" class="isFinish">
+								<!--                            已预约-->
+								<mu-button color="error" flat @click="cancleAppoint(l)"
+									>取消预约</mu-button
+								>
+							</span>
+							<span class="red" v-if="l.Status == 2">
+								已取消
+							</span>
+							<span class="red" v-if="l.Status == 3">
+								预约未到
+							</span>
+							<span class="green" v-if="l.Status == 4">
+								已完成
+							</span>
+							<em v-if="active == 2">
+								- {{ l.NormalHour + l.GiftHour }}课时
+							</em>
+						</div>
+					</li>
+				</mu-load-more>
+				<div class="tips">
+					<p v-if="active == 0 && list == null">
+						暂无已预约
+					</p>
+					<p v-if="active == 1 && list == null">
+						暂无预约记录
+					</p>
+					<p v-if="active == 2 && list == ''">
+						暂无消费记录
+					</p>
+				</div>
+			</ul>
+		</div>
+		<bottomTab :curTab="thisTab"></bottomTab>
+		<!--        <span v-if="scope.row.Status == 1">已预约</span>-->
+		<!--        <span v-if="scope.row.Status == 2">已取消</span>-->
+		<!--        <span v-if="scope.row.Status == 3">预约未到</span>-->
+		<!--        <span v-if="scope.row.Status == 4">已完成</span>-->
+		<alert ref="alertPart"></alert>
+	</div>
 </template>
 
 <script>
-import axios from 'axios';
-import bottomTab from '../components/bottomTab'
+import axios from "axios";
+import bottomTab from "../components/bottomTab";
 import {
-  OrderListQuery,
-  VipUserConsumeListQuery,
-  OderCancelByVipUser,
-  testSelect,
-  testTable,
-} from '../api/getApiRes.js'
-import alert from '../components/alert'
+	OrderListQuery,
+	VipUserConsumeListQuery,
+	OderCancelByVipUser,
+	testSelect,
+	testTable,
+} from "../api/getApiRes.js";
+import alert from "../components/alert";
 
-let qs = require('qs');
-import Global from '../Global.js'
+let qs = require("qs");
+import Global from "../Global.js";
 
 export default {
-  data() {
-    return {
-      num: 0,
-      thisTab: '预约记录',
-      active: 0,
-      sum: 0,
-      openAlert: false,
-      list: [],
-      dialog: {
-        id: '',
-        name: '',
-        timeLong: '',
-      },
-      refreshing: false,
-      loading: false,
-      start: 1,
-      tableMax: 6,
-    }
-  },
-  mounted() {
-    this.getList();
-  },
-  methods: {
-    alertInfo(info){
-      this.$refs.alertPart.openSimpleDialog(info);
-    },
-    refresh() {
-    },
-    load() {
-      if (this.active != 2) {
-        return false
-      }
-      this.loading = true;
-      setTimeout(() => {
-        this.loading = false;
-        this.start = this.start + 6;
-        this.getVipUserConsumeListQuery();
-      }, 2000);
-    },
-    cancleAppoint(row) {
-      let that = this;
-      this.$confirm('是否取消' + row.ClassName + '课程预约?', '提示', {
-        type: 'warning'
-      }).then(({result}) => {
-        if (result) {
-          let param = {
-            token: localStorage.token,
-            orderId: row.OrderId,
-          };
-          let postdata = qs.stringify(param);
-          OderCancelByVipUser(postdata).then(res => {
-            let json = res;
-            if (json.Code == 0) {
-              that.alertInfo('当前课程已取消预约', 'success');
-              that.getList();
-            } else {
-              that.alertInfo(json.Memo + ' 错误码:' + json.Code);
-            }
-          })
-        } else {
-          this.alertInfo('点击了取消');
-        }
-      });
-    },
-    getOrderListQuery(statusList) {
-      let that = this;
-      let param = {
-        token: localStorage.token,
-        statusList: statusList,
-        start: 1,
-        tableMax: 299,
-      };
-      let postdata = qs.stringify(param);
-      if (parseInt(this.active) == 0 || parseInt(this.active) == 1) {
-        OrderListQuery(postdata).then(res => {
-          let json = res;
-          if (json.Code == 0) {
-            that.list = json.Rs;
-            if (that.list) {
-              that.num = json.Rs.length;
-            } else {
-              that.num = 0
-            }
-          } else {
-            that.alertInfo(json.Memo + ' 错误码:' + json.Code);
-          }
-        });
-      }
-    },
-    getVipUserConsumeListQuery() {
-      let that = this;
-      let param = {
-        token: localStorage.token,
-        start: this.start,
-        tableMax: this.tableMax,
-      };
-      let postdata = qs.stringify(param);
-      VipUserConsumeListQuery(postdata).then(res => {
-        let json = res;
-        if (json.Code == 0) {
-          // that.list = json.Rs;
-          that.list = that.list.concat(json.Rs);
-          if (that.list) {
-            that.num = json.Rs.length;
-          }
-        } else {
-          that.alertInfo(json.Memo);
-        }
-      })
-    },
-    getList() {
-      let statusList = '';
-      this.list = [];
-      switch (parseInt(this.active)) {
-          // 已预约
-        case 0:
-          statusList = 1;
-          this.getOrderListQuery(statusList);
-          break;
-          // 预约记录
-        case 1:
-          statusList = '2,3,4';
-          this.getOrderListQuery(statusList);
-          break;
-          // 消费记录
-        case 2:
-          statusList = 1;
-          this.getVipUserConsumeListQuery(statusList);
-          break;
-      }
-    },
-    numberToWeek(val) {
-      switch (parseInt(val)) {
-        case 1:
-          return '星期一'
-          break;
-        case 2:
-          return '星期二'
-          break;
-        case 3:
-          return '星期三'
-          break;
-        case 4:
-          return '星期四'
-          break;
-        case 5:
-          return '星期五'
-          break;
-        case 6:
-          return '星期六'
-          break;
-        case 0:
-          return '星期天'
-          break;
-      }
-    },
-  },
-  beforeRouteEnter(to, from, next) {
-    next(vm => {
-      //因为当钩子执行前,组件实例还没被创建
-      // vm 就是当前组件的实例相当于上面的 this,所以在 next 方法里你就可以把 vm 当 this 来用了。
-      if (to.name == 'record') {
-        vm.getList();
-      }
-    });
-  },
-  filters: {
-    filterTime: function (value) {
-      if (!value) {
-        return 0
-      } else {
-        return globalfmtDate(value);
-      }
-    },
-    filterWeek:function (value){
-      if (!value) return false
-      let days = new Date(value).getDay();
-      switch (parseInt(days)) {
-        case 1:
-          return '星期一'
-          break;
-        case 2:
-          return '星期二'
-          break;
-        case 3:
-          return '星期三'
-          break;
-        case 4:
-          return '星期四'
-          break;
-        case 5:
-          return '星期五'
-          break;
-        case 6:
-          return '星期六'
-          break;
-        case 0:
-          return '星期天'
-          break;
-      }
-    }
-  },
-  watch: {
-    '$route'(to) {
-      if (to.name == 'record') {
-        this.getList();
-      }
-    },
-    'active'() {
-      this.start = 1;
-      this.getList();
-    }
-  },
-  components: {
-    bottomTab,alert
-  }
-}
+	data() {
+		return {
+			num: 0,
+			thisTab: "预约记录",
+			active: 0,
+			sum: 0,
+			openAlert: false,
+			list: [],
+			dialog: {
+				id: "",
+				name: "",
+				timeLong: "",
+			},
+			refreshing: false,
+			loading: false,
+			start: 1,
+			tableMax: 6,
+		};
+	},
+	mounted() {
+		this.getList();
+	},
+	methods: {
+		alertInfo(info) {
+			this.$refs.alertPart.openSimpleDialog(info);
+		},
+		refresh() {},
+		load() {
+			if (this.active != 2) {
+				return false;
+			}
+			this.loading = true;
+			setTimeout(() => {
+				this.loading = false;
+				this.start = this.start + 6;
+				this.getVipUserConsumeListQuery();
+			}, 2000);
+		},
+		cancleAppoint(row) {
+			let that = this;
+			this.$confirm("是否取消" + row.ClassName + "课程预约?", "提示", {
+				type: "warning",
+			}).then(({ result }) => {
+				if (result) {
+					let param = {
+						token: localStorage.token,
+						orderId: row.OrderId,
+					};
+					let postdata = qs.stringify(param);
+					OderCancelByVipUser(postdata).then((res) => {
+						let json = res;
+						if (json.Code == 0) {
+							that.alertInfo("当前课程已取消预约", "success");
+							that.getList();
+						} else {
+							that.alertInfo(json.Memo + " 错误码:" + json.Code);
+						}
+					});
+				} else {
+					this.alertInfo("点击了取消");
+				}
+			});
+		},
+		getOrderListQuery(statusList) {
+			let that = this;
+			let param = {
+				token: localStorage.token,
+				statusList: statusList,
+				start: 1,
+				tableMax: 299,
+			};
+			let postdata = qs.stringify(param);
+			if (parseInt(this.active) == 0 || parseInt(this.active) == 1) {
+				OrderListQuery(postdata).then((res) => {
+					let json = res;
+					if (json.Code == 0) {
+						that.list = json.Rs;
+						if (that.list) {
+							that.num = json.Rs.length;
+						} else {
+							that.num = 0;
+						}
+					} else {
+						that.alertInfo(json.Memo + " 错误码:" + json.Code);
+					}
+				});
+			}
+		},
+		getVipUserConsumeListQuery() {
+			let that = this;
+			let param = {
+				token: localStorage.token,
+				start: this.start,
+				tableMax: this.tableMax,
+			};
+			let postdata = qs.stringify(param);
+			VipUserConsumeListQuery(postdata).then((res) => {
+				let json = res;
+				if (json.Code == 0) {
+					// that.list = json.Rs;
+					that.list = that.list.concat(json.Rs);
+					if (that.list) {
+						that.num = json.Rs.length;
+					}
+				} else {
+					that.alertInfo(json.Memo);
+				}
+			});
+		},
+		getList() {
+			let statusList = "";
+			this.list = [];
+			switch (parseInt(this.active)) {
+				// 已预约
+				case 0:
+					statusList = 1;
+					this.getOrderListQuery(statusList);
+					break;
+				// 预约记录
+				case 1:
+					statusList = "2,3,4";
+					this.getOrderListQuery(statusList);
+					break;
+				// 消费记录
+				case 2:
+					statusList = 1;
+					this.getVipUserConsumeListQuery(statusList);
+					break;
+			}
+		},
+		numberToWeek(val) {
+			switch (parseInt(val)) {
+				case 1:
+					return "星期一";
+					break;
+				case 2:
+					return "星期二";
+					break;
+				case 3:
+					return "星期三";
+					break;
+				case 4:
+					return "星期四";
+					break;
+				case 5:
+					return "星期五";
+					break;
+				case 6:
+					return "星期六";
+					break;
+				case 0:
+					return "星期天";
+					break;
+			}
+		},
+	},
+	beforeRouteEnter(to, from, next) {
+		next((vm) => {
+			//因为当钩子执行前,组件实例还没被创建
+			// vm 就是当前组件的实例相当于上面的 this,所以在 next 方法里你就可以把 vm 当 this 来用了。
+			if (to.name == "record") {
+				vm.getList();
+			}
+		});
+	},
+	filters: {
+		filterTime: function(value) {
+			if (!value) {
+				return 0;
+			} else {
+				return globalfmtDate(value);
+			}
+		},
+		filterWeek: function(value) {
+			if (!value) return false;
+			let days = new Date(value).getDay();
+			switch (parseInt(days)) {
+				case 1:
+					return "星期一";
+					break;
+				case 2:
+					return "星期二";
+					break;
+				case 3:
+					return "星期三";
+					break;
+				case 4:
+					return "星期四";
+					break;
+				case 5:
+					return "星期五";
+					break;
+				case 6:
+					return "星期六";
+					break;
+				case 0:
+					return "星期天";
+					break;
+			}
+		},
+	},
+	watch: {
+		$route(to) {
+			if (to.name == "record") {
+				this.getList();
+			}
+		},
+		active() {
+			this.start = 1;
+			this.getList();
+		},
+	},
+	components: {
+		bottomTab,
+		alert,
+	},
+};
 </script>
 
 <style scoped>
 .pages {
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  background: #F2F2F2;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	background: #f2f2f2;
 }
 
 .num {
-  width: 100%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  font-family: "PingFang SC";
-  font-weight: 300;
-  font-size: 14px;
-  text-align: center;
-  color: #909090;
-  padding: 13px 0;
+	width: 100%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	font-family: "PingFang SC";
+	font-weight: 300;
+	font-size: 14px;
+	text-align: center;
+	color: #909090;
+	padding: 13px 0;
 }
 
 /deep/ .mu-appbar-title {
-  text-align: center;
+	text-align: center;
 }
 
 /deep/ .mu-tab {
-  width: 115px;
-  height: 35px;
-  margin-right: 6px;
+	width: 115px;
+	height: 35px;
+	margin-right: 6px;
 }
 
 /deep/ .mu-tab-wrapper {
-  height: 35px;
-  line-height: 25px;
-  background: #f4f4f4;
-  color: #363636;
-  box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.16);
-  border-radius: 8px 8px 0px 0px;
-  font-size: 16px;
-  padding-top: 5px;
+	height: 35px;
+	line-height: 25px;
+	background: #f4f4f4;
+	color: #363636;
+	box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.16);
+	border-radius: 8px 8px 0px 0px;
+	font-size: 16px;
+	padding-top: 5px;
 }
 
 /deep/ .mu-tab-active .mu-tab-wrapper {
-  height: 35px;
-  line-height: 25px;
-  border-radius: 8px 8px 0px 0px;
-  background: #ffffff;
-  box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.16);
-  color: #000;
+	height: 35px;
+	line-height: 25px;
+	border-radius: 8px 8px 0px 0px;
+	background: #ffffff;
+	box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.16);
+	color: #000;
 }
 
 /deep/ .mu-tab-wrapper em {
-  font-size: 12px;
+	font-size: 12px;
 }
 
 .list {
-  position: relative;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-  width: 100%;
-  height: 100%;
-  min-height: 410px;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  padding-top: 0px;
-  padding-bottom: 30px;
-  background: #f2f2f2;
+	position: relative;
+	top: 0;
+	left: 0;
+	right: 0;
+	bottom: 0;
+	width: 100%;
+	height: 100%;
+	min-height: 410px;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	padding-top: 0px;
+	padding-bottom: 30px;
+	background: #f2f2f2;
 }
 
 .list li {
-  width: 100%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  background: #fff;
-  padding: 20px 3%;
-  margin-bottom: 10px;
+	width: 100%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	background: #fff;
+	padding: 20px 3%;
+	margin-bottom: 10px;
 }
 
 .whiteCube {
-  width: 100%;
-  height: 6px;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  background: #fff;
-  border-bottom: 1px solid #ccc;
+	width: 100%;
+	height: 6px;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	background: #fff;
+	border-bottom: 1px solid #ccc;
 }
 
 .list .lt {
-  width: 100px;
-  float: left;
-  overflow: visible;
+	width: 100px;
+	float: left;
+	overflow: visible;
 }
 
 .list .lt h5 {
-  width: 100%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  font-family: "PingFang SC";
-  font-weight: normal;
-  font-size: 13px;
-  text-align: center;
-  color: #4e4e4e;
-  margin: 0;
+	width: 100%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	font-family: "PingFang SC";
+	font-weight: normal;
+	font-size: 13px;
+	text-align: center;
+	color: #4e4e4e;
+	margin: 0;
 }
 
 .list .lt span {
-  width: 100%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  font-family: "PingFang SC";
-  font-weight: normal;
-  font-size: 12px;
-  text-align: center;
-  color: #909090;
-
+	width: 100%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	font-family: "PingFang SC";
+	font-weight: normal;
+	font-size: 12px;
+	text-align: center;
+	color: #909090;
 }
 .list .lt em {
-  width: 100%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  font-size: 12px;
-  text-align: center;
+	width: 100%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	font-size: 12px;
+	text-align: center;
 }
 
 .list .md {
-  max-width: 200px;
-  /*width: 220px;*/
-  float: left;
-  margin-left: 10%;
-  padding-top: 14px;
+	max-width: 200px;
+	/*width: 220px;*/
+	float: left;
+	margin-left: 10%;
+	padding-top: 14px;
 }
 
 .list .rt {
-  float: right;
-  margin-right: 2%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  padding-top: 9px;
+	float: right;
+	margin-right: 2%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	padding-top: 9px;
 }
 
 .md em {
-  float: left;
-  font-family: "PingFang SC";
-  font-weight: normal;
-  font-size: 18px;
-  text-align: left;
-  color: #3b3b3b;
-  margin-right: 20px;
+	float: left;
+	font-family: "PingFang SC";
+	font-weight: normal;
+	font-size: 18px;
+	text-align: left;
+	color: #3b3b3b;
+	margin-right: 20px;
 }
 
 .md span {
-  font-family: "PingFang SC";
-  font-weight: normal;
-  font-size: 14px;
-  text-align: left;
-  /*color: #37cb00;*/
-  line-height: 30px;
+	font-family: "PingFang SC";
+	font-weight: normal;
+	font-size: 14px;
+	text-align: left;
+	/*color: #37cb00;*/
+	line-height: 30px;
 }
 
 span.green {
-  color: #37cb00;
+	color: #37cb00;
 }
 
 span.red {
-  color: #FF453C;
+	color: #ff453c;
 }
 
 .rt span {
-  float: right;
-  line-height: 35px;
-  font-family: "PingFang SC";
-  font-weight: normal;
-  font-size: 14px;
-  text-align: left;
-  color: #909090;
-  overflow: hidden;
-  padding-bottom: 6px;
+	float: right;
+	line-height: 35px;
+	font-family: "PingFang SC";
+	font-weight: normal;
+	font-size: 14px;
+	text-align: left;
+	color: #909090;
+	overflow: hidden;
+	padding-bottom: 6px;
 }
 
 .rt .red {
-  font-family: "PingFang SC";
-  font-weight: normal;
-  font-size: 14px;
-  text-align: left;
-  color: #f8847f;
+	font-family: "PingFang SC";
+	font-weight: normal;
+	font-size: 14px;
+	text-align: left;
+	color: #f8847f;
 }
 
 .rt .cancleBtn {
-  width: 55px;
-  height: 24px;
-  border-radius: 12px;
-  background: #ff453c;
-  padding: 0;
-  overflow: hidden;
-  text-align: center;
-  color: #fff;
-  line-height: 24px;
-  margin-top: 6px;
+	width: 55px;
+	height: 24px;
+	border-radius: 12px;
+	background: #ff453c;
+	padding: 0;
+	overflow: hidden;
+	text-align: center;
+	color: #fff;
+	line-height: 24px;
+	margin-top: 6px;
 }
 
 .rt em {
-  font-family: "PingFang SC";
-  font-weight: normal;
-  font-size: 14px;
-  text-align: left;
-  color: #909090;
-  margin-top: 6px;
+	font-family: "PingFang SC";
+	font-weight: normal;
+	font-size: 14px;
+	text-align: left;
+	color: #909090;
+	margin-top: 6px;
 }
 
 .tips {
-  width: 100%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
+	width: 100%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
 }
 
 .tips p {
-  width: 100%;
-  overflow: hidden;
-  display: block;
-  margin: 0 auto;
-  text-align: center;
-  font-size: 14px;
-  line-height: 35px;
+	width: 100%;
+	overflow: hidden;
+	display: block;
+	margin: 0 auto;
+	text-align: center;
+	font-size: 14px;
+	line-height: 35px;
 }
 
 .green {
-  color: #37cb00;
+	color: #37cb00;
 }
 
 /deep/ .mu-raised-button.mu-button-small {
-  width: 54px;
-  min-width: 40px;
-  float: right;
-  padding-left: 3px;
-  padding-right: 3px;
+	width: 54px;
+	min-width: 40px;
+	float: right;
+	padding-left: 3px;
+	padding-right: 3px;
 }
 
 .lessons {
-  width: 100%;
-  overflow: hidden;
-  padding: 1px 11px;
-  border-radius: 250px;
-  float: left;
-  text-align: center;
-  color: #333;
+	width: 100%;
+	overflow: hidden;
+	padding: 1px 11px;
+	border-radius: 250px;
+	float: left;
+	text-align: center;
+	color: #333;
 }
 /deep/ .mu-button-wrapper {
-  border: 1px solid #F8847F;
-  color: #F8847F;
-  background: #FFF7F7;
-  border-radius: 5px;
+	border: 1px solid #f8847f;
+	color: #f8847f;
+	background: #fff7f7;
+	border-radius: 5px;
 }
 
 @media only screen and (max-width: 640px) {
-
 }
 
 @media only screen and (max-width: 480px) {
-
 }
 
 @media only screen and (max-width: 375px) {
-
 }
 
 @media only screen and (max-width: 360px) {
-
 }
 
 @media only screen and (max-width: 320px) {
-  .list .lt {
-    width: 80px;
-  }
+	.list .lt {
+		width: 80px;
+	}
 
-  .list .lt h5 {
-    font-size: 12px;
-  }
+	.list .lt h5 {
+		font-size: 12px;
+	}
 
-  .md em {
-    margin-right: 3px;
-  }
+	.md em {
+		margin-right: 3px;
+	}
 }
 
 @media only screen and (min-width: 641px) {
-
 }
-</style>
+</style>

+ 5 - 0
v2tv/.idea/codeStyles/codeStyleConfig.xml

@@ -0,0 +1,5 @@
+<component name="ProjectCodeStyleConfiguration">
+  <state>
+    <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
+  </state>
+</component>

+ 4 - 0
v2tv/.idea/encodings.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding" addBOMForNewFiles="with NO BOM" />
+</project>

+ 6 - 0
v2tv/.idea/misc.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JavaScriptSettings">
+    <option name="languageLevel" value="ES6" />
+  </component>
+</project>

+ 8 - 0
v2tv/.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/tv.iml" filepath="$PROJECT_DIR$/.idea/tv.iml" />
+    </modules>
+  </component>
+</project>

+ 12 - 0
v2tv/.idea/tv.iml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
+      <excludeFolder url="file://$MODULE_DIR$/temp" />
+      <excludeFolder url="file://$MODULE_DIR$/tmp" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
v2tv/.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
+  </component>
+</project>

BIN
v2tv/.idea/workspace.xml


+ 214 - 0
v2tv/README.md

@@ -0,0 +1,214 @@
+#GoAllOut
+
+  ■■■             ■■      ■■      ■■     ■■■■                 
+  ■  ■■            ■■      ■■      ■■    ■■  ■■                
+ ■    ■            ■■      ■■      ■■    ■    ■            ■   
+ ■    ■           ■■■■     ■■      ■■    ■    ■            ■   
+ ■        ■■■■    ■  ■     ■■      ■■    ■    ■  ■    ■  ■■■■■ 
+ ■  ■■■  ■■  ■■   ■  ■     ■■      ■■    ■    ■  ■    ■    ■   
+ ■    ■  ■    ■   ■  ■     ■■      ■■    ■    ■  ■    ■    ■   
+ ■    ■  ■    ■  ■■■■■■    ■■      ■■    ■    ■  ■    ■    ■   
+ ■    ■  ■    ■  ■    ■    ■■      ■■    ■    ■  ■   ■■    ■   
+ ■■  ■■  ■■  ■■  ■    ■    ■■      ■■    ■■  ■■  ■■  ■■    ■  ■
+   ■■■■   ■■■■  ■■    ■■   ■■      ■■     ■■■■    ■■■ ■     ■■■
+                                                               
+                                                                      
+                                                                                         
+##GoAllOut  for tv
+
+小飞龙线上链接
+
+http://tv.iyoogo.com:85/
+
+部署步骤
+
+前端篇
+1) 将中间件的IP地址和端口号填入 main.js 中
+2) 打开打包软件,hbuild,校验版本号
+3) 打包APP (注意打包为正式版
+4) 打开APP后,点击小飞龙logo获取uuid,在管理端添加当前区域
+5) 重启APP(非必须
+6) 给盒子设置关闭屏保
+7) 给盒子设置autoStar 自启运行程序
+
+小飞龙wgt升级步骤
+
+1.将编译好的文件拖入hbuild的打包文件夹下,生成wgt文件
+2.将WGT文件放到线上文件夹中,同时修改数据库里当前的版本号
+3.重新打开TV版APP,确认升级。
+4.重启APP升级完成
+
+
+
+
+
+小飞龙TV api服务
+http://192.168.0.162:9000/Hello
+
+
+
+临时文档
+
+  target: 'http://192.168.0.162:9000/',
+// target: 'http://192.168.0.243:9000/',
+
+
+
+// 上课中学生信息
+getUserListInfo
+
+code 0 success
+    99  下课
+    
+// 是否开始上课的状态
+getClassStat
+
+"ClassOn":false//上课
+
+
+##安装淘宝源,已安装可忽略
+
+npm install --registry=https://registry.npm.taobao.org
+
+###安装依赖  
+
+cnpm i 
+
+###本地开发 启动项目  
+
+npm run dev
+
+##1.目录结构  
+  
+    ├── build                      # 构建相关
+    ├── mock                       # 项目mock 模拟数据
+    ├── src                        # 源代码
+    │   ├── api                    # 所有请求
+    │   ├── assets                 # 主题 字体等静态资源
+    │   ├── components             # 全局公用组件
+    │   ├── directive              # 全局指令
+    │   ├── icons                  # 项目所有 svg icons
+    │   ├── lang                   # 国际化 language
+    │   ├── layout                 # 全局 layout  todo
+    │   ├── router                 # 路由
+    │   ├── store                  # 全局 store管理  todo
+    │   ├── utils                  # 全局公用方法
+    │   ├── vendor                 # 公用vendor todo
+    │   ├── views                  # views 所有页面
+    │   ├── App.vue                # 入口页面
+    │   ├── main.js                # 入口文件 加载组件 初始化等
+    ├── .env.xxx                   # 环境变量配置
+    ├── .eslintrc.js               # eslint 配置项
+    ├── .babelrc                   # babel-loader 配置
+    ├── .travis.yml                # 自动化CI配置
+    ├── vue.config.js              # vue-cli 配置
+    ├── postcss.config.js          # postcss 配置
+    └── package.json               # package.json
+
+##4.使用方法
+   
+a.增加新页面  
+    在views里新建一个vue文件,将文件名和路径加入router/index.js中,注意文件层级,非系统级别页面应加入main下的同级别里。  
+        
+b.新增接口
+    在api/getApiRes.js里添加方法,在使用页面,首先引入这个文件    
+    import { 新写的方法名 } from '../api/getApiRes.js'    
+    然后再methods里使用 新的方法名(param).then(res => {...})的形式调用  
+        
+c.反向代理
+    修改 vue.config.js 中   target: 'http://192.168.0.162:19080/', 的地址,重启npm run serve后生效
+    
+d.打包
+   配置打包地址,修改 vue.config.js 中  outputDir: 'D:/wwwroot/test/new_back/static_pc', 指向的地址,
+   在执行build命令后生效。
+   
+e.运行
+   使用nginx等程序驱动http服务,指向打包后的index.html文件所在地址即可。
+   (如打开后出现loading情况,均为后端数据源配置错误,搭建相应服务后即可,其他问题如没有配置本地host等)
+   
+   === todo ===   
+  
+  20200907  页面接口实现功能完成情况  
+  
+  1.首页
+    全部todo
+    
+    
+  2. 会员类都是贾的 
+     会员首页统计,消费记录,
+     
+  3.操作日志
+   全部todo 放在最后      
+      
+      
+###
+20200910
+ ClassListByQueryStr 不知道咋用
+
+  
+  1.首页
+    全部todo
+  2.预约类
+   
+今日预约统计(未完成)
+今日课程预约总览(未完成)
+今日会员预约列表查询(未完成)
+
+order
+今日预约统计(未完成)
+今日课程预约总览(未完成)
+今日会员预约列表查询(未完成)
+
+
+20200910
+ 店铺微信预约状态修改(Shop/ShopWxStatusEdit) √
+ 店铺单条查询(Shop/ShopDetailOne) √
+ 
+ 1./Order/OrderCancelByManager √
+    管理员预约取消(未完成)
+ 
+ 2./Order/OrderStatistics
+    今日预约统计(未完成)
+ 
+ 3.(Class/ClassStatistics)
+    课程统计(未完成)
+    
+ 4.课程表模板详情预览(SttPlan/SttPlanPreview)
+ 
+ 5.课程表预览(SchoolTimetable/SchoolTimetablePreview)
+   
+   
+   20200911
+   
+   1.管理员管理 增加新管理员后重新查一遍店铺列表 √
+   2.侧边栏对齐 √
+   3.adminManage 缺少备注 √
+   4.新增管理员所属门店下拉框对齐,调整输入框顺序:账号、密码、姓名、手机号、所属门店、备注。√
+   5.编辑管理员信息时,密码非必填。密码不填不修改密码。输入框顺序同增加管理员。
+   6.会员管理,会员有效期调整,弹窗标题错误。点击确认后,返回成功信息错误。
+     会员类型为”充值“的,点击有效期调整,弹窗中提示”用户不是年费会员,无法调整会员有效期“ √
+   7.会员管理列表,操作中,编辑不是按钮,列表中会员有效期为“0001-01-01“的隐藏不显示。 √
+   8.穿梭框最后一项偏右显示 √
+   9.首页,下课管理中,上课时间应包含上课时间,下课时间 √
+   10.下课管理 确认下课调错接口了√
+      应该调用 SchoolTimeTable/ClassOverConfirm√
+    11.首页下课管理中,点击下课,新页面顶部文字固定√
+12.教练管理列表中,暂时隐藏时长统计√
+
+
+   
+   .课程管理通用设置问题 √
+   .
+    
+    ClassDetailOne 没有返回 WxOrder 状态
+    User/ShopManagerListQuery phone,shopId参数输入后,返回值没有经过筛选
+    
+   
+   99.添加课程表/课程表模板的单条时,选择课程后预填入课时上限。√
+   100.添加单条时,默认值问题√
+
+
+========
+常用键值
+
+wxVisible 0不可见1可见

+ 5 - 0
v2tv/babel.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  presets: [
+    '@vue/cli-plugin-babel/preset'
+  ]
+}

+ 42 - 0
v2tv/package.json

@@ -0,0 +1,42 @@
+{
+  "name": "GoAllOut",
+  "version": "0.1.0",
+  "private": true,
+  "scripts": {
+    "serve": "vue-cli-service serve",
+    "build": "vue-cli-service build"
+  },
+  "dependencies": {
+    "core-js": "^3.6.5",
+    "default-passive-events": "^2.0.0",
+    "echarts": "^4.8.0",
+    "element-ui": "^2.13.2",
+    "mockjs": "^1.1.0",
+    "moment": "^2.27.0",
+    "nprogress": "^0.2.0",
+    "postcss-loader": "^4.0.4",
+    "postcss-pxtorem": "^5.1.1",
+    "qrcodejs2": "^0.0.2",
+    "qs": "^6.9.4",
+    "v-charts": "^1.19.0",
+    "vue": "^2.6.11",
+    "vue-amap": "^0.5.10",
+    "vue-router": "^3.2.0",
+    "vuex": "^3.4.0"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "~4.4.0",
+    "@vue/cli-plugin-router": "~4.4.0",
+    "@vue/cli-plugin-vuex": "~4.4.0",
+    "@vue/cli-service": "~4.4.0",
+    "axios": "^0.18.0",
+    "vue-cli-plugin-axios": "0.0.4",
+    "vue-template-compiler": "^2.6.11"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 5 versions",
+    "Android >= 4.0",
+    "not ie <= 8"
+  ]
+}

BIN
v2tv/public/favicon.ico


+ 22 - 0
v2tv/public/index.html

@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <!--<meta name="viewport" content="width=device-width,initial-scale=1.0">-->
+      <meta name="viewport" content="width=device-width,initial-scale=1.5,maximum-scale=1.0,user-scalable=no" />
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <title><%= htmlWebpackPlugin.options.title %></title>
+  </head>
+  <body>
+    <noscript>
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
+    </noscript>
+    <div id="app"></div>
+  </body>
+  <style>
+      body {
+          background: #028fe1;
+      }
+  </style>
+</html>

+ 8390 - 0
v2tv/public/mui.js

@@ -0,0 +1,8390 @@
+/*!
+ * =====================================================
+ * Mui v3.7.3 (http://dev.dcloud.net.cn/mui)
+ * =====================================================
+ */
+/**
+ * MUI核心JS
+ * @type _L4.$|Function
+ */
+var mui = (function(document, undefined) {
+	var readyRE = /complete|loaded|interactive/;
+	var idSelectorRE = /^#([\w-]+)$/;
+	var classSelectorRE = /^\.([\w-]+)$/;
+	var tagSelectorRE = /^[\w-]+$/;
+	var translateRE = /translate(?:3d)?\((.+?)\)/;
+	var translateMatrixRE = /matrix(3d)?\((.+?)\)/;
+
+	var $ = function(selector, context) {
+		context = context || document;
+		if (!selector)
+			return wrap();
+		if (typeof selector === 'object')
+			if ($.isArrayLike(selector)) {
+				return wrap($.slice.call(selector), null);
+			} else {
+				return wrap([selector], null);
+			}
+		if (typeof selector === 'function')
+			return $.ready(selector);
+		if (typeof selector === 'string') {
+			try {
+				selector = selector.trim();
+				if (idSelectorRE.test(selector)) {
+					var found = document.getElementById(RegExp.$1);
+					return wrap(found ? [found] : []);
+				}
+				return wrap($.qsa(selector, context), selector);
+			} catch (e) {}
+		}
+		return wrap();
+	};
+
+	var wrap = function(dom, selector) {
+		dom = dom || [];
+		Object.setPrototypeOf(dom, $.fn);
+		dom.selector = selector || '';
+		return dom;
+	};
+
+	$.uuid = 0;
+
+	$.data = {};
+	/**
+	 * extend(simple)
+	 * @param {type} target
+	 * @param {type} source
+	 * @param {type} deep
+	 * @returns {unresolved}
+	 */
+	$.extend = function() { //from jquery2
+		var options, name, src, copy, copyIsArray, clone,
+			target = arguments[0] || {},
+			i = 1,
+			length = arguments.length,
+			deep = false;
+
+		if (typeof target === "boolean") {
+			deep = target;
+
+			target = arguments[i] || {};
+			i++;
+		}
+
+		if (typeof target !== "object" && !$.isFunction(target)) {
+			target = {};
+		}
+
+		if (i === length) {
+			target = this;
+			i--;
+		}
+
+		for (; i < length; i++) {
+			if ((options = arguments[i]) != null) {
+				for (name in options) {
+					src = target[name];
+					copy = options[name];
+
+					if (target === copy) {
+						continue;
+					}
+
+					if (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {
+						if (copyIsArray) {
+							copyIsArray = false;
+							clone = src && $.isArray(src) ? src : [];
+
+						} else {
+							clone = src && $.isPlainObject(src) ? src : {};
+						}
+
+						target[name] = $.extend(deep, clone, copy);
+
+					} else if (copy !== undefined) {
+						target[name] = copy;
+					}
+				}
+			}
+		}
+
+		return target;
+	};
+	/**
+	 * mui noop(function)
+	 */
+	$.noop = function() {};
+	/**
+	 * mui slice(array)
+	 */
+	$.slice = [].slice;
+	/**
+	 * mui filter(array)
+	 */
+	$.filter = [].filter;
+
+	$.type = function(obj) {
+		return obj == null ? String(obj) : class2type[{}.toString.call(obj)] || "object";
+	};
+	/**
+	 * mui isArray
+	 */
+	$.isArray = Array.isArray ||
+		function(object) {
+			return object instanceof Array;
+		};
+	/**
+	 * mui isArrayLike 
+	 * @param {Object} obj
+	 */
+	$.isArrayLike = function(obj) {
+		var length = !!obj && "length" in obj && obj.length;
+		var type = $.type(obj);
+		if (type === "function" || $.isWindow(obj)) {
+			return false;
+		}
+		return type === "array" || length === 0 ||
+			typeof length === "number" && length > 0 && (length - 1) in obj;
+	};
+	/**
+	 * mui isWindow(需考虑obj为undefined的情况)
+	 */
+	$.isWindow = function(obj) {
+		return obj != null && obj === obj.window;
+	};
+	/**
+	 * mui isObject
+	 */
+	$.isObject = function(obj) {
+		return $.type(obj) === "object";
+	};
+	/**
+	 * mui isPlainObject
+	 */
+	$.isPlainObject = function(obj) {
+		return $.isObject(obj) && !$.isWindow(obj) && Object.getPrototypeOf(obj) === Object.prototype;
+	};
+	/**
+	 * mui isEmptyObject
+	 * @param {Object} o
+	 */
+	$.isEmptyObject = function(o) {
+		for (var p in o) {
+			if (p !== undefined) {
+				return false;
+			}
+		}
+		return true;
+	};
+	/**
+	 * mui isFunction
+	 */
+	$.isFunction = function(value) {
+		return $.type(value) === "function";
+	};
+	/**
+	 * mui querySelectorAll
+	 * @param {type} selector
+	 * @param {type} context
+	 * @returns {Array}
+	 */
+	$.qsa = function(selector, context) {
+		context = context || document;
+		return $.slice.call(classSelectorRE.test(selector) ? context.getElementsByClassName(RegExp.$1) : tagSelectorRE.test(selector) ? context.getElementsByTagName(selector) : context.querySelectorAll(selector));
+	};
+	/**
+	 * ready(DOMContentLoaded)
+	 * @param {type} callback
+	 * @returns {_L6.$}
+	 */
+	$.ready = function(callback) {
+		if (readyRE.test(document.readyState)) {
+			callback($);
+		} else {
+			document.addEventListener('DOMContentLoaded', function() {
+				callback($);
+			}, false);
+		}
+		return this;
+	};
+	/**
+	 * 将 fn 缓存一段时间后, 再被调用执行
+	 * 此方法为了避免在 ms 段时间内, 执行 fn 多次. 常用于 resize , scroll , mousemove 等连续性事件中;
+	 * 当 ms 设置为 -1, 表示立即执行 fn, 即和直接调用 fn 一样;
+	 * 调用返回函数的 stop 停止最后一次的 buffer 效果
+	 * @param {Object} fn
+	 * @param {Object} ms
+	 * @param {Object} context
+	 */
+	$.buffer = function(fn, ms, context) {
+		var timer;
+		var lastStart = 0;
+		var lastEnd = 0;
+		var ms = ms || 150;
+
+		function run() {
+			if (timer) {
+				timer.cancel();
+				timer = 0;
+			}
+			lastStart = $.now();
+			fn.apply(context || this, arguments);
+			lastEnd = $.now();
+		}
+
+		return $.extend(function() {
+			if (
+				(!lastStart) || // 从未运行过
+				(lastEnd >= lastStart && $.now() - lastEnd > ms) || // 上次运行成功后已经超过ms毫秒
+				(lastEnd < lastStart && $.now() - lastStart > ms * 8) // 上次运行或未完成,后8*ms毫秒
+			) {
+				run.apply(this, arguments);
+			} else {
+				if (timer) {
+					timer.cancel();
+				}
+				timer = $.later(run, ms, null, $.slice.call(arguments));
+			}
+		}, {
+			stop: function() {
+				if (timer) {
+					timer.cancel();
+					timer = 0;
+				}
+			}
+		});
+	};
+	/**
+	 * each
+	 * @param {type} elements
+	 * @param {type} callback
+	 * @returns {_L8.$}
+	 */
+	$.each = function(elements, callback, hasOwnProperty) {
+		if (!elements) {
+			return this;
+		}
+		if (typeof elements.length === 'number') {
+			[].every.call(elements, function(el, idx) {
+				return callback.call(el, idx, el) !== false;
+			});
+		} else {
+			for (var key in elements) {
+				if (hasOwnProperty) {
+					if (elements.hasOwnProperty(key)) {
+						if (callback.call(elements[key], key, elements[key]) === false) return elements;
+					}
+				} else {
+					if (callback.call(elements[key], key, elements[key]) === false) return elements;
+				}
+			}
+		}
+		return this;
+	};
+	$.focus = function(element) {
+		if ($.os.ios) {
+			setTimeout(function() {
+				element.focus();
+			}, 10);
+		} else {
+			element.focus();
+		}
+	};
+	/**
+	 * trigger event
+	 * @param {type} element
+	 * @param {type} eventType
+	 * @param {type} eventData
+	 * @returns {_L8.$}
+	 */
+	$.trigger = function(element, eventType, eventData) {
+		element.dispatchEvent(new CustomEvent(eventType, {
+			detail: eventData,
+			bubbles: true,
+			cancelable: true
+		}));
+		return this;
+	};
+	/**
+	 * getStyles
+	 * @param {type} element
+	 * @param {type} property
+	 * @returns {styles}
+	 */
+	$.getStyles = function(element, property) {
+		var styles = element.ownerDocument.defaultView.getComputedStyle(element, null);
+		if (property) {
+			return styles.getPropertyValue(property) || styles[property];
+		}
+		return styles;
+	};
+	/**
+	 * parseTranslate
+	 * @param {type} translateString
+	 * @param {type} position
+	 * @returns {Object}
+	 */
+	$.parseTranslate = function(translateString, position) {
+		var result = translateString.match(translateRE || '');
+		if (!result || !result[1]) {
+			result = ['', '0,0,0'];
+		}
+		result = result[1].split(",");
+		result = {
+			x: parseFloat(result[0]),
+			y: parseFloat(result[1]),
+			z: parseFloat(result[2])
+		};
+		if (position && result.hasOwnProperty(position)) {
+			return result[position];
+		}
+		return result;
+	};
+	/**
+	 * parseTranslateMatrix
+	 * @param {type} translateString
+	 * @param {type} position
+	 * @returns {Object}
+	 */
+	$.parseTranslateMatrix = function(translateString, position) {
+		var matrix = translateString.match(translateMatrixRE);
+		var is3D = matrix && matrix[1];
+		if (matrix) {
+			matrix = matrix[2].split(",");
+			if (is3D === "3d")
+				matrix = matrix.slice(12, 15);
+			else {
+				matrix.push(0);
+				matrix = matrix.slice(4, 7);
+			}
+		} else {
+			matrix = [0, 0, 0];
+		}
+		var result = {
+			x: parseFloat(matrix[0]),
+			y: parseFloat(matrix[1]),
+			z: parseFloat(matrix[2])
+		};
+		if (position && result.hasOwnProperty(position)) {
+			return result[position];
+		}
+		return result;
+	};
+	$.hooks = {};
+	$.addAction = function(type, hook) {
+		var hooks = $.hooks[type];
+		if (!hooks) {
+			hooks = [];
+		}
+		hook.index = hook.index || 1000;
+		hooks.push(hook);
+		hooks.sort(function(a, b) {
+			return a.index - b.index;
+		});
+		$.hooks[type] = hooks;
+		return $.hooks[type];
+	};
+	$.doAction = function(type, callback) {
+		if ($.isFunction(callback)) { //指定了callback
+			$.each($.hooks[type], callback);
+		} else { //未指定callback,直接执行
+			$.each($.hooks[type], function(index, hook) {
+				return !hook.handle();
+			});
+		}
+	};
+	/**
+	 * setTimeout封装
+	 * @param {Object} fn
+	 * @param {Object} when
+	 * @param {Object} context
+	 * @param {Object} data
+	 */
+	$.later = function(fn, when, context, data) {
+		when = when || 0;
+		var m = fn;
+		var d = data;
+		var f;
+		var r;
+
+		if (typeof fn === 'string') {
+			m = context[fn];
+		}
+
+		f = function() {
+			m.apply(context, $.isArray(d) ? d : [d]);
+		};
+
+		r = setTimeout(f, when);
+
+		return {
+			id: r,
+			cancel: function() {
+				clearTimeout(r);
+			}
+		};
+	};
+	$.now = Date.now || function() {
+		return +new Date();
+	};
+	var class2type = {};
+	$.each(['Boolean', 'Number', 'String', 'Function', 'Array', 'Date', 'RegExp', 'Object', 'Error'], function(i, name) {
+		class2type["[object " + name + "]"] = name.toLowerCase();
+	});
+	if (window.JSON) {
+		$.parseJSON = JSON.parse;
+	}
+	/**
+	 * $.fn
+	 */
+	$.fn = {
+		each: function(callback) {
+			[].every.call(this, function(el, idx) {
+				return callback.call(el, idx, el) !== false;
+			});
+			return this;
+		}
+	};
+
+	/**
+	 * 兼容 AMD 模块
+	 **/
+	if (typeof define === 'function' && define.amd) {
+		define('mui', [], function() {
+			return $;
+		});
+	}
+
+	return $;
+})(document);
+//window.mui = mui;
+//'$' in window || (window.$ = mui);
+/**
+ * $.os
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($, window) {
+	function detect(ua) {
+		this.os = {};
+		var funcs = [
+
+			function() { //wechat
+				var wechat = ua.match(/(MicroMessenger)\/([\d\.]+)/i);
+				if (wechat) { //wechat
+					this.os.wechat = {
+						version: wechat[2].replace(/_/g, '.')
+					};
+				}
+				return false;
+			},
+			function() { //android
+				var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
+				if (android) {
+					this.os.android = true;
+					this.os.version = android[2];
+
+					this.os.isBadAndroid = !(/Chrome\/\d/.test(window.navigator.appVersion));
+				}
+				return this.os.android === true;
+			},
+			function() { //ios
+				var iphone = ua.match(/(iPhone\sOS)\s([\d_]+)/);
+				if (iphone) { //iphone
+					this.os.ios = this.os.iphone = true;
+					this.os.version = iphone[2].replace(/_/g, '.');
+				} else {
+					var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
+					if (ipad) { //ipad
+						this.os.ios = this.os.ipad = true;
+						this.os.version = ipad[2].replace(/_/g, '.');
+					}
+				}
+				return this.os.ios === true;
+			}
+		];
+		[].every.call(funcs, function(func) {
+			return !func.call($);
+		});
+	}
+	detect.call($, navigator.userAgent);
+})(mui, window);
+/**
+ * $.os.plus
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($, document) {
+	function detect(ua) {
+		this.os = this.os || {};
+		var plus = ua.match(/Html5Plus/i); //TODO 5\+Browser?
+		if (plus) {
+			this.os.plus = true;
+			$(function() {
+				document.body.classList.add('mui-plus');
+			});
+			if (ua.match(/StreamApp/i)) { //TODO 最好有流应用自己的标识
+				this.os.stream = true;
+				$(function() {
+					document.body.classList.add('mui-plus-stream');
+				});
+			}
+		}
+	}
+	detect.call($, navigator.userAgent);
+})(mui, document);
+/**
+ * 仅提供简单的on,off(仅支持事件委托,不支持当前元素绑定,当前元素绑定请直接使用addEventListener,removeEventListener)
+ * @param {Object} $
+ */
+(function($) {
+	if ('ontouchstart' in window) {
+		$.isTouchable = true;
+		$.EVENT_START = 'touchstart';
+		$.EVENT_MOVE = 'touchmove';
+		$.EVENT_END = 'touchend';
+	} else {
+		$.isTouchable = false;
+		$.EVENT_START = 'mousedown';
+		$.EVENT_MOVE = 'mousemove';
+		$.EVENT_END = 'mouseup';
+	}
+	$.EVENT_CANCEL = 'touchcancel';
+	$.EVENT_CLICK = 'click';
+
+	var _mid = 1;
+	var delegates = {};
+	//需要wrap的函数
+	var eventMethods = {
+		preventDefault: 'isDefaultPrevented',
+		stopImmediatePropagation: 'isImmediatePropagationStopped',
+		stopPropagation: 'isPropagationStopped'
+	};
+	//默认true返回函数
+	var returnTrue = function() {
+		return true
+	};
+	//默认false返回函数
+	var returnFalse = function() {
+		return false
+	};
+	//wrap浏览器事件
+	var compatible = function(event, target) {
+		if (!event.detail) {
+			event.detail = {
+				currentTarget: target
+			};
+		} else {
+			event.detail.currentTarget = target;
+		}
+		$.each(eventMethods, function(name, predicate) {
+			var sourceMethod = event[name];
+			event[name] = function() {
+				this[predicate] = returnTrue;
+				return sourceMethod && sourceMethod.apply(event, arguments)
+			}
+			event[predicate] = returnFalse;
+		}, true);
+		return event;
+	};
+	//简单的wrap对象_mid
+	var mid = function(obj) {
+		return obj && (obj._mid || (obj._mid = _mid++));
+	};
+	//事件委托对象绑定的事件回调列表
+	var delegateFns = {};
+	//返回事件委托的wrap事件回调
+	var delegateFn = function(element, event, selector, callback) {
+		return function(e) {
+			//same event
+			var callbackObjs = delegates[element._mid][event];
+			var handlerQueue = [];
+			var target = e.target;
+			var selectorAlls = {};
+			for (; target && target !== document; target = target.parentNode) {
+				if (target === element) {
+					break;
+				}
+				if (~['click', 'tap', 'doubletap', 'longtap', 'hold'].indexOf(event) && (target.disabled || target.classList.contains('mui-disabled'))) {
+					break;
+				}
+				var matches = {};
+				$.each(callbackObjs, function(selector, callbacks) { //same selector
+					selectorAlls[selector] || (selectorAlls[selector] = $.qsa(selector, element));
+					if (selectorAlls[selector] && ~(selectorAlls[selector]).indexOf(target)) {
+						if (!matches[selector]) {
+							matches[selector] = callbacks;
+						}
+					}
+				}, true);
+				if (!$.isEmptyObject(matches)) {
+					handlerQueue.push({
+						element: target,
+						handlers: matches
+					});
+				}
+			}
+			selectorAlls = null;
+			e = compatible(e); //compatible event
+			$.each(handlerQueue, function(index, handler) {
+				target = handler.element;
+				var tagName = target.tagName;
+				if (event === 'tap' && (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && tagName !== 'SELECT')) {
+					e.preventDefault();
+					e.detail && e.detail.gesture && e.detail.gesture.preventDefault();
+				}
+				$.each(handler.handlers, function(index, handler) {
+					$.each(handler, function(index, callback) {
+						if (callback.call(target, e) === false) {
+							e.preventDefault();
+							e.stopPropagation();
+						}
+					}, true);
+				}, true)
+				if (e.isPropagationStopped()) {
+					return false;
+				}
+			}, true);
+		};
+	};
+	var findDelegateFn = function(element, event) {
+		var delegateCallbacks = delegateFns[mid(element)];
+		var result = [];
+		if (delegateCallbacks) {
+			result = [];
+			if (event) {
+				var filterFn = function(fn) {
+					return fn.type === event;
+				}
+				return delegateCallbacks.filter(filterFn);
+			} else {
+				result = delegateCallbacks;
+			}
+		}
+		return result;
+	};
+	var preventDefaultException = /^(INPUT|TEXTAREA|BUTTON|SELECT)$/;
+	/**
+	 * mui delegate events
+	 * @param {type} event
+	 * @param {type} selector
+	 * @param {type} callback
+	 * @returns {undefined}
+	 */
+	$.fn.on = function(event, selector, callback) { //仅支持简单的事件委托,主要是tap事件使用,类似mouse,focus之类暂不封装支持
+		return this.each(function() {
+			var element = this;
+			mid(element);
+			mid(callback);
+			var isAddEventListener = false;
+			var delegateEvents = delegates[element._mid] || (delegates[element._mid] = {});
+			var delegateCallbackObjs = delegateEvents[event] || ((delegateEvents[event] = {}));
+			if ($.isEmptyObject(delegateCallbackObjs)) {
+				isAddEventListener = true;
+			}
+			var delegateCallbacks = delegateCallbackObjs[selector] || (delegateCallbackObjs[selector] = []);
+			delegateCallbacks.push(callback);
+			if (isAddEventListener) {
+				var delegateFnArray = delegateFns[mid(element)];
+				if (!delegateFnArray) {
+					delegateFnArray = [];
+				}
+				var delegateCallback = delegateFn(element, event, selector, callback);
+				delegateFnArray.push(delegateCallback);
+				delegateCallback.i = delegateFnArray.length - 1;
+				delegateCallback.type = event;
+				delegateFns[mid(element)] = delegateFnArray;
+				element.addEventListener(event, delegateCallback);
+				if (event === 'tap') { //TODO 需要找个更好的解决方案
+					element.addEventListener('click', function(e) {
+						if (e.target) {
+							var tagName = e.target.tagName;
+							if (!preventDefaultException.test(tagName)) {
+								if (tagName === 'A') {
+									var href = e.target.href;
+									if (!(href && ~href.indexOf('tel:'))) {
+										e.preventDefault();
+									}
+								} else {
+									e.preventDefault();
+								}
+							}
+						}
+					});
+				}
+			}
+		});
+	};
+	$.fn.off = function(event, selector, callback) {
+		return this.each(function() {
+			var _mid = mid(this);
+			if (!event) { //mui(selector).off();
+				delegates[_mid] && delete delegates[_mid];
+			} else if (!selector) { //mui(selector).off(event);
+				delegates[_mid] && delete delegates[_mid][event];
+			} else if (!callback) { //mui(selector).off(event,selector);
+				delegates[_mid] && delegates[_mid][event] && delete delegates[_mid][event][selector];
+			} else { //mui(selector).off(event,selector,callback);
+				var delegateCallbacks = delegates[_mid] && delegates[_mid][event] && delegates[_mid][event][selector];
+				$.each(delegateCallbacks, function(index, delegateCallback) {
+					if (mid(delegateCallback) === mid(callback)) {
+						delegateCallbacks.splice(index, 1);
+						return false;
+					}
+				}, true);
+			}
+			if (delegates[_mid]) {
+				//如果off掉了所有当前element的指定的event事件,则remove掉当前element的delegate回调
+				if ((!delegates[_mid][event] || $.isEmptyObject(delegates[_mid][event]))) {
+					findDelegateFn(this, event).forEach(function(fn) {
+						this.removeEventListener(fn.type, fn);
+						delete delegateFns[_mid][fn.i];
+					}.bind(this));
+				}
+			} else {
+				//如果delegates[_mid]已不存在,删除所有
+				findDelegateFn(this).forEach(function(fn) {
+					this.removeEventListener(fn.type, fn);
+					delete delegateFns[_mid][fn.i];
+				}.bind(this));
+			}
+		});
+
+	};
+})(mui);
+/**
+ * mui target(action>popover>modal>tab>toggle)
+ */
+(function($, window, document) {
+	/**
+	 * targets
+	 */
+	$.targets = {};
+	/**
+	 * target handles
+	 */
+	$.targetHandles = [];
+	/**
+	 * register target
+	 * @param {type} target
+	 * @returns {$.targets}
+	 */
+	$.registerTarget = function(target) {
+
+		target.index = target.index || 1000;
+
+		$.targetHandles.push(target);
+
+		$.targetHandles.sort(function(a, b) {
+			return a.index - b.index;
+		});
+
+		return $.targetHandles;
+	};
+	window.addEventListener($.EVENT_START, function(event) {
+		var target = event.target;
+		var founds = {};
+		for (; target && target !== document; target = target.parentNode) {
+			var isFound = false;
+			$.each($.targetHandles, function(index, targetHandle) {
+				var name = targetHandle.name;
+				if (!isFound && !founds[name] && targetHandle.hasOwnProperty('handle')) {
+					$.targets[name] = targetHandle.handle(event, target);
+					if ($.targets[name]) {
+						founds[name] = true;
+						if (targetHandle.isContinue !== true) {
+							isFound = true;
+						}
+					}
+				} else {
+					if (!founds[name]) {
+						if (targetHandle.isReset !== false)
+							$.targets[name] = false;
+					}
+				}
+			});
+			if (isFound) {
+				break;
+			}
+		}
+	});
+	window.addEventListener('click', function(event) { //解决touch与click的target不一致的问题(比如链接边缘点击时,touch的target为html,而click的target为A)
+		var target = event.target;
+		var isFound = false;
+		for (; target && target !== document; target = target.parentNode) {
+			if (target.tagName === 'A') {
+				$.each($.targetHandles, function(index, targetHandle) {
+					var name = targetHandle.name;
+					if (targetHandle.hasOwnProperty('handle')) {
+						if (targetHandle.handle(event, target)) {
+							isFound = true;
+							event.preventDefault();
+							return false;
+						}
+					}
+				});
+				if (isFound) {
+					break;
+				}
+			}
+		}
+	});
+})(mui, window, document);
+/**
+ * fixed trim
+ * @param {type} undefined
+ * @returns {undefined}
+ */
+(function(undefined) {
+	if (String.prototype.trim === undefined) { // fix for iOS 3.2
+		String.prototype.trim = function() {
+			return this.replace(/^\s+|\s+$/g, '');
+		};
+	}
+	Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) {
+		obj['__proto__'] = proto;
+		return obj;
+	};
+
+})();
+/**
+ * fixed CustomEvent
+ */
+(function() {
+	if (typeof window.CustomEvent === 'undefined') {
+		function CustomEvent(event, params) {
+			params = params || {
+				bubbles: false,
+				cancelable: false,
+				detail: undefined
+			};
+			var evt = document.createEvent('Events');
+			var bubbles = true;
+			for (var name in params) {
+				(name === 'bubbles') ? (bubbles = !!params[name]) : (evt[name] = params[name]);
+			}
+			evt.initEvent(event, bubbles, true);
+			return evt;
+		};
+		CustomEvent.prototype = window.Event.prototype;
+		window.CustomEvent = CustomEvent;
+	}
+})();
+/*
+	A shim for non ES5 supporting browsers.
+	Adds function bind to Function prototype, so that you can do partial application.
+	Works even with the nasty thing, where the first word is the opposite of extranet, the second one is the profession of Columbus, and the version number is 9, flipped 180 degrees.
+*/
+
+Function.prototype.bind = Function.prototype.bind || function(to) {
+	// Make an array of our arguments, starting from second argument
+	var partial = Array.prototype.splice.call(arguments, 1),
+		// We'll need the original function.
+		fn = this;
+	var bound = function() {
+			// Join the already applied arguments to the now called ones (after converting to an array again).
+			var args = partial.concat(Array.prototype.splice.call(arguments, 0));
+			// If not being called as a constructor
+			if (!(this instanceof bound)) {
+				// return the result of the function called bound to target and partially applied.
+				return fn.apply(to, args);
+			}
+			// If being called as a constructor, apply the function bound to self.
+			fn.apply(this, args);
+		}
+		// Attach the prototype of the function to our newly created function.
+	bound.prototype = fn.prototype;
+	return bound;
+};
+/**
+ * mui fixed classList
+ * @param {type} document
+ * @returns {undefined}
+ */
+(function(document) {
+    if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') {
+
+        Object.defineProperty(HTMLElement.prototype, 'classList', {
+            get: function() {
+                var self = this;
+                function update(fn) {
+                    return function(value) {
+                        var classes = self.className.split(/\s+/),
+                                index = classes.indexOf(value);
+
+                        fn(classes, index, value);
+                        self.className = classes.join(" ");
+                    };
+                }
+
+                var ret = {
+                    add: update(function(classes, index, value) {
+                        ~index || classes.push(value);
+                    }),
+                    remove: update(function(classes, index) {
+                        ~index && classes.splice(index, 1);
+                    }),
+                    toggle: update(function(classes, index, value) {
+                        ~index ? classes.splice(index, 1) : classes.push(value);
+                    }),
+                    contains: function(value) {
+                        return !!~self.className.split(/\s+/).indexOf(value);
+                    },
+                    item: function(i) {
+                        return self.className.split(/\s+/)[i] || null;
+                    }
+                };
+
+                Object.defineProperty(ret, 'length', {
+                    get: function() {
+                        return self.className.split(/\s+/).length;
+                    }
+                });
+
+                return ret;
+            }
+        });
+    }
+})(document);
+
+/**
+ * mui fixed requestAnimationFrame
+ * @param {type} window
+ * @returns {undefined}
+ */
+(function(window) {
+	if (!window.requestAnimationFrame) {
+		var lastTime = 0;
+		window.requestAnimationFrame = window.webkitRequestAnimationFrame || function(callback, element) {
+			var currTime = new Date().getTime();
+			var timeToCall = Math.max(0, 16.7 - (currTime - lastTime));
+			var id = window.setTimeout(function() {
+				callback(currTime + timeToCall);
+			}, timeToCall);
+			lastTime = currTime + timeToCall;
+			return id;
+		};
+		window.cancelAnimationFrame = window.webkitCancelAnimationFrame || window.webkitCancelRequestAnimationFrame || function(id) {
+			clearTimeout(id);
+		};
+	};
+}(window));
+/**
+ * fastclick(only for radio,checkbox)
+ */
+(function($, window, name) {
+	if (!$.os.android && !$.os.ios) { //目前仅识别android和ios
+		return;
+	}
+	if (window.FastClick) {
+		return;
+	}
+
+	var handle = function(event, target) {
+		if (target.tagName === 'LABEL') {
+			if (target.parentNode) {
+				target = target.parentNode.querySelector('input');
+			}
+		}
+		if (target && (target.type === 'radio' || target.type === 'checkbox')) {
+			if (!target.disabled) { //disabled
+				return target;
+			}
+		}
+		return false;
+	};
+
+	$.registerTarget({
+		name: name,
+		index: 40,
+		handle: handle,
+		target: false
+	});
+	var dispatchEvent = function(event) {
+		var targetElement = $.targets.click;
+		if (targetElement) {
+			var clickEvent, touch;
+			// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect
+			if (document.activeElement && document.activeElement !== targetElement) {
+				document.activeElement.blur();
+			}
+			touch = event.detail.gesture.changedTouches[0];
+			// Synthesise a click event, with an extra attribute so it can be tracked
+			clickEvent = document.createEvent('MouseEvents');
+			clickEvent.initMouseEvent('click', true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
+			clickEvent.forwardedTouchEvent = true;
+			targetElement.dispatchEvent(clickEvent);
+			event.detail && event.detail.gesture.preventDefault();
+		}
+	};
+	window.addEventListener('tap', dispatchEvent);
+	window.addEventListener('doubletap', dispatchEvent);
+	//捕获
+	window.addEventListener('click', function(event) {
+		if ($.targets.click) {
+			if (!event.forwardedTouchEvent) { //stop click
+				if (event.stopImmediatePropagation) {
+					event.stopImmediatePropagation();
+				} else {
+					// Part of the hack for browsers that don't support Event#stopImmediatePropagation
+					event.propagationStopped = true;
+				}
+				event.stopPropagation();
+				event.preventDefault();
+				return false;
+			}
+		}
+	}, true);
+
+})(mui, window, 'click');
+(function($, document) {
+	$(function() {
+		if (!$.os.ios) {
+			return;
+		}
+		var CLASS_FOCUSIN = 'mui-focusin';
+		var CLASS_BAR_TAB = 'mui-bar-tab';
+		var CLASS_BAR_FOOTER = 'mui-bar-footer';
+		var CLASS_BAR_FOOTER_SECONDARY = 'mui-bar-footer-secondary';
+		var CLASS_BAR_FOOTER_SECONDARY_TAB = 'mui-bar-footer-secondary-tab';
+		// var content = document.querySelector('.' + CLASS_CONTENT);
+		// if (content) {
+		// 	document.body.insertBefore(content, document.body.firstElementChild);
+		// }
+		document.addEventListener('focusin', function(e) {
+			if ($.os.plus) { //在父webview里边不fix
+				if (window.plus) {
+					if (plus.webview.currentWebview().children().length > 0) {
+						return;
+					}
+				}
+			}
+			var target = e.target;
+			//TODO 需考虑所有键盘弹起的情况
+			if (target.tagName && (target.tagName === 'TEXTAREA' || (target.tagName === 'INPUT' && (target.type === 'text' || target.type === 'search' || target.type === 'number')))) {
+				if (target.disabled || target.readOnly) {
+					return;
+				}
+				document.body.classList.add(CLASS_FOCUSIN);
+				var isFooter = false;
+				for (; target && target !== document; target = target.parentNode) {
+					var classList = target.classList;
+					if (classList && classList.contains(CLASS_BAR_TAB) || classList.contains(CLASS_BAR_FOOTER) || classList.contains(CLASS_BAR_FOOTER_SECONDARY) || classList.contains(CLASS_BAR_FOOTER_SECONDARY_TAB)) {
+						isFooter = true;
+						break;
+					}
+				}
+				if (isFooter) {
+					var scrollTop = document.body.scrollHeight;
+					var scrollLeft = document.body.scrollLeft;
+					setTimeout(function() {
+						window.scrollTo(scrollLeft, scrollTop);
+					}, 20);
+				}
+			}
+		});
+		document.addEventListener('focusout', function(e) {
+			var classList = document.body.classList;
+			if (classList.contains(CLASS_FOCUSIN)) {
+				classList.remove(CLASS_FOCUSIN);
+				setTimeout(function() {
+					window.scrollTo(document.body.scrollLeft, document.body.scrollTop);
+				}, 20);
+			}
+		});
+	});
+})(mui, document);
+/**
+ * mui namespace(optimization)
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($) {
+	$.namespace = 'mui';
+	$.classNamePrefix = $.namespace + '-';
+	$.classSelectorPrefix = '.' + $.classNamePrefix;
+	/**
+	 * 返回正确的className
+	 * @param {type} className
+	 * @returns {String}
+	 */
+	$.className = function(className) {
+		return $.classNamePrefix + className;
+	};
+	/**
+	 * 返回正确的classSelector
+	 * @param {type} classSelector
+	 * @returns {String}
+	 */
+	$.classSelector = function(classSelector) {
+		return classSelector.replace(/\./g, $.classSelectorPrefix);
+	};
+	/**
+         * 返回正确的eventName
+         * @param {type} event
+         * @param {type} module
+         * @returns {String}
+         */
+	$.eventName = function(event, module) {
+		return event + ($.namespace ? ('.' + $.namespace) : '') + ( module ? ('.' + module) : '');
+	};
+})(mui);
+
+/**
+ * mui gestures
+ * @param {type} $
+ * @param {type} window
+ * @returns {undefined}
+ */
+(function($, window) {
+	$.gestures = {
+		session: {}
+	};
+	/**
+	 * Gesture preventDefault
+	 * @param {type} e
+	 * @returns {undefined}
+	 */
+	$.preventDefault = function(e) {
+		e.preventDefault();
+	};
+	/**
+	 * Gesture stopPropagation
+	 * @param {type} e
+	 * @returns {undefined}
+	 */
+	$.stopPropagation = function(e) {
+		e.stopPropagation();
+	};
+
+	/**
+	 * register gesture
+	 * @param {type} gesture
+	 * @returns {$.gestures}
+	 */
+	$.addGesture = function(gesture) {
+		return $.addAction('gestures', gesture);
+
+	};
+
+	var round = Math.round;
+	var abs = Math.abs;
+	var sqrt = Math.sqrt;
+	var atan = Math.atan;
+	var atan2 = Math.atan2;
+	/**
+	 * distance
+	 * @param {type} p1
+	 * @param {type} p2
+	 * @returns {Number}
+	 */
+	var getDistance = function(p1, p2, props) {
+		if(!props) {
+			props = ['x', 'y'];
+		}
+		var x = p2[props[0]] - p1[props[0]];
+		var y = p2[props[1]] - p1[props[1]];
+		return sqrt((x * x) + (y * y));
+	};
+	/**
+	 * scale
+	 * @param {Object} starts
+	 * @param {Object} moves
+	 */
+	var getScale = function(starts, moves) {
+		if(starts.length >= 2 && moves.length >= 2) {
+			var props = ['pageX', 'pageY'];
+			return getDistance(moves[1], moves[0], props) / getDistance(starts[1], starts[0], props);
+		}
+		return 1;
+	};
+	/**
+	 * angle
+	 * @param {type} p1
+	 * @param {type} p2
+	 * @returns {Number}
+	 */
+	var getAngle = function(p1, p2, props) {
+		if(!props) {
+			props = ['x', 'y'];
+		}
+		var x = p2[props[0]] - p1[props[0]];
+		var y = p2[props[1]] - p1[props[1]];
+		return atan2(y, x) * 180 / Math.PI;
+	};
+	/**
+	 * direction
+	 * @param {Object} x
+	 * @param {Object} y
+	 */
+	var getDirection = function(x, y) {
+		if(x === y) {
+			return '';
+		}
+		if(abs(x) >= abs(y)) {
+			return x > 0 ? 'left' : 'right';
+		}
+		return y > 0 ? 'up' : 'down';
+	};
+	/**
+	 * rotation
+	 * @param {Object} start
+	 * @param {Object} end
+	 */
+	var getRotation = function(start, end) {
+		var props = ['pageX', 'pageY'];
+		return getAngle(end[1], end[0], props) - getAngle(start[1], start[0], props);
+	};
+	/**
+	 * px per ms
+	 * @param {Object} deltaTime
+	 * @param {Object} x
+	 * @param {Object} y
+	 */
+	var getVelocity = function(deltaTime, x, y) {
+		return {
+			x: x / deltaTime || 0,
+			y: y / deltaTime || 0
+		};
+	};
+	/**
+	 * detect gestures
+	 * @param {type} event
+	 * @param {type} touch
+	 * @returns {undefined}
+	 */
+	var detect = function(event, touch) {
+		if($.gestures.stoped) {
+			return;
+		}
+		$.doAction('gestures', function(index, gesture) {
+			if(!$.gestures.stoped) {
+				if($.options.gestureConfig[gesture.name] !== false) {
+					gesture.handle(event, touch);
+				}
+			}
+		});
+	};
+	/**
+	 * 暂时无用
+	 * @param {Object} node
+	 * @param {Object} parent
+	 */
+	var hasParent = function(node, parent) {
+		while(node) {
+			if(node == parent) {
+				return true;
+			}
+			node = node.parentNode;
+		}
+		return false;
+	};
+
+	var uniqueArray = function(src, key, sort) {
+		var results = [];
+		var values = [];
+		var i = 0;
+
+		while(i < src.length) {
+			var val = key ? src[i][key] : src[i];
+			if(values.indexOf(val) < 0) {
+				results.push(src[i]);
+			}
+			values[i] = val;
+			i++;
+		}
+
+		if(sort) {
+			if(!key) {
+				results = results.sort();
+			} else {
+				results = results.sort(function sortUniqueArray(a, b) {
+					return a[key] > b[key];
+				});
+			}
+		}
+
+		return results;
+	};
+	var getMultiCenter = function(touches) {
+		var touchesLength = touches.length;
+		if(touchesLength === 1) {
+			return {
+				x: round(touches[0].pageX),
+				y: round(touches[0].pageY)
+			};
+		}
+
+		var x = 0;
+		var y = 0;
+		var i = 0;
+		while(i < touchesLength) {
+			x += touches[i].pageX;
+			y += touches[i].pageY;
+			i++;
+		}
+
+		return {
+			x: round(x / touchesLength),
+			y: round(y / touchesLength)
+		};
+	};
+	var multiTouch = function() {
+		return $.options.gestureConfig.pinch;
+	};
+	var copySimpleTouchData = function(touch) {
+		var touches = [];
+		var i = 0;
+		while(i < touch.touches.length) {
+			touches[i] = {
+				pageX: round(touch.touches[i].pageX),
+				pageY: round(touch.touches[i].pageY)
+			};
+			i++;
+		}
+		return {
+			timestamp: $.now(),
+			gesture: touch.gesture,
+			touches: touches,
+			center: getMultiCenter(touch.touches),
+			deltaX: touch.deltaX,
+			deltaY: touch.deltaY
+		};
+	};
+
+	var calDelta = function(touch) {
+		var session = $.gestures.session;
+		var center = touch.center;
+		var offset = session.offsetDelta || {};
+		var prevDelta = session.prevDelta || {};
+		var prevTouch = session.prevTouch || {};
+
+		if(touch.gesture.type === $.EVENT_START || touch.gesture.type === $.EVENT_END) {
+			prevDelta = session.prevDelta = {
+				x: prevTouch.deltaX || 0,
+				y: prevTouch.deltaY || 0
+			};
+
+			offset = session.offsetDelta = {
+				x: center.x,
+				y: center.y
+			};
+		}
+		touch.deltaX = prevDelta.x + (center.x - offset.x);
+		touch.deltaY = prevDelta.y + (center.y - offset.y);
+	};
+	var calTouchData = function(touch) {
+		var session = $.gestures.session;
+		var touches = touch.touches;
+		var touchesLength = touches.length;
+
+		if(!session.firstTouch) {
+			session.firstTouch = copySimpleTouchData(touch);
+		}
+
+		if(multiTouch() && touchesLength > 1 && !session.firstMultiTouch) {
+			session.firstMultiTouch = copySimpleTouchData(touch);
+		} else if(touchesLength === 1) {
+			session.firstMultiTouch = false;
+		}
+
+		var firstTouch = session.firstTouch;
+		var firstMultiTouch = session.firstMultiTouch;
+		var offsetCenter = firstMultiTouch ? firstMultiTouch.center : firstTouch.center;
+
+		var center = touch.center = getMultiCenter(touches);
+		touch.timestamp = $.now();
+		touch.deltaTime = touch.timestamp - firstTouch.timestamp;
+
+		touch.angle = getAngle(offsetCenter, center);
+		touch.distance = getDistance(offsetCenter, center);
+
+		calDelta(touch);
+
+		touch.offsetDirection = getDirection(touch.deltaX, touch.deltaY);
+
+		touch.scale = firstMultiTouch ? getScale(firstMultiTouch.touches, touches) : 1;
+		touch.rotation = firstMultiTouch ? getRotation(firstMultiTouch.touches, touches) : 0;
+
+		calIntervalTouchData(touch);
+
+	};
+	var CAL_INTERVAL = 25;
+	var calIntervalTouchData = function(touch) {
+		var session = $.gestures.session;
+		var last = session.lastInterval || touch;
+		var deltaTime = touch.timestamp - last.timestamp;
+		var velocity;
+		var velocityX;
+		var velocityY;
+		var direction;
+
+		if(touch.gesture.type != $.EVENT_CANCEL && (deltaTime > CAL_INTERVAL || last.velocity === undefined)) {
+			var deltaX = last.deltaX - touch.deltaX;
+			var deltaY = last.deltaY - touch.deltaY;
+
+			var v = getVelocity(deltaTime, deltaX, deltaY);
+			velocityX = v.x;
+			velocityY = v.y;
+			velocity = (abs(v.x) > abs(v.y)) ? v.x : v.y;
+			direction = getDirection(deltaX, deltaY) || last.direction;
+
+			session.lastInterval = touch;
+		} else {
+			velocity = last.velocity;
+			velocityX = last.velocityX;
+			velocityY = last.velocityY;
+			direction = last.direction;
+		}
+
+		touch.velocity = velocity;
+		touch.velocityX = velocityX;
+		touch.velocityY = velocityY;
+		touch.direction = direction;
+	};
+	var targetIds = {};
+	var convertTouches = function(touches) {
+		for(var i = 0; i < touches.length; i++) {
+			!touches['identifier'] && (touches['identifier'] = 0);
+		}
+		return touches;
+	};
+	var getTouches = function(event, touch) {
+		var allTouches = convertTouches($.slice.call(event.touches || [event]));
+
+		var type = event.type;
+
+		var targetTouches = [];
+		var changedTargetTouches = [];
+
+		//当touchstart或touchmove且touches长度为1,直接获得all和changed
+		if((type === $.EVENT_START || type === $.EVENT_MOVE) && allTouches.length === 1) {
+			targetIds[allTouches[0].identifier] = true;
+			targetTouches = allTouches;
+			changedTargetTouches = allTouches;
+			touch.target = event.target;
+		} else {
+			var i = 0;
+			var targetTouches = [];
+			var changedTargetTouches = [];
+			var changedTouches = convertTouches($.slice.call(event.changedTouches || [event]));
+
+			touch.target = event.target;
+			var sessionTarget = $.gestures.session.target || event.target;
+			targetTouches = allTouches.filter(function(touch) {
+				return hasParent(touch.target, sessionTarget);
+			});
+
+			if(type === $.EVENT_START) {
+				i = 0;
+				while(i < targetTouches.length) {
+					targetIds[targetTouches[i].identifier] = true;
+					i++;
+				}
+			}
+
+			i = 0;
+			while(i < changedTouches.length) {
+				if(targetIds[changedTouches[i].identifier]) {
+					changedTargetTouches.push(changedTouches[i]);
+				}
+				if(type === $.EVENT_END || type === $.EVENT_CANCEL) {
+					delete targetIds[changedTouches[i].identifier];
+				}
+				i++;
+			}
+
+			if(!changedTargetTouches.length) {
+				return false;
+			}
+		}
+		targetTouches = uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier', true);
+		var touchesLength = targetTouches.length;
+		var changedTouchesLength = changedTargetTouches.length;
+		if(type === $.EVENT_START && touchesLength - changedTouchesLength === 0) { //first
+			touch.isFirst = true;
+			$.gestures.touch = $.gestures.session = {
+				target: event.target
+			};
+		}
+		touch.isFinal = ((type === $.EVENT_END || type === $.EVENT_CANCEL) && (touchesLength - changedTouchesLength === 0));
+
+		touch.touches = targetTouches;
+		touch.changedTouches = changedTargetTouches;
+		return true;
+
+	};
+	var handleTouchEvent = function(event) {
+		var touch = {
+			gesture: event
+		};
+		var touches = getTouches(event, touch);
+		if(!touches) {
+			return;
+		}
+		calTouchData(touch);
+		detect(event, touch);
+		$.gestures.session.prevTouch = touch;
+		if(event.type === $.EVENT_END && !$.isTouchable) {
+			$.gestures.touch = $.gestures.session = {};
+		}
+	};
+	var supportsPassive = (function checkPassiveListener() {
+		var supportsPassive = false;
+		try {
+			var opts = Object.defineProperty({}, 'passive', {
+				get: function get() {
+					supportsPassive = true;
+				},
+			});
+			window.addEventListener('testPassiveListener', null, opts);
+		} catch(e) {
+			// No support
+		}
+		return supportsPassive;
+	}())
+	window.addEventListener($.EVENT_START, handleTouchEvent);
+	window.addEventListener($.EVENT_MOVE, handleTouchEvent, supportsPassive ? {
+		passive: false,
+		capture: false
+	} : false);
+	window.addEventListener($.EVENT_END, handleTouchEvent);
+	window.addEventListener($.EVENT_CANCEL, handleTouchEvent);
+	//fixed hashchange(android)
+	window.addEventListener($.EVENT_CLICK, function(e) {
+		//TODO 应该判断当前target是不是在targets.popover内部,而不是非要相等
+		if(($.os.android || $.os.ios) && (($.targets.popover && e.target === $.targets.popover) || ($.targets.tab) || $.targets.offcanvas || $.targets.modal)) {
+			e.preventDefault();
+		}
+	}, true);
+
+	//增加原生滚动识别
+	$.isScrolling = false;
+	var scrollingTimeout = null;
+	window.addEventListener('scroll', function() {
+		$.isScrolling = true;
+		scrollingTimeout && clearTimeout(scrollingTimeout);
+		scrollingTimeout = setTimeout(function() {
+			$.isScrolling = false;
+		}, 250);
+	});
+})(mui, window);
+/**
+ * mui gesture flick[left|right|up|down]
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var flickStartTime = 0;
+	var handle = function(event, touch) {
+		var session = $.gestures.session;
+		var options = this.options;
+		var now = $.now();
+		switch (event.type) {
+			case $.EVENT_MOVE:
+				if (now - flickStartTime > 300) {
+					flickStartTime = now;
+					session.flickStart = touch.center;
+				}
+				break;
+			case $.EVENT_END:
+			case $.EVENT_CANCEL:
+				touch.flick = false;
+				if (session.flickStart && options.flickMaxTime > (now - flickStartTime) && touch.distance > options.flickMinDistince) {
+					touch.flick = true;
+					touch.flickTime = now - flickStartTime;
+					touch.flickDistanceX = touch.center.x - session.flickStart.x;
+					touch.flickDistanceY = touch.center.y - session.flickStart.y;
+					$.trigger(session.target, name, touch);
+					$.trigger(session.target, name + touch.direction, touch);
+				}
+				break;
+		}
+
+	};
+	/**
+	 * mui gesture flick
+	 */
+	$.addGesture({
+		name: name,
+		index: 5,
+		handle: handle,
+		options: {
+			flickMaxTime: 200,
+			flickMinDistince: 10
+		}
+	});
+})(mui, 'flick');
+/**
+ * mui gesture swipe[left|right|up|down]
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var handle = function(event, touch) {
+		var session = $.gestures.session;
+		if (event.type === $.EVENT_END || event.type === $.EVENT_CANCEL) {
+			var options = this.options;
+			touch.swipe = false;
+			//TODO 后续根据velocity计算
+			if (touch.direction && options.swipeMaxTime > touch.deltaTime && touch.distance > options.swipeMinDistince) {
+				touch.swipe = true;
+				$.trigger(session.target, name, touch);
+				$.trigger(session.target, name + touch.direction, touch);
+			}
+		}
+	};
+	/**
+	 * mui gesture swipe
+	 */
+	$.addGesture({
+		name: name,
+		index: 10,
+		handle: handle,
+		options: {
+			swipeMaxTime: 300,
+			swipeMinDistince: 18
+		}
+	});
+})(mui, 'swipe');
+/**
+ * mui gesture drag[start|left|right|up|down|end]
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var handle = function(event, touch) {
+		var session = $.gestures.session;
+		switch (event.type) {
+			case $.EVENT_START:
+				break;
+			case $.EVENT_MOVE:
+				if (!touch.direction || !session.target) {
+					return;
+				}
+				//修正direction,可在session期间自行锁定拖拽方向,方便开发scroll类不同方向拖拽插件嵌套
+				if (session.lockDirection && session.startDirection) {
+					if (session.startDirection && session.startDirection !== touch.direction) {
+						if (session.startDirection === 'up' || session.startDirection === 'down') {
+							touch.direction = touch.deltaY < 0 ? 'up' : 'down';
+						} else {
+							touch.direction = touch.deltaX < 0 ? 'left' : 'right';
+						}
+					}
+				}
+
+				if (!session.drag) {
+					session.drag = true;
+					$.trigger(session.target, name + 'start', touch);
+				}
+				$.trigger(session.target, name, touch);
+				$.trigger(session.target, name + touch.direction, touch);
+				break;
+			case $.EVENT_END:
+			case $.EVENT_CANCEL:
+				if (session.drag && touch.isFinal) {
+					$.trigger(session.target, name + 'end', touch);
+				}
+				break;
+		}
+	};
+	/**
+	 * mui gesture drag
+	 */
+	$.addGesture({
+		name: name,
+		index: 20,
+		handle: handle,
+		options: {
+			fingers: 1
+		}
+	});
+})(mui, 'drag');
+/**
+ * mui gesture tap and doubleTap
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var lastTarget;
+	var lastTapTime;
+	var handle = function(event, touch) {
+		var session = $.gestures.session;
+		var options = this.options;
+		switch (event.type) {
+			case $.EVENT_END:
+				if (!touch.isFinal) {
+					return;
+				}
+				var target = session.target;
+				if (!target || (target.disabled || (target.classList && target.classList.contains('mui-disabled')))) {
+					return;
+				}
+				if (touch.distance < options.tapMaxDistance && touch.deltaTime < options.tapMaxTime) {
+					if ($.options.gestureConfig.doubletap && lastTarget && (lastTarget === target)) { //same target
+						if (lastTapTime && (touch.timestamp - lastTapTime) < options.tapMaxInterval) {
+							$.trigger(target, 'doubletap', touch);
+							lastTapTime = $.now();
+							lastTarget = target;
+							return;
+						}
+					}
+					$.trigger(target, name, touch);
+					lastTapTime = $.now();
+					lastTarget = target;
+				}
+				break;
+		}
+	};
+	/**
+	 * mui gesture tap
+	 */
+	$.addGesture({
+		name: name,
+		index: 30,
+		handle: handle,
+		options: {
+			fingers: 1,
+			tapMaxInterval: 300,
+			tapMaxDistance: 5,
+			tapMaxTime: 250
+		}
+	});
+})(mui, 'tap');
+/**
+ * mui gesture longtap
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var timer;
+	var handle = function(event, touch) {
+		var session = $.gestures.session;
+		var options = this.options;
+		switch (event.type) {
+			case $.EVENT_START:
+				clearTimeout(timer);
+				timer = setTimeout(function() {
+					$.trigger(session.target, name, touch);
+				}, options.holdTimeout);
+				break;
+			case $.EVENT_MOVE:
+				if (touch.distance > options.holdThreshold) {
+					clearTimeout(timer);
+				}
+				break;
+			case $.EVENT_END:
+			case $.EVENT_CANCEL:
+				clearTimeout(timer);
+				break;
+		}
+	};
+	/**
+	 * mui gesture longtap
+	 */
+	$.addGesture({
+		name: name,
+		index: 10,
+		handle: handle,
+		options: {
+			fingers: 1,
+			holdTimeout: 500,
+			holdThreshold: 2
+		}
+	});
+})(mui, 'longtap');
+/**
+ * mui gesture hold
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var timer;
+	var handle = function(event, touch) {
+		var session = $.gestures.session;
+		var options = this.options;
+		switch (event.type) {
+			case $.EVENT_START:
+				if ($.options.gestureConfig.hold) {
+					timer && clearTimeout(timer);
+					timer = setTimeout(function() {
+						touch.hold = true;
+						$.trigger(session.target, name, touch);
+					}, options.holdTimeout);
+				}
+				break;
+			case $.EVENT_MOVE:
+				break;
+			case $.EVENT_END:
+			case $.EVENT_CANCEL:
+				if (timer) {
+					clearTimeout(timer) && (timer = null);
+					$.trigger(session.target, 'release', touch);
+				}
+				break;
+		}
+	};
+	/**
+	 * mui gesture hold
+	 */
+	$.addGesture({
+		name: name,
+		index: 10,
+		handle: handle,
+		options: {
+			fingers: 1,
+			holdTimeout: 0
+		}
+	});
+})(mui, 'hold');
+/**
+ * mui gesture pinch
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var handle = function(event, touch) {
+		var options = this.options;
+		var session = $.gestures.session;
+		switch (event.type) {
+			case $.EVENT_START:
+				break;
+			case $.EVENT_MOVE:
+				if ($.options.gestureConfig.pinch) {
+					if (touch.touches.length < 2) {
+						return;
+					}
+					if (!session.pinch) { //start
+						session.pinch = true;
+						$.trigger(session.target, name + 'start', touch);
+					}
+					$.trigger(session.target, name, touch);
+					var scale = touch.scale;
+					var rotation = touch.rotation;
+					var lastScale = typeof touch.lastScale === 'undefined' ? 1 : touch.lastScale;
+					var scaleDiff = 0.000000000001; //防止scale与lastScale相等,不触发事件的情况。
+					if (scale > lastScale) { //out
+						lastScale = scale - scaleDiff;
+						$.trigger(session.target, name + 'out', touch);
+					} //in
+					else if (scale < lastScale) {
+						lastScale = scale + scaleDiff;
+						$.trigger(session.target, name + 'in', touch);
+					}
+					if (Math.abs(rotation) > options.minRotationAngle) {
+						$.trigger(session.target, 'rotate', touch);
+					}
+				}
+				break;
+			case $.EVENT_END:
+			case $.EVENT_CANCEL:
+				if ($.options.gestureConfig.pinch && session.pinch && touch.touches.length === 2) {
+					session.pinch = false;
+					$.trigger(session.target, name + 'end', touch);
+				}
+				break;
+		}
+	};
+	/**
+	 * mui gesture pinch
+	 */
+	$.addGesture({
+		name: name,
+		index: 10,
+		handle: handle,
+		options: {
+			minRotationAngle: 0
+		}
+	});
+})(mui, 'pinch');
+/**
+ * mui.init
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($) {
+	$.global = $.options = {
+		gestureConfig: {
+			tap: true,
+			doubletap: false,
+			longtap: false,
+			hold: false,
+			flick: true,
+			swipe: true,
+			drag: true,
+			pinch: false
+		}
+	};
+	/**
+	 *
+	 * @param {type} options
+	 * @returns {undefined}
+	 */
+	$.initGlobal = function(options) {
+		$.options = $.extend(true, $.global, options);
+		return this;
+	};
+	var inits = {};
+
+	/**
+	 * 单页配置 初始化
+	 * @param {object} options
+	 */
+	$.init = function(options) {
+		$.options = $.extend(true, $.global, options || {});
+		$.ready(function() {
+			$.doAction('inits', function(index, init) {
+				var isInit = !!(!inits[init.name] || init.repeat);
+				if (isInit) {
+					init.handle.call($);
+					inits[init.name] = true;
+				}
+			});
+		});
+		return this;
+	};
+
+	/**
+	 * 增加初始化执行流程
+	 * @param {function} init
+	 */
+	$.addInit = function(init) {
+		return $.addAction('inits', init);
+	};
+	/**
+	 * 处理html5版本subpages 
+	 */
+	$.addInit({
+		name: 'iframe',
+		index: 100,
+		handle: function() {
+			var options = $.options;
+			var subpages = options.subpages || [];
+			if (!$.os.plus && subpages.length) {
+				//暂时只处理单个subpage。后续可以考虑支持多个subpage
+				createIframe(subpages[0]);
+			}
+		}
+	});
+	var createIframe = function(options) {
+		var wrapper = document.createElement('div');
+		wrapper.className = 'mui-iframe-wrapper';
+		var styles = options.styles || {};
+		if (typeof styles.top !== 'string') {
+			styles.top = '0px';
+		}
+		if (typeof styles.bottom !== 'string') {
+			styles.bottom = '0px';
+		}
+		wrapper.style.top = styles.top;
+		wrapper.style.bottom = styles.bottom;
+		var iframe = document.createElement('iframe');
+		iframe.src = options.url;
+		iframe.id = options.id || options.url;
+		iframe.name = iframe.id;
+		wrapper.appendChild(iframe);
+		document.body.appendChild(wrapper);
+		//目前仅处理微信
+		$.os.wechat && handleScroll(wrapper, iframe);
+	};
+
+	function handleScroll(wrapper, iframe) {
+		var key = 'MUI_SCROLL_POSITION_' + document.location.href + '_' + iframe.src;
+		var scrollTop = (parseFloat(localStorage.getItem(key)) || 0);
+		if (scrollTop) {
+			(function(y) {
+				iframe.onload = function() {
+					window.scrollTo(0, y);
+				};
+			})(scrollTop);
+		}
+		setInterval(function() {
+			var _scrollTop = window.scrollY;
+			if (scrollTop !== _scrollTop) {
+				localStorage.setItem(key, _scrollTop + '');
+				scrollTop = _scrollTop;
+			}
+		}, 100);
+	};
+	$(function() {
+		var classList = document.body.classList;
+		var os = [];
+		if ($.os.ios) {
+			os.push({
+				os: 'ios',
+				version: $.os.version
+			});
+			classList.add('mui-ios');
+		} else if ($.os.android) {
+			os.push({
+				os: 'android',
+				version: $.os.version
+			});
+			classList.add('mui-android');
+		}
+		if ($.os.wechat) {
+			os.push({
+				os: 'wechat',
+				version: $.os.wechat.version
+			});
+			classList.add('mui-wechat');
+		}
+		if (os.length) {
+			$.each(os, function(index, osObj) {
+				var version = '';
+				var classArray = [];
+				if (osObj.version) {
+					$.each(osObj.version.split('.'), function(i, v) {
+						version = version + (version ? '-' : '') + v;
+						classList.add($.className(osObj.os + '-' + version));
+					});
+				}
+			});
+		}
+	});
+})(mui);
+/**
+ * mui.init 5+
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($) {
+	var defaultOptions = {
+		swipeBack: false,
+		preloadPages: [], //5+ lazyLoad webview
+		preloadLimit: 10, //预加载窗口的数量限制(一旦超出,先进先出)
+		keyEventBind: {
+			backbutton: true,
+			menubutton: true
+		},
+		titleConfig: {
+			height: "44px",
+			backgroundColor: "#f7f7f7", //导航栏背景色
+			bottomBorderColor: "#cccccc", //底部边线颜色
+			title: { //标题配置
+				text: "", //标题文字
+				position: {
+					top: 0,
+					left: 0,
+					width: "100%",
+					height: "100%"
+				},
+				styles: {
+					color: "#000000",
+					align: "center",
+					family: "'Helvetica Neue',Helvetica,sans-serif",
+					size: "17px",
+					style: "normal",
+					weight: "normal",
+					fontSrc: ""
+				}
+			},
+			back: {
+				image: {
+					base64Data: '',
+					imgSrc: '',
+					sprite: {
+						top: '0px',
+						left: '0px',
+						width: '100%',
+						height: '100%'
+					},
+					position: {
+						top: "10px",
+						left: "10px",
+						width: "24px",
+						height: "24px"
+					}
+				}
+			}
+		}
+	};
+
+	//默认页面动画
+	var defaultShow = {
+		event:"titleUpdate",
+		autoShow: true,
+		duration: 300,
+		aniShow: 'slide-in-right',
+		extras:{}
+	};
+	//若执行了显示动画初始化操作,则要覆盖默认配置
+	if($.options.show) {
+		defaultShow = $.extend(true, defaultShow, $.options.show);
+	}
+
+	$.currentWebview = null;
+
+	$.extend(true, $.global, defaultOptions);
+	$.extend(true, $.options, defaultOptions);
+	/**
+	 * 等待动画配置
+	 * @param {type} options
+	 * @returns {Object}
+	 */
+	$.waitingOptions = function(options) {
+		return $.extend(true, {}, {
+			autoShow: true,
+			title: '',
+			modal: false
+		}, options);
+	};
+	/**
+	 * 窗口显示配置
+	 * @param {type} options
+	 * @returns {Object}
+	 */
+	$.showOptions = function(options) {
+		return $.extend(true, {}, defaultShow, options);
+	};
+	/**
+	 * 窗口默认配置
+	 * @param {type} options
+	 * @returns {Object}
+	 */
+	$.windowOptions = function(options) {
+		return $.extend({
+			scalable: false,
+			bounce: "" //vertical
+		}, options);
+	};
+	/**
+	 * plusReady
+	 * @param {type} callback
+	 * @returns {_L6.$}
+	 */
+	$.plusReady = function(callback) {
+		if(window.plus) {
+			setTimeout(function() { //解决callback与plusready事件的执行时机问题(典型案例:showWaiting,closeWaiting)
+				callback();
+			}, 0);
+		} else {
+			document.addEventListener("plusready", function() {
+				callback();
+			}, false);
+		}
+		return this;
+	};
+	/**
+	 * 5+ event(5+没提供之前我自己实现)
+	 * @param {type} webview
+	 * @param {type} eventType
+	 * @param {type} data
+	 * @returns {undefined}
+	 */
+	$.fire = function(webview, eventType, data) {
+		if(webview) {
+			if(typeof data === 'undefined') {
+				data = '';
+			} else if(typeof data === 'boolean' || typeof data === 'number') {
+				webview.evalJS("typeof mui!=='undefined'&&mui.receive('" + eventType + "'," + data + ")");
+				return;
+			} else if($.isPlainObject(data) || $.isArray(data)) {
+				data = JSON.stringify(data || {}).replace(/\'/g, "\\u0027").replace(/\\/g, "\\u005c");
+			}
+			webview.evalJS("typeof mui!=='undefined'&&mui.receive('" + eventType + "','" + data + "')");
+		}
+	};
+	/**
+	 * 5+ event(5+没提供之前我自己实现)
+	 * @param {type} eventType
+	 * @param {type} data
+	 * @returns {undefined}
+	 */
+	$.receive = function(eventType, data) {
+		if(eventType) {
+			try {
+				if(data && typeof data === 'string') {
+					data = JSON.parse(data);
+				}
+			} catch(e) {}
+			$.trigger(document, eventType, data);
+		}
+	};
+	var triggerPreload = function(webview) {
+		if(!webview.preloaded) { //保证仅触发一次
+			$.fire(webview, 'preload');
+			var list = webview.children();
+			for(var i = 0; i < list.length; i++) {
+				$.fire(list[i], 'preload');
+			}
+			webview.preloaded = true;
+		}
+	};
+	var trigger = function(webview, eventType, timeChecked) {
+		if(timeChecked) {
+			if(!webview[eventType + 'ed']) {
+				$.fire(webview, eventType);
+				var list = webview.children();
+				for(var i = 0; i < list.length; i++) {
+					$.fire(list[i], eventType);
+				}
+				webview[eventType + 'ed'] = true;
+			}
+		} else {
+			$.fire(webview, eventType);
+			var list = webview.children();
+			for(var i = 0; i < list.length; i++) {
+				$.fire(list[i], eventType);
+			}
+		}
+
+	};
+	/**
+	 * 打开新窗口
+	 * @param {string} url 要打开的页面地址
+	 * @param {string} id 指定页面ID
+	 * @param {object} options 可选:参数,等待,窗口,显示配置{params:{},waiting:{},styles:{},show:{}}
+	 */
+	$.openWindow = function(url, id, options) {
+		if(typeof url === 'object') {
+			options = url;
+			url = options.url;
+			id = options.id || url;
+		} else {
+			if(typeof id === 'object') {
+				options = id;
+				id = options.id || url;
+			} else {
+				id = id || url;
+			}
+		}
+		if(!$.os.plus) {
+			//TODO 先临时这么处理:手机上顶层跳,PC上parent跳
+			if($.os.ios || $.os.android) {
+				window.top.location.href = url;
+			} else {
+				window.parent.location.href = url;
+			}
+			return;
+		}
+		if(!window.plus) {
+			return;
+		}
+
+		options = options || {};
+		var params = options.params || {};
+		var webview = null,
+			webviewCache = null,
+			nShow, nWaiting;
+
+		if($.webviews[id]) {
+			webviewCache = $.webviews[id];
+			//webview真实存在,才能获取
+			if(plus.webview.getWebviewById(id)) {
+				webview = webviewCache.webview;
+			}
+		} else if(options.createNew !== true) {
+			webview = plus.webview.getWebviewById(id);
+		}
+
+		if(webview) { //已缓存
+			//每次show都需要传递动画参数;
+			//预加载的动画参数优先级:openWindow配置>preloadPages配置>mui默认配置;
+			nShow = webviewCache ? webviewCache.show : defaultShow;
+			nShow = options.show ? $.extend(nShow, options.show) : nShow;
+			nShow.autoShow && webview.show(nShow.aniShow, nShow.duration, function() {
+				triggerPreload(webview);
+				trigger(webview, 'pagebeforeshow', false);
+			});
+			if(webviewCache) {
+				webviewCache.afterShowMethodName && webview.evalJS(webviewCache.afterShowMethodName + '(\'' + JSON.stringify(params) + '\')');
+			}
+			return webview;
+		} else { //新窗口
+			if(!url) {
+				throw new Error('webview[' + id + '] does not exist');
+			}
+
+			//显示waiting
+			var waitingConfig = $.waitingOptions(options.waiting);
+			if(waitingConfig.autoShow) {
+				nWaiting = plus.nativeUI.showWaiting(waitingConfig.title, waitingConfig.options);
+			}
+
+			//创建页面
+			options = $.extend(options, {
+				id: id,
+				url: url
+			});
+
+			webview = $.createWindow(options);
+
+			//显示
+			nShow = $.showOptions(options.show);
+			if(nShow.autoShow) {
+				var showWebview = function() {
+					//关闭等待框
+					if(nWaiting) {
+						nWaiting.close();
+					}
+					//显示页面
+					webview.show(nShow.aniShow, nShow.duration, function() {},nShow.extras);
+					options.afterShowMethodName && webview.evalJS(options.afterShowMethodName + '(\'' + JSON.stringify(params) + '\')');
+				};
+				//titleUpdate触发时机早于loaded,更换为titleUpdate后,可以更早的显示webview
+				webview.addEventListener(nShow.event, showWebview, false);
+				//loaded事件发生后,触发预加载和pagebeforeshow事件
+				webview.addEventListener("loaded", function() {
+					triggerPreload(webview);
+					trigger(webview, 'pagebeforeshow', false);
+				}, false);
+			}
+		}
+		return webview;
+	};
+
+	$.openWindowWithTitle = function(options, titleConfig) {
+		options = options || {};
+		var url = options.url;
+		var id = options.id || url;
+
+		if(!$.os.plus) {
+			//TODO 先临时这么处理:手机上顶层跳,PC上parent跳
+			if($.os.ios || $.os.android) {
+				window.top.location.href = url;
+			} else {
+				window.parent.location.href = url;
+			}
+			return;
+		}
+		if(!window.plus) {
+			return;
+		}
+
+		var params = options.params || {};
+		var webview = null,
+			webviewCache = null,
+			nShow, nWaiting;
+
+		if($.webviews[id]) {
+			webviewCache = $.webviews[id];
+			//webview真实存在,才能获取
+			if(plus.webview.getWebviewById(id)) {
+				webview = webviewCache.webview;
+			}
+		} else if(options.createNew !== true) {
+			webview = plus.webview.getWebviewById(id);
+		}
+
+		if(webview) { //已缓存
+			//每次show都需要传递动画参数;
+			//预加载的动画参数优先级:openWindow配置>preloadPages配置>mui默认配置;
+			nShow = webviewCache ? webviewCache.show : defaultShow;
+			nShow = options.show ? $.extend(nShow, options.show) : nShow;
+			nShow.autoShow && webview.show(nShow.aniShow, nShow.duration, function() {
+				triggerPreload(webview);
+				trigger(webview, 'pagebeforeshow', false);
+			});
+			if(webviewCache) {
+				webviewCache.afterShowMethodName && webview.evalJS(webviewCache.afterShowMethodName + '(\'' + JSON.stringify(params) + '\')');
+			}
+			return webview;
+		} else { //新窗口
+			if(!url) {
+				throw new Error('webview[' + id + '] does not exist');
+			}
+
+			//显示waiting
+			var waitingConfig = $.waitingOptions(options.waiting);
+			if(waitingConfig.autoShow) {
+				nWaiting = plus.nativeUI.showWaiting(waitingConfig.title, waitingConfig.options);
+			}
+
+			//创建页面
+			options = $.extend(options, {
+				id: id,
+				url: url
+			});
+
+			webview = $.createWindow(options);
+
+			if(titleConfig) { //处理原生头
+				$.extend(true, $.options.titleConfig, titleConfig);
+				var tid = $.options.titleConfig.id ? $.options.titleConfig.id : id + "_title";
+				var view = new plus.nativeObj.View(tid, {
+					top: 0,
+					height: $.options.titleConfig.height,
+					width: "100%",
+					dock: "top",
+					position: "dock"
+				});
+				view.drawRect($.options.titleConfig.backgroundColor); //绘制背景色
+				var _b = parseInt($.options.titleConfig.height) - 1;
+				view.drawRect($.options.titleConfig.bottomBorderColor, {
+					top: _b + "px",
+					left: "0px"
+				}); //绘制底部边线
+
+				//绘制文字
+				if($.options.titleConfig.title.text){
+					var _title = $.options.titleConfig.title;
+					view.drawText(_title.text,_title.position , _title.styles);
+				}
+				
+				//返回图标绘制
+				var _back = $.options.titleConfig.back;
+				var backClick = null;
+				//优先字体
+
+				//其次是图片
+				var _backImage = _back.image;
+				if(_backImage.base64Data || _backImage.imgSrc) {
+					//TODO 此处需要处理百分比的情况
+					backClick = {
+						left:parseInt(_backImage.position.left),
+						right:parseInt(_backImage.position.left) + parseInt(_backImage.position.width)
+					};
+					var bitmap = new plus.nativeObj.Bitmap(id + "_back");
+					if(_backImage.base64Data) { //优先base64编码字符串
+						bitmap.loadBase64Data(_backImage.base64Data);
+					} else { //其次加载图片文件
+						bitmap.load(_backImage.imgSrc);
+					}
+					view.drawBitmap(bitmap,_backImage.sprite , _backImage.position);
+				}
+
+				//处理点击事件
+				view.setTouchEventRect({
+					top: "0px",
+					left: "0px",
+					width: "100%",
+					height: "100%"
+				});
+				view.interceptTouchEvent(true);
+				view.addEventListener("click", function(e) {
+					var x = e.clientX;
+					
+					//返回按钮点击
+					if(backClick&& x > backClick.left && x < backClick.right){
+						if( _back.click && $.isFunction(_back.click)){
+							_back.click();
+						}else{
+							webview.evalJS("window.mui&&mui.back();");
+						}
+					}
+				}, false);
+				webview.append(view);
+
+			}
+
+			//显示
+			nShow = $.showOptions(options.show);
+			if(nShow.autoShow) {
+				//titleUpdate触发时机早于loaded,更换为titleUpdate后,可以更早的显示webview
+				webview.addEventListener(nShow.event, function () {
+					//关闭等待框
+					if(nWaiting) {
+						nWaiting.close();
+					}
+					//显示页面
+					webview.show(nShow.aniShow, nShow.duration, function() {},nShow.extras);
+				}, false);
+			}
+		}
+		return webview;
+	};
+
+	/**
+	 * 根据配置信息创建一个webview
+	 * @param {type} options
+	 * @param {type} isCreate
+	 * @returns {webview}
+	 */
+	$.createWindow = function(options, isCreate) {
+		if(!window.plus) {
+			return;
+		}
+		var id = options.id || options.url;
+		var webview;
+		if(options.preload) {
+			if($.webviews[id] && $.webviews[id].webview.getURL()) { //已经cache
+				webview = $.webviews[id].webview;
+			} else { //新增预加载窗口
+				//判断是否携带createNew参数,默认为false
+				if(options.createNew !== true) {
+					webview = plus.webview.getWebviewById(id);
+				}
+
+				//之前没有,那就新创建	
+				if(!webview) {
+					webview = plus.webview.create(options.url, id, $.windowOptions(options.styles), $.extend({
+						preload: true
+					}, options.extras));
+					if(options.subpages) {
+						$.each(options.subpages, function(index, subpage) {
+							var subpageId = subpage.id || subpage.url;
+							if(subpageId) { //过滤空对象
+								var subWebview = plus.webview.getWebviewById(subpageId);
+								if(!subWebview) { //如果该webview不存在,则创建
+									subWebview = plus.webview.create(subpage.url, subpageId, $.windowOptions(subpage.styles), $.extend({
+										preload: true
+									}, subpage.extras));
+								}
+								webview.append(subWebview);
+							}
+						});
+					}
+				}
+			}
+
+			//TODO 理论上,子webview也应该计算到预加载队列中,但这样就麻烦了,要退必须退整体,否则可能出现问题;
+			$.webviews[id] = {
+				webview: webview, //目前仅preload的缓存webview
+				preload: true,
+				show: $.showOptions(options.show),
+				afterShowMethodName: options.afterShowMethodName //就不应该用evalJS。应该是通过事件消息通讯
+			};
+			//索引该预加载窗口
+			var preloads = $.data.preloads;
+			var index = preloads.indexOf(id);
+			if(~index) { //删除已存在的(变相调整插入位置)
+				preloads.splice(index, 1);
+			}
+			preloads.push(id);
+			if(preloads.length > $.options.preloadLimit) {
+				//先进先出
+				var first = $.data.preloads.shift();
+				var webviewCache = $.webviews[first];
+				if(webviewCache && webviewCache.webview) {
+					//需要将自己打开的所有页面,全部close;
+					//关闭该预加载webview	
+					$.closeAll(webviewCache.webview);
+				}
+				//删除缓存
+				delete $.webviews[first];
+			}
+		} else {
+			if(isCreate !== false) { //直接创建非预加载窗口
+				webview = plus.webview.create(options.url, id, $.windowOptions(options.styles), options.extras);
+				if(options.subpages) {
+					$.each(options.subpages, function(index, subpage) {
+						var subpageId = subpage.id || subpage.url;
+						var subWebview = plus.webview.getWebviewById(subpageId);
+						if(!subWebview) {
+							subWebview = plus.webview.create(subpage.url, subpageId, $.windowOptions(subpage.styles), subpage.extras);
+						}
+						webview.append(subWebview);
+					});
+				}
+			}
+		}
+		return webview;
+	};
+
+	/**
+	 * 预加载
+	 */
+	$.preload = function(options) {
+		//调用预加载函数,不管是否传递preload参数,强制变为true
+		if(!options.preload) {
+			options.preload = true;
+		}
+		return $.createWindow(options);
+	};
+
+	/**
+	 *关闭当前webview打开的所有webview;
+	 */
+	$.closeOpened = function(webview) {
+		var opened = webview.opened();
+		if(opened) {
+			for(var i = 0, len = opened.length; i < len; i++) {
+				var openedWebview = opened[i];
+				var open_open = openedWebview.opened();
+				if(open_open && open_open.length > 0) {
+					//关闭打开的webview
+					$.closeOpened(openedWebview);
+					//关闭自己
+					openedWebview.close("none");
+				} else {
+					//如果直接孩子节点,就不用关闭了,因为父关闭的时候,会自动关闭子;
+					if(openedWebview.parent() !== webview) {
+						openedWebview.close('none');
+					}
+				}
+			}
+		}
+	};
+	$.closeAll = function(webview, aniShow) {
+		$.closeOpened(webview);
+		if(aniShow) {
+			webview.close(aniShow);
+		} else {
+			webview.close();
+		}
+	};
+
+	/**
+	 * 批量创建webview
+	 * @param {type} options
+	 * @returns {undefined}
+	 */
+	$.createWindows = function(options) {
+		$.each(options, function(index, option) {
+			//初始化预加载窗口(创建)和非预加载窗口(仅配置,不创建)
+			$.createWindow(option, false);
+		});
+	};
+	/**
+	 * 创建当前页面的子webview
+	 * @param {type} options
+	 * @returns {webview}
+	 */
+	$.appendWebview = function(options) {
+		if(!window.plus) {
+			return;
+		}
+		var id = options.id || options.url;
+		var webview;
+		if(!$.webviews[id]) { //保证执行一遍
+			//TODO 这里也有隐患,比如某个webview不是作为subpage创建的,而是作为target webview的话;
+			if(!plus.webview.getWebviewById(id)) {
+				webview = plus.webview.create(options.url, id, options.styles, options.extras);
+			}
+			//之前的实现方案:子窗口loaded之后再append到父窗口中;
+			//问题:部分子窗口loaded事件发生较晚,此时执行父窗口的children方法会返回空,导致父子通讯失败;
+			//     比如父页面执行完preload事件后,需触发子页面的preload事件,此时未append的话,就无法触发;
+			//修改方式:不再监控loaded事件,直接append
+			//by chb@20150521
+			// webview.addEventListener('loaded', function() {
+			plus.webview.currentWebview().append(webview);
+			// });
+			$.webviews[id] = options;
+
+		}
+		return webview;
+	};
+
+	//全局webviews
+	$.webviews = {};
+	//预加载窗口索引
+	$.data.preloads = [];
+	//$.currentWebview
+	$.plusReady(function() {
+		$.currentWebview = plus.webview.currentWebview();
+	});
+	$.addInit({
+		name: '5+',
+		index: 100,
+		handle: function() {
+			var options = $.options;
+			var subpages = options.subpages || [];
+			if($.os.plus) {
+				$.plusReady(function() {
+					//TODO  这里需要判断一下,最好等子窗口加载完毕后,再调用主窗口的show方法;
+					//或者:在openwindow方法中,监听实现;
+					$.each(subpages, function(index, subpage) {
+						$.appendWebview(subpage);
+					});
+					//判断是否首页
+					if(plus.webview.currentWebview() === plus.webview.getWebviewById(plus.runtime.appid)) {
+						//首页需要自己激活预加载;
+						//timeout因为子页面loaded之后才append的,防止子页面尚未append、从而导致其preload未触发的问题;
+						setTimeout(function() {
+							triggerPreload(plus.webview.currentWebview());
+						}, 300);
+					}
+					//设置ios顶部状态栏颜色;
+					if($.os.ios && $.options.statusBarBackground) {
+						plus.navigator.setStatusBarBackground($.options.statusBarBackground);
+					}
+					if($.os.android && parseFloat($.os.version) < 4.4) {
+						//解决Android平台4.4版本以下,resume后,父窗体标题延迟渲染的问题;
+						if(plus.webview.currentWebview().parent() == null) {
+							document.addEventListener("resume", function() {
+								var body = document.body;
+								body.style.display = 'none';
+								setTimeout(function() {
+									body.style.display = '';
+								}, 10);
+							});
+						}
+					}
+				});
+			} else {
+				//已支持iframe嵌入
+				//				if (subpages.length > 0) {
+				//					var err = document.createElement('div');
+				//					err.className = 'mui-error';
+				//					//文字描述
+				//					var span = document.createElement('span');
+				//					span.innerHTML = '在该浏览器下,不支持创建子页面,具体参考';
+				//					err.appendChild(span);
+				//					var a = document.createElement('a');
+				//					a.innerHTML = '"mui框架适用场景"';
+				//					a.href = 'http://ask.dcloud.net.cn/article/113';
+				//					err.appendChild(a);
+				//					document.body.appendChild(err);
+				//					console.log('在该浏览器下,不支持创建子页面');
+				//				}
+
+			}
+
+		}
+	});
+	window.addEventListener('preload', function() {
+		//处理预加载部分
+		var webviews = $.options.preloadPages || [];
+		$.plusReady(function() {
+			$.each(webviews, function(index, webview) {
+				$.createWindow($.extend(webview, {
+					preload: true
+				}));
+			});
+
+		});
+	});
+	$.supportStatusbarOffset = function() {
+		return $.os.plus && $.os.ios && parseFloat($.os.version) >= 7;
+	};
+	$.ready(function() {
+		//标识当前环境支持statusbar
+		if($.supportStatusbarOffset()) {
+			document.body.classList.add('mui-statusbar');
+		}
+	});
+})(mui);
+
+/**
+ * mui back
+ * @param {type} $
+ * @param {type} window
+ * @returns {undefined}
+ */
+(function($, window) {
+	/**
+	 * register back
+	 * @param {type} back
+	 * @returns {$.gestures}
+	 */
+	$.addBack = function(back) {
+		return $.addAction('backs', back);
+	};
+	/**
+	 * default
+	 */
+	$.addBack({
+		name: 'browser',
+		index: 100,
+		handle: function() {
+			if (window.history.length > 1) {
+				window.history.back();
+				return true;
+			}
+			return false;
+		}
+	});
+	/**
+	 * 后退
+	 */
+	$.back = function() {
+		if (typeof $.options.beforeback === 'function') {
+			if ($.options.beforeback() === false) {
+				return;
+			}
+		}
+		$.doAction('backs');
+	};
+	window.addEventListener('tap', function(e) {
+		var action = $.targets.action;
+		if (action && action.classList.contains('mui-action-back')) {
+			$.back();
+			$.targets.action = false;
+		}
+	});
+	window.addEventListener('swiperight', function(e) {
+		var detail = e.detail;
+		if ($.options.swipeBack === true && Math.abs(detail.angle) < 3) {
+			$.back();
+		}
+	});
+
+})(mui, window);
+/**
+ * mui back 5+
+ * @param {type} $
+ * @param {type} window
+ * @returns {undefined}
+ */
+(function($, window) {
+	if ($.os.plus && $.os.android) {
+		$.addBack({
+			name: 'mui',
+			index: 5,
+			handle: function() {
+				//后续重新设计此处,将back放到各个空间内部实现
+				//popover
+				if ($.targets._popover && $.targets._popover.classList.contains('mui-active')) {
+					$($.targets._popover).popover('hide');
+					return true;
+				}
+				//offcanvas
+				var offCanvas = document.querySelector('.mui-off-canvas-wrap.mui-active');
+				if (offCanvas) {
+					$(offCanvas).offCanvas('close');
+					return true;
+				}
+				var previewImage = $.isFunction($.getPreviewImage) && $.getPreviewImage();
+				if (previewImage && previewImage.isShown()) {
+					previewImage.close();
+					return true;
+				}
+				//popup
+				return $.closePopup();
+			}
+		});
+	}
+	//首次按下back按键的时间
+	$.__back__first = null;
+	/**
+	 * 5+ back
+	 */
+	$.addBack({
+		name: '5+',
+		index: 10,
+		handle: function() {
+			if (!window.plus) {
+				return false;
+			}
+			var wobj = plus.webview.currentWebview();
+			var parent = wobj.parent();
+			if (parent) {
+				parent.evalJS('mui&&mui.back();');
+			} else {
+				wobj.canBack(function(e) {
+					//by chb 暂时注释,在碰到类似popover之类的锚点的时候,需多次点击才能返回;
+					if (e.canBack) { //webview history back
+						window.history.back();
+					} else { //webview close or hide
+						//fixed by fxy 此处不应该用opener判断,因为用户有可能自己close掉当前窗口的opener。这样的话。opener就为空了,导致不能执行close
+						if (wobj.id === plus.runtime.appid) { //首页
+							//首页不存在opener的情况下,后退实际上应该是退出应用;
+							//首次按键,提示‘再按一次退出应用’
+							if (!$.__back__first) {
+								$.__back__first = new Date().getTime();
+								mui.toast('再按一次退出应用');
+								setTimeout(function() {
+									$.__back__first = null;
+								}, 2000);
+							} else {
+								if (new Date().getTime() - $.__back__first < 2000) {
+									plus.runtime.quit();
+								}
+							}
+						} else { //其他页面,
+							if (wobj.preload) {
+								wobj.hide("auto");
+							} else {
+								//关闭页面时,需要将其打开的所有子页面全部关闭;
+								$.closeAll(wobj);
+							}
+						}
+					}
+				});
+			}
+			return true;
+		}
+	});
+
+
+	$.menu = function() {
+		var menu = document.querySelector('.mui-action-menu');
+		if (menu) {
+			$.trigger(menu, $.EVENT_START); //临时处理menu无touchstart的话,找不到当前targets的问题
+			$.trigger(menu, 'tap');
+		} else { //执行父窗口的menu
+			if (window.plus) {
+				var wobj = $.currentWebview;
+				var parent = wobj.parent();
+				if (parent) { //又得evalJS
+					parent.evalJS('mui&&mui.menu();');
+				}
+			}
+		}
+	};
+	var __back = function() {
+		$.back();
+	};
+	var __menu = function() {
+		$.menu();
+	};
+	//默认监听
+	$.plusReady(function() {
+		if ($.options.keyEventBind.backbutton) {
+			plus.key.addEventListener('backbutton', __back, false);
+		}
+		if ($.options.keyEventBind.menubutton) {
+			plus.key.addEventListener('menubutton', __menu, false);
+		}
+	});
+	//处理按键监听事件
+	$.addInit({
+		name: 'keyEventBind',
+		index: 1000,
+		handle: function() {
+			$.plusReady(function() {
+				//如果不为true,则移除默认监听
+				if (!$.options.keyEventBind.backbutton) {
+					plus.key.removeEventListener('backbutton', __back);
+				}
+				if (!$.options.keyEventBind.menubutton) {
+					plus.key.removeEventListener('menubutton', __menu);
+				}
+			});
+		}
+	});
+})(mui, window);
+/**
+ * mui.init pulldownRefresh
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($) {
+	$.addInit({
+		name: 'pullrefresh',
+		index: 1000,
+		handle: function() {
+			var options = $.options;
+			var pullRefreshOptions = options.pullRefresh || {};
+			var hasPulldown = pullRefreshOptions.down && pullRefreshOptions.down.hasOwnProperty('callback');
+			var hasPullup = pullRefreshOptions.up && pullRefreshOptions.up.hasOwnProperty('callback');
+			if(hasPulldown || hasPullup) {
+				var container = pullRefreshOptions.container;
+				if(container) {
+					var $container = $(container);
+					if($container.length === 1) {
+						if($.os.plus) { //5+环境
+							if(hasPulldown && pullRefreshOptions.down.style == "circle") { //原生转圈
+								$.plusReady(function() {
+									//这里改写$.fn.pullRefresh
+									$.fn.pullRefresh = $.fn.pullRefresh_native;
+									$container.pullRefresh(pullRefreshOptions);
+								});
+
+							} else if($.os.android) { //非原生转圈,但是Android环境
+								$.plusReady(function() {
+									//这里改写$.fn.pullRefresh
+									$.fn.pullRefresh = $.fn.pullRefresh_native
+									var webview = plus.webview.currentWebview();
+									if(window.__NWin_Enable__ === false) { //不支持多webview
+										$container.pullRefresh(pullRefreshOptions);
+									} else {
+										if(hasPullup) {
+											//当前页面初始化pullup
+											var upOptions = {};
+											upOptions.up = pullRefreshOptions.up;
+											upOptions.webviewId = webview.id || webview.getURL();
+											$container.pullRefresh(upOptions);
+										}
+										if(hasPulldown) {
+											var parent = webview.parent();
+											var id = webview.id || webview.getURL();
+											if(parent) {
+												if(!hasPullup) { //如果没有上拉加载,需要手动初始化一个默认的pullRefresh,以便当前页面容器可以调用endPulldownToRefresh等方法
+													$container.pullRefresh({
+														webviewId: id
+													});
+												}
+												var downOptions = {
+													webviewId: id//子页面id
+												};
+												downOptions.down = $.extend({}, pullRefreshOptions.down);
+												downOptions.down.callback = '_CALLBACK';
+												//改写父页面的$.fn.pullRefresh
+												parent.evalJS("mui.fn.pullRefresh=mui.fn.pullRefresh_native");
+												//父页面初始化pulldown
+												parent.evalJS("mui&&mui(document.querySelector('.mui-content')).pullRefresh('" + JSON.stringify(downOptions) + "')");
+											}
+										}
+									}
+								});
+							} else { //非原生转圈,iOS环境
+								$container.pullRefresh(pullRefreshOptions);
+							}
+						} else {
+							$container.pullRefresh(pullRefreshOptions);
+						}
+					}
+				}
+			}
+		}
+	});
+})(mui);
+/**
+ * mui ajax
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($, window, undefined) {
+
+	var jsonType = 'application/json';
+	var htmlType = 'text/html';
+	var rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;
+	var scriptTypeRE = /^(?:text|application)\/javascript/i;
+	var xmlTypeRE = /^(?:text|application)\/xml/i;
+	var blankRE = /^\s*$/;
+
+	$.ajaxSettings = {
+		type: 'GET',
+		beforeSend: $.noop,
+		success: $.noop,
+		error: $.noop,
+		complete: $.noop,
+		context: null,
+		xhr: function(protocol) {
+			return new window.XMLHttpRequest();
+		},
+		accepts: {
+			script: 'text/javascript, application/javascript, application/x-javascript',
+			json: jsonType,
+			xml: 'application/xml, text/xml',
+			html: htmlType,
+			text: 'text/plain'
+		},
+		timeout: 0,
+		processData: true,
+		cache: true
+	};
+	var ajaxBeforeSend = function(xhr, settings) {
+		var context = settings.context
+		if(settings.beforeSend.call(context, xhr, settings) === false) {
+			return false;
+		}
+	};
+	var ajaxSuccess = function(data, xhr, settings) {
+		settings.success.call(settings.context, data, 'success', xhr);
+		ajaxComplete('success', xhr, settings);
+	};
+	// type: "timeout", "error", "abort", "parsererror"
+	var ajaxError = function(error, type, xhr, settings) {
+		settings.error.call(settings.context, xhr, type, error);
+		ajaxComplete(type, xhr, settings);
+	};
+	// status: "success", "notmodified", "error", "timeout", "abort", "parsererror"
+	var ajaxComplete = function(status, xhr, settings) {
+		settings.complete.call(settings.context, xhr, status);
+	};
+
+	var serialize = function(params, obj, traditional, scope) {
+		var type, array = $.isArray(obj),
+			hash = $.isPlainObject(obj);
+		$.each(obj, function(key, value) {
+			type = $.type(value);
+			if(scope) {
+				key = traditional ? scope :
+					scope + '[' + (hash || type === 'object' || type === 'array' ? key : '') + ']';
+			}
+			// handle data in serializeArray() format
+			if(!scope && array) {
+				params.add(value.name, value.value);
+			}
+			// recurse into nested objects
+			else if(type === "array" || (!traditional && type === "object")) {
+				serialize(params, value, traditional, key);
+			} else {
+				params.add(key, value);
+			}
+		});
+	};
+	var serializeData = function(options) {
+		if(options.processData && options.data && typeof options.data !== "string") {
+			var contentType = options.contentType;
+			if(!contentType && options.headers) {
+				contentType = options.headers['Content-Type'];
+			}
+			if(contentType && ~contentType.indexOf(jsonType)) { //application/json
+				options.data = JSON.stringify(options.data);
+			} else {
+				options.data = $.param(options.data, options.traditional);
+			}
+		}
+		if(options.data && (!options.type || options.type.toUpperCase() === 'GET')) {
+			options.url = appendQuery(options.url, options.data);
+			options.data = undefined;
+		}
+	};
+	var appendQuery = function(url, query) {
+		if(query === '') {
+			return url;
+		}
+		return(url + '&' + query).replace(/[&?]{1,2}/, '?');
+	};
+	var mimeToDataType = function(mime) {
+		if(mime) {
+			mime = mime.split(';', 2)[0];
+		}
+		return mime && (mime === htmlType ? 'html' :
+			mime === jsonType ? 'json' :
+			scriptTypeRE.test(mime) ? 'script' :
+			xmlTypeRE.test(mime) && 'xml') || 'text';
+	};
+	var parseArguments = function(url, data, success, dataType) {
+		if($.isFunction(data)) {
+			dataType = success, success = data, data = undefined;
+		}
+		if(!$.isFunction(success)) {
+			dataType = success, success = undefined;
+		}
+		return {
+			url: url,
+			data: data,
+			success: success,
+			dataType: dataType
+		};
+	};
+	$.ajax = function(url, options) {
+		if(typeof url === "object") {
+			options = url;
+			url = undefined;
+		}
+		var settings = options || {};
+		settings.url = url || settings.url;
+		for(var key in $.ajaxSettings) {
+			if(settings[key] === undefined) {
+				settings[key] = $.ajaxSettings[key];
+			}
+		}
+		serializeData(settings);
+		var dataType = settings.dataType;
+
+		if(settings.cache === false || ((!options || options.cache !== true) && ('script' === dataType))) {
+			settings.url = appendQuery(settings.url, '_=' + $.now());
+		}
+		var mime = settings.accepts[dataType && dataType.toLowerCase()];
+		var headers = {};
+		var setHeader = function(name, value) {
+			headers[name.toLowerCase()] = [name, value];
+		};
+		var protocol = /^([\w-]+:)\/\//.test(settings.url) ? RegExp.$1 : window.location.protocol;        
+		var xhr = settings.xhr(settings);
+        
+        if(location.protocol === 'file:' && $.os.ios && window.webkit && window.webkit.messageHandlers && !(xhr instanceof plus.net.XMLHttpRequest)){
+            console.error("当前运行环境为WKWebview,需在plusReady事件触发后再调用mui.ajax,否则可能会执行失败或报Script error的错误")
+        }
+		var nativeSetHeader = xhr.setRequestHeader;
+		var abortTimeout;
+
+		setHeader('X-Requested-With', 'XMLHttpRequest');
+		setHeader('Accept', mime || '*/*');
+		if(!!(mime = settings.mimeType || mime)) {
+			if(mime.indexOf(',') > -1) {
+				mime = mime.split(',', 2)[0];
+			}
+			xhr.overrideMimeType && xhr.overrideMimeType(mime);
+		}
+		if(settings.contentType || (settings.contentType !== false && settings.data && settings.type.toUpperCase() !== 'GET')) {
+			setHeader('Content-Type', settings.contentType || 'application/x-www-form-urlencoded');
+		}
+		if(settings.headers) {
+			for(var name in settings.headers)
+				setHeader(name, settings.headers[name]);
+		}
+		xhr.setRequestHeader = setHeader;
+
+		xhr.onreadystatechange = function() {
+			if(xhr.readyState === 4) {
+				xhr.onreadystatechange = $.noop;
+				clearTimeout(abortTimeout);
+				var result, error = false;
+				var isLocal = protocol === 'file:';
+				if((xhr.status >= 200 && xhr.status < 300) || xhr.status === 304 || (xhr.status === 0 && isLocal && xhr.responseText)) {
+					dataType = dataType || mimeToDataType(settings.mimeType || xhr.getResponseHeader('content-type'));
+					result = xhr.responseText;
+					try {
+						// http://perfectionkills.com/global-eval-what-are-the-options/
+						if(dataType === 'script') {
+							(1, eval)(result);
+						} else if(dataType === 'xml') {
+							result = xhr.responseXML;
+						} else if(dataType === 'json') {
+							result = blankRE.test(result) ? null : $.parseJSON(result);
+						}
+					} catch(e) {
+						error = e;
+					}
+
+					if(error) {
+						ajaxError(error, 'parsererror', xhr, settings);
+					} else {
+						ajaxSuccess(result, xhr, settings);
+					}
+				} else {
+					var status = xhr.status ? 'error' : 'abort';
+					var statusText = xhr.statusText || null;
+					if(isLocal) {
+						status = 'error';
+						statusText = '404';
+					}
+					ajaxError(statusText, status, xhr, settings);
+				}
+			}
+		};
+		if(ajaxBeforeSend(xhr, settings) === false) {
+			xhr.abort();
+			ajaxError(null, 'abort', xhr, settings);
+			return xhr;
+		}
+
+		if(settings.xhrFields) {
+			for(var name in settings.xhrFields) {
+				xhr[name] = settings.xhrFields[name];
+			}
+		}
+
+		var async = 'async' in settings ? settings.async : true;
+
+		xhr.open(settings.type.toUpperCase(), settings.url, async, settings.username, settings.password);
+
+		for(var name in headers) {
+			if(headers.hasOwnProperty(name)) {
+				nativeSetHeader.apply(xhr, headers[name]);
+			}
+		}
+		if(settings.timeout > 0) {
+			abortTimeout = setTimeout(function() {
+				xhr.onreadystatechange = $.noop;
+				xhr.abort();
+				ajaxError(null, 'timeout', xhr, settings);
+			}, settings.timeout);
+		}
+		xhr.send(settings.data ? settings.data : null);
+		return xhr;
+	};
+
+	$.param = function(obj, traditional) {
+		var params = [];
+		params.add = function(k, v) {
+			this.push(encodeURIComponent(k) + '=' + encodeURIComponent(v));
+		};
+		serialize(params, obj, traditional);
+		return params.join('&').replace(/%20/g, '+');
+	};
+	$.get = function( /* url, data, success, dataType */ ) {
+		return $.ajax(parseArguments.apply(null, arguments));
+	};
+
+	$.post = function( /* url, data, success, dataType */ ) {
+		var options = parseArguments.apply(null, arguments);
+		options.type = 'POST';
+		return $.ajax(options);
+	};
+
+	$.getJSON = function( /* url, data, success */ ) {
+		var options = parseArguments.apply(null, arguments);
+		options.dataType = 'json';
+		return $.ajax(options);
+	};
+
+	$.fn.load = function(url, data, success) {
+		if(!this.length)
+			return this;
+		var self = this,
+			parts = url.split(/\s/),
+			selector,
+			options = parseArguments(url, data, success),
+			callback = options.success;
+		if(parts.length > 1)
+			options.url = parts[0], selector = parts[1];
+		options.success = function(response) {
+			if(selector) {
+				var div = document.createElement('div');
+				div.innerHTML = response.replace(rscript, "");
+				var selectorDiv = document.createElement('div');
+				var childs = div.querySelectorAll(selector);
+				if(childs && childs.length > 0) {
+					for(var i = 0, len = childs.length; i < len; i++) {
+						selectorDiv.appendChild(childs[i]);
+					}
+				}
+				self[0].innerHTML = selectorDiv.innerHTML;
+			} else {
+				self[0].innerHTML = response;
+			}
+			callback && callback.apply(self, arguments);
+		};
+		$.ajax(options);
+		return this;
+	};
+
+})(mui, window);
+/**
+ * 5+ ajax
+ */
+(function($) {
+	var originAnchor = document.createElement('a');
+	originAnchor.href = window.location.href;
+	$.plusReady(function() {
+		$.ajaxSettings = $.extend($.ajaxSettings, {
+			xhr: function(settings) {
+				if (settings.crossDomain) { //强制使用plus跨域
+					return new plus.net.XMLHttpRequest();
+				}
+				//仅在webview的url为远程文件,且ajax请求的资源不同源下使用plus.net.XMLHttpRequest
+				if (originAnchor.protocol !== 'file:') {
+					var urlAnchor = document.createElement('a');
+					urlAnchor.href = settings.url;
+					urlAnchor.href = urlAnchor.href;
+					settings.crossDomain = (originAnchor.protocol + '//' + originAnchor.host) !== (urlAnchor.protocol + '//' + urlAnchor.host);
+					if (settings.crossDomain) {
+						return new plus.net.XMLHttpRequest();
+					}
+				}
+				if ($.os.ios && window.webkit && window.webkit.messageHandlers) { //wkwebview下同样使用5+ xhr
+                    return new plus.net.XMLHttpRequest();
+                }
+				return new window.XMLHttpRequest();
+			}
+		});
+	});
+})(mui);
+/**
+ * mui layout(offset[,position,width,height...])
+ * @param {type} $
+ * @param {type} window
+ * @param {type} undefined
+ * @returns {undefined}
+ */
+(function($, window, undefined) {
+	$.offset = function(element) {
+		var box = {
+			top : 0,
+			left : 0
+		};
+		if ( typeof element.getBoundingClientRect !== undefined) {
+			box = element.getBoundingClientRect();
+		}
+		return {
+			top : box.top + window.pageYOffset - element.clientTop,
+			left : box.left + window.pageXOffset - element.clientLeft
+		};
+	};
+})(mui, window); 
+/**
+ * mui animation
+ */
+(function($, window) {
+	/**
+	 * scrollTo
+	 */
+	$.scrollTo = function(scrollTop, duration, callback) {
+		duration = duration || 1000;
+		var scroll = function(duration) {
+			if (duration <= 0) {
+				window.scrollTo(0, scrollTop);
+				callback && callback();
+				return;
+			}
+			var distaince = scrollTop - window.scrollY;
+			setTimeout(function() {
+				window.scrollTo(0, window.scrollY + distaince / duration * 10);
+				scroll(duration - 10);
+			}, 16.7);
+		};
+		scroll(duration);
+	};
+	$.animationFrame = function(cb) {
+		var args, isQueued, context;
+		return function() {
+			args = arguments;
+			context = this;
+			if (!isQueued) {
+				isQueued = true;
+				requestAnimationFrame(function() {
+					cb.apply(context, args);
+					isQueued = false;
+				});
+			}
+		};
+	};
+
+})(mui, window);
+(function($) {
+	var initializing = false,
+		fnTest = /xyz/.test(function() {
+			xyz;
+		}) ? /\b_super\b/ : /.*/;
+
+	var Class = function() {};
+	Class.extend = function(prop) {
+		var _super = this.prototype;
+		initializing = true;
+		var prototype = new this();
+		initializing = false;
+		for (var name in prop) {
+			prototype[name] = typeof prop[name] == "function" &&
+				typeof _super[name] == "function" && fnTest.test(prop[name]) ?
+				(function(name, fn) {
+					return function() {
+						var tmp = this._super;
+
+						this._super = _super[name];
+
+						var ret = fn.apply(this, arguments);
+						this._super = tmp;
+
+						return ret;
+					};
+				})(name, prop[name]) :
+				prop[name];
+		}
+		function Class() {
+			if (!initializing && this.init)
+				this.init.apply(this, arguments);
+		}
+		Class.prototype = prototype;
+		Class.prototype.constructor = Class;
+		Class.extend = arguments.callee;
+		return Class;
+	};
+	$.Class = Class;
+})(mui);
+(function($, document, undefined) {
+    var CLASS_PULL_TOP_POCKET = 'mui-pull-top-pocket';
+    var CLASS_PULL_BOTTOM_POCKET = 'mui-pull-bottom-pocket';
+    var CLASS_PULL = 'mui-pull';
+    var CLASS_PULL_LOADING = 'mui-pull-loading';
+    var CLASS_PULL_CAPTION = 'mui-pull-caption';
+    var CLASS_PULL_CAPTION_DOWN = 'mui-pull-caption-down';
+    var CLASS_PULL_CAPTION_REFRESH = 'mui-pull-caption-refresh';
+    var CLASS_PULL_CAPTION_NOMORE = 'mui-pull-caption-nomore';
+
+    var CLASS_ICON = 'mui-icon';
+    var CLASS_SPINNER = 'mui-spinner';
+    var CLASS_ICON_PULLDOWN = 'mui-icon-pulldown';
+
+    var CLASS_BLOCK = 'mui-block';
+    var CLASS_HIDDEN = 'mui-hidden';
+    var CLASS_VISIBILITY = 'mui-visibility';
+
+    var CLASS_LOADING_UP = CLASS_PULL_LOADING + ' ' + CLASS_ICON + ' ' + CLASS_ICON_PULLDOWN;
+    var CLASS_LOADING_DOWN = CLASS_PULL_LOADING + ' ' + CLASS_ICON + ' ' + CLASS_ICON_PULLDOWN;
+    var CLASS_LOADING = CLASS_PULL_LOADING + ' ' + CLASS_ICON + ' ' + CLASS_SPINNER;
+
+    var pocketHtml = ['<div class="' + CLASS_PULL + '">', '<div class="{icon}"></div>', '<div class="' + CLASS_PULL_CAPTION + '">{contentrefresh}</div>', '</div>'].join('');
+
+    var PullRefresh = {
+        init: function(element, options) {
+            this._super(element, $.extend(true, {
+                scrollY: true,
+                scrollX: false,
+                indicators: true,
+                deceleration: 0.003,
+                down: {
+                    height: 50,
+                    contentinit: '下拉可以刷新',
+                    contentdown: '下拉可以刷新',
+                    contentover: '释放立即刷新',
+                    contentrefresh: '正在刷新...'
+                },
+                up: {
+                    height: 50,
+                    auto: false,
+                    contentinit: '上拉显示更多',
+                    contentdown: '上拉显示更多',
+                    contentrefresh: '正在加载...',
+                    contentnomore: '没有更多数据了',
+                    duration: 300
+                }
+            }, options));
+        },
+        _init: function() {
+            this._super();
+            this._initPocket();
+        },
+        _initPulldownRefresh: function() {
+            this.pulldown = true;
+            if (this.topPocket) {
+                this.pullPocket = this.topPocket;
+                this.pullPocket.classList.add(CLASS_BLOCK);
+                this.pullPocket.classList.add(CLASS_VISIBILITY);
+                this.pullCaption = this.topCaption;
+                this.pullLoading = this.topLoading;
+            }
+        },
+        _initPullupRefresh: function() {
+            this.pulldown = false;
+            if (this.bottomPocket) {
+                this.pullPocket = this.bottomPocket;
+                this.pullPocket.classList.add(CLASS_BLOCK);
+                this.pullPocket.classList.add(CLASS_VISIBILITY);
+                this.pullCaption = this.bottomCaption;
+                this.pullLoading = this.bottomLoading;
+            }
+        },
+        _initPocket: function() {
+            var options = this.options;
+            if (options.down && options.down.hasOwnProperty('callback')) {
+                this.topPocket = this.scroller.querySelector('.' + CLASS_PULL_TOP_POCKET);
+                if (!this.topPocket) {
+                    this.topPocket = this._createPocket(CLASS_PULL_TOP_POCKET, options.down, CLASS_LOADING_DOWN);
+                    this.wrapper.insertBefore(this.topPocket, this.wrapper.firstChild);
+                }
+                this.topLoading = this.topPocket.querySelector('.' + CLASS_PULL_LOADING);
+                this.topCaption = this.topPocket.querySelector('.' + CLASS_PULL_CAPTION);
+            }
+            if (options.up && options.up.hasOwnProperty('callback')) {
+                this.bottomPocket = this.scroller.querySelector('.' + CLASS_PULL_BOTTOM_POCKET);
+                if (!this.bottomPocket) {
+                    this.bottomPocket = this._createPocket(CLASS_PULL_BOTTOM_POCKET, options.up, CLASS_LOADING);
+                    this.scroller.appendChild(this.bottomPocket);
+                }
+                this.bottomLoading = this.bottomPocket.querySelector('.' + CLASS_PULL_LOADING);
+                this.bottomCaption = this.bottomPocket.querySelector('.' + CLASS_PULL_CAPTION);
+                //TODO only for h5
+                this.wrapper.addEventListener('scrollbottom', this);
+            }
+        },
+        _createPocket: function(clazz, options, iconClass) {
+            var pocket = document.createElement('div');
+            pocket.className = clazz;
+            pocket.innerHTML = pocketHtml.replace('{contentrefresh}', options.contentinit).replace('{icon}', iconClass);
+            return pocket;
+        },
+        _resetPullDownLoading: function() {
+            var loading = this.pullLoading;
+            if (loading) {
+                this.pullCaption.innerHTML = this.options.down.contentdown;
+                loading.style.webkitTransition = "";
+                loading.style.webkitTransform = "";
+                loading.style.webkitAnimation = "";
+                loading.className = CLASS_LOADING_DOWN;
+            }
+        },
+        _setCaptionClass: function(isPulldown, caption, title) {
+            if (!isPulldown) {
+                switch (title) {
+                    case this.options.up.contentdown:
+                        caption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
+                        break;
+                    case this.options.up.contentrefresh:
+                        caption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_REFRESH
+                        break;
+                    case this.options.up.contentnomore:
+                        caption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_NOMORE;
+                        break;
+                }
+            }
+        },
+        _setCaption: function(title, reset) {
+            if (this.loading) {
+                return;
+            }
+            var options = this.options;
+            var pocket = this.pullPocket;
+            var caption = this.pullCaption;
+            var loading = this.pullLoading;
+            var isPulldown = this.pulldown;
+            var self = this;
+            if (pocket) {
+                if (reset) {
+                    setTimeout(function() {
+                        caption.innerHTML = self.lastTitle = title;
+                        if (isPulldown) {
+                            loading.className = CLASS_LOADING_DOWN;
+                        } else {
+                            self._setCaptionClass(false, caption, title);
+                            loading.className = CLASS_LOADING;
+                        }
+                        loading.style.webkitAnimation = "";
+                        loading.style.webkitTransition = "";
+                        loading.style.webkitTransform = "";
+                    }, 100);
+                } else {
+                    if (title !== this.lastTitle) {
+                        caption.innerHTML = title;
+                        if (isPulldown) {
+                            if (title === options.down.contentrefresh) {
+                                loading.className = CLASS_LOADING;
+                                loading.style.webkitAnimation = "spinner-spin 1s step-end infinite";
+                            } else if (title === options.down.contentover) {
+                                loading.className = CLASS_LOADING_UP;
+                                loading.style.webkitTransition = "-webkit-transform 0.3s ease-in";
+                                loading.style.webkitTransform = "rotate(180deg)";
+                            } else if (title === options.down.contentdown) {
+                                loading.className = CLASS_LOADING_DOWN;
+                                loading.style.webkitTransition = "-webkit-transform 0.3s ease-in";
+                                loading.style.webkitTransform = "rotate(0deg)";
+                            }
+                        } else {
+                            if (title === options.up.contentrefresh) {
+                                loading.className = CLASS_LOADING + ' ' + CLASS_VISIBILITY;
+                            } else {
+                                loading.className = CLASS_LOADING + ' ' + CLASS_HIDDEN;
+                            }
+                            self._setCaptionClass(false, caption, title);
+                        }
+                        this.lastTitle = title;
+                    }
+                }
+
+            }
+        }
+    };
+    $.PullRefresh = PullRefresh;
+})(mui, document);
+(function($, window, document, undefined) {
+	var CLASS_SCROLL = 'mui-scroll';
+	var CLASS_SCROLLBAR = 'mui-scrollbar';
+	var CLASS_INDICATOR = 'mui-scrollbar-indicator';
+	var CLASS_SCROLLBAR_VERTICAL = CLASS_SCROLLBAR + '-vertical';
+	var CLASS_SCROLLBAR_HORIZONTAL = CLASS_SCROLLBAR + '-horizontal';
+
+	var CLASS_ACTIVE = 'mui-active';
+
+	var ease = {
+		quadratic: {
+			style: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
+			fn: function(k) {
+				return k * (2 - k);
+			}
+		},
+		circular: {
+			style: 'cubic-bezier(0.1, 0.57, 0.1, 1)',
+			fn: function(k) {
+				return Math.sqrt(1 - (--k * k));
+			}
+		},
+		outCirc: {
+			style: 'cubic-bezier(0.075, 0.82, 0.165, 1)'
+		},
+		outCubic: {
+			style: 'cubic-bezier(0.165, 0.84, 0.44, 1)'
+		}
+	}
+	var Scroll = $.Class.extend({
+		init: function(element, options) {
+			this.wrapper = this.element = element;
+			this.scroller = this.wrapper.children[0];
+			this.scrollerStyle = this.scroller && this.scroller.style;
+			this.stopped = false;
+
+			this.options = $.extend(true, {
+				scrollY: true, //是否竖向滚动
+				scrollX: false, //是否横向滚动
+				startX: 0, //初始化时滚动至x
+				startY: 0, //初始化时滚动至y
+
+				indicators: true, //是否显示滚动条
+				stopPropagation: false,
+				hardwareAccelerated: true,
+				fixedBadAndorid: false,
+				preventDefaultException: {
+					tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT|VIDEO)$/
+				},
+				momentum: true,
+
+				snapX: 0.5, //横向切换距离(以当前容器宽度为基准)
+				snap: false, //图片轮播,拖拽式选项卡
+
+				bounce: true, //是否启用回弹
+				bounceTime: 500, //回弹动画时间
+				bounceEasing: ease.outCirc, //回弹动画曲线
+
+				scrollTime: 500,
+				scrollEasing: ease.outCubic, //轮播动画曲线
+
+				directionLockThreshold: 5,
+
+				parallaxElement: false, //视差元素
+				parallaxRatio: 0.5
+			}, options);
+
+			this.x = 0;
+			this.y = 0;
+			this.translateZ = this.options.hardwareAccelerated ? ' translateZ(0)' : '';
+
+			this._init();
+			if (this.scroller) {
+				this.refresh();
+				//				if (this.options.startX !== 0 || this.options.startY !== 0) { //需要判断吗?后续根据实际情况再看看
+				this.scrollTo(this.options.startX, this.options.startY);
+				//				}
+			}
+		},
+		_init: function() {
+			this._initParallax();
+			this._initIndicators();
+			this._initEvent();
+		},
+		_initParallax: function() {
+			if (this.options.parallaxElement) {
+				this.parallaxElement = document.querySelector(this.options.parallaxElement);
+				this.parallaxStyle = this.parallaxElement.style;
+				this.parallaxHeight = this.parallaxElement.offsetHeight;
+				this.parallaxImgStyle = this.parallaxElement.querySelector('img').style;
+			}
+		},
+		_initIndicators: function() {
+			var self = this;
+			self.indicators = [];
+			if (!this.options.indicators) {
+				return;
+			}
+			var indicators = [],
+				indicator;
+
+			// Vertical scrollbar
+			if (self.options.scrollY) {
+				indicator = {
+					el: this._createScrollBar(CLASS_SCROLLBAR_VERTICAL),
+					listenX: false
+				};
+
+				this.wrapper.appendChild(indicator.el);
+				indicators.push(indicator);
+			}
+
+			// Horizontal scrollbar
+			if (this.options.scrollX) {
+				indicator = {
+					el: this._createScrollBar(CLASS_SCROLLBAR_HORIZONTAL),
+					listenY: false
+				};
+
+				this.wrapper.appendChild(indicator.el);
+				indicators.push(indicator);
+			}
+
+			for (var i = indicators.length; i--;) {
+				this.indicators.push(new Indicator(this, indicators[i]));
+			}
+
+		},
+		_initSnap: function() {
+			this.currentPage = {};
+			this.pages = [];
+			var snaps = this.snaps;
+			var length = snaps.length;
+			var m = 0;
+			var n = -1;
+			var x = 0;
+			var leftX = 0;
+			var rightX = 0;
+			var snapX = 0;
+			for (var i = 0; i < length; i++) {
+				var snap = snaps[i];
+				var offsetLeft = snap.offsetLeft;
+				var offsetWidth = snap.offsetWidth;
+				if (i === 0 || offsetLeft <= snaps[i - 1].offsetLeft) {
+					m = 0;
+					n++;
+				}
+				if (!this.pages[m]) {
+					this.pages[m] = [];
+				}
+				x = this._getSnapX(offsetLeft);
+				snapX = Math.round((offsetWidth) * this.options.snapX);
+				leftX = x - snapX;
+				rightX = x - offsetWidth + snapX;
+				this.pages[m][n] = {
+					x: x,
+					leftX: leftX,
+					rightX: rightX,
+					pageX: m,
+					element: snap
+				}
+				if (snap.classList.contains(CLASS_ACTIVE)) {
+					this.currentPage = this.pages[m][0];
+				}
+				if (x >= this.maxScrollX) {
+					m++;
+				}
+			}
+			this.options.startX = this.currentPage.x || 0;
+		},
+		_getSnapX: function(offsetLeft) {
+			return Math.max(Math.min(0, -offsetLeft + (this.wrapperWidth / 2)), this.maxScrollX);
+		},
+		_gotoPage: function(index) {
+			this.currentPage = this.pages[Math.min(index, this.pages.length - 1)][0];
+			for (var i = 0, len = this.snaps.length; i < len; i++) {
+				if (i === index) {
+					this.snaps[i].classList.add(CLASS_ACTIVE);
+				} else {
+					this.snaps[i].classList.remove(CLASS_ACTIVE);
+				}
+			}
+			this.scrollTo(this.currentPage.x, 0, this.options.scrollTime);
+		},
+		_nearestSnap: function(x) {
+			if (!this.pages.length) {
+				return {
+					x: 0,
+					pageX: 0
+				};
+			}
+			var i = 0;
+			var length = this.pages.length;
+			if (x > 0) {
+				x = 0;
+			} else if (x < this.maxScrollX) {
+				x = this.maxScrollX;
+			}
+			for (; i < length; i++) {
+				var nearestX = this.direction === 'left' ? this.pages[i][0].leftX : this.pages[i][0].rightX;
+				if (x >= nearestX) {
+					return this.pages[i][0];
+				}
+			}
+			return {
+				x: 0,
+				pageX: 0
+			};
+		},
+		_initEvent: function(detach) {
+			var action = detach ? 'removeEventListener' : 'addEventListener';
+			window[action]('orientationchange', this);
+			window[action]('resize', this);
+
+			this.scroller[action]('webkitTransitionEnd', this);
+
+			this.wrapper[action]($.EVENT_START, this);
+			this.wrapper[action]($.EVENT_CANCEL, this);
+			this.wrapper[action]($.EVENT_END, this);
+			this.wrapper[action]('drag', this);
+			this.wrapper[action]('dragend', this);
+			this.wrapper[action]('flick', this);
+			this.wrapper[action]('scrollend', this);
+			if (this.options.scrollX) {
+				this.wrapper[action]('swiperight', this);
+			}
+			var segmentedControl = this.wrapper.querySelector('.mui-segmented-control');
+			if (segmentedControl) { //靠,这个bug排查了一下午,阻止hash跳转,一旦hash跳转会导致可拖拽选项卡的tab不见
+				mui(segmentedControl)[detach ? 'off' : 'on']('click', 'a', $.preventDefault);
+			}
+
+			this.wrapper[action]('scrollstart', this);
+			this.wrapper[action]('refresh', this);
+		},
+		_handleIndicatorScrollend: function() {
+			this.indicators.map(function(indicator) {
+				indicator.fade();
+			});
+		},
+		_handleIndicatorScrollstart: function() {
+			this.indicators.map(function(indicator) {
+				indicator.fade(1);
+			});
+		},
+		_handleIndicatorRefresh: function() {
+			this.indicators.map(function(indicator) {
+				indicator.refresh();
+			});
+		},
+		handleEvent: function(e) {
+			if (this.stopped) {
+				this.resetPosition();
+				return;
+			}
+
+			switch (e.type) {
+				case $.EVENT_START:
+					this._start(e);
+					break;
+				case 'drag':
+					this.options.stopPropagation && e.stopPropagation();
+					this._drag(e);
+					break;
+				case 'dragend':
+				case 'flick':
+					this.options.stopPropagation && e.stopPropagation();
+					this._flick(e);
+					break;
+				case $.EVENT_CANCEL:
+				case $.EVENT_END:
+					this._end(e);
+					break;
+				case 'webkitTransitionEnd':
+					this.transitionTimer && this.transitionTimer.cancel();
+					this._transitionEnd(e);
+					break;
+				case 'scrollstart':
+					this._handleIndicatorScrollstart(e);
+					break;
+				case 'scrollend':
+					this._handleIndicatorScrollend(e);
+					this._scrollend(e);
+					e.stopPropagation();
+					break;
+				case 'orientationchange':
+				case 'resize':
+					this._resize();
+					break;
+				case 'swiperight':
+					e.stopPropagation();
+					break;
+				case 'refresh':
+					this._handleIndicatorRefresh(e);
+					break;
+
+			}
+		},
+		_start: function(e) {
+			this.moved = this.needReset = false;
+			this._transitionTime();
+			if (this.isInTransition) {
+				this.needReset = true;
+				this.isInTransition = false;
+				var pos = $.parseTranslateMatrix($.getStyles(this.scroller, 'webkitTransform'));
+				this.setTranslate(Math.round(pos.x), Math.round(pos.y));
+				//				this.resetPosition(); //reset
+				$.trigger(this.scroller, 'scrollend', this);
+				//				e.stopPropagation();
+				e.preventDefault();
+			}
+			this.reLayout();
+			$.trigger(this.scroller, 'beforescrollstart', this);
+		},
+		_getDirectionByAngle: function(angle) {
+			if (angle < -80 && angle > -100) {
+				return 'up';
+			} else if (angle >= 80 && angle < 100) {
+				return 'down';
+			} else if (angle >= 170 || angle <= -170) {
+				return 'left';
+			} else if (angle >= -35 && angle <= 10) {
+				return 'right';
+			}
+			return null;
+		},
+		_drag: function(e) {
+			//			if (this.needReset) {
+			//				e.stopPropagation(); //disable parent drag(nested scroller)
+			//				return;
+			//			}
+			var detail = e.detail;
+			if (this.options.scrollY || detail.direction === 'up' || detail.direction === 'down') { //如果是竖向滚动或手势方向是上或下
+				//ios8 hack
+				if ($.os.ios && parseFloat($.os.version) >= 8) { //多webview时,离开当前webview会导致后续touch事件不触发
+					var clientY = detail.gesture.touches[0].clientY;
+					//下拉刷新 or 上拉加载
+					if ((clientY + 10) > window.innerHeight || clientY < 10) {
+						this.resetPosition(this.options.bounceTime);
+						return;
+					}
+				}
+			}
+			var isPreventDefault = isReturn = false;
+			var direction = this._getDirectionByAngle(detail.angle);
+			if (detail.direction === 'left' || detail.direction === 'right') {
+				if (this.options.scrollX) {
+					isPreventDefault = true;
+					if (!this.moved) { //识别角度(该角度导致轮播不灵敏)
+						//						if (direction !== 'left' && direction !== 'right') {
+						//							isReturn = true;
+						//						} else {
+						$.gestures.session.lockDirection = true; //锁定方向
+						$.gestures.session.startDirection = detail.direction;
+						//						}
+					}
+				} else if (this.options.scrollY && !this.moved) {
+					isReturn = true;
+				}
+			} else if (detail.direction === 'up' || detail.direction === 'down') {
+				if (this.options.scrollY) {
+					isPreventDefault = true;
+					//					if (!this.moved) { //识别角度,竖向滚动似乎没必要进行小角度验证
+					//						if (direction !== 'up' && direction !== 'down') {
+					//							isReturn = true;
+					//						}
+					//					}
+					if (!this.moved) {
+						$.gestures.session.lockDirection = true; //锁定方向
+						$.gestures.session.startDirection = detail.direction;
+					}
+				} else if (this.options.scrollX && !this.moved) {
+					isReturn = true;
+				}
+			} else {
+				isReturn = true;
+			}
+			if (this.moved || isPreventDefault) {
+				e.stopPropagation(); //阻止冒泡(scroll类嵌套)
+				detail.gesture && detail.gesture.preventDefault();
+			}
+			if (isReturn) { //禁止非法方向滚动
+				return;
+			}
+			if (!this.moved) {
+				$.trigger(this.scroller, 'scrollstart', this);
+			} else {
+				e.stopPropagation(); //move期间阻止冒泡(scroll嵌套)
+			}
+			var deltaX = 0;
+			var deltaY = 0;
+			if (!this.moved) { //start
+				deltaX = detail.deltaX;
+				deltaY = detail.deltaY;
+			} else { //move
+				deltaX = detail.deltaX - $.gestures.session.prevTouch.deltaX;
+				deltaY = detail.deltaY - $.gestures.session.prevTouch.deltaY;
+			}
+			var absDeltaX = Math.abs(detail.deltaX);
+			var absDeltaY = Math.abs(detail.deltaY);
+			if (absDeltaX > absDeltaY + this.options.directionLockThreshold) {
+				deltaY = 0;
+			} else if (absDeltaY >= absDeltaX + this.options.directionLockThreshold) {
+				deltaX = 0;
+			}
+
+			deltaX = this.hasHorizontalScroll ? deltaX : 0;
+			deltaY = this.hasVerticalScroll ? deltaY : 0;
+			var newX = this.x + deltaX;
+			var newY = this.y + deltaY;
+			// Slow down if outside of the boundaries
+			if (newX > 0 || newX < this.maxScrollX) {
+				newX = this.options.bounce ? this.x + deltaX / 3 : newX > 0 ? 0 : this.maxScrollX;
+			}
+			if (newY > 0 || newY < this.maxScrollY) {
+				newY = this.options.bounce ? this.y + deltaY / 3 : newY > 0 ? 0 : this.maxScrollY;
+			}
+
+			if (!this.requestAnimationFrame) {
+				this._updateTranslate();
+			}
+			this.direction = detail.deltaX > 0 ? 'right' : 'left';
+			this.moved = true;
+			this.x = newX;
+			this.y = newY;
+			$.trigger(this.scroller, 'scroll', this);
+		},
+		_flick: function(e) {
+			//			if (!this.moved || this.needReset) {
+			//				return;
+			//			}
+			if (!this.moved) {
+				return;
+			}
+			e.stopPropagation();
+			var detail = e.detail;
+			this._clearRequestAnimationFrame();
+			if (e.type === 'dragend' && detail.flick) { //dragend
+				return;
+			}
+
+			var newX = Math.round(this.x);
+			var newY = Math.round(this.y);
+
+			this.isInTransition = false;
+			// reset if we are outside of the boundaries
+			if (this.resetPosition(this.options.bounceTime)) {
+				return;
+			}
+
+			this.scrollTo(newX, newY); // ensures that the last position is rounded
+
+			if (e.type === 'dragend') { //dragend
+				$.trigger(this.scroller, 'scrollend', this);
+				return;
+			}
+			var time = 0;
+			var easing = '';
+			// start momentum animation if needed
+			if (this.options.momentum && detail.flickTime < 300) {
+				momentumX = this.hasHorizontalScroll ? this._momentum(this.x, detail.flickDistanceX, detail.flickTime, this.maxScrollX, this.options.bounce ? this.wrapperWidth : 0, this.options.deceleration) : {
+					destination: newX,
+					duration: 0
+				};
+				momentumY = this.hasVerticalScroll ? this._momentum(this.y, detail.flickDistanceY, detail.flickTime, this.maxScrollY, this.options.bounce ? this.wrapperHeight : 0, this.options.deceleration) : {
+					destination: newY,
+					duration: 0
+				};
+				newX = momentumX.destination;
+				newY = momentumY.destination;
+				time = Math.max(momentumX.duration, momentumY.duration);
+				this.isInTransition = true;
+			}
+
+			if (newX != this.x || newY != this.y) {
+				if (newX > 0 || newX < this.maxScrollX || newY > 0 || newY < this.maxScrollY) {
+					easing = ease.quadratic;
+				}
+				this.scrollTo(newX, newY, time, easing);
+				return;
+			}
+
+			$.trigger(this.scroller, 'scrollend', this);
+			//			e.stopPropagation();
+		},
+		_end: function(e) {
+			this.needReset = false;
+			if ((!this.moved && this.needReset) || e.type === $.EVENT_CANCEL) {
+				this.resetPosition();
+			}
+		},
+		_transitionEnd: function(e) {
+			if (e.target != this.scroller || !this.isInTransition) {
+				return;
+			}
+			this._transitionTime();
+			if (!this.resetPosition(this.options.bounceTime)) {
+				this.isInTransition = false;
+				$.trigger(this.scroller, 'scrollend', this);
+			}
+		},
+		_scrollend: function(e) {
+			if ((this.y === 0 && this.maxScrollY === 0) || (Math.abs(this.y) > 0 && this.y <= this.maxScrollY)) {
+				$.trigger(this.scroller, 'scrollbottom', this);
+			}
+		},
+		_resize: function() {
+			var that = this;
+			clearTimeout(that.resizeTimeout);
+			that.resizeTimeout = setTimeout(function() {
+				that.refresh();
+			}, that.options.resizePolling);
+		},
+		_transitionTime: function(time) {
+			time = time || 0;
+			this.scrollerStyle['webkitTransitionDuration'] = time + 'ms';
+			if (this.parallaxElement && this.options.scrollY) { //目前仅支持竖向视差效果
+				this.parallaxStyle['webkitTransitionDuration'] = time + 'ms';
+			}
+			if (this.options.fixedBadAndorid && !time && $.os.isBadAndroid) {
+				this.scrollerStyle['webkitTransitionDuration'] = '0.001s';
+				if (this.parallaxElement && this.options.scrollY) { //目前仅支持竖向视差效果
+					this.parallaxStyle['webkitTransitionDuration'] = '0.001s';
+				}
+			}
+			if (this.indicators) {
+				for (var i = this.indicators.length; i--;) {
+					this.indicators[i].transitionTime(time);
+				}
+			}
+			if (time) { //自定义timer,保证webkitTransitionEnd始终触发
+				this.transitionTimer && this.transitionTimer.cancel();
+				this.transitionTimer = $.later(function() {
+					$.trigger(this.scroller, 'webkitTransitionEnd');
+				}, time + 100, this);
+			}
+		},
+		_transitionTimingFunction: function(easing) {
+			this.scrollerStyle['webkitTransitionTimingFunction'] = easing;
+			if (this.parallaxElement && this.options.scrollY) { //目前仅支持竖向视差效果
+				this.parallaxStyle['webkitTransitionDuration'] = easing;
+			}
+			if (this.indicators) {
+				for (var i = this.indicators.length; i--;) {
+					this.indicators[i].transitionTimingFunction(easing);
+				}
+			}
+		},
+		_translate: function(x, y) {
+			this.x = x;
+			this.y = y;
+		},
+		_clearRequestAnimationFrame: function() {
+			if (this.requestAnimationFrame) {
+				cancelAnimationFrame(this.requestAnimationFrame);
+				this.requestAnimationFrame = null;
+			}
+		},
+		_updateTranslate: function() {
+			var self = this;
+			if (self.x !== self.lastX || self.y !== self.lastY) {
+				self.setTranslate(self.x, self.y);
+			}
+			self.requestAnimationFrame = requestAnimationFrame(function() {
+				self._updateTranslate();
+			});
+		},
+		_createScrollBar: function(clazz) {
+			var scrollbar = document.createElement('div');
+			var indicator = document.createElement('div');
+			scrollbar.className = CLASS_SCROLLBAR + ' ' + clazz;
+			indicator.className = CLASS_INDICATOR;
+			scrollbar.appendChild(indicator);
+			if (clazz === CLASS_SCROLLBAR_VERTICAL) {
+				this.scrollbarY = scrollbar;
+				this.scrollbarIndicatorY = indicator;
+			} else if (clazz === CLASS_SCROLLBAR_HORIZONTAL) {
+				this.scrollbarX = scrollbar;
+				this.scrollbarIndicatorX = indicator;
+			}
+			this.wrapper.appendChild(scrollbar);
+			return scrollbar;
+		},
+		_preventDefaultException: function(el, exceptions) {
+			for (var i in exceptions) {
+				if (exceptions[i].test(el[i])) {
+					return true;
+				}
+			}
+			return false;
+		},
+		_reLayout: function() {
+			if (!this.hasHorizontalScroll) {
+				this.maxScrollX = 0;
+				this.scrollerWidth = this.wrapperWidth;
+			}
+
+			if (!this.hasVerticalScroll) {
+				this.maxScrollY = 0;
+				this.scrollerHeight = this.wrapperHeight;
+			}
+
+			this.indicators.map(function(indicator) {
+				indicator.refresh();
+			});
+
+			//以防slider类嵌套使用
+			if (this.options.snap && typeof this.options.snap === 'string') {
+				var items = this.scroller.querySelectorAll(this.options.snap);
+				this.itemLength = 0;
+				this.snaps = [];
+				for (var i = 0, len = items.length; i < len; i++) {
+					var item = items[i];
+					if (item.parentNode === this.scroller) {
+						this.itemLength++;
+						this.snaps.push(item);
+					}
+				}
+				this._initSnap(); //需要每次都_initSnap么。其实init的时候执行一次,后续resize的时候执行一次就行了吧.先这么做吧,如果影响性能,再调整
+			}
+		},
+		_momentum: function(current, distance, time, lowerMargin, wrapperSize, deceleration) {
+			var speed = parseFloat(Math.abs(distance) / time),
+				destination,
+				duration;
+
+			deceleration = deceleration === undefined ? 0.0006 : deceleration;
+			destination = current + (speed * speed) / (2 * deceleration) * (distance < 0 ? -1 : 1);
+			duration = speed / deceleration;
+			if (destination < lowerMargin) {
+				destination = wrapperSize ? lowerMargin - (wrapperSize / 2.5 * (speed / 8)) : lowerMargin;
+				distance = Math.abs(destination - current);
+				duration = distance / speed;
+			} else if (destination > 0) {
+				destination = wrapperSize ? wrapperSize / 2.5 * (speed / 8) : 0;
+				distance = Math.abs(current) + destination;
+				duration = distance / speed;
+			}
+
+			return {
+				destination: Math.round(destination),
+				duration: duration
+			};
+		},
+		_getTranslateStr: function(x, y) {
+			if (this.options.hardwareAccelerated) {
+				return 'translate3d(' + x + 'px,' + y + 'px,0px) ' + this.translateZ;
+			}
+			return 'translate(' + x + 'px,' + y + 'px) ';
+		},
+		//API
+		setStopped: function(stopped) {
+			// this.stopped = !!stopped;
+
+			// fixed ios双webview模式下拉刷新
+			if(stopped) {
+				this.disablePullupToRefresh();
+				this.disablePulldownToRefresh();
+			} else {
+				this.enablePullupToRefresh();
+				this.enablePulldownToRefresh();
+			}
+		},
+		setTranslate: function(x, y) {
+			this.x = x;
+			this.y = y;
+			this.scrollerStyle['webkitTransform'] = this._getTranslateStr(x, y);
+			if (this.parallaxElement && this.options.scrollY) { //目前仅支持竖向视差效果
+				var parallaxY = y * this.options.parallaxRatio;
+				var scale = 1 + parallaxY / ((this.parallaxHeight - parallaxY) / 2);
+				if (scale > 1) {
+					this.parallaxImgStyle['opacity'] = 1 - parallaxY / 100 * this.options.parallaxRatio;
+					this.parallaxStyle['webkitTransform'] = this._getTranslateStr(0, -parallaxY) + ' scale(' + scale + ',' + scale + ')';
+				} else {
+					this.parallaxImgStyle['opacity'] = 1;
+					this.parallaxStyle['webkitTransform'] = this._getTranslateStr(0, -1) + ' scale(1,1)';
+				}
+			}
+			if (this.indicators) {
+				for (var i = this.indicators.length; i--;) {
+					this.indicators[i].updatePosition();
+				}
+			}
+			this.lastX = this.x;
+			this.lastY = this.y;
+			$.trigger(this.scroller, 'scroll', this);
+		},
+		reLayout: function() {
+			this.wrapper.offsetHeight;
+
+			var paddingLeft = parseFloat($.getStyles(this.wrapper, 'padding-left')) || 0;
+			var paddingRight = parseFloat($.getStyles(this.wrapper, 'padding-right')) || 0;
+			var paddingTop = parseFloat($.getStyles(this.wrapper, 'padding-top')) || 0;
+			var paddingBottom = parseFloat($.getStyles(this.wrapper, 'padding-bottom')) || 0;
+
+			var clientWidth = this.wrapper.clientWidth;
+			var clientHeight = this.wrapper.clientHeight;
+
+			this.scrollerWidth = this.scroller.offsetWidth;
+			this.scrollerHeight = this.scroller.offsetHeight;
+
+			this.wrapperWidth = clientWidth - paddingLeft - paddingRight;
+			this.wrapperHeight = clientHeight - paddingTop - paddingBottom;
+
+			this.maxScrollX = Math.min(this.wrapperWidth - this.scrollerWidth, 0);
+			this.maxScrollY = Math.min(this.wrapperHeight - this.scrollerHeight, 0);
+			this.hasHorizontalScroll = this.options.scrollX && this.maxScrollX < 0;
+			this.hasVerticalScroll = this.options.scrollY && this.maxScrollY < 0;
+			this._reLayout();
+		},
+		resetPosition: function(time) {
+			var x = this.x,
+				y = this.y;
+
+			time = time || 0;
+			if (!this.hasHorizontalScroll || this.x > 0) {
+				x = 0;
+			} else if (this.x < this.maxScrollX) {
+				x = this.maxScrollX;
+			}
+
+			if (!this.hasVerticalScroll || this.y > 0) {
+				y = 0;
+			} else if (this.y < this.maxScrollY) {
+				y = this.maxScrollY;
+			}
+
+			if (x == this.x && y == this.y) {
+				return false;
+			}
+			this.scrollTo(x, y, time, this.options.scrollEasing);
+
+			return true;
+		},
+		_reInit: function() {
+			var groups = this.wrapper.querySelectorAll('.' + CLASS_SCROLL);
+			for (var i = 0, len = groups.length; i < len; i++) {
+				if (groups[i].parentNode === this.wrapper) {
+					this.scroller = groups[i];
+					break;
+				}
+			}
+			this.scrollerStyle = this.scroller && this.scroller.style;
+		},
+		refresh: function() {
+			this._reInit();
+			this.reLayout();
+			$.trigger(this.scroller, 'refresh', this);
+			this.resetPosition();
+		},
+		scrollTo: function(x, y, time, easing) {
+			var easing = easing || ease.circular;
+			//			this.isInTransition = time > 0 && (this.lastX != x || this.lastY != y);
+			//暂不严格判断x,y,否则会导致部分版本上不正常触发轮播
+			this.isInTransition = time > 0;
+			if (this.isInTransition) {
+				this._clearRequestAnimationFrame();
+				this._transitionTimingFunction(easing.style);
+				this._transitionTime(time);
+				this.setTranslate(x, y);
+			} else {
+				this.setTranslate(x, y);
+			}
+
+		},
+		scrollToBottom: function(time, easing) {
+			time = time || this.options.scrollTime;
+			this.scrollTo(0, this.maxScrollY, time, easing);
+		},
+		gotoPage: function(index) {
+			this._gotoPage(index);
+		},
+		destroy: function() {
+			this._initEvent(true); //detach
+			delete $.data[this.wrapper.getAttribute('data-scroll')];
+			this.wrapper.setAttribute('data-scroll', '');
+		}
+	});
+	//Indicator
+	var Indicator = function(scroller, options) {
+		this.wrapper = typeof options.el == 'string' ? document.querySelector(options.el) : options.el;
+		this.wrapperStyle = this.wrapper.style;
+		this.indicator = this.wrapper.children[0];
+		this.indicatorStyle = this.indicator.style;
+		this.scroller = scroller;
+
+		this.options = $.extend({
+			listenX: true,
+			listenY: true,
+			fade: false,
+			speedRatioX: 0,
+			speedRatioY: 0
+		}, options);
+
+		this.sizeRatioX = 1;
+		this.sizeRatioY = 1;
+		this.maxPosX = 0;
+		this.maxPosY = 0;
+
+		if (this.options.fade) {
+			this.wrapperStyle['webkitTransform'] = this.scroller.translateZ;
+			this.wrapperStyle['webkitTransitionDuration'] = this.options.fixedBadAndorid && $.os.isBadAndroid ? '0.001s' : '0ms';
+			this.wrapperStyle.opacity = '0';
+		}
+	}
+	Indicator.prototype = {
+		handleEvent: function(e) {
+
+		},
+		transitionTime: function(time) {
+			time = time || 0;
+			this.indicatorStyle['webkitTransitionDuration'] = time + 'ms';
+			if (this.scroller.options.fixedBadAndorid && !time && $.os.isBadAndroid) {
+				this.indicatorStyle['webkitTransitionDuration'] = '0.001s';
+			}
+		},
+		transitionTimingFunction: function(easing) {
+			this.indicatorStyle['webkitTransitionTimingFunction'] = easing;
+		},
+		refresh: function() {
+			this.transitionTime();
+
+			if (this.options.listenX && !this.options.listenY) {
+				this.indicatorStyle.display = this.scroller.hasHorizontalScroll ? 'block' : 'none';
+			} else if (this.options.listenY && !this.options.listenX) {
+				this.indicatorStyle.display = this.scroller.hasVerticalScroll ? 'block' : 'none';
+			} else {
+				this.indicatorStyle.display = this.scroller.hasHorizontalScroll || this.scroller.hasVerticalScroll ? 'block' : 'none';
+			}
+
+			this.wrapper.offsetHeight; // force refresh
+
+			if (this.options.listenX) {
+				this.wrapperWidth = this.wrapper.clientWidth;
+				this.indicatorWidth = Math.max(Math.round(this.wrapperWidth * this.wrapperWidth / (this.scroller.scrollerWidth || this.wrapperWidth || 1)), 8);
+				this.indicatorStyle.width = this.indicatorWidth + 'px';
+
+				this.maxPosX = this.wrapperWidth - this.indicatorWidth;
+
+				this.minBoundaryX = 0;
+				this.maxBoundaryX = this.maxPosX;
+
+				this.sizeRatioX = this.options.speedRatioX || (this.scroller.maxScrollX && (this.maxPosX / this.scroller.maxScrollX));
+			}
+
+			if (this.options.listenY) {
+				this.wrapperHeight = this.wrapper.clientHeight;
+				this.indicatorHeight = Math.max(Math.round(this.wrapperHeight * this.wrapperHeight / (this.scroller.scrollerHeight || this.wrapperHeight || 1)), 8);
+				this.indicatorStyle.height = this.indicatorHeight + 'px';
+
+				this.maxPosY = this.wrapperHeight - this.indicatorHeight;
+
+				this.minBoundaryY = 0;
+				this.maxBoundaryY = this.maxPosY;
+
+				this.sizeRatioY = this.options.speedRatioY || (this.scroller.maxScrollY && (this.maxPosY / this.scroller.maxScrollY));
+			}
+
+			this.updatePosition();
+		},
+
+		updatePosition: function() {
+			var x = this.options.listenX && Math.round(this.sizeRatioX * this.scroller.x) || 0,
+				y = this.options.listenY && Math.round(this.sizeRatioY * this.scroller.y) || 0;
+
+			if (x < this.minBoundaryX) {
+				this.width = Math.max(this.indicatorWidth + x, 8);
+				this.indicatorStyle.width = this.width + 'px';
+				x = this.minBoundaryX;
+			} else if (x > this.maxBoundaryX) {
+				this.width = Math.max(this.indicatorWidth - (x - this.maxPosX), 8);
+				this.indicatorStyle.width = this.width + 'px';
+				x = this.maxPosX + this.indicatorWidth - this.width;
+			} else if (this.width != this.indicatorWidth) {
+				this.width = this.indicatorWidth;
+				this.indicatorStyle.width = this.width + 'px';
+			}
+
+			if (y < this.minBoundaryY) {
+				this.height = Math.max(this.indicatorHeight + y * 3, 8);
+				this.indicatorStyle.height = this.height + 'px';
+				y = this.minBoundaryY;
+			} else if (y > this.maxBoundaryY) {
+				this.height = Math.max(this.indicatorHeight - (y - this.maxPosY) * 3, 8);
+				this.indicatorStyle.height = this.height + 'px';
+				y = this.maxPosY + this.indicatorHeight - this.height;
+			} else if (this.height != this.indicatorHeight) {
+				this.height = this.indicatorHeight;
+				this.indicatorStyle.height = this.height + 'px';
+			}
+
+			this.x = x;
+			this.y = y;
+
+			this.indicatorStyle['webkitTransform'] = this.scroller._getTranslateStr(x, y);
+
+		},
+		fade: function(val, hold) {
+			if (hold && !this.visible) {
+				return;
+			}
+
+			clearTimeout(this.fadeTimeout);
+			this.fadeTimeout = null;
+
+			var time = val ? 250 : 500,
+				delay = val ? 0 : 300;
+
+			val = val ? '1' : '0';
+
+			this.wrapperStyle['webkitTransitionDuration'] = time + 'ms';
+
+			this.fadeTimeout = setTimeout((function(val) {
+				this.wrapperStyle.opacity = val;
+				this.visible = +val;
+			}).bind(this, val), delay);
+		}
+	};
+
+	$.Scroll = Scroll;
+
+	$.fn.scroll = function(options) {
+		var scrollApis = [];
+		this.each(function() {
+			var scrollApi = null;
+			var self = this;
+			var id = self.getAttribute('data-scroll');
+			if (!id) {
+				id = ++$.uuid;
+				var _options = $.extend({}, options);
+				if (self.classList.contains('mui-segmented-control')) {
+					_options = $.extend(_options, {
+						scrollY: false,
+						scrollX: true,
+						indicators: false,
+						snap: '.mui-control-item'
+					});
+				}
+				$.data[id] = scrollApi = new Scroll(self, _options);
+				self.setAttribute('data-scroll', id);
+			} else {
+				scrollApi = $.data[id];
+			}
+			scrollApis.push(scrollApi);
+		});
+		return scrollApis.length === 1 ? scrollApis[0] : scrollApis;
+	};
+})(mui, window, document);
+(function($, window, document, undefined) {
+
+    var CLASS_VISIBILITY = 'mui-visibility';
+    var CLASS_HIDDEN = 'mui-hidden';
+
+    var PullRefresh = $.Scroll.extend($.extend({
+        handleEvent: function(e) {
+            this._super(e);
+            if (e.type === 'scrollbottom') {
+                if (e.target === this.scroller) {
+                    this._scrollbottom();
+                }
+            }
+        },
+        _scrollbottom: function() {
+            if (!this.pulldown && !this.loading) {
+                this.pulldown = false;
+                this._initPullupRefresh();
+                this.pullupLoading();
+            }
+        },
+        _start: function(e) {
+            //仅下拉刷新在start阻止默认事件
+            if (e.touches && e.touches.length && e.touches[0].clientX > 30) {
+                e.target && !this._preventDefaultException(e.target, this.options.preventDefaultException) && e.preventDefault();
+            }
+            if (!this.loading) {
+                this.pulldown = this.pullPocket = this.pullCaption = this.pullLoading = false
+            }
+            this._super(e);
+        },
+        _drag: function(e) {
+            if (this.y >= 0 && this.disablePulldown && e.detail.direction === 'down') { //禁用下拉刷新
+                return;
+            }
+            this._super(e);
+            if (!this.pulldown && !this.loading && this.topPocket && e.detail.direction === 'down' && this.y >= 0) {
+                this._initPulldownRefresh();
+            }
+            if (this.pulldown) {
+                this._setCaption(this.y > this.options.down.height ? this.options.down.contentover : this.options.down.contentdown);
+            }
+        },
+
+        _reLayout: function() {
+            this.hasVerticalScroll = true;
+            this._super();
+        },
+        //API
+        resetPosition: function(time) {
+            if (this.pulldown && !this.disablePulldown) {
+                if (this.y >= this.options.down.height) {
+                    this.pulldownLoading(undefined, time || 0);
+                    return true;
+                } else {
+                    !this.loading && this.topPocket.classList.remove(CLASS_VISIBILITY);
+                }
+            }
+            return this._super(time);
+        },
+        pulldownLoading: function(y, time) {
+            typeof y === 'undefined' && (y = this.options.down.height); //默认高度
+            this.scrollTo(0, y, time, this.options.bounceEasing);
+            if (this.loading) {
+                return;
+            }
+            //			if (!this.pulldown) {
+            this._initPulldownRefresh();
+            //			}
+            this._setCaption(this.options.down.contentrefresh);
+            this.loading = true;
+            this.indicators.map(function(indicator) {
+                indicator.fade(0);
+            });
+            var callback = this.options.down.callback;
+            callback && callback.call(this);
+        },
+        endPulldownToRefresh: function() {
+            var self = this;
+            if (self.topPocket && self.loading && this.pulldown) {
+                self.scrollTo(0, 0, self.options.bounceTime, self.options.bounceEasing);
+                self.loading = false;
+                self._setCaption(self.options.down.contentdown, true);
+                setTimeout(function() {
+                    self.loading || self.topPocket.classList.remove(CLASS_VISIBILITY);
+                }, 350);
+            }
+        },
+        pullupLoading: function(callback, x, time) {
+            x = x || 0;
+            this.scrollTo(x, this.maxScrollY, time, this.options.bounceEasing);
+            if (this.loading) {
+                return;
+            }
+            this._initPullupRefresh();
+            this._setCaption(this.options.up.contentrefresh);
+            this.indicators.map(function(indicator) {
+                indicator.fade(0);
+            });
+            this.loading = true;
+            callback = callback || this.options.up.callback;
+            callback && callback.call(this);
+        },
+        endPullupToRefresh: function(finished) {
+            var self = this;
+            if (self.bottomPocket) { // && self.loading && !this.pulldown
+                self.loading = false;
+                if (finished) {
+                    this.finished = true;
+                    self._setCaption(self.options.up.contentnomore);
+                    //					self.bottomPocket.classList.remove(CLASS_VISIBILITY);
+                    //					self.bottomPocket.classList.add(CLASS_HIDDEN);
+                    self.wrapper.removeEventListener('scrollbottom', self);
+                } else {
+                    self._setCaption(self.options.up.contentdown);
+                    //					setTimeout(function() {
+                    self.loading || self.bottomPocket.classList.remove(CLASS_VISIBILITY);
+                    //					}, 300);
+                }
+            }
+        },
+        disablePullupToRefresh: function() {
+            this._initPullupRefresh();
+            this.bottomPocket.className = 'mui-pull-bottom-pocket' + ' ' + CLASS_HIDDEN;
+            this.wrapper.removeEventListener('scrollbottom', this);
+        },
+        disablePulldownToRefresh: function() {
+            this._initPulldownRefresh();
+            this.topPocket.className = 'mui-pull-top-pocket' + ' ' + CLASS_HIDDEN;
+            this.disablePulldown = true;
+        },
+        enablePulldownToRefresh: function() {
+            this._initPulldownRefresh();
+            this.topPocket.classList.remove(CLASS_HIDDEN);
+            this._setCaption(this.options.down.contentdown);
+            this.disablePulldown = false;
+        },
+        enablePullupToRefresh: function() {
+            this._initPullupRefresh();
+            this.bottomPocket.classList.remove(CLASS_HIDDEN);
+            this._setCaption(this.options.up.contentdown);
+            this.wrapper.addEventListener('scrollbottom', this);
+        },
+        refresh: function(isReset) {
+            if (isReset && this.finished) {
+                this.enablePullupToRefresh();
+                this.finished = false;
+            }
+            this._super();
+        },
+    }, $.PullRefresh));
+    $.fn.pullRefresh = function(options) {
+        if (this.length === 1) {
+            var self = this[0];
+            var pullRefreshApi = null;
+            var id = self.getAttribute('data-pullrefresh');
+            if (!id && typeof options === 'undefined') {
+                return false;
+            }
+            options = options || {};
+            if (!id) {
+                id = ++$.uuid;
+                $.data[id] = pullRefreshApi = new PullRefresh(self, options);
+                self.setAttribute('data-pullrefresh', id);
+            } else {
+                pullRefreshApi = $.data[id];
+            }
+            if (options.down && options.down.auto) { //如果设置了auto,则自动下拉一次
+                pullRefreshApi.pulldownLoading(options.down.autoY);
+            } else if (options.up && options.up.auto) { //如果设置了auto,则自动上拉一次
+                pullRefreshApi.pullupLoading();
+            }
+            //暂不提供这种调用方式吧			
+            //			if (typeof options === 'string') {
+            //				var methodValue = pullRefreshApi[options].apply(pullRefreshApi, $.slice.call(arguments, 1));
+            //				if (methodValue !== undefined) {
+            //					return methodValue;
+            //				}
+            //			}
+            return pullRefreshApi;
+        }
+    };
+})(mui, window, document);
+/**
+ * snap 重构
+ * @param {Object} $
+ * @param {Object} window
+ */
+(function($, window) {
+	var CLASS_SLIDER = 'mui-slider';
+	var CLASS_SLIDER_GROUP = 'mui-slider-group';
+	var CLASS_SLIDER_LOOP = 'mui-slider-loop';
+	var CLASS_SLIDER_INDICATOR = 'mui-slider-indicator';
+	var CLASS_ACTION_PREVIOUS = 'mui-action-previous';
+	var CLASS_ACTION_NEXT = 'mui-action-next';
+	var CLASS_SLIDER_ITEM = 'mui-slider-item';
+
+	var CLASS_ACTIVE = 'mui-active';
+
+	var SELECTOR_SLIDER_ITEM = '.' + CLASS_SLIDER_ITEM;
+	var SELECTOR_SLIDER_INDICATOR = '.' + CLASS_SLIDER_INDICATOR;
+	var SELECTOR_SLIDER_PROGRESS_BAR = '.mui-slider-progress-bar';
+
+	var Slider = $.Slider = $.Scroll.extend({
+		init: function(element, options) {
+			this._super(element, $.extend(true, {
+				fingers: 1,
+				interval: 0, //设置为0,则不定时轮播
+				scrollY: false,
+				scrollX: true,
+				indicators: false,
+				scrollTime: 1000,
+				startX: false,
+				slideTime: 0, //滑动动画时间
+				snap: SELECTOR_SLIDER_ITEM
+			}, options));
+			if (this.options.startX) {
+				//				$.trigger(this.wrapper, 'scrollend', this);
+			}
+		},
+		_init: function() {
+			this._reInit();
+			if (this.scroller) {
+				this.scrollerStyle = this.scroller.style;
+				this.progressBar = this.wrapper.querySelector(SELECTOR_SLIDER_PROGRESS_BAR);
+				if (this.progressBar) {
+					this.progressBarWidth = this.progressBar.offsetWidth;
+					this.progressBarStyle = this.progressBar.style;
+				}
+				//忘记这个代码是干什么的了?
+				//				this.x = this._getScroll();
+				//				if (this.options.startX === false) {
+				//					this.options.startX = this.x;
+				//				}
+				//根据active修正startX
+
+				this._super();
+				this._initTimer();
+			}
+		},
+		_triggerSlide: function() {
+			var self = this;
+			self.isInTransition = false;
+			var page = self.currentPage;
+			self.slideNumber = self._fixedSlideNumber();
+			if (self.loop) {
+				if (self.slideNumber === 0) {
+					self.setTranslate(self.pages[1][0].x, 0);
+				} else if (self.slideNumber === self.itemLength - 3) {
+					self.setTranslate(self.pages[self.itemLength - 2][0].x, 0);
+				}
+			}
+			if (self.lastSlideNumber != self.slideNumber) {
+				self.lastSlideNumber = self.slideNumber;
+				self.lastPage = self.currentPage;
+				$.trigger(self.wrapper, 'slide', {
+					slideNumber: self.slideNumber
+				});
+			}
+			self._initTimer();
+		},
+		_handleSlide: function(e) {
+			var self = this;
+			if (e.target !== self.wrapper) {
+				return;
+			}
+			var detail = e.detail;
+			detail.slideNumber = detail.slideNumber || 0;
+			var temps = self.scroller.querySelectorAll(SELECTOR_SLIDER_ITEM);
+			var items = [];
+			for (var i = 0, len = temps.length; i < len; i++) {
+				var item = temps[i];
+				if (item.parentNode === self.scroller) {
+					items.push(item);
+				}
+			}
+			var _slideNumber = detail.slideNumber;
+			if (self.loop) {
+				_slideNumber += 1;
+			}
+			if (!self.wrapper.classList.contains('mui-segmented-control')) {
+				for (var i = 0, len = items.length; i < len; i++) {
+					var item = items[i];
+					if (item.parentNode === self.scroller) {
+						if (i === _slideNumber) {
+							item.classList.add(CLASS_ACTIVE);
+						} else {
+							item.classList.remove(CLASS_ACTIVE);
+						}
+					}
+				}
+			}
+			var indicatorWrap = self.wrapper.querySelector('.mui-slider-indicator');
+			if (indicatorWrap) {
+				if (indicatorWrap.getAttribute('data-scroll')) { //scroll
+					$(indicatorWrap).scroll().gotoPage(detail.slideNumber);
+				}
+				var indicators = indicatorWrap.querySelectorAll('.mui-indicator');
+				if (indicators.length > 0) { //图片轮播
+					for (var i = 0, len = indicators.length; i < len; i++) {
+						indicators[i].classList[i === detail.slideNumber ? 'add' : 'remove'](CLASS_ACTIVE);
+					}
+				} else {
+					var number = indicatorWrap.querySelector('.mui-number span');
+					if (number) { //图文表格
+						number.innerText = (detail.slideNumber + 1);
+					} else { //segmented controls
+						var controlItems = indicatorWrap.querySelectorAll('.mui-control-item');
+						for (var i = 0, len = controlItems.length; i < len; i++) {
+							controlItems[i].classList[i === detail.slideNumber ? 'add' : 'remove'](CLASS_ACTIVE);
+						}
+					}
+				}
+			}
+			e.stopPropagation();
+		},
+		_handleTabShow: function(e) {
+			var self = this;
+			self.gotoItem((e.detail.tabNumber || 0), self.options.slideTime);
+		},
+		_handleIndicatorTap: function(event) {
+			var self = this;
+			var target = event.target;
+			if (target.classList.contains(CLASS_ACTION_PREVIOUS) || target.classList.contains(CLASS_ACTION_NEXT)) {
+				self[target.classList.contains(CLASS_ACTION_PREVIOUS) ? 'prevItem' : 'nextItem']();
+				event.stopPropagation();
+			}
+		},
+		_initEvent: function(detach) {
+			var self = this;
+			self._super(detach);
+			var action = detach ? 'removeEventListener' : 'addEventListener';
+			self.wrapper[action]('slide', this);
+			self.wrapper[action]($.eventName('shown', 'tab'), this);
+		},
+		handleEvent: function(e) {
+			this._super(e);
+			switch (e.type) {
+				case 'slide':
+					this._handleSlide(e);
+					break;
+				case $.eventName('shown', 'tab'):
+					if (~this.snaps.indexOf(e.target)) { //避免嵌套监听错误的tab show
+						this._handleTabShow(e);
+					}
+					break;
+			}
+		},
+		_scrollend: function(e) {
+			this._super(e);
+			this._triggerSlide(e);
+		},
+		_drag: function(e) {
+			this._super(e);
+			var direction = e.detail.direction;
+			if (direction === 'left' || direction === 'right') {
+				//拖拽期间取消定时
+				var slidershowTimer = this.wrapper.getAttribute('data-slidershowTimer');
+				slidershowTimer && window.clearTimeout(slidershowTimer);
+
+				e.stopPropagation();
+			}
+		},
+		_initTimer: function() {
+			var self = this;
+			var slider = self.wrapper;
+			var interval = self.options.interval;
+			var slidershowTimer = slider.getAttribute('data-slidershowTimer');
+			slidershowTimer && window.clearTimeout(slidershowTimer);
+			if (interval) {
+				slidershowTimer = window.setTimeout(function() {
+					if (!slider) {
+						return;
+					}
+					//仅slider显示状态进行自动轮播
+					if (!!(slider.offsetWidth || slider.offsetHeight)) {
+						self.nextItem(true);
+						//下一个
+					}
+					self._initTimer();
+				}, interval);
+				slider.setAttribute('data-slidershowTimer', slidershowTimer);
+			}
+		},
+
+		_fixedSlideNumber: function(page) {
+			page = page || this.currentPage;
+			var slideNumber = page.pageX;
+			if (this.loop) {
+				if (page.pageX === 0) {
+					slideNumber = this.itemLength - 3;
+				} else if (page.pageX === (this.itemLength - 1)) {
+					slideNumber = 0;
+				} else {
+					slideNumber = page.pageX - 1;
+				}
+			}
+			return slideNumber;
+		},
+		_reLayout: function() {
+			this.hasHorizontalScroll = true;
+			this.loop = this.scroller.classList.contains(CLASS_SLIDER_LOOP);
+			this._super();
+		},
+		_getScroll: function() {
+			var result = $.parseTranslateMatrix($.getStyles(this.scroller, 'webkitTransform'));
+			return result ? result.x : 0;
+		},
+		_transitionEnd: function(e) {
+			if (e.target !== this.scroller || !this.isInTransition) {
+				return;
+			}
+			this._transitionTime();
+			this.isInTransition = false;
+			$.trigger(this.wrapper, 'scrollend', this);
+		},
+		_flick: function(e) {
+			if (!this.moved) { //无moved
+				return;
+			}
+			var detail = e.detail;
+			var direction = detail.direction;
+			this._clearRequestAnimationFrame();
+			this.isInTransition = true;
+			//			if (direction === 'up' || direction === 'down') {
+			//				this.resetPosition(this.options.bounceTime);
+			//				return;
+			//			}
+			if (e.type === 'flick') {
+				if (detail.deltaTime < 200) { //flick,太容易触发,额外校验一下deltaTime
+					this.x = this._getPage((this.slideNumber + (direction === 'right' ? -1 : 1)), true).x;
+				}
+				this.resetPosition(this.options.bounceTime);
+			} else if (e.type === 'dragend' && !detail.flick) {
+				this.resetPosition(this.options.bounceTime);
+			}
+			e.stopPropagation();
+		},
+		_initSnap: function() {
+			this.scrollerWidth = this.itemLength * this.scrollerWidth;
+			this.maxScrollX = Math.min(this.wrapperWidth - this.scrollerWidth, 0);
+			this._super();
+			if (!this.currentPage.x) {
+				//当slider处于隐藏状态时,导致snap计算是错误的,临时先这么判断一下,后续要考虑解决所有scroll在隐藏状态下初始化属性不正确的问题
+				var currentPage = this.pages[this.loop ? 1 : 0];
+				currentPage = currentPage || this.pages[0];
+				if (!currentPage) {
+					return;
+				}
+				this.currentPage = currentPage[0];
+				this.slideNumber = 0;
+				this.lastSlideNumber = typeof this.lastSlideNumber === 'undefined' ? 0 : this.lastSlideNumber;
+			} else {
+				this.slideNumber = this._fixedSlideNumber();
+				this.lastSlideNumber = typeof this.lastSlideNumber === 'undefined' ? this.slideNumber : this.lastSlideNumber;
+			}
+			this.options.startX = this.currentPage.x || 0;
+		},
+		_getSnapX: function(offsetLeft) {
+			return Math.max(-offsetLeft, this.maxScrollX);
+		},
+		_getPage: function(slideNumber, isFlick) {
+			if (this.loop) {
+				if (slideNumber > (this.itemLength - (isFlick ? 2 : 3))) {
+					slideNumber = 1;
+					time = 0;
+				} else if (slideNumber < (isFlick ? -1 : 0)) {
+					slideNumber = this.itemLength - 2;
+					time = 0;
+				} else {
+					slideNumber += 1;
+				}
+			} else {
+				if (!isFlick) {
+					if (slideNumber > (this.itemLength - 1)) {
+						slideNumber = 0;
+						time = 0;
+					} else if (slideNumber < 0) {
+						slideNumber = this.itemLength - 1;
+						time = 0;
+					}
+				}
+				slideNumber = Math.min(Math.max(0, slideNumber), this.itemLength - 1);
+			}
+			return this.pages[slideNumber][0];
+		},
+		_gotoItem: function(slideNumber, time) {
+			this.currentPage = this._getPage(slideNumber, true); //此处传true。可保证程序切换时,动画与人手操作一致(第一张,最后一张的切换动画)
+			this.scrollTo(this.currentPage.x, 0, time, this.options.scrollEasing);
+			if (time === 0) {
+				$.trigger(this.wrapper, 'scrollend', this);
+			}
+		},
+		//API
+		setTranslate: function(x, y) {
+			this._super(x, y);
+			var progressBar = this.progressBar;
+			if (progressBar) {
+				this.progressBarStyle.webkitTransform = this._getTranslateStr((-x * (this.progressBarWidth / this.wrapperWidth)), 0);
+			}
+		},
+		resetPosition: function(time) {
+			time = time || 0;
+			if (this.x > 0) {
+				this.x = 0;
+			} else if (this.x < this.maxScrollX) {
+				this.x = this.maxScrollX;
+			}
+			this.currentPage = this._nearestSnap(this.x);
+			this.scrollTo(this.currentPage.x, 0, time, this.options.scrollEasing);
+			return true;
+		},
+		gotoItem: function(slideNumber, time) {
+			this._gotoItem(slideNumber, typeof time === 'undefined' ? this.options.scrollTime : time);
+		},
+		nextItem: function() {
+			this._gotoItem(this.slideNumber + 1, this.options.scrollTime);
+		},
+		prevItem: function() {
+			this._gotoItem(this.slideNumber - 1, this.options.scrollTime);
+		},
+		getSlideNumber: function() {
+			return this.slideNumber || 0;
+		},
+		_reInit: function() {
+			var groups = this.wrapper.querySelectorAll('.' + CLASS_SLIDER_GROUP);
+			for (var i = 0, len = groups.length; i < len; i++) {
+				if (groups[i].parentNode === this.wrapper) {
+					this.scroller = groups[i];
+					break;
+				}
+			}
+			this.scrollerStyle = this.scroller && this.scroller.style;
+			if (this.progressBar) {
+				this.progressBarWidth = this.progressBar.offsetWidth;
+				this.progressBarStyle = this.progressBar.style;
+			}
+		},
+		refresh: function(options) {
+			if (options) {
+				$.extend(this.options, options);
+				this._super();
+				this._initTimer();
+			} else {
+				this._super();
+			}
+		},
+		destroy: function() {
+			this._initEvent(true); //detach
+			delete $.data[this.wrapper.getAttribute('data-slider')];
+			this.wrapper.setAttribute('data-slider', '');
+		}
+	});
+	$.fn.slider = function(options) {
+		var slider = null;
+		this.each(function() {
+			var sliderElement = this;
+			if (!this.classList.contains(CLASS_SLIDER)) {
+				sliderElement = this.querySelector('.' + CLASS_SLIDER);
+			}
+			if (sliderElement && sliderElement.querySelector(SELECTOR_SLIDER_ITEM)) {
+				var id = sliderElement.getAttribute('data-slider');
+				if (!id) {
+					id = ++$.uuid;
+					$.data[id] = slider = new Slider(sliderElement, options);
+					sliderElement.setAttribute('data-slider', id);
+				} else {
+					slider = $.data[id];
+					if (slider && options) {
+						slider.refresh(options);
+					}
+				}
+			}
+		});
+		return slider;
+	};
+	$.ready(function() {
+		//		setTimeout(function() {
+		$('.mui-slider').slider();
+		$('.mui-scroll-wrapper.mui-slider-indicator.mui-segmented-control').scroll({
+			scrollY: false,
+			scrollX: true,
+			indicators: false,
+			snap: '.mui-control-item'
+		});
+		//		}, 500); //临时处理slider宽度计算不正确的问题(初步确认是scrollbar导致的)
+
+	});
+})(mui, window);
+/**
+ * pullRefresh 5+
+ * @param {type} $
+ * @returns {undefined}
+ */
+(function($, document) {
+    if (!($.os.plus)) { //仅在5+android支持多webview的使用
+        return;
+    }
+    $.plusReady(function() {
+        if (window.__NWin_Enable__ === false) { //不支持多webview,则不用5+下拉刷新
+            return;
+        }
+        var CLASS_PLUS_PULLREFRESH = 'mui-plus-pullrefresh';
+        var CLASS_VISIBILITY = 'mui-visibility';
+        var CLASS_HIDDEN = 'mui-hidden';
+        var CLASS_BLOCK = 'mui-block';
+
+        var CLASS_PULL_CAPTION = 'mui-pull-caption';
+        var CLASS_PULL_CAPTION_DOWN = 'mui-pull-caption-down';
+        var CLASS_PULL_CAPTION_REFRESH = 'mui-pull-caption-refresh';
+        var CLASS_PULL_CAPTION_NOMORE = 'mui-pull-caption-nomore';
+
+        var PlusPullRefresh = $.Class.extend({
+            init: function(element, options) {
+                this.element = element;
+                this.options = options;
+                this.wrapper = this.scroller = element;
+                this._init();
+                this._initPulldownRefreshEvent();
+            },
+            _init: function() {
+                var self = this;
+                //document.addEventListener('plusscrollbottom', this);
+                window.addEventListener('dragup', self);
+                document.addEventListener("plusscrollbottom", self);
+                self.scrollInterval = window.setInterval(function() {
+                    if (self.isScroll && !self.loading) {
+                        if (window.pageYOffset + window.innerHeight + 10 >= document.documentElement.scrollHeight) {
+                            self.isScroll = false; //放在这里是因为快速滚动的话,有可能检测时,还没到底,所以只要有滚动,没到底之前一直检测高度变化
+                            if (self.bottomPocket) {
+                                self.pullupLoading();
+                            }
+                        }
+                    }
+                }, 100);
+            },
+            _initPulldownRefreshEvent: function() {
+                var self = this;
+                $.plusReady(function() {
+                    if (self.options.down.style == "circle") {
+                        //单webview、原生转圈
+                        self.options.webview = plus.webview.currentWebview();
+                        self.options.webview.setPullToRefresh({
+                            support: true,
+                            color: self.options.down.color || '#2BD009',
+                            height: self.options.down.height || '50px',
+                            range: self.options.down.range || '100px',
+                            style: 'circle',
+                            offset: self.options.down.offset || '0px'
+                        }, function() {
+                            self.options.down.callback();
+                        });
+                    } else if (self.topPocket && self.options.webviewId) {
+                        var webview = plus.webview.getWebviewById(self.options.webviewId); //子窗口
+                        if (!webview) {
+                            return;
+                        }
+                        self.options.webview = webview;
+                        var downOptions = self.options.down;
+                        var height = downOptions.height;
+                        webview.addEventListener('close', function() {
+                            var attrWebviewId = self.options.webviewId && self.options.webviewId.replace(/\//g, "_"); //替换所有"/" 
+                            self.element.removeAttribute('data-pullrefresh-plus-' + attrWebviewId);
+                        });
+                        webview.addEventListener("dragBounce", function(e) {
+                            if (!self.pulldown) {
+                                self._initPulldownRefresh();
+                            } else {
+                                self.pullPocket.classList.add(CLASS_BLOCK);
+                            }
+                            switch (e.status) {
+                                case "beforeChangeOffset": //下拉可刷新状态
+                                    self._setCaption(downOptions.contentdown);
+                                    break;
+                                case "afterChangeOffset": //松开可刷新状态
+                                    self._setCaption(downOptions.contentover);
+                                    break;
+                                case "dragEndAfterChangeOffset": //正在刷新状态
+                                    //执行下拉刷新所在webview的回调函数
+                                    webview.evalJS("window.mui&&mui.options.pullRefresh.down.callback()");
+                                    self._setCaption(downOptions.contentrefresh);
+                                    break;
+                                default:
+                                    break;
+                            }
+                        }, false);
+
+                        webview.setBounce({
+                            position: {
+                                top: height * 2 + 'px'
+                            },
+                            changeoffset: {
+                                top: height + 'px'
+                            }
+                        });
+
+                    }
+                });
+            },
+            handleEvent: function(e) {
+                var self = this;
+                if (self.stopped) {
+                    return;
+                }
+                self.isScroll = false;
+                if (e.type === 'dragup' || e.type === 'plusscrollbottom') {
+                    self.isScroll = true;
+                    setTimeout(function() {
+                        self.isScroll = false;
+                    }, 1000);
+                }
+            }
+        }).extend($.extend({
+            setStopped: function(stopped) { //该方法是子页面调用的
+                this.stopped = !!stopped;
+                // TODO 此处需要设置当前webview的bounce为none,目前5+有BUG
+                if (this.stopped) {
+                    this.disablePullupToRefresh();
+                    this.disablePulldownToRefresh();
+                } else {
+                    this.enablePullupToRefresh();
+                    this.enablePulldownToRefresh();
+                }
+            },
+            beginPulldown: function() {
+                var self = this;
+                $.plusReady(function() {
+                    //这里延时的目的是为了保证下拉刷新组件初始化完成,后续应该做成有状态的
+                    setTimeout(function() {
+                        if (self.options.down.style == "circle") { //单webview下拉刷新
+                            plus.webview.currentWebview().beginPullToRefresh();
+                        } else { //双webview模式
+                            var webview = self.options.webview;
+                            if (webview) {
+                                webview.setBounce({
+                                    offset: {
+                                        top: self.options.down.height + "px"
+                                    }
+                                });
+                            }
+                        }
+                    }, 15);
+                }.bind(this));
+            },
+            pulldownLoading: function() { //该方法是子页面调用的,兼容老的历史API
+                this.beginPulldown();
+            },
+            _pulldownLoading: function() { //该方法是父页面调用的
+                var self = this;
+                $.plusReady(function() {
+                    var childWebview = plus.webview.getWebviewById(self.options.webviewId);
+                    childWebview && childWebview.setBounce({
+                        offset: {
+                            top: self.options.down.height + "px"
+                        }
+                    });
+                });
+            },
+            endPulldown: function() {
+                var _wv = plus.webview.currentWebview();
+                //双webview的下拉刷新,需要修改父窗口提示信息
+                if (_wv.parent() && this.options.down.style !== "circle") {
+                    _wv.parent().evalJS("mui&&mui(document.querySelector('.mui-content')).pullRefresh('" + JSON.stringify({
+                        webviewId: _wv.id
+                    }) + "')._endPulldownToRefresh()");
+                } else {
+                    _wv.endPullToRefresh();
+                }
+            },
+            endPulldownToRefresh: function() { //该方法是子页面调用的,兼容老的历史API
+                this.endPulldown();
+            },
+            _endPulldownToRefresh: function() { //该方法是父页面调用的
+                var self = this;
+                if (self.topPocket && self.options.webview) {
+                    self.options.webview.endPullToRefresh(); //下拉刷新所在webview回弹
+                    self.loading = false;
+                    self._setCaption(self.options.down.contentdown, true);
+                    setTimeout(function() {
+                        self.loading || self.topPocket.classList.remove(CLASS_BLOCK);
+                    }, 350);
+                }
+            },
+            beginPullup: function(callback) { //开始上拉加载
+                var self = this;
+                if (self.isLoading) return;
+                self.isLoading = true;
+                if (self.pulldown !== false) {
+                    self._initPullupRefresh();
+                } else {
+                    this.pullPocket.classList.add(CLASS_BLOCK);
+                }
+                setTimeout(function() {
+                    self.pullLoading.classList.add(CLASS_VISIBILITY);
+                    self.pullLoading.classList.remove(CLASS_HIDDEN);
+                    self.pullCaption.innerHTML = ''; //修正5+里边第一次加载时,文字显示的bug(还会显示出来个“多”,猜测应该是渲染问题导致的)
+                    self.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_REFRESH;
+                    self.pullCaption.innerHTML = self.options.up.contentrefresh;
+                    callback = callback || self.options.up.callback;
+                    callback && callback.call(self);
+                }, 300);
+            },
+            pullupLoading: function(callback) { //兼容老的API
+                this.beginPullup(callback);
+            },
+            endPullup: function(finished) { //上拉加载结束
+                var self = this;
+                if (self.pullLoading) {
+                    self.pullLoading.classList.remove(CLASS_VISIBILITY);
+                    self.pullLoading.classList.add(CLASS_HIDDEN);
+                    self.isLoading = false;
+                    if (finished) {
+                        self.finished = true;
+                        self.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_NOMORE;
+                        self.pullCaption.innerHTML = self.options.up.contentnomore;
+                        //取消5+的plusscrollbottom事件
+                        document.removeEventListener('plusscrollbottom', self);
+                        window.removeEventListener('dragup', self);
+                    } else { //初始化时隐藏,后续不再隐藏
+                        self.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
+                        self.pullCaption.innerHTML = self.options.up.contentdown;
+                    }
+                }
+            },
+            endPullupToRefresh: function(finished) { //上拉加载结束,兼容老的API
+                this.endPullup(finished);
+            },
+            disablePulldownToRefresh: function() {
+                var webview = plus.webview.currentWebview();
+                if (this.options.down.style && this.options.down.style == 'circle') { // 单webview模式禁止原生下拉刷新
+                    this.options.webview.setPullToRefresh({
+                        support: false,
+                        style: 'circle'
+                    });
+                } else { // 双webview模式禁止下拉刷新
+                    webview.setStyle({
+                        bounce: 'none'
+                    });
+                    webview.setBounce({
+                        position: {
+                            top: 'none'
+                        }
+                    });
+                }
+            },
+            enablePulldownToRefresh: function() {
+                var self = this,
+                    webview = plus.webview.currentWebview(),
+                    height = this.options.down.height;
+                // 单webview模式禁止原生下拉刷新
+                if (this.options.down.style && this.options.down.style == 'circle') {
+                    webview.setPullToRefresh({
+                        support: true,
+                        height: height || '50px',
+                        range: self.options.down.range || '100px',
+                        style: 'circle',
+                        offset: self.options.down.offset || '0px'
+                    });
+                } else { // 重新初始化双webview模式下拉刷新
+                    webview.setStyle({
+                        bounce: 'vertical'
+                    });
+                    webview.setBounce({
+                        position: {
+                            top: height * 2 + 'px'
+                        },
+                        changeoffset: {
+                            top: height + 'px'
+                        }
+                    });
+                }
+            },
+            disablePullupToRefresh: function() {
+                this._initPullupRefresh();
+                this.bottomPocket.className = 'mui-pull-bottom-pocket' + ' ' + CLASS_HIDDEN;
+                window.removeEventListener('dragup', this);
+            },
+            enablePullupToRefresh: function() {
+                this._initPullupRefresh();
+                this.bottomPocket.classList.remove(CLASS_HIDDEN);
+                this.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
+                this.pullCaption.innerHTML = this.options.up.contentdown;
+                document.addEventListener("plusscrollbottom", this);
+                window.addEventListener('dragup', this);
+            },
+            scrollTo: function(x, y, time) {
+                $.scrollTo(y, time);
+            },
+            scrollToBottom: function(time) {
+                $.scrollTo(document.documentElement.scrollHeight, time);
+            },
+            refresh: function(isReset) {
+                if (isReset && this.finished) {
+                    this.enablePullupToRefresh();
+                    this.finished = false;
+                }
+            }
+        }, $.PullRefresh));
+
+        //override h5 pullRefresh
+        $.fn.pullRefresh_native = function(options) {
+            var self;
+            if (this.length === 0) {
+                self = document.createElement('div');
+                self.className = 'mui-content';
+                document.body.appendChild(self);
+            } else {
+                self = this[0];
+            }
+            var args = options;
+            //一个父需要支持多个子下拉刷新
+            options = options || {}
+            if (typeof options === 'string') {
+                options = $.parseJSON(options);
+            };
+            !options.webviewId && (options.webviewId = (plus.webview.currentWebview().id || plus.webview.currentWebview().getURL()));
+            var pullRefreshApi = null;
+            var attrWebviewId = options.webviewId && options.webviewId.replace(/\//g, "_"); //替换所有"/"
+            var id = self.getAttribute('data-pullrefresh-plus-' + attrWebviewId);
+            if (!id && typeof args === 'undefined') {
+                return false;
+            }
+            if (!id) { //避免重复初始化5+ pullrefresh
+                id = ++$.uuid;
+                self.setAttribute('data-pullrefresh-plus-' + attrWebviewId, id);
+                document.body.classList.add(CLASS_PLUS_PULLREFRESH);
+                $.data[id] = pullRefreshApi = new PlusPullRefresh(self, options);
+            } else {
+                pullRefreshApi = $.data[id];
+            }
+            if (options.down && options.down.auto) { //如果设置了auto,则自动下拉一次
+                //pullRefreshApi._pulldownLoading(); //parent webview
+                pullRefreshApi.beginPulldown();
+            } else if (options.up && options.up.auto) { //如果设置了auto,则自动上拉一次
+                pullRefreshApi.beginPullup();
+            }
+            return pullRefreshApi;
+        };
+    });
+
+})(mui, document);
+/**
+ * off-canvas
+ * @param {type} $
+ * @param {type} window
+ * @param {type} document
+ * @param {type} action
+ * @returns {undefined}
+ */
+(function($, window, document, name) {
+	var CLASS_OFF_CANVAS_LEFT = 'mui-off-canvas-left';
+	var CLASS_OFF_CANVAS_RIGHT = 'mui-off-canvas-right';
+	var CLASS_ACTION_BACKDROP = 'mui-off-canvas-backdrop';
+	var CLASS_OFF_CANVAS_WRAP = 'mui-off-canvas-wrap';
+
+	var CLASS_SLIDE_IN = 'mui-slide-in';
+	var CLASS_ACTIVE = 'mui-active';
+
+
+	var CLASS_TRANSITIONING = 'mui-transitioning';
+
+	var SELECTOR_INNER_WRAP = '.mui-inner-wrap';
+
+
+	var OffCanvas = $.Class.extend({
+		init: function(element, options) {
+			this.wrapper = this.element = element;
+			this.scroller = this.wrapper.querySelector(SELECTOR_INNER_WRAP);
+			this.classList = this.wrapper.classList;
+			if (this.scroller) {
+				this.options = $.extend(true, {
+					dragThresholdX: 10,
+					scale: 0.8,
+					opacity: 0.1,
+					preventDefaultException: {
+						tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT|VIDEO)$/
+					},
+				}, options);
+				document.body.classList.add('mui-fullscreen'); //fullscreen
+				this.refresh();
+				this.initEvent();
+			}
+		},
+		_preventDefaultException: function(el, exceptions) {
+			for (var i in exceptions) {
+				if (exceptions[i].test(el[i])) {
+					return true;
+				}
+			}
+			return false;
+		},
+		refresh: function(offCanvas) {
+			//			offCanvas && !offCanvas.classList.contains(CLASS_ACTIVE) && this.classList.remove(CLASS_ACTIVE);
+			this.slideIn = this.classList.contains(CLASS_SLIDE_IN);
+			this.scalable = this.classList.contains('mui-scalable') && !this.slideIn;
+			this.scroller = this.wrapper.querySelector(SELECTOR_INNER_WRAP);
+			//			!offCanvas && this.scroller.classList.remove(CLASS_TRANSITIONING);
+			//			!offCanvas && this.scroller.setAttribute('style', '');
+			this.offCanvasLefts = this.wrapper.querySelectorAll('.' + CLASS_OFF_CANVAS_LEFT);
+			this.offCanvasRights = this.wrapper.querySelectorAll('.' + CLASS_OFF_CANVAS_RIGHT);
+			if (offCanvas) {
+				if (offCanvas.classList.contains(CLASS_OFF_CANVAS_LEFT)) {
+					this.offCanvasLeft = offCanvas;
+				} else if (offCanvas.classList.contains(CLASS_OFF_CANVAS_RIGHT)) {
+					this.offCanvasRight = offCanvas;
+				}
+			} else {
+				this.offCanvasRight = this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_RIGHT);
+				this.offCanvasLeft = this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_LEFT);
+			}
+			this.offCanvasRightWidth = this.offCanvasLeftWidth = 0;
+			this.offCanvasLeftSlideIn = this.offCanvasRightSlideIn = false;
+			if (this.offCanvasRight) {
+				this.offCanvasRightWidth = this.offCanvasRight.offsetWidth;
+				this.offCanvasRightSlideIn = this.slideIn && (this.offCanvasRight.parentNode === this.wrapper);
+				//				this.offCanvasRight.classList.remove(CLASS_TRANSITIONING);
+				//				this.offCanvasRight.classList.remove(CLASS_ACTIVE);
+				//				this.offCanvasRight.setAttribute('style', '');
+			}
+			if (this.offCanvasLeft) {
+				this.offCanvasLeftWidth = this.offCanvasLeft.offsetWidth;
+				this.offCanvasLeftSlideIn = this.slideIn && (this.offCanvasLeft.parentNode === this.wrapper);
+				//				this.offCanvasLeft.classList.remove(CLASS_TRANSITIONING);
+				//				this.offCanvasLeft.classList.remove(CLASS_ACTIVE);
+				//				this.offCanvasLeft.setAttribute('style', '');
+			}
+			this.backdrop = this.scroller.querySelector('.' + CLASS_ACTION_BACKDROP);
+
+			this.options.dragThresholdX = this.options.dragThresholdX || 10;
+
+			this.visible = false;
+			this.startX = null;
+			this.lastX = null;
+			this.offsetX = null;
+			this.lastTranslateX = null;
+		},
+		handleEvent: function(e) {
+			switch (e.type) {
+				case $.EVENT_START:
+					e.target && !this._preventDefaultException(e.target, this.options.preventDefaultException) && e.preventDefault();
+					break;
+				case 'webkitTransitionEnd': //有个bug需要处理,需要考虑假设没有触发webkitTransitionEnd的情况
+					if (e.target === this.scroller) {
+						this._dispatchEvent();
+					}
+					break;
+				case 'drag':
+					var detail = e.detail;
+					if (!this.startX) {
+						this.startX = detail.center.x;
+						this.lastX = this.startX;
+					} else {
+						this.lastX = detail.center.x;
+					}
+					if (!this.isDragging && Math.abs(this.lastX - this.startX) > this.options.dragThresholdX && (detail.direction === 'left' || (detail.direction === 'right'))) {
+						if (this.slideIn) {
+							this.scroller = this.wrapper.querySelector(SELECTOR_INNER_WRAP);
+							if (this.classList.contains(CLASS_ACTIVE)) {
+								if (this.offCanvasRight && this.offCanvasRight.classList.contains(CLASS_ACTIVE)) {
+									this.offCanvas = this.offCanvasRight;
+									this.offCanvasWidth = this.offCanvasRightWidth;
+								} else {
+									this.offCanvas = this.offCanvasLeft;
+									this.offCanvasWidth = this.offCanvasLeftWidth;
+								}
+							} else {
+								if (detail.direction === 'left' && this.offCanvasRight) {
+									this.offCanvas = this.offCanvasRight;
+									this.offCanvasWidth = this.offCanvasRightWidth;
+								} else if (detail.direction === 'right' && this.offCanvasLeft) {
+									this.offCanvas = this.offCanvasLeft;
+									this.offCanvasWidth = this.offCanvasLeftWidth;
+								} else {
+									this.scroller = null;
+								}
+							}
+						} else {
+							if (this.classList.contains(CLASS_ACTIVE)) {
+								if (detail.direction === 'left') {
+									this.offCanvas = this.offCanvasLeft;
+									this.offCanvasWidth = this.offCanvasLeftWidth;
+								} else {
+									this.offCanvas = this.offCanvasRight;
+									this.offCanvasWidth = this.offCanvasRightWidth;
+								}
+							} else {
+								if (detail.direction === 'right') {
+									this.offCanvas = this.offCanvasLeft;
+									this.offCanvasWidth = this.offCanvasLeftWidth;
+								} else {
+									this.offCanvas = this.offCanvasRight;
+									this.offCanvasWidth = this.offCanvasRightWidth;
+								}
+							}
+						}
+						if (this.offCanvas && this.scroller) {
+							this.startX = this.lastX;
+							this.isDragging = true;
+
+							$.gestures.session.lockDirection = true; //锁定方向
+							$.gestures.session.startDirection = detail.direction;
+
+							this.offCanvas.classList.remove(CLASS_TRANSITIONING);
+							this.scroller.classList.remove(CLASS_TRANSITIONING);
+							this.offsetX = this.getTranslateX();
+							this._initOffCanvasVisible();
+						}
+					}
+					if (this.isDragging) {
+						this.updateTranslate(this.offsetX + (this.lastX - this.startX));
+						detail.gesture.preventDefault();
+						e.stopPropagation();
+					}
+					break;
+				case 'dragend':
+					if (this.isDragging) {
+						var detail = e.detail;
+						var direction = detail.direction;
+						this.isDragging = false;
+						this.offCanvas.classList.add(CLASS_TRANSITIONING);
+						this.scroller.classList.add(CLASS_TRANSITIONING);
+						var ratio = 0;
+						var x = this.getTranslateX();
+						if (!this.slideIn) {
+							if (x >= 0) {
+								ratio = (this.offCanvasLeftWidth && (x / this.offCanvasLeftWidth)) || 0;
+							} else {
+								ratio = (this.offCanvasRightWidth && (x / this.offCanvasRightWidth)) || 0;
+							}
+							if (ratio === 0) {
+								this.openPercentage(0);
+								this._dispatchEvent(); //此处不触发webkitTransitionEnd,所以手动dispatch
+								return;
+							}
+							if (direction === 'right' && ratio >= 0 && (ratio >= 0.5 || detail.swipe)) { //右滑打开
+								this.openPercentage(100);
+							} else if (direction === 'right' && ratio < 0 && (ratio > -0.5 || detail.swipe)) { //右滑关闭
+								this.openPercentage(0);
+							} else if (direction === 'right' && ratio > 0 && ratio < 0.5) { //右滑还原关闭
+								this.openPercentage(0);
+							} else if (direction === 'right' && ratio < 0.5) { //右滑还原打开
+								this.openPercentage(-100);
+							} else if (direction === 'left' && ratio <= 0 && (ratio <= -0.5 || detail.swipe)) { //左滑打开
+								this.openPercentage(-100);
+							} else if (direction === 'left' && ratio > 0 && (ratio <= 0.5 || detail.swipe)) { //左滑关闭
+								this.openPercentage(0);
+							} else if (direction === 'left' && ratio < 0 && ratio >= -0.5) { //左滑还原关闭
+								this.openPercentage(0);
+							} else if (direction === 'left' && ratio > 0.5) { //左滑还原打开
+								this.openPercentage(100);
+							} else { //默认关闭
+								this.openPercentage(0);
+							}
+							if (ratio === 1 || ratio === -1) { //此处不触发webkitTransitionEnd,所以手动dispatch
+								this._dispatchEvent();
+							}
+						} else {
+							if (x >= 0) {
+								ratio = (this.offCanvasRightWidth && (x / this.offCanvasRightWidth)) || 0;
+							} else {
+								ratio = (this.offCanvasLeftWidth && (x / this.offCanvasLeftWidth)) || 0;
+							}
+							if (direction === 'right' && ratio <= 0 && (ratio >= -0.5 || detail.swipe)) { //右滑打开
+								this.openPercentage(100);
+							} else if (direction === 'right' && ratio > 0 && (ratio >= 0.5 || detail.swipe)) { //右滑关闭
+								this.openPercentage(0);
+							} else if (direction === 'right' && ratio <= -0.5) { //右滑还原关闭
+								this.openPercentage(0);
+							} else if (direction === 'right' && ratio > 0 && ratio <= 0.5) { //右滑还原打开
+								this.openPercentage(-100);
+							} else if (direction === 'left' && ratio >= 0 && (ratio <= 0.5 || detail.swipe)) { //左滑打开
+								this.openPercentage(-100);
+							} else if (direction === 'left' && ratio < 0 && (ratio <= -0.5 || detail.swipe)) { //左滑关闭
+								this.openPercentage(0);
+							} else if (direction === 'left' && ratio >= 0.5) { //左滑还原关闭
+								this.openPercentage(0);
+							} else if (direction === 'left' && ratio >= -0.5 && ratio < 0) { //左滑还原打开
+								this.openPercentage(100);
+							} else {
+								this.openPercentage(0);
+							}
+							if (ratio === 1 || ratio === -1 || ratio === 0) {
+								this._dispatchEvent();
+								return;
+							}
+
+						}
+					}
+					break;
+			}
+		},
+		_dispatchEvent: function() {
+			if (this.classList.contains(CLASS_ACTIVE)) {
+				$.trigger(this.wrapper, 'shown', this);
+			} else {
+				$.trigger(this.wrapper, 'hidden', this);
+			}
+		},
+		_initOffCanvasVisible: function() {
+			if (!this.visible) {
+				this.visible = true;
+				if (this.offCanvasLeft) {
+					this.offCanvasLeft.style.visibility = 'visible';
+				}
+				if (this.offCanvasRight) {
+					this.offCanvasRight.style.visibility = 'visible';
+				}
+			}
+		},
+		initEvent: function() {
+			var self = this;
+			if (self.backdrop) {
+				self.backdrop.addEventListener('tap', function(e) {
+					self.close();
+					e.detail.gesture.preventDefault();
+				});
+			}
+			if (this.classList.contains('mui-draggable')) {
+				this.wrapper.addEventListener($.EVENT_START, this); //临时处理
+				this.wrapper.addEventListener('drag', this);
+				this.wrapper.addEventListener('dragend', this);
+			}
+			this.wrapper.addEventListener('webkitTransitionEnd', this);
+		},
+		openPercentage: function(percentage) {
+			var p = percentage / 100;
+			if (!this.slideIn) {
+				if (this.offCanvasLeft && percentage >= 0) {
+					this.updateTranslate(this.offCanvasLeftWidth * p);
+					this.offCanvasLeft.classList[p !== 0 ? 'add' : 'remove'](CLASS_ACTIVE);
+				} else if (this.offCanvasRight && percentage <= 0) {
+					this.updateTranslate(this.offCanvasRightWidth * p);
+					this.offCanvasRight.classList[p !== 0 ? 'add' : 'remove'](CLASS_ACTIVE);
+				}
+				this.classList[p !== 0 ? 'add' : 'remove'](CLASS_ACTIVE);
+			} else {
+				if (this.offCanvasLeft && percentage >= 0) {
+					p = p === 0 ? -1 : 0;
+					this.updateTranslate(this.offCanvasLeftWidth * p);
+					this.offCanvasLeft.classList[percentage !== 0 ? 'add' : 'remove'](CLASS_ACTIVE);
+				} else if (this.offCanvasRight && percentage <= 0) {
+					p = p === 0 ? 1 : 0;
+					this.updateTranslate(this.offCanvasRightWidth * p);
+					this.offCanvasRight.classList[percentage !== 0 ? 'add' : 'remove'](CLASS_ACTIVE);
+				}
+				this.classList[percentage !== 0 ? 'add' : 'remove'](CLASS_ACTIVE);
+			}
+		},
+		updateTranslate: function(x) {
+			if (x !== this.lastTranslateX) {
+				if (!this.slideIn) {
+					if ((!this.offCanvasLeft && x > 0) || (!this.offCanvasRight && x < 0)) {
+						this.setTranslateX(0);
+						return;
+					}
+					if (this.leftShowing && x > this.offCanvasLeftWidth) {
+						this.setTranslateX(this.offCanvasLeftWidth);
+						return;
+					}
+					if (this.rightShowing && x < -this.offCanvasRightWidth) {
+						this.setTranslateX(-this.offCanvasRightWidth);
+						return;
+					}
+					this.setTranslateX(x);
+					if (x >= 0) {
+						this.leftShowing = true;
+						this.rightShowing = false;
+						if (x > 0) {
+							if (this.offCanvasLeft) {
+								$.each(this.offCanvasLefts, function(index, offCanvas) {
+									if (offCanvas === this.offCanvasLeft) {
+										this.offCanvasLeft.style.zIndex = 0;
+									} else {
+										offCanvas.style.zIndex = -1;
+									}
+								}.bind(this));
+							}
+							if (this.offCanvasRight) {
+								this.offCanvasRight.style.zIndex = -1;
+							}
+						}
+					} else {
+						this.rightShowing = true;
+						this.leftShowing = false;
+						if (this.offCanvasRight) {
+							$.each(this.offCanvasRights, function(index, offCanvas) {
+								if (offCanvas === this.offCanvasRight) {
+									offCanvas.style.zIndex = 0;
+								} else {
+									offCanvas.style.zIndex = -1;
+								}
+							}.bind(this));
+						}
+						if (this.offCanvasLeft) {
+							this.offCanvasLeft.style.zIndex = -1;
+						}
+					}
+				} else {
+					if (this.offCanvas.classList.contains(CLASS_OFF_CANVAS_RIGHT)) {
+						if (x < 0) {
+							this.setTranslateX(0);
+							return;
+						}
+						if (x > this.offCanvasRightWidth) {
+							this.setTranslateX(this.offCanvasRightWidth);
+							return;
+						}
+					} else {
+						if (x > 0) {
+							this.setTranslateX(0);
+							return;
+						}
+						if (x < -this.offCanvasLeftWidth) {
+							this.setTranslateX(-this.offCanvasLeftWidth);
+							return;
+						}
+					}
+					this.setTranslateX(x);
+				}
+				this.lastTranslateX = x;
+			}
+		},
+		setTranslateX: $.animationFrame(function(x) {
+			if (this.scroller) {
+				if (this.scalable && this.offCanvas.parentNode === this.wrapper) {
+					var percent = Math.abs(x) / this.offCanvasWidth;
+					var zoomOutScale = 1 - (1 - this.options.scale) * percent;
+					var zoomInScale = this.options.scale + (1 - this.options.scale) * percent;
+					var zoomOutOpacity = 1 - (1 - this.options.opacity) * percent;
+					var zoomInOpacity = this.options.opacity + (1 - this.options.opacity) * percent;
+					if (this.offCanvas.classList.contains(CLASS_OFF_CANVAS_LEFT)) {
+						this.offCanvas.style.webkitTransformOrigin = '-100%';
+						this.scroller.style.webkitTransformOrigin = 'left';
+					} else {
+						this.offCanvas.style.webkitTransformOrigin = '200%';
+						this.scroller.style.webkitTransformOrigin = 'right';
+					}
+					this.offCanvas.style.opacity = zoomInOpacity;
+					this.offCanvas.style.webkitTransform = 'translate3d(0,0,0) scale(' + zoomInScale + ')';
+					this.scroller.style.webkitTransform = 'translate3d(' + x + 'px,0,0) scale(' + zoomOutScale + ')';
+				} else {
+					if (this.slideIn) {
+						this.offCanvas.style.webkitTransform = 'translate3d(' + x + 'px,0,0)';
+					} else {
+						this.scroller.style.webkitTransform = 'translate3d(' + x + 'px,0,0)';
+					}
+				}
+			}
+		}),
+		getTranslateX: function() {
+			if (this.offCanvas) {
+				var scroller = this.slideIn ? this.offCanvas : this.scroller;
+				var result = $.parseTranslateMatrix($.getStyles(scroller, 'webkitTransform'));
+				return (result && result.x) || 0;
+			}
+			return 0;
+		},
+		isShown: function(direction) {
+			var shown = false;
+			if (!this.slideIn) {
+				var x = this.getTranslateX();
+				if (direction === 'right') {
+					shown = this.classList.contains(CLASS_ACTIVE) && x < 0;
+				} else if (direction === 'left') {
+					shown = this.classList.contains(CLASS_ACTIVE) && x > 0;
+				} else {
+					shown = this.classList.contains(CLASS_ACTIVE) && x !== 0;
+				}
+			} else {
+				if (direction === 'left') {
+					shown = this.classList.contains(CLASS_ACTIVE) && this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_LEFT + '.' + CLASS_ACTIVE);
+				} else if (direction === 'right') {
+					shown = this.classList.contains(CLASS_ACTIVE) && this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_RIGHT + '.' + CLASS_ACTIVE);
+				} else {
+					shown = this.classList.contains(CLASS_ACTIVE) && (this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_LEFT + '.' + CLASS_ACTIVE) || this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_RIGHT + '.' + CLASS_ACTIVE));
+				}
+			}
+			return shown;
+		},
+		close: function() {
+			this._initOffCanvasVisible();
+			this.offCanvas = this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_RIGHT + '.' + CLASS_ACTIVE) || this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_LEFT + '.' + CLASS_ACTIVE);
+			this.offCanvasWidth = this.offCanvas.offsetWidth;
+			if (this.scroller) {
+				this.offCanvas.offsetHeight;
+				this.offCanvas.classList.add(CLASS_TRANSITIONING);
+				this.scroller.classList.add(CLASS_TRANSITIONING);
+				this.openPercentage(0);
+			}
+		},
+		show: function(direction) {
+			this._initOffCanvasVisible();
+			if (this.isShown(direction)) {
+				return false;
+			}
+			if (!direction) {
+				direction = this.wrapper.querySelector('.' + CLASS_OFF_CANVAS_RIGHT) ? 'right' : 'left';
+			}
+			if (direction === 'right') {
+				this.offCanvas = this.offCanvasRight;
+				this.offCanvasWidth = this.offCanvasRightWidth;
+			} else {
+				this.offCanvas = this.offCanvasLeft;
+				this.offCanvasWidth = this.offCanvasLeftWidth;
+			}
+			if (this.scroller) {
+				this.offCanvas.offsetHeight;
+				this.offCanvas.classList.add(CLASS_TRANSITIONING);
+				this.scroller.classList.add(CLASS_TRANSITIONING);
+				this.openPercentage(direction === 'left' ? 100 : -100);
+			}
+			return true;
+		},
+		toggle: function(directionOrOffCanvas) {
+			var direction = directionOrOffCanvas;
+			if (directionOrOffCanvas && directionOrOffCanvas.classList) {
+				direction = directionOrOffCanvas.classList.contains(CLASS_OFF_CANVAS_LEFT) ? 'left' : 'right';
+				this.refresh(directionOrOffCanvas);
+			}
+			if (!this.show(direction)) {
+				this.close();
+			}
+		}
+	});
+
+	//hash to offcanvas
+	var findOffCanvasContainer = function(target) {
+		parentNode = target.parentNode;
+		if (parentNode) {
+			if (parentNode.classList.contains(CLASS_OFF_CANVAS_WRAP)) {
+				return parentNode;
+			} else {
+				parentNode = parentNode.parentNode;
+				if (parentNode.classList.contains(CLASS_OFF_CANVAS_WRAP)) {
+					return parentNode;
+				}
+			}
+		}
+	};
+	var handle = function(event, target) {
+		if (target.tagName === 'A' && target.hash) {
+			var offcanvas = document.getElementById(target.hash.replace('#', ''));
+			if (offcanvas) {
+				var container = findOffCanvasContainer(offcanvas);
+				if (container) {
+					$.targets._container = container;
+					return offcanvas;
+				}
+			}
+		}
+		return false;
+	};
+
+	$.registerTarget({
+		name: name,
+		index: 60,
+		handle: handle,
+		target: false,
+		isReset: false,
+		isContinue: true
+	});
+
+	window.addEventListener('tap', function(e) {
+		if (!$.targets.offcanvas) {
+			return;
+		}
+		//TODO 此处类型的代码后续考虑统一优化(target机制),现在的实现费力不讨好
+		var target = e.target;
+		for (; target && target !== document; target = target.parentNode) {
+			if (target.tagName === 'A' && target.hash && target.hash === ('#' + $.targets.offcanvas.id)) {
+				e.detail && e.detail.gesture && e.detail.gesture.preventDefault(); //fixed hashchange
+				$($.targets._container).offCanvas().toggle($.targets.offcanvas);
+				$.targets.offcanvas = $.targets._container = null;
+				break;
+			}
+		}
+	});
+
+	$.fn.offCanvas = function(options) {
+		var offCanvasApis = [];
+		this.each(function() {
+			var offCanvasApi = null;
+			var self = this;
+			//hack old version
+			if (!self.classList.contains(CLASS_OFF_CANVAS_WRAP)) {
+				self = findOffCanvasContainer(self);
+			}
+			var id = self.getAttribute('data-offCanvas');
+			if (!id) {
+				id = ++$.uuid;
+				$.data[id] = offCanvasApi = new OffCanvas(self, options);
+				self.setAttribute('data-offCanvas', id);
+			} else {
+				offCanvasApi = $.data[id];
+			}
+			if (options === 'show' || options === 'close' || options === 'toggle') {
+				offCanvasApi.toggle();
+			}
+			offCanvasApis.push(offCanvasApi);
+		});
+		return offCanvasApis.length === 1 ? offCanvasApis[0] : offCanvasApis;
+	};
+	$.ready(function() {
+		$('.mui-off-canvas-wrap').offCanvas();
+	});
+})(mui, window, document, 'offcanvas');
+/**
+ * actions
+ * @param {type} $
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, name) {
+	var CLASS_ACTION = 'mui-action';
+
+	var handle = function(event, target) {
+		var className = target.className || '';
+		if (typeof className !== 'string') { //svg className(SVGAnimatedString)
+			className = '';
+		}
+		if (className && ~className.indexOf(CLASS_ACTION)) {
+			if (target.classList.contains('mui-action-back')) {
+				event.preventDefault();
+			}
+			return target;
+		}
+		return false;
+	};
+
+	$.registerTarget({
+		name: name,
+		index: 50,
+		handle: handle,
+		target: false,
+		isContinue: true
+	});
+
+})(mui, 'action');
+/**
+ * Modals
+ * @param {type} $
+ * @param {type} window
+ * @param {type} document
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, window, document, name) {
+	var CLASS_MODAL = 'mui-modal';
+
+	var handle = function(event, target) {
+		if (target.tagName === 'A' && target.hash) {
+			var modal = document.getElementById(target.hash.replace('#', ''));
+			if (modal && modal.classList.contains(CLASS_MODAL)) {
+				return modal;
+			}
+		}
+		return false;
+	};
+
+	$.registerTarget({
+		name: name,
+		index: 50,
+		handle: handle,
+		target: false,
+		isReset: false,
+		isContinue: true
+	});
+
+	window.addEventListener('tap', function(event) {
+		if ($.targets.modal) {
+			event.detail.gesture.preventDefault(); //fixed hashchange
+			$.targets.modal.classList.toggle('mui-active');
+		}
+	});
+})(mui, window, document, 'modal');
+/**
+ * Popovers
+ * @param {type} $
+ * @param {type} window
+ * @param {type} document
+ * @param {type} name
+ * @param {type} undefined
+ * @returns {undefined}
+ */
+(function($, window, document, name) {
+
+	var CLASS_POPOVER = 'mui-popover';
+	var CLASS_POPOVER_ARROW = 'mui-popover-arrow';
+	var CLASS_ACTION_POPOVER = 'mui-popover-action';
+	var CLASS_BACKDROP = 'mui-backdrop';
+	var CLASS_BAR_POPOVER = 'mui-bar-popover';
+	var CLASS_BAR_BACKDROP = 'mui-bar-backdrop';
+	var CLASS_ACTION_BACKDROP = 'mui-backdrop-action';
+	var CLASS_ACTIVE = 'mui-active';
+	var CLASS_BOTTOM = 'mui-bottom';
+
+
+
+	var handle = function(event, target) {
+		if (target.tagName === 'A' && target.hash) {
+			$.targets._popover = document.getElementById(target.hash.replace('#', ''));
+			if ($.targets._popover && $.targets._popover.classList.contains(CLASS_POPOVER)) {
+				return target;
+			} else {
+				$.targets._popover = null;
+			}
+		}
+		return false;
+	};
+
+	$.registerTarget({
+		name: name,
+		index: 60,
+		handle: handle,
+		target: false,
+		isReset: false,
+		isContinue: true
+	});
+
+	var onPopoverShown = function(e) {
+		this.removeEventListener('webkitTransitionEnd', onPopoverShown);
+		this.addEventListener($.EVENT_MOVE, $.preventDefault);
+		$.trigger(this, 'shown', this);
+	}
+	var onPopoverHidden = function(e) {
+		setStyle(this, 'none');
+		this.removeEventListener('webkitTransitionEnd', onPopoverHidden);
+		this.removeEventListener($.EVENT_MOVE, $.preventDefault);
+		$.trigger(this, 'hidden', this);
+	};
+
+	var backdrop = (function() {
+		var element = document.createElement('div');
+		element.classList.add(CLASS_BACKDROP);
+		element.addEventListener($.EVENT_MOVE, $.preventDefault);
+		element.addEventListener('tap', function(e) {
+			var popover = $.targets._popover;
+			if (popover) {
+				popover.addEventListener('webkitTransitionEnd', onPopoverHidden);
+				popover.classList.remove(CLASS_ACTIVE);
+				removeBackdrop(popover);
+			}
+		});
+
+		return element;
+	}());
+	var removeBackdropTimer;
+	var removeBackdrop = function(popover) {
+		backdrop.setAttribute('style', 'opacity:0');
+		$.targets.popover = $.targets._popover = null; //reset
+		removeBackdropTimer = $.later(function() {
+			if (!popover.classList.contains(CLASS_ACTIVE) && backdrop.parentNode && backdrop.parentNode === document.body) {
+				document.body.removeChild(backdrop);
+			}
+		}, 350);
+	};
+	window.addEventListener('tap', function(e) {
+		if (!$.targets.popover) {
+			return;
+		}
+		var toggle = false;
+		var target = e.target;
+		for (; target && target !== document; target = target.parentNode) {
+			if (target === $.targets.popover) {
+				toggle = true;
+			}
+		}
+		if (toggle) {
+			e.detail.gesture.preventDefault(); //fixed hashchange
+			togglePopover($.targets._popover, $.targets.popover);
+		}
+
+	});
+
+	var togglePopover = function(popover, anchor, state) {
+		if ((state === 'show' && popover.classList.contains(CLASS_ACTIVE)) || (state === 'hide' && !popover.classList.contains(CLASS_ACTIVE))) {
+			return;
+		}
+		removeBackdropTimer && removeBackdropTimer.cancel(); //取消remove的timer
+		//remove一遍,以免来回快速切换,导致webkitTransitionEnd不触发,无法remove
+		popover.removeEventListener('webkitTransitionEnd', onPopoverShown);
+		popover.removeEventListener('webkitTransitionEnd', onPopoverHidden);
+		backdrop.classList.remove(CLASS_BAR_BACKDROP);
+		backdrop.classList.remove(CLASS_ACTION_BACKDROP);
+		var _popover = document.querySelector('.mui-popover.mui-active');
+		if (_popover) {
+			//			_popover.setAttribute('style', '');
+			_popover.addEventListener('webkitTransitionEnd', onPopoverHidden);
+			_popover.classList.remove(CLASS_ACTIVE);
+			//			_popover.removeEventListener('webkitTransitionEnd', onPopoverHidden);
+			//同一个弹出则直接返回,解决同一个popover的toggle
+			if (popover === _popover) {
+				removeBackdrop(_popover);
+				return;
+			}
+		}
+		var isActionSheet = false;
+		if (popover.classList.contains(CLASS_BAR_POPOVER) || popover.classList.contains(CLASS_ACTION_POPOVER)) { //navBar
+			if (popover.classList.contains(CLASS_ACTION_POPOVER)) { //action sheet popover
+				isActionSheet = true;
+				backdrop.classList.add(CLASS_ACTION_BACKDROP);
+			} else { //bar popover
+				backdrop.classList.add(CLASS_BAR_BACKDROP);
+				//				if (anchor) {
+				//					if (anchor.parentNode) {
+				//						var offsetWidth = anchor.offsetWidth;
+				//						var offsetLeft = anchor.offsetLeft;
+				//						var innerWidth = window.innerWidth;
+				//						popover.style.left = (Math.min(Math.max(offsetLeft, defaultPadding), innerWidth - offsetWidth - defaultPadding)) + "px";
+				//					} else {
+				//						//TODO anchor is position:{left,top,bottom,right}
+				//					}
+				//				}
+			}
+		}
+		setStyle(popover, 'block'); //actionsheet transform
+		popover.offsetHeight;
+		popover.classList.add(CLASS_ACTIVE);
+		backdrop.setAttribute('style', '');
+		document.body.appendChild(backdrop);
+		calPosition(popover, anchor, isActionSheet); //position
+		backdrop.classList.add(CLASS_ACTIVE);
+		popover.addEventListener('webkitTransitionEnd', onPopoverShown);
+	};
+	var setStyle = function(popover, display, top, left) {
+		var style = popover.style;
+		if (typeof display !== 'undefined')
+			style.display = display;
+		if (typeof top !== 'undefined')
+			style.top = top + 'px';
+		if (typeof left !== 'undefined')
+			style.left = left + 'px';
+	};
+	var calPosition = function(popover, anchor, isActionSheet) {
+		if (!popover || !anchor) {
+			return;
+		}
+
+		if (isActionSheet) { //actionsheet
+			setStyle(popover, 'block')
+			return;
+		}
+
+		var wWidth = window.innerWidth;
+		var wHeight = window.innerHeight;
+
+		var pWidth = popover.offsetWidth;
+		var pHeight = popover.offsetHeight;
+
+		var aWidth = anchor.offsetWidth;
+		var aHeight = anchor.offsetHeight;
+		var offset = $.offset(anchor);
+
+		var arrow = popover.querySelector('.' + CLASS_POPOVER_ARROW);
+		if (!arrow) {
+			arrow = document.createElement('div');
+			arrow.className = CLASS_POPOVER_ARROW;
+			popover.appendChild(arrow);
+		}
+		var arrowSize = arrow && arrow.offsetWidth / 2 || 0;
+
+
+
+		var pTop = 0;
+		var pLeft = 0;
+		var diff = 0;
+		var arrowLeft = 0;
+		var defaultPadding = popover.classList.contains(CLASS_ACTION_POPOVER) ? 0 : 5;
+
+		var position = 'top';
+		if ((pHeight + arrowSize) < (offset.top - window.pageYOffset)) { //top
+			pTop = offset.top - pHeight - arrowSize;
+		} else if ((pHeight + arrowSize) < (wHeight - (offset.top - window.pageYOffset) - aHeight)) { //bottom
+			position = 'bottom';
+			pTop = offset.top + aHeight + arrowSize;
+		} else { //middle
+			position = 'middle';
+			pTop = Math.max((wHeight - pHeight) / 2 + window.pageYOffset, 0);
+			pLeft = Math.max((wWidth - pWidth) / 2 + window.pageXOffset, 0);
+		}
+		if (position === 'top' || position === 'bottom') {
+			pLeft = aWidth / 2 + offset.left - pWidth / 2;
+			diff = pLeft;
+			if (pLeft < defaultPadding) pLeft = defaultPadding;
+			if (pLeft + pWidth > wWidth) pLeft = wWidth - pWidth - defaultPadding;
+
+			if (arrow) {
+				if (position === 'top') {
+					arrow.classList.add(CLASS_BOTTOM);
+				} else {
+					arrow.classList.remove(CLASS_BOTTOM);
+				}
+				diff = diff - pLeft;
+				arrowLeft = (pWidth / 2 - arrowSize / 2 + diff);
+				arrowLeft = Math.max(Math.min(arrowLeft, pWidth - arrowSize * 2 - 6), 6);
+				arrow.setAttribute('style', 'left:' + arrowLeft + 'px');
+			}
+		} else if (position === 'middle') {
+			arrow.setAttribute('style', 'display:none');
+		}
+		setStyle(popover, 'block', pTop, pLeft);
+	};
+
+	$.createMask = function(callback) {
+		var element = document.createElement('div');
+		element.classList.add(CLASS_BACKDROP);
+		element.addEventListener($.EVENT_MOVE, $.preventDefault);
+		element.addEventListener('tap', function() {
+			mask.close();
+		});
+		var mask = [element];
+		mask._show = false;
+		mask.show = function() {
+			mask._show = true;
+			element.setAttribute('style', 'opacity:1');
+			document.body.appendChild(element);
+			return mask;
+		};
+		mask._remove = function() {
+			if (mask._show) {
+				mask._show = false;
+				element.setAttribute('style', 'opacity:0');
+				$.later(function() {
+					var body = document.body;
+					element.parentNode === body && body.removeChild(element);
+				}, 350);
+			}
+			return mask;
+		};
+		mask.close = function() {
+			if (callback) {
+				if (callback() !== false) {
+					mask._remove();
+				}
+			} else {
+				mask._remove();
+			}
+		};
+		return mask;
+	};
+	$.fn.popover = function() {
+		var args = arguments;
+		this.each(function() {
+			$.targets._popover = this;
+			if (args[0] === 'show' || args[0] === 'hide' || args[0] === 'toggle') {
+				togglePopover(this, args[1], args[0]);
+			}
+		});
+	};
+
+})(mui, window, document, 'popover');
+/**
+ * segmented-controllers
+ * @param {type} $
+ * @param {type} window
+ * @param {type} document
+ * @param {type} undefined
+ * @returns {undefined}
+ */
+(function($, window, document, name, undefined) {
+
+    var CLASS_CONTROL_ITEM = 'mui-control-item';
+    var CLASS_SEGMENTED_CONTROL = 'mui-segmented-control';
+    var CLASS_SEGMENTED_CONTROL_VERTICAL = 'mui-segmented-control-vertical';
+    var CLASS_CONTROL_CONTENT = 'mui-control-content';
+    var CLASS_TAB_BAR = 'mui-bar-tab';
+    var CLASS_TAB_ITEM = 'mui-tab-item';
+    var CLASS_SLIDER_ITEM = 'mui-slider-item';
+
+   var handle = function(event, target) {
+        if (target.classList && (target.classList.contains(CLASS_CONTROL_ITEM) || target.classList.contains(CLASS_TAB_ITEM))) {
+            if (target.parentNode && target.parentNode.classList && target.parentNode.classList.contains(CLASS_SEGMENTED_CONTROL_VERTICAL)) {
+                //vertical 如果preventDefault会导致无法滚动
+            } else {
+
+                    event.preventDefault();      
+                    // if(target.tagName == 'A') {
+                    //     // fixed 底部选项卡href 无法跳转 && stop hash change
+                    //     var curr_href = location.hostname + location.pathname,
+                    //         target_href = target.hostname + target.pathname;
+                   
+                    //     if (curr_href == target_href && target.hash !== "") {
+                    //         event.preventDefault();
+                    //         return target;
+                    //     }else{
+                    //             return false
+                    //     }
+                    // }
+            }
+            //          if (target.hash) {
+            return target;
+            //          }
+        }
+        return false;
+    };
+
+    $.registerTarget({
+        name: name,
+        index: 80,
+        handle: handle,
+        target: false
+    });
+
+    window.addEventListener('tap', function(e) {
+
+        var targetTab = $.targets.tab;
+        if (!targetTab) {
+            return;
+        }
+        var activeTab;
+        var activeBodies;
+        var targetBody;
+        var className = 'mui-active';
+        var classSelector = '.' + className;
+        var segmentedControl = targetTab.parentNode;
+
+        for (; segmentedControl && segmentedControl !== document; segmentedControl = segmentedControl.parentNode) {
+            if (segmentedControl.classList.contains(CLASS_SEGMENTED_CONTROL)) {
+                activeTab = segmentedControl.querySelector(classSelector + '.' + CLASS_CONTROL_ITEM);
+                break;
+            } else if (segmentedControl.classList.contains(CLASS_TAB_BAR)) {
+                activeTab = segmentedControl.querySelector(classSelector + '.' + CLASS_TAB_ITEM);
+            }
+        }
+
+        if (activeTab) {
+            activeTab.classList.remove(className);
+        }
+
+        var isLastActive = targetTab === activeTab;
+        if (targetTab) {
+            targetTab.classList.add(className);
+        }
+
+        if (!targetTab.hash) {
+            return;
+        }
+        targetBody = document.getElementById(targetTab.hash.replace('#', ''));
+
+        if (!targetBody) {
+            return;
+        }
+        if (!targetBody.classList.contains(CLASS_CONTROL_CONTENT)) { //tab bar popover
+            targetTab.classList[isLastActive ? 'remove' : 'add'](className);
+            return;
+        }
+        if (isLastActive) { //same
+            return;
+        }
+        var parentNode = targetBody.parentNode;
+        activeBodies = parentNode.querySelectorAll('.' + CLASS_CONTROL_CONTENT + classSelector);
+        for (var i = 0; i < activeBodies.length; i++) {
+            var activeBody = activeBodies[i];
+            activeBody.parentNode === parentNode && activeBody.classList.remove(className);
+        }
+
+        targetBody.classList.add(className);
+
+        var contents = [];
+        var _contents = parentNode.querySelectorAll('.' + CLASS_CONTROL_CONTENT);
+        for (var i = 0; i < _contents.length; i++) { //查找直属子节点
+            _contents[i].parentNode === parentNode && (contents.push(_contents[i]));
+        }
+        $.trigger(targetBody, $.eventName('shown', name), {
+            tabNumber: Array.prototype.indexOf.call(contents, targetBody)
+        });
+        e.detail && e.detail.gesture.preventDefault(); //fixed hashchange
+    });
+
+})(mui, window, document, 'tab');
+/**
+ * Toggles switch
+ * @param {type} $
+ * @param {type} window
+ * @param {type} name
+ * @returns {undefined}
+ */
+(function($, window, name) {
+
+	var CLASS_SWITCH = 'mui-switch';
+	var CLASS_SWITCH_HANDLE = 'mui-switch-handle';
+	var CLASS_ACTIVE = 'mui-active';
+	var CLASS_DRAGGING = 'mui-dragging';
+
+	var CLASS_DISABLED = 'mui-disabled';
+
+	var SELECTOR_SWITCH_HANDLE = '.' + CLASS_SWITCH_HANDLE;
+
+	var handle = function(event, target) {
+		if (target.classList && target.classList.contains(CLASS_SWITCH)) {
+			return target;
+		}
+		return false;
+	};
+
+	$.registerTarget({
+		name: name,
+		index: 100,
+		handle: handle,
+		target: false
+	});
+
+
+	var Toggle = function(element) {
+		this.element = element;
+		this.classList = this.element.classList;
+		this.handle = this.element.querySelector(SELECTOR_SWITCH_HANDLE);
+		this.init();
+		this.initEvent();
+	};
+	Toggle.prototype.init = function() {
+		this.toggleWidth = this.element.offsetWidth;
+		this.handleWidth = this.handle.offsetWidth;
+		this.handleX = this.toggleWidth - this.handleWidth - 3;
+	};
+	Toggle.prototype.initEvent = function() {
+		this.element.addEventListener($.EVENT_START, this);
+		this.element.addEventListener('drag', this);
+		this.element.addEventListener('swiperight', this);
+		this.element.addEventListener($.EVENT_END, this);
+		this.element.addEventListener($.EVENT_CANCEL, this);
+
+	};
+	Toggle.prototype.handleEvent = function(e) {
+		if (this.classList.contains(CLASS_DISABLED)) {
+			return;
+		}
+		switch (e.type) {
+			case $.EVENT_START:
+				this.start(e);
+				break;
+			case 'drag':
+				this.drag(e);
+				break;
+			case 'swiperight':
+				this.swiperight();
+				break;
+			case $.EVENT_END:
+			case $.EVENT_CANCEL:
+				this.end(e);
+				break;
+		}
+	};
+	Toggle.prototype.start = function(e) {
+		this.handle.style.webkitTransitionDuration = this.element.style.webkitTransitionDuration = '.2s';
+		this.classList.add(CLASS_DRAGGING);
+		if (this.toggleWidth === 0 || this.handleWidth === 0) { //当switch处于隐藏状态时,width为0,需要重新初始化
+			this.init();
+		}
+	};
+	Toggle.prototype.drag = function(e) {
+		var detail = e.detail;
+		if (!this.isDragging) {
+			if (detail.direction === 'left' || detail.direction === 'right') {
+				this.isDragging = true;
+				this.lastChanged = undefined;
+				this.initialState = this.classList.contains(CLASS_ACTIVE);
+			}
+		}
+		if (this.isDragging) {
+			this.setTranslateX(detail.deltaX);
+			e.stopPropagation();
+			detail.gesture.preventDefault();
+		}
+	};
+	Toggle.prototype.swiperight = function(e) {
+		if (this.isDragging) {
+			e.stopPropagation();
+		}
+	};
+	Toggle.prototype.end = function(e) {
+		this.classList.remove(CLASS_DRAGGING);
+		if (this.isDragging) {
+			this.isDragging = false;
+			e.stopPropagation();
+			$.trigger(this.element, 'toggle', {
+				isActive: this.classList.contains(CLASS_ACTIVE)
+			});
+		} else {
+			this.toggle();
+		}
+	};
+	Toggle.prototype.toggle = function(animate) {
+		var classList = this.classList;
+		if (animate === false) {
+			this.handle.style.webkitTransitionDuration = this.element.style.webkitTransitionDuration = '0s';
+		} else {
+			this.handle.style.webkitTransitionDuration = this.element.style.webkitTransitionDuration = '.2s';
+		}
+		if (classList.contains(CLASS_ACTIVE)) {
+			classList.remove(CLASS_ACTIVE);
+			this.handle.style.webkitTransform = 'translate(0,0)';
+		} else {
+			classList.add(CLASS_ACTIVE);
+			this.handle.style.webkitTransform = 'translate(' + this.handleX + 'px,0)';
+		}
+		$.trigger(this.element, 'toggle', {
+			isActive: this.classList.contains(CLASS_ACTIVE)
+		});
+	};
+	Toggle.prototype.setTranslateX = $.animationFrame(function(x) {
+		if (!this.isDragging) {
+			return;
+		}
+		var isChanged = false;
+		if ((this.initialState && -x > (this.handleX / 2)) || (!this.initialState && x > (this.handleX / 2))) {
+			isChanged = true;
+		}
+		if (this.lastChanged !== isChanged) {
+			if (isChanged) {
+				this.handle.style.webkitTransform = 'translate(' + (this.initialState ? 0 : this.handleX) + 'px,0)';
+				this.classList[this.initialState ? 'remove' : 'add'](CLASS_ACTIVE);
+			} else {
+				this.handle.style.webkitTransform = 'translate(' + (this.initialState ? this.handleX : 0) + 'px,0)';
+				this.classList[this.initialState ? 'add' : 'remove'](CLASS_ACTIVE);
+			}
+			this.lastChanged = isChanged;
+		}
+
+	});
+
+	$.fn['switch'] = function(options) {
+		var switchApis = [];
+		this.each(function() {
+			var switchApi = null;
+			var id = this.getAttribute('data-switch');
+			if (!id) {
+				id = ++$.uuid;
+				$.data[id] = new Toggle(this);
+				this.setAttribute('data-switch', id);
+			} else {
+				switchApi = $.data[id];
+			}
+			switchApis.push(switchApi);
+		});
+		return switchApis.length > 1 ? switchApis : switchApis[0];
+	};
+	$.ready(function() {
+		$('.' + CLASS_SWITCH)['switch']();
+	});
+})(mui, window, 'toggle');
+/**
+ * Tableviews
+ * @param {type} $
+ * @param {type} window
+ * @param {type} document
+ * @returns {undefined}
+ */
+(function($, window, document) {
+
+	var CLASS_ACTIVE = 'mui-active';
+	var CLASS_SELECTED = 'mui-selected';
+	var CLASS_GRID_VIEW = 'mui-grid-view';
+	var CLASS_RADIO_VIEW = 'mui-table-view-radio';
+	var CLASS_TABLE_VIEW_CELL = 'mui-table-view-cell';
+	var CLASS_COLLAPSE_CONTENT = 'mui-collapse-content';
+	var CLASS_DISABLED = 'mui-disabled';
+	var CLASS_TOGGLE = 'mui-switch';
+	var CLASS_BTN = 'mui-btn';
+
+	var CLASS_SLIDER_HANDLE = 'mui-slider-handle';
+	var CLASS_SLIDER_LEFT = 'mui-slider-left';
+	var CLASS_SLIDER_RIGHT = 'mui-slider-right';
+	var CLASS_TRANSITIONING = 'mui-transitioning';
+
+
+	var SELECTOR_SLIDER_HANDLE = '.' + CLASS_SLIDER_HANDLE;
+	var SELECTOR_SLIDER_LEFT = '.' + CLASS_SLIDER_LEFT;
+	var SELECTOR_SLIDER_RIGHT = '.' + CLASS_SLIDER_RIGHT;
+	var SELECTOR_SELECTED = '.' + CLASS_SELECTED;
+	var SELECTOR_BUTTON = '.' + CLASS_BTN;
+	var overFactor = 0.8;
+	var cell, a;
+
+	var isMoved = isOpened = openedActions = progress = false;
+	var sliderHandle = sliderActionLeft = sliderActionRight = buttonsLeft = buttonsRight = sliderDirection = sliderRequestAnimationFrame = false;
+	var timer = translateX = lastTranslateX = sliderActionLeftWidth = sliderActionRightWidth = 0;
+
+
+
+	var toggleActive = function(isActive) {
+		if (isActive) {
+			if (a) {
+				a.classList.add(CLASS_ACTIVE);
+			} else if (cell) {
+				cell.classList.add(CLASS_ACTIVE);
+			}
+		} else {
+			timer && timer.cancel();
+			if (a) {
+				a.classList.remove(CLASS_ACTIVE);
+			} else if (cell) {
+				cell.classList.remove(CLASS_ACTIVE);
+			}
+		}
+	};
+
+	var updateTranslate = function() {
+		if (translateX !== lastTranslateX) {
+			if (buttonsRight && buttonsRight.length > 0) {
+				progress = translateX / sliderActionRightWidth;
+				if (translateX < -sliderActionRightWidth) {
+					translateX = -sliderActionRightWidth - Math.pow(-translateX - sliderActionRightWidth, overFactor);
+				}
+				for (var i = 0, len = buttonsRight.length; i < len; i++) {
+					var buttonRight = buttonsRight[i];
+					if (typeof buttonRight._buttonOffset === 'undefined') {
+						buttonRight._buttonOffset = buttonRight.offsetLeft;
+					}
+					buttonOffset = buttonRight._buttonOffset;
+					setTranslate(buttonRight, (translateX - buttonOffset * (1 + Math.max(progress, -1))));
+				}
+			}
+			if (buttonsLeft && buttonsLeft.length > 0) {
+				progress = translateX / sliderActionLeftWidth;
+				if (translateX > sliderActionLeftWidth) {
+					translateX = sliderActionLeftWidth + Math.pow(translateX - sliderActionLeftWidth, overFactor);
+				}
+				for (var i = 0, len = buttonsLeft.length; i < len; i++) {
+					var buttonLeft = buttonsLeft[i];
+					if (typeof buttonLeft._buttonOffset === 'undefined') {
+						buttonLeft._buttonOffset = sliderActionLeftWidth - buttonLeft.offsetLeft - buttonLeft.offsetWidth;
+					}
+					buttonOffset = buttonLeft._buttonOffset;
+					if (buttonsLeft.length > 1) {
+						buttonLeft.style.zIndex = buttonsLeft.length - i;
+					}
+					setTranslate(buttonLeft, (translateX + buttonOffset * (1 - Math.min(progress, 1))));
+				}
+			}
+			setTranslate(sliderHandle, translateX);
+			lastTranslateX = translateX;
+		}
+		sliderRequestAnimationFrame = requestAnimationFrame(function() {
+			updateTranslate();
+		});
+	};
+	var setTranslate = function(element, x) {
+		if (element) {
+			element.style.webkitTransform = 'translate(' + x + 'px,0)';
+		}
+	};
+
+	window.addEventListener($.EVENT_START, function(event) {
+		if (cell) {
+			toggleActive(false);
+		}
+		cell = a = false;
+		isMoved = isOpened = openedActions = false;
+		var target = event.target;
+		var isDisabled = false;
+		for (; target && target !== document; target = target.parentNode) {
+			if (target.classList) {
+				var classList = target.classList;
+				if ((target.tagName === 'INPUT' && target.type !== 'radio' && target.type !== 'checkbox') || target.tagName === 'BUTTON' || classList.contains(CLASS_TOGGLE) || classList.contains(CLASS_BTN) || classList.contains(CLASS_DISABLED)) {
+					isDisabled = true;
+				}
+				if (classList.contains(CLASS_COLLAPSE_CONTENT)) { //collapse content
+					break;
+				}
+				if (classList.contains(CLASS_TABLE_VIEW_CELL)) {
+					cell = target;
+					//TODO swipe to delete close
+					var selected = cell.parentNode.querySelector(SELECTOR_SELECTED);
+					if (!cell.parentNode.classList.contains(CLASS_RADIO_VIEW) && selected && selected !== cell) {
+						$.swipeoutClose(selected);
+						cell = isDisabled = false;
+						return;
+					}
+					if (!cell.parentNode.classList.contains(CLASS_GRID_VIEW)) {
+						var link = cell.querySelector('a');
+						if (link && link.parentNode === cell) { //li>a
+							a = link;
+						}
+					}
+					var handle = cell.querySelector(SELECTOR_SLIDER_HANDLE);
+					if (handle) {
+						toggleEvents(cell);
+						event.stopPropagation();
+					}
+					if (!isDisabled) {
+						if (handle) {
+							if (timer) {
+								timer.cancel();
+							}
+							timer = $.later(function() {
+								toggleActive(true);
+							}, 100);
+						} else {
+							toggleActive(true);
+						}
+					}
+					break;
+				}
+			}
+		}
+	});
+	window.addEventListener($.EVENT_MOVE, function(event) {
+		toggleActive(false);
+	});
+
+	var handleEvent = {
+		handleEvent: function(event) {
+			switch (event.type) {
+				case 'drag':
+					this.drag(event);
+					break;
+				case 'dragend':
+					this.dragend(event);
+					break;
+				case 'flick':
+					this.flick(event);
+					break;
+				case 'swiperight':
+					this.swiperight(event);
+					break;
+				case 'swipeleft':
+					this.swipeleft(event);
+					break;
+			}
+		},
+		drag: function(event) {
+			if (!cell) {
+				return;
+			}
+			if (!isMoved) { //init
+				sliderHandle = sliderActionLeft = sliderActionRight = buttonsLeft = buttonsRight = sliderDirection = sliderRequestAnimationFrame = false;
+				sliderHandle = cell.querySelector(SELECTOR_SLIDER_HANDLE);
+				if (sliderHandle) {
+					sliderActionLeft = cell.querySelector(SELECTOR_SLIDER_LEFT);
+					sliderActionRight = cell.querySelector(SELECTOR_SLIDER_RIGHT);
+					if (sliderActionLeft) {
+						sliderActionLeftWidth = sliderActionLeft.offsetWidth;
+						buttonsLeft = sliderActionLeft.querySelectorAll(SELECTOR_BUTTON);
+					}
+					if (sliderActionRight) {
+						sliderActionRightWidth = sliderActionRight.offsetWidth;
+						buttonsRight = sliderActionRight.querySelectorAll(SELECTOR_BUTTON);
+					}
+					cell.classList.remove(CLASS_TRANSITIONING);
+					isOpened = cell.classList.contains(CLASS_SELECTED);
+					if (isOpened) {
+						openedActions = cell.querySelector(SELECTOR_SLIDER_LEFT + SELECTOR_SELECTED) ? 'left' : 'right';
+					}
+				}
+			}
+			var detail = event.detail;
+			var direction = detail.direction;
+			var angle = detail.angle;
+			if (direction === 'left' && (angle > 150 || angle < -150)) {
+				if (buttonsRight || (buttonsLeft && isOpened)) { //存在右侧按钮或存在左侧按钮且是已打开状态
+					isMoved = true;
+				}
+			} else if (direction === 'right' && (angle > -30 && angle < 30)) {
+				if (buttonsLeft || (buttonsRight && isOpened)) { //存在左侧按钮或存在右侧按钮且是已打开状态
+					isMoved = true;
+				}
+			}
+			if (isMoved) {
+				event.stopPropagation();
+				event.detail.gesture.preventDefault();
+				var translate = event.detail.deltaX;
+				if (isOpened) {
+					if (openedActions === 'right') {
+						translate = translate - sliderActionRightWidth;
+					} else {
+						translate = translate + sliderActionLeftWidth;
+					}
+				}
+				if ((translate > 0 && !buttonsLeft) || (translate < 0 && !buttonsRight)) {
+					if (!isOpened) {
+						return;
+					}
+					translate = 0;
+				}
+				if (translate < 0) {
+					sliderDirection = 'toLeft';
+				} else if (translate > 0) {
+					sliderDirection = 'toRight';
+				} else {
+					if (!sliderDirection) {
+						sliderDirection = 'toLeft';
+					}
+				}
+				if (!sliderRequestAnimationFrame) {
+					updateTranslate();
+				}
+				translateX = translate;
+			}
+		},
+		flick: function(event) {
+			if (isMoved) {
+				event.stopPropagation();
+			}
+		},
+		swipeleft: function(event) {
+			if (isMoved) {
+				event.stopPropagation();
+			}
+		},
+		swiperight: function(event) {
+			if (isMoved) {
+				event.stopPropagation();
+			}
+		},
+		dragend: function(event) {
+			if (!isMoved) {
+				return;
+			}
+			event.stopPropagation();
+			if (sliderRequestAnimationFrame) {
+				cancelAnimationFrame(sliderRequestAnimationFrame);
+				sliderRequestAnimationFrame = null;
+			}
+			var detail = event.detail;
+			isMoved = false;
+			var action = 'close';
+			var actionsWidth = sliderDirection === 'toLeft' ? sliderActionRightWidth : sliderActionLeftWidth;
+			var isToggle = detail.swipe || (Math.abs(translateX) > actionsWidth / 2);
+			if (isToggle) {
+				if (!isOpened) {
+					action = 'open';
+				} else if (detail.direction === 'left' && openedActions === 'right') {
+					action = 'open';
+				} else if (detail.direction === 'right' && openedActions === 'left') {
+					action = 'open';
+				}
+
+			}
+			cell.classList.add(CLASS_TRANSITIONING);
+			var buttons;
+			if (action === 'open') {
+				var newTranslate = sliderDirection === 'toLeft' ? -actionsWidth : actionsWidth;
+				setTranslate(sliderHandle, newTranslate);
+				buttons = sliderDirection === 'toLeft' ? buttonsRight : buttonsLeft;
+				if (typeof buttons !== 'undefined') {
+					var button = null;
+					for (var i = 0; i < buttons.length; i++) {
+						button = buttons[i];
+						setTranslate(button, newTranslate);
+					}
+					button.parentNode.classList.add(CLASS_SELECTED);
+					cell.classList.add(CLASS_SELECTED);
+					if (!isOpened) {
+						$.trigger(cell, sliderDirection === 'toLeft' ? 'slideleft' : 'slideright');
+					}
+				}
+			} else {
+				setTranslate(sliderHandle, 0);
+				sliderActionLeft && sliderActionLeft.classList.remove(CLASS_SELECTED);
+				sliderActionRight && sliderActionRight.classList.remove(CLASS_SELECTED);
+				cell.classList.remove(CLASS_SELECTED);
+			}
+			var buttonOffset;
+			if (buttonsLeft && buttonsLeft.length > 0 && buttonsLeft !== buttons) {
+				for (var i = 0, len = buttonsLeft.length; i < len; i++) {
+					var buttonLeft = buttonsLeft[i];
+					buttonOffset = buttonLeft._buttonOffset;
+					if (typeof buttonOffset === 'undefined') {
+						buttonLeft._buttonOffset = sliderActionLeftWidth - buttonLeft.offsetLeft - buttonLeft.offsetWidth;
+					}
+					setTranslate(buttonLeft, buttonOffset);
+				}
+			}
+			if (buttonsRight && buttonsRight.length > 0 && buttonsRight !== buttons) {
+				for (var i = 0, len = buttonsRight.length; i < len; i++) {
+					var buttonRight = buttonsRight[i];
+					buttonOffset = buttonRight._buttonOffset;
+					if (typeof buttonOffset === 'undefined') {
+						buttonRight._buttonOffset = buttonRight.offsetLeft;
+					}
+					setTranslate(buttonRight, -buttonOffset);
+				}
+			}
+		}
+	};
+
+	function toggleEvents(element, isRemove) {
+		var method = !!isRemove ? 'removeEventListener' : 'addEventListener';
+		element[method]('drag', handleEvent);
+		element[method]('dragend', handleEvent);
+		element[method]('swiperight', handleEvent);
+		element[method]('swipeleft', handleEvent);
+		element[method]('flick', handleEvent);
+	};
+	/**
+	 * 打开滑动菜单
+	 * @param {Object} el
+	 * @param {Object} direction
+	 */
+	$.swipeoutOpen = function(el, direction) {
+		if (!el) return;
+		var classList = el.classList;
+		if (classList.contains(CLASS_SELECTED)) return;
+		if (!direction) {
+			if (el.querySelector(SELECTOR_SLIDER_RIGHT)) {
+				direction = 'right';
+			} else {
+				direction = 'left';
+			}
+		}
+		var swipeoutAction = el.querySelector($.classSelector(".slider-" + direction));
+		if (!swipeoutAction) return;
+		swipeoutAction.classList.add(CLASS_SELECTED);
+		classList.add(CLASS_SELECTED);
+		classList.remove(CLASS_TRANSITIONING);
+		var buttons = swipeoutAction.querySelectorAll(SELECTOR_BUTTON);
+		var swipeoutWidth = swipeoutAction.offsetWidth;
+		var translate = (direction === 'right') ? -swipeoutWidth : swipeoutWidth;
+		var length = buttons.length;
+		var button;
+		for (var i = 0; i < length; i++) {
+			button = buttons[i];
+			if (direction === 'right') {
+				setTranslate(button, -button.offsetLeft);
+			} else {
+				setTranslate(button, (swipeoutWidth - button.offsetWidth - button.offsetLeft));
+			}
+		}
+		classList.add(CLASS_TRANSITIONING);
+		for (var i = 0; i < length; i++) {
+			setTranslate(buttons[i], translate);
+		}
+		setTranslate(el.querySelector(SELECTOR_SLIDER_HANDLE), translate);
+	};
+	/**
+	 * 关闭滑动菜单
+	 * @param {Object} el
+	 */
+	$.swipeoutClose = function(el) {
+		if (!el) return;
+		var classList = el.classList;
+		if (!classList.contains(CLASS_SELECTED)) return;
+		var direction = el.querySelector(SELECTOR_SLIDER_RIGHT + SELECTOR_SELECTED) ? 'right' : 'left';
+		var swipeoutAction = el.querySelector($.classSelector(".slider-" + direction));
+		if (!swipeoutAction) return;
+		swipeoutAction.classList.remove(CLASS_SELECTED);
+		classList.remove(CLASS_SELECTED);
+		classList.add(CLASS_TRANSITIONING);
+		var buttons = swipeoutAction.querySelectorAll(SELECTOR_BUTTON);
+		var swipeoutWidth = swipeoutAction.offsetWidth;
+		var length = buttons.length;
+		var button;
+		setTranslate(el.querySelector(SELECTOR_SLIDER_HANDLE), 0);
+		for (var i = 0; i < length; i++) {
+			button = buttons[i];
+			if (direction === 'right') {
+				setTranslate(button, (-button.offsetLeft));
+			} else {
+				setTranslate(button, (swipeoutWidth - button.offsetWidth - button.offsetLeft));
+			}
+		}
+	};
+
+	window.addEventListener($.EVENT_END, function(event) { //使用touchend来取消高亮,避免一次点击既不触发tap,doubletap,longtap的事件
+		if (!cell) {
+			return;
+		}
+		toggleActive(false);
+		sliderHandle && toggleEvents(cell, true);
+	});
+	window.addEventListener($.EVENT_CANCEL, function(event) { //使用touchcancel来取消高亮,避免一次点击既不触发tap,doubletap,longtap的事件
+		if (!cell) {
+			return;
+		}
+		toggleActive(false);
+		sliderHandle && toggleEvents(cell, true);
+	});
+	var radioOrCheckboxClick = function(event) {
+		var type = event.target && event.target.type || '';
+		if (type === 'radio' || type === 'checkbox') {
+			return;
+		}
+		var classList = cell.classList;
+		if (classList.contains('mui-radio')) {
+			var input = cell.querySelector('input[type=radio]');
+			if (input) {
+				//				input.click();
+				if (!input.disabled && !input.readOnly) {
+					input.checked = !input.checked;
+					$.trigger(input, 'change');
+				}
+			}
+		} else if (classList.contains('mui-checkbox')) {
+			var input = cell.querySelector('input[type=checkbox]');
+			if (input) {
+				//				input.click();
+				if (!input.disabled && !input.readOnly) {
+					input.checked = !input.checked;
+					$.trigger(input, 'change');
+				}
+			}
+		}
+	};
+	//fixed hashchange(android)
+	window.addEventListener($.EVENT_CLICK, function(e) {
+		if (cell && cell.classList.contains('mui-collapse')) {
+			e.preventDefault();
+		}
+	});
+	window.addEventListener('doubletap', function(event) {
+		if (cell) {
+			radioOrCheckboxClick(event);
+		}
+	});
+	var preventDefaultException = /^(INPUT|TEXTAREA|BUTTON|SELECT)$/;
+	window.addEventListener('tap', function(event) {
+		if (!cell) {
+			return;
+		}
+		var isExpand = false;
+		var classList = cell.classList;
+		var ul = cell.parentNode;
+		if (ul && ul.classList.contains(CLASS_RADIO_VIEW)) {
+			if (classList.contains(CLASS_SELECTED)) {
+				return;
+			}
+			var selected = ul.querySelector('li' + SELECTOR_SELECTED);
+			if (selected) {
+				selected.classList.remove(CLASS_SELECTED);
+			}
+			classList.add(CLASS_SELECTED);
+			$.trigger(cell, 'selected', {
+				el: cell
+			});
+			return;
+		}
+		if (classList.contains('mui-collapse') && !cell.parentNode.classList.contains('mui-unfold')) {
+			if (!preventDefaultException.test(event.target.tagName)) {
+				event.detail.gesture.preventDefault();
+			}
+
+			if (!classList.contains(CLASS_ACTIVE)) { //展开时,需要收缩其他同类
+				var collapse = cell.parentNode.querySelector('.mui-collapse.mui-active');
+				if (collapse) {
+					collapse.classList.remove(CLASS_ACTIVE);
+				}
+				isExpand = true;
+			}
+			classList.toggle(CLASS_ACTIVE);
+			if (isExpand) {
+				//触发展开事件
+				$.trigger(cell, 'expand');
+
+				//scroll
+				//暂不滚动
+				// var offsetTop = $.offset(cell).top;
+				// var scrollTop = document.body.scrollTop;
+				// var height = window.innerHeight;
+				// var offsetHeight = cell.offsetHeight;
+				// var cellHeight = (offsetTop - scrollTop + offsetHeight);
+				// if (offsetHeight > height) {
+				// 	$.scrollTo(offsetTop, 300);
+				// } else if (cellHeight > height) {
+				// 	$.scrollTo(cellHeight - height + scrollTop, 300);
+				// }
+			}
+		} else {
+			radioOrCheckboxClick(event);
+		}
+	});
+})(mui, window, document);
+(function($, window) {
+	/**
+	 * 警告消息框
+	 */
+	$.alert = function(message, title, btnValue, callback) {
+		if ($.os.plus) {
+			if (typeof message === 'undefined') {
+				return;
+			} else {
+				if (typeof title === 'function') {
+					callback = title;
+					title = null;
+					btnValue = '确定';
+				} else if (typeof btnValue === 'function') {
+					callback = btnValue;
+					btnValue = null;
+				}
+				$.plusReady(function() {
+					plus.nativeUI.alert(message, callback, title, btnValue);
+				});
+			}
+
+		} else {
+			//TODO H5版本
+			window.alert(message);
+		}
+	};
+
+})(mui, window);
+(function($, window) {
+	/**
+	 * 确认消息框
+	 */
+	$.confirm = function(message, title, btnArray, callback) {
+		if ($.os.plus) {
+			if (typeof message === 'undefined') {
+				return;
+			} else {
+				if (typeof title === 'function') {
+					callback = title;
+					title = null;
+					btnArray = null;
+				} else if (typeof btnArray === 'function') {
+					callback = btnArray;
+					btnArray = null;
+				}
+				$.plusReady(function() {
+					plus.nativeUI.confirm(message, callback, title, btnArray);
+				});
+			}
+
+		} else {
+			//H5版本,0为确认,1为取消
+			if (window.confirm(message)) {
+				callback({
+					index: 0
+				});
+			} else {
+				callback({
+					index: 1
+				});
+			}
+		}
+	};
+
+})(mui, window);
+(function($, window) {
+	/**
+	 * 输入对话框
+	 */
+	$.prompt = function(text, defaultText, title, btnArray, callback) {
+		if ($.os.plus) {
+			if (typeof message === 'undefined') {
+				return;
+			} else {
+
+				if (typeof defaultText === 'function') {
+					callback = defaultText;
+					defaultText = null;
+					title = null;
+					btnArray = null;
+				} else if (typeof title === 'function') {
+					callback = title;
+					title = null;
+					btnArray = null;
+				} else if (typeof btnArray === 'function') {
+					callback = btnArray;
+					btnArray = null;
+				}
+				$.plusReady(function() {
+					plus.nativeUI.prompt(text, callback, title, defaultText, btnArray);
+				});
+			}
+
+		} else {
+			//H5版本(确认index为0,取消index为1)
+			var result = window.prompt(text);
+			if (result) {
+				callback({
+					index: 0,
+					value: result
+				});
+			} else {
+				callback({
+					index: 1,
+					value: ''
+				});
+			}
+		}
+	};
+
+})(mui, window);
+(function($, window) {
+	var CLASS_ACTIVE = 'mui-active';
+	/**
+	 * 自动消失提示框
+	 */
+	$.toast = function(message,options) {
+		var durations = {
+		    'long': 3500,
+		    'short': 2000
+		};
+
+		//计算显示时间
+		 options = $.extend({
+	        duration: 'short'
+	    }, options || {});
+
+
+		if ($.os.plus && options.type !== 'div') {
+			//默认显示在底部;
+			$.plusReady(function() {
+				plus.nativeUI.toast(message, {
+					verticalAlign: 'bottom',
+					duration:options.duration
+				});
+			});
+		} else {
+			if (typeof options.duration === 'number') {
+		        duration = options.duration>0 ? options.duration:durations['short'];
+		    } else {
+		        duration = durations[options.duration];
+		    }
+		    if (!duration) {
+		        duration = durations['short'];
+		    }
+			var toast = document.createElement('div');
+			toast.classList.add('mui-toast-container');
+			toast.innerHTML = '<div class="' + 'mui-toast-message' + '">' + message + '</div>';
+			toast.addEventListener('webkitTransitionEnd', function() {
+				if (!toast.classList.contains(CLASS_ACTIVE)) {
+					toast.parentNode.removeChild(toast);
+					toast = null;
+				}
+			});
+			//点击则自动消失
+			toast.addEventListener('click', function() {
+		        toast.parentNode.removeChild(toast);
+		        toast = null;
+		    });
+			document.body.appendChild(toast);
+			toast.offsetHeight;
+			toast.classList.add(CLASS_ACTIVE);
+			setTimeout(function() {
+				toast && toast.classList.remove(CLASS_ACTIVE);
+			}, duration);
+			
+			return {
+		        isVisible: function() {return !!toast;}
+		    }
+		}   
+	};
+
+})(mui, window);
+/**
+ * Popup(alert,confirm,prompt)  
+ * @param {Object} $
+ * @param {Object} window
+ * @param {Object} document
+ */
+(function($, window, document) {
+    var CLASS_POPUP = 'mui-popup';
+    var CLASS_POPUP_BACKDROP = 'mui-popup-backdrop';
+    var CLASS_POPUP_IN = 'mui-popup-in';
+    var CLASS_POPUP_OUT = 'mui-popup-out';
+    var CLASS_POPUP_INNER = 'mui-popup-inner';
+    var CLASS_POPUP_TITLE = 'mui-popup-title';
+    var CLASS_POPUP_TEXT = 'mui-popup-text';
+    var CLASS_POPUP_INPUT = 'mui-popup-input';
+    var CLASS_POPUP_BUTTONS = 'mui-popup-buttons';
+    var CLASS_POPUP_BUTTON = 'mui-popup-button';
+    var CLASS_POPUP_BUTTON_BOLD = 'mui-popup-button-bold';
+    var CLASS_POPUP_BACKDROP = 'mui-popup-backdrop';
+    var CLASS_ACTIVE = 'mui-active';
+
+    var popupStack = [];
+    var backdrop = (function() {
+        var element = document.createElement('div');
+        element.classList.add(CLASS_POPUP_BACKDROP);
+        element.addEventListener($.EVENT_MOVE, $.preventDefault);
+        element.addEventListener('webkitTransitionEnd', function() {
+            if (!this.classList.contains(CLASS_ACTIVE)) {
+                element.parentNode && element.parentNode.removeChild(element);
+            }
+        });
+        return element;
+    }());
+
+    var createInput = function(placeholder) {
+        return '<div class="' + CLASS_POPUP_INPUT + '"><input type="text" autofocus placeholder="' + (placeholder || '') + '"/></div>';
+    };
+    var createInner = function(message, title, extra) {
+        return '<div class="' + CLASS_POPUP_INNER + '"><div class="' + CLASS_POPUP_TITLE + '">' + title + '</div><div class="' + CLASS_POPUP_TEXT + '">' + message.replace(/\r\n/g, "<br/>").replace(/\n/g, "<br/>") + '</div>' + (extra || '') + '</div>';
+    };
+    var createButtons = function(btnArray) {
+        var length = btnArray.length;
+        var btns = [];
+        for (var i = 0; i < length; i++) {
+            btns.push('<span class="' + CLASS_POPUP_BUTTON + (i === length - 1 ? (' ' + CLASS_POPUP_BUTTON_BOLD) : '') + '">' + btnArray[i] + '</span>');
+        }
+        return '<div class="' + CLASS_POPUP_BUTTONS + '">' + btns.join('') + '</div>';
+    };
+
+    var createPopup = function(html, callback) {
+        var popupElement = document.createElement('div');
+        popupElement.className = CLASS_POPUP;
+        popupElement.innerHTML = html;
+        var removePopupElement = function() {
+            popupElement.parentNode && popupElement.parentNode.removeChild(popupElement);
+            popupElement = null;
+        };
+        popupElement.addEventListener($.EVENT_MOVE, $.preventDefault);
+        popupElement.addEventListener('webkitTransitionEnd', function(e) {
+            if (popupElement && e.target === popupElement && popupElement.classList.contains(CLASS_POPUP_OUT)) {
+                removePopupElement();
+            }
+        });
+        popupElement.style.display = 'block';
+        document.body.appendChild(popupElement);
+        popupElement.offsetHeight;
+        popupElement.classList.add(CLASS_POPUP_IN);
+
+        if (!backdrop.classList.contains(CLASS_ACTIVE)) {
+            backdrop.style.display = 'block';
+            document.body.appendChild(backdrop);
+            backdrop.offsetHeight;
+            backdrop.classList.add(CLASS_ACTIVE);
+        }
+        var btns = $.qsa('.' + CLASS_POPUP_BUTTON, popupElement);
+        var input = popupElement.querySelector('.' + CLASS_POPUP_INPUT + ' input');
+        var popup = {
+            element: popupElement,
+            close: function(index, animate) {
+                if (popupElement) {
+                    var result = callback && callback({
+                        index: index || 0,
+                        value: input && input.value || ''
+                    });
+                    if (result === false) { //返回false则不关闭当前popup
+                        return;
+                    }
+                    if (animate !== false) {
+                        popupElement.classList.remove(CLASS_POPUP_IN);
+                        popupElement.classList.add(CLASS_POPUP_OUT);
+                    } else {
+                        removePopupElement();
+                    }
+                    popupStack.pop();
+                    //如果还有其他popup,则不remove backdrop
+                    if (popupStack.length) {
+                        popupStack[popupStack.length - 1]['show'](animate);
+                    } else {
+                        backdrop.classList.remove(CLASS_ACTIVE);
+                    }
+                }
+            }
+        };
+        var handleEvent = function(e) {
+            popup.close(btns.indexOf(e.target));
+        };
+        $(popupElement).on('tap', '.' + CLASS_POPUP_BUTTON, handleEvent);
+        if (popupStack.length) {
+            popupStack[popupStack.length - 1]['hide']();
+        }
+        popupStack.push({
+            close: popup.close,
+            show: function(animate) {
+                popupElement.style.display = 'block';
+                popupElement.offsetHeight;
+                popupElement.classList.add(CLASS_POPUP_IN);
+            },
+            hide: function() {
+                popupElement.style.display = 'none';
+                popupElement.classList.remove(CLASS_POPUP_IN);
+            }
+        });
+        return popup;
+    };
+    var createAlert = function(message, title, btnValue, callback, type) {
+        if (typeof message === 'undefined') {
+            return;
+        } else {
+            if (typeof title === 'function') {
+                callback = title;
+                type = btnValue;
+                title = null;
+                btnValue = null;
+            } else if (typeof btnValue === 'function') {
+                type = callback;
+                callback = btnValue;
+                btnValue = null;
+            }
+        }
+        if (!$.os.plus || type === 'div') {
+            return createPopup(createInner(message, title || '提示') + createButtons([btnValue || '确定']), callback);
+        }
+        return plus.nativeUI.alert(message, callback, title || '提示', btnValue || '确定');
+    };
+    var createConfirm = function(message, title, btnArray, callback, type) {
+        if (typeof message === 'undefined') {
+            return;
+        } else {
+            if (typeof title === 'function') {
+                callback = title;
+                type = btnArray;
+                title = null;
+                btnArray = null;
+            } else if (typeof btnArray === 'function') {
+                type = callback;
+                callback = btnArray;
+                btnArray = null;
+            }
+        }
+        if (!$.os.plus || type === 'div') {
+            return createPopup(createInner(message, title || '提示') + createButtons(btnArray || ['取消', '确认']), callback);
+        }
+        return plus.nativeUI.confirm(message, callback, title, btnArray || ['取消', '确认']);
+    };
+    var createPrompt = function(message, placeholder, title, btnArray, callback, type) {
+        if (typeof message === 'undefined') {
+            return;
+        } else {
+            if (typeof placeholder === 'function') {
+                callback = placeholder;
+                type = title;
+                placeholder = null;
+                title = null;
+                btnArray = null;
+            } else if (typeof title === 'function') {
+                callback = title;
+                type = btnArray;
+                title = null;
+                btnArray = null;
+            } else if (typeof btnArray === 'function') {
+                type = callback;
+                callback = btnArray;
+                btnArray = null;
+            }
+        }
+        if (!$.os.plus || type === 'div') {
+            return createPopup(createInner(message, title || '提示', createInput(placeholder)) + createButtons(btnArray || ['取消', '确认']), callback);
+        }
+        return plus.nativeUI.prompt(message, callback, title || '提示', placeholder, btnArray || ['取消', '确认']);
+    };
+    var closePopup = function() {
+        if (popupStack.length) {
+            popupStack[popupStack.length - 1]['close']();
+            return true;
+        } else {
+            return false;
+        }
+    };
+    var closePopups = function() {
+        while (popupStack.length) {
+            popupStack[popupStack.length - 1]['close']();
+        }
+    };
+
+    $.closePopup = closePopup;
+    $.closePopups = closePopups;
+    $.alert = createAlert;
+    $.confirm = createConfirm;
+    $.prompt = createPrompt;
+})(mui, window, document);
+(function($, document) {
+	var CLASS_PROGRESSBAR = 'mui-progressbar';
+	var CLASS_PROGRESSBAR_IN = 'mui-progressbar-in';
+	var CLASS_PROGRESSBAR_OUT = 'mui-progressbar-out';
+	var CLASS_PROGRESSBAR_INFINITE = 'mui-progressbar-infinite';
+
+	var SELECTOR_PROGRESSBAR = '.mui-progressbar';
+
+	var _findProgressbar = function(container) {
+		container = $(container || 'body');
+		if (container.length === 0) return;
+		container = container[0];
+		if (container.classList.contains(CLASS_PROGRESSBAR)) {
+			return container;
+		}
+		var progressbars = container.querySelectorAll(SELECTOR_PROGRESSBAR);
+		if (progressbars) {
+			for (var i = 0, len = progressbars.length; i < len; i++) {
+				var progressbar = progressbars[i];
+				if (progressbar.parentNode === container) {
+					return progressbar;
+				}
+			}
+		}
+	};
+	/**
+	 * 创建并显示进度条 
+	 * @param {Object} container  可选,默认body,支持selector,DOM Node,mui wrapper
+	 * @param {Object} progress 可选,undefined表示循环,数字表示具体进度
+	 * @param {Object} color 可选,指定颜色样式(目前暂未提供实际样式,可暂时不暴露此参数)
+	 */
+	var showProgressbar = function(container, progress, color) {
+		if (typeof container === 'number') {
+			color = progress;
+			progress = container;
+			container = 'body';
+		}
+		container = $(container || 'body');
+		if (container.length === 0) return;
+		container = container[0];
+		var progressbar;
+		if (container.classList.contains(CLASS_PROGRESSBAR)) {
+			progressbar = container;
+		} else {
+			var progressbars = container.querySelectorAll(SELECTOR_PROGRESSBAR + ':not(.' + CLASS_PROGRESSBAR_OUT + ')');
+			if (progressbars) {
+				for (var i = 0, len = progressbars.length; i < len; i++) {
+					var _progressbar = progressbars[i];
+					if (_progressbar.parentNode === container) {
+						progressbar = _progressbar;
+						break;
+					}
+				}
+			}
+			if (!progressbar) {
+				progressbar = document.createElement('span');
+				progressbar.className = CLASS_PROGRESSBAR + ' ' + CLASS_PROGRESSBAR_IN + (typeof progress !== 'undefined' ? '' : (' ' + CLASS_PROGRESSBAR_INFINITE)) + (color ? (' ' + CLASS_PROGRESSBAR + '-' + color) : '');
+				if (typeof progress !== 'undefined') {
+					progressbar.innerHTML = '<span></span>';
+				}
+				container.appendChild(progressbar);
+			} else {
+				progressbar.classList.add(CLASS_PROGRESSBAR_IN);
+			}
+		}
+		if (progress) setProgressbar(container, progress);
+		return progressbar;
+	};
+	/**
+	 * 关闭进度条 
+	 * @param {Object} container 可选,默认body,支持selector,DOM Node,mui wrapper
+	 */
+	var hideProgressbar = function(container) {
+		var progressbar = _findProgressbar(container);
+		if (!progressbar) {
+			return;
+		}
+		var classList = progressbar.classList;
+		if (!classList.contains(CLASS_PROGRESSBAR_IN) || classList.contains(CLASS_PROGRESSBAR_OUT)) {
+			return;
+		}
+		classList.remove(CLASS_PROGRESSBAR_IN);
+		classList.add(CLASS_PROGRESSBAR_OUT);
+		progressbar.addEventListener('webkitAnimationEnd', function() {
+			progressbar.parentNode && progressbar.parentNode.removeChild(progressbar);
+			progressbar = null;
+		});
+		return;
+	};
+	/**
+	 * 设置指定进度条进度 
+	 * @param {Object} container  可选,默认body,支持selector,DOM Node,mui wrapper
+	 * @param {Object} progress 可选,默认0 取值范围[0-100]
+	 * @param {Object} speed 进度条动画时间
+	 */
+	var setProgressbar = function(container, progress, speed) {
+		if (typeof container === 'number') {
+			speed = progress;
+			progress = container;
+			container = false;
+		}
+		var progressbar = _findProgressbar(container);
+		if (!progressbar || progressbar.classList.contains(CLASS_PROGRESSBAR_INFINITE)) {
+			return;
+		}
+		if (progress) progress = Math.min(Math.max(progress, 0), 100);
+		progressbar.offsetHeight;
+		var span = progressbar.querySelector('span');
+		if (span) {
+			var style = span.style;
+			style.webkitTransform = 'translate3d(' + (-100 + progress) + '%,0,0)';
+			if (typeof speed !== 'undefined') {
+				style.webkitTransitionDuration = speed + 'ms';
+			} else {
+				style.webkitTransitionDuration = '';
+			}
+		}
+		return progressbar;
+	};
+	$.fn.progressbar = function(options) {
+		var progressbarApis = [];
+		options = options || {};
+		this.each(function() {
+			var self = this;
+			var progressbarApi = self.mui_plugin_progressbar;
+			if (!progressbarApi) {
+				self.mui_plugin_progressbar = progressbarApi = {
+					options: options,
+					setOptions: function(options) {
+						this.options = options;
+					},
+					show: function() {
+						return showProgressbar(self, this.options.progress, this.options.color);
+					},
+					setProgress: function(progress) {
+						return setProgressbar(self, progress);
+					},
+					hide: function() {
+						return hideProgressbar(self);
+					}
+				};
+			} else if (options) {
+				progressbarApi.setOptions(options);
+			}
+			progressbarApis.push(progressbarApi);
+		});
+		return progressbarApis.length === 1 ? progressbarApis[0] : progressbarApis;
+	};
+	//	$.setProgressbar = setProgressbar;
+	//	$.showProgressbar = showProgressbar;
+	//	$.hideProgressbar = hideProgressbar;
+})(mui, document);
+/**
+ * Input(TODO resize)
+ * @param {type} $
+ * @param {type} window
+ * @param {type} document
+ * @returns {undefined}
+ */
+(function($, window, document) {
+	var CLASS_ICON = 'mui-icon';
+	var CLASS_ICON_CLEAR = 'mui-icon-clear';
+	var CLASS_ICON_SPEECH = 'mui-icon-speech';
+	var CLASS_ICON_SEARCH = 'mui-icon-search';
+	var CLASS_ICON_PASSWORD = 'mui-icon-eye';
+	var CLASS_INPUT_ROW = 'mui-input-row';
+	var CLASS_PLACEHOLDER = 'mui-placeholder';
+	var CLASS_TOOLTIP = 'mui-tooltip';
+	var CLASS_HIDDEN = 'mui-hidden';
+	var CLASS_FOCUSIN = 'mui-focusin';
+	var SELECTOR_ICON_CLOSE = '.' + CLASS_ICON_CLEAR;
+	var SELECTOR_ICON_SPEECH = '.' + CLASS_ICON_SPEECH;
+	var SELECTOR_ICON_PASSWORD = '.' + CLASS_ICON_PASSWORD;
+	var SELECTOR_PLACEHOLDER = '.' + CLASS_PLACEHOLDER;
+	var SELECTOR_TOOLTIP = '.' + CLASS_TOOLTIP;
+
+	var findRow = function(target) {
+		for (; target && target !== document; target = target.parentNode) {
+			if (target.classList && target.classList.contains(CLASS_INPUT_ROW)) {
+				return target;
+			}
+		}
+		return null;
+	};
+	var Input = function(element, options) {
+		this.element = element;
+		this.options = options || {
+			actions: 'clear'
+		};
+		if (~this.options.actions.indexOf('slider')) { //slider
+			this.sliderActionClass = CLASS_TOOLTIP + ' ' + CLASS_HIDDEN;
+			this.sliderActionSelector = SELECTOR_TOOLTIP;
+		} else { //clear,speech,search
+			if (~this.options.actions.indexOf('clear')) {
+				this.clearActionClass = CLASS_ICON + ' ' + CLASS_ICON_CLEAR + ' ' + CLASS_HIDDEN;
+				this.clearActionSelector = SELECTOR_ICON_CLOSE;
+			}
+			if (~this.options.actions.indexOf('speech')) { //only for 5+
+				this.speechActionClass = CLASS_ICON + ' ' + CLASS_ICON_SPEECH;
+				this.speechActionSelector = SELECTOR_ICON_SPEECH;
+			}
+			if (~this.options.actions.indexOf('search')) {
+				this.searchActionClass = CLASS_PLACEHOLDER;
+				this.searchActionSelector = SELECTOR_PLACEHOLDER;
+			}
+			if (~this.options.actions.indexOf('password')) {
+				this.passwordActionClass = CLASS_ICON + ' ' + CLASS_ICON_PASSWORD;
+				this.passwordActionSelector = SELECTOR_ICON_PASSWORD;
+			}
+		}
+		this.init();
+	};
+	Input.prototype.init = function() {
+		this.initAction();
+		this.initElementEvent();
+	};
+	Input.prototype.initAction = function() {
+		var self = this;
+
+		var row = self.element.parentNode;
+		if (row) {
+			if (self.sliderActionClass) {
+				self.sliderAction = self.createAction(row, self.sliderActionClass, self.sliderActionSelector);
+			} else {
+				if (self.searchActionClass) {
+					self.searchAction = self.createAction(row, self.searchActionClass, self.searchActionSelector);
+					self.searchAction.addEventListener('tap', function(e) {
+						$.focus(self.element);
+						e.stopPropagation();
+					});
+				}
+				if (self.speechActionClass) {
+					self.speechAction = self.createAction(row, self.speechActionClass, self.speechActionSelector);
+					self.speechAction.addEventListener('click', $.stopPropagation);
+					self.speechAction.addEventListener('tap', function(event) {
+						self.speechActionClick(event);
+					});
+				}
+				if (self.clearActionClass) {
+					self.clearAction = self.createAction(row, self.clearActionClass, self.clearActionSelector);
+					self.clearAction.addEventListener('tap', function(event) {
+						self.clearActionClick(event);
+					});
+				}
+				if (self.passwordActionClass) {
+					self.passwordAction = self.createAction(row, self.passwordActionClass, self.passwordActionSelector);
+					self.passwordAction.addEventListener('tap', function(event) {
+						self.passwordActionClick(event);
+					});
+				}
+			}
+		}
+	};
+	Input.prototype.createAction = function(row, actionClass, actionSelector) {
+		var action = row.querySelector(actionSelector);
+		if (!action) {
+			var action = document.createElement('span');
+			action.className = actionClass;
+			if (actionClass === this.searchActionClass) {
+				action.innerHTML = '<span class="' + CLASS_ICON + ' ' + CLASS_ICON_SEARCH + '"></span><span>' + this.element.getAttribute('placeholder') + '</span>';
+				this.element.setAttribute('placeholder', '');
+				if (this.element.value.trim()) {
+					row.classList.add('mui-active');
+				}
+			}
+			row.insertBefore(action, this.element.nextSibling);
+		}
+		return action;
+	};
+	Input.prototype.initElementEvent = function() {
+		var element = this.element;
+
+		if (this.sliderActionClass) {
+			var tooltip = this.sliderAction;
+			var timer = null;
+			var showTip = function() { //每次重新计算是因为控件可能被隐藏,初始化时计算是不正确的
+				tooltip.classList.remove(CLASS_HIDDEN);
+				var offsetLeft = element.offsetLeft;
+				var width = element.offsetWidth - 28;
+				var tooltipWidth = tooltip.offsetWidth;
+				var distince = Math.abs(element.max - element.min);
+				var scaleWidth = (width / distince) * Math.abs(element.value - element.min);
+				tooltip.style.left = (14 + offsetLeft + scaleWidth - tooltipWidth / 2) + 'px';
+				tooltip.innerText = element.value;
+				if (timer) {
+					clearTimeout(timer);
+				}
+				timer = setTimeout(function() {
+					tooltip.classList.add(CLASS_HIDDEN);
+				}, 1000);
+			};
+			element.addEventListener('input', showTip);
+			element.addEventListener('tap', showTip);
+			element.addEventListener($.EVENT_MOVE, function(e) {
+				e.stopPropagation();
+			});
+		} else {
+			if (this.clearActionClass) {
+				var action = this.clearAction;
+				if (!action) {
+					return;
+				}
+				$.each(['keyup', 'change', 'input', 'focus', 'cut', 'paste'], function(index, type) {
+					(function(type) {
+						element.addEventListener(type, function() {
+							action.classList[element.value.trim() ? 'remove' : 'add'](CLASS_HIDDEN);
+						});
+					})(type);
+				});
+				element.addEventListener('blur', function() {
+					action.classList.add(CLASS_HIDDEN);
+				});
+			}
+			if (this.searchActionClass) {
+				element.addEventListener('focus', function() {
+					element.parentNode.classList.add('mui-active');
+				});
+				element.addEventListener('blur', function() {
+					if (!element.value.trim()) {
+						element.parentNode.classList.remove('mui-active');
+					}
+				});
+			}
+		}
+	};
+	Input.prototype.setPlaceholder = function(text) {
+		if (this.searchActionClass) {
+			var placeholder = this.element.parentNode.querySelector(SELECTOR_PLACEHOLDER);
+			placeholder && (placeholder.getElementsByTagName('span')[1].innerText = text);
+		} else {
+			this.element.setAttribute('placeholder', text);
+		}
+	};
+	Input.prototype.passwordActionClick = function(event) {
+		if (this.element.type === 'text') {
+			this.element.type = 'password';
+		} else {
+			this.element.type = 'text';
+		}
+		this.passwordAction.classList.toggle('mui-active');
+		event.preventDefault();
+	};
+	Input.prototype.clearActionClick = function(event) {
+		var self = this;
+		self.element.value = '';
+		$.focus(self.element);
+		self.clearAction.classList.add(CLASS_HIDDEN);
+		event.preventDefault();
+	};
+	Input.prototype.speechActionClick = function(event) {
+		if (window.plus) {
+			var self = this;
+			var oldValue = self.element.value;
+			self.element.value = '';
+			document.body.classList.add(CLASS_FOCUSIN);
+			plus.speech.startRecognize({
+				engine: 'iFly'
+			}, function(s) {
+				self.element.value += s;
+				$.focus(self.element);
+				plus.speech.stopRecognize();
+				$.trigger(self.element, 'recognized', {
+					value: self.element.value
+				});
+				if (oldValue !== self.element.value) {
+					$.trigger(self.element, 'change');
+					$.trigger(self.element, 'input');
+				}
+				// document.body.classList.remove(CLASS_FOCUSIN);
+			}, function(e) {
+				document.body.classList.remove(CLASS_FOCUSIN);
+			});
+		} else {
+			alert('only for 5+');
+		}
+		event.preventDefault();
+	};
+	$.fn.input = function(options) {
+		var inputApis = [];
+		this.each(function() {
+			var inputApi = null;
+			var actions = [];
+			var row = findRow(this.parentNode);
+			if (this.type === 'range' && row.classList.contains('mui-input-range')) {
+				actions.push('slider');
+			} else {
+				var classList = this.classList;
+				if (classList.contains('mui-input-clear')) {
+					actions.push('clear');
+				}
+				if (!($.os.android && $.os.stream) && classList.contains('mui-input-speech')) {
+					actions.push('speech');
+				}
+				if (classList.contains('mui-input-password')) {
+					actions.push('password');
+				}
+				if (this.type === 'search' && row.classList.contains('mui-search')) {
+					actions.push('search');
+				}
+			}
+			var id = this.getAttribute('data-input-' + actions[0]);
+			if (!id) {
+				id = ++$.uuid;
+				inputApi = $.data[id] = new Input(this, {
+					actions: actions.join(',')
+				});
+				for (var i = 0, len = actions.length; i < len; i++) {
+					this.setAttribute('data-input-' + actions[i], id);
+				}
+			} else {
+				inputApi = $.data[id];
+			}
+			inputApis.push(inputApi);
+		});
+		return inputApis.length === 1 ? inputApis[0] : inputApis;
+	};
+	$.ready(function() {
+		$('.mui-input-row input').input();
+	});
+})(mui, window, document);
+(function($, window) {
+    var CLASS_ACTIVE = 'mui-active';
+    var rgbaRegex = /^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;
+    var getColor = function(colorStr) {
+        var matches = colorStr.match(rgbaRegex);
+        if (matches && matches.length === 5) {
+            return [
+                matches[1],
+                matches[2],
+                matches[3],
+                matches[4]
+            ];
+        }
+        return [];
+    };
+    var Transparent = function(element, options) {
+        this.element = element;
+        this.options = $.extend({
+            top: 0, //距离顶部高度(到达该高度即触发)
+            offset: 150, //滚动透明距离
+            duration: 16, //过渡时间
+            scrollby: window//监听滚动距离容器
+        }, options || {});
+
+        this.scrollByElem = this.options.scrollby || window;
+        if (!this.scrollByElem) {
+            throw new Error("监听滚动的元素不存在");
+        }
+        this.isNativeScroll = false;
+        if (this.scrollByElem === window) {
+            this.isNativeScroll = true;
+        } else if (!~this.scrollByElem.className.indexOf('mui-scroll-wrapper')) {
+            this.isNativeScroll = true;
+        }
+
+        this._style = this.element.style;
+        this._bgColor = this._style.backgroundColor;
+        var color = getColor(mui.getStyles(this.element, 'backgroundColor'));
+        if (color.length) {
+            this._R = color[0];
+            this._G = color[1];
+            this._B = color[2];
+            this._A = parseFloat(color[3]);
+            this.lastOpacity = this._A;
+            this._bufferFn = $.buffer(this.handleScroll, this.options.duration, this);
+            this.initEvent();
+        } else {
+            throw new Error("元素背景颜色必须为RGBA");
+        }
+    };
+
+    Transparent.prototype.initEvent = function() {
+        this.scrollByElem.addEventListener('scroll', this._bufferFn);
+        if (this.isNativeScroll) { //原生scroll
+            this.scrollByElem.addEventListener($.EVENT_MOVE, this._bufferFn);
+        }
+    }
+    Transparent.prototype.handleScroll = function(e) {
+        var y = window.scrollY;
+        if (!this.isNativeScroll && e && e.detail) {
+            y = -e.detail.y;
+        }
+        var opacity = (y - this.options.top) / this.options.offset + this._A;
+        opacity = Math.min(Math.max(this._A, opacity), 1);
+        this._style.backgroundColor = 'rgba(' + this._R + ',' + this._G + ',' + this._B + ',' + opacity + ')';
+        if (opacity > this._A) {
+            this.element.classList.add(CLASS_ACTIVE);
+        } else {
+            this.element.classList.remove(CLASS_ACTIVE);
+        }
+        if (this.lastOpacity !== opacity) {
+            $.trigger(this.element, 'alpha', {
+                alpha: opacity
+            });
+            this.lastOpacity = opacity;
+        }
+    };
+    Transparent.prototype.destory = function() {
+        this.scrollByElem.removeEventListener('scroll', this._bufferFn);
+        this.scrollByElem.removeEventListener($.EVENT_MOVE, this._bufferFn);
+        this.element.style.backgroundColor = this._bgColor;
+        this.element.mui_plugin_transparent = null;
+    };
+    $.fn.transparent = function(options) {
+        options = options || {};
+        var transparentApis = [];
+        this.each(function() {
+            var transparentApi = this.mui_plugin_transparent;
+            if (!transparentApi) {
+                var top = this.getAttribute('data-top');
+                var offset = this.getAttribute('data-offset');
+                var duration = this.getAttribute('data-duration');
+                var scrollby = this.getAttribute('data-scrollby');
+                if (top !== null && typeof options.top === 'undefined') {
+                    options.top = top;
+                }
+                if (offset !== null && typeof options.offset === 'undefined') {
+                    options.offset = offset;
+                }
+                if (duration !== null && typeof options.duration === 'undefined') {
+                    options.duration = duration;
+                }
+                if (scrollby !== null && typeof options.scrollby === 'undefined') {
+                    options.scrollby = document.querySelector(scrollby) || window;
+                }
+                transparentApi = this.mui_plugin_transparent = new Transparent(this, options);
+            }
+            transparentApis.push(transparentApi);
+        });
+        return transparentApis.length === 1 ? transparentApis[0] : transparentApis;
+    };
+    $.ready(function() {
+        $('.mui-bar-transparent').transparent();
+    });
+})(mui, window);
+/**
+ * 数字输入框
+ * varstion 1.0.1
+ * by Houfeng
+ * Houfeng@DCloud.io
+ */
+
+(function($) {
+
+    var touchSupport = ('ontouchstart' in document);
+    var tapEventName = touchSupport ? 'tap' : 'click';
+    var changeEventName = 'change';
+    var holderClassName = 'mui-numbox';
+    var plusClassSelector = '.mui-btn-numbox-plus,.mui-numbox-btn-plus';
+    var minusClassSelector = '.mui-btn-numbox-minus,.mui-numbox-btn-minus';
+    var inputClassSelector = '.mui-input-numbox,.mui-numbox-input';
+
+    var Numbox = $.Numbox = $.Class.extend({
+        /**
+         * 构造函数
+         **/
+        init: function(holder, options) {
+            var self = this;
+            if (!holder) {
+                throw "构造 numbox 时缺少容器元素";
+            }
+            self.holder = holder;
+            options = options || {};
+            options.step = parseInt(options.step || 1);
+            self.options = options;
+            self.input = $.qsa(inputClassSelector, self.holder)[0];
+            self.plus = $.qsa(plusClassSelector, self.holder)[0];
+            self.minus = $.qsa(minusClassSelector, self.holder)[0];
+            self.checkValue();
+            self.initEvent();
+        },
+        /**
+         * 初始化事件绑定
+         **/
+        initEvent: function() {
+            var self = this;
+            self.plus.addEventListener(tapEventName, function(event) {
+                var val = parseInt(self.input.value) + self.options.step;
+                self.input.value = val.toString();
+                $.trigger(self.input, changeEventName, null);
+            });
+            self.minus.addEventListener(tapEventName, function(event) {
+                var val = parseInt(self.input.value) - self.options.step;
+                self.input.value = val.toString();
+                $.trigger(self.input, changeEventName, null);
+            });
+            self.input.addEventListener(changeEventName, function(event) {
+                self.checkValue();
+                var val = parseInt(self.input.value);
+                //触发顶层容器
+                $.trigger(self.holder, changeEventName, {
+                    value: val
+                });
+            });
+        },
+        /**
+         * 获取当前值
+         **/
+        getValue: function() {
+            var self = this;
+            return parseInt(self.input.value);
+        },
+        /**
+         * 验证当前值是法合法
+         **/
+        checkValue: function() {
+            var self = this;
+            var val = self.input.value;
+            if (val == null || val == '' || isNaN(val)) {
+                self.input.value = self.options.min || 0;
+                self.minus.disabled = self.options.min != null;
+            } else {
+                var val = parseInt(val);
+                if (self.options.max != null && !isNaN(self.options.max) && val >= parseInt(self.options.max)) {
+                    val = self.options.max;
+                    self.plus.disabled = true;
+                } else {
+                    self.plus.disabled = false;
+                }
+                if (self.options.min != null && !isNaN(self.options.min) && val <= parseInt(self.options.min)) {
+                    val = self.options.min;
+                    self.minus.disabled = true;
+                } else {
+                    self.minus.disabled = false;
+                }
+                self.input.value = val;
+            }
+        },
+        /**
+         * 更新选项
+         **/
+        setOption: function(name, value) {
+            var self = this;
+            self.options[name] = value;
+        },
+        /**
+         * 动态设置新值
+         **/
+        setValue: function(value) {
+            this.input.value = value;
+            this.checkValue();
+        }
+    });
+
+    $.fn.numbox = function(options) {
+        var instanceArray = [];
+        //遍历选择的元素
+        this.each(function(i, element) {
+            if (element.numbox) {
+                return;
+            }
+            if (options) {
+                element.numbox = new Numbox(element, options);
+            } else {
+                var optionsText = element.getAttribute('data-numbox-options');
+                var options = optionsText ? JSON.parse(optionsText) : {};
+                options.step = element.getAttribute('data-numbox-step') || options.step;
+                options.min = element.getAttribute('data-numbox-min') || options.min;
+                options.max = element.getAttribute('data-numbox-max') || options.max;
+                element.numbox = new Numbox(element, options);
+            }
+        });
+        return this[0] ? this[0].numbox : null;
+    }
+
+    //自动处理 class='mui-locker' 的 dom
+    $.ready(function() {
+        $('.' + holderClassName).numbox();
+    });
+
+}(mui));
+/**
+ * Button
+ * @param {type} $
+ * @param {type} window
+ * @param {type} document
+ * @returns {undefined}
+ */
+(function($, window, document) {
+    var CLASS_ICON = 'mui-icon';
+    var CLASS_DISABLED = 'mui-disabled';
+
+    var STATE_RESET = 'reset';
+    var STATE_LOADING = 'loading';
+
+    var defaultOptions = {
+        loadingText: 'Loading...', //文案
+        loadingIcon: 'mui-spinner' + ' ' + 'mui-spinner-white', //图标,可为空
+        loadingIconPosition: 'left' //图标所处位置,仅支持left|right
+    };
+
+    var Button = function(element, options) {
+        this.element = element;
+        this.options = $.extend({}, defaultOptions, options);
+        if (!this.options.loadingText) {
+            this.options.loadingText = defaultOptions.loadingText;
+        }
+        if (this.options.loadingIcon === null) {
+            this.options.loadingIcon = 'mui-spinner';
+            if ($.getStyles(this.element, 'color') === 'rgb(255, 255, 255)') {
+                this.options.loadingIcon += ' ' + 'mui-spinner-white';
+            }
+        }
+        this.isInput = this.element.tagName === 'INPUT';
+        this.resetHTML = this.isInput ? this.element.value : this.element.innerHTML;
+        this.state = '';
+    };
+    Button.prototype.loading = function() {
+        this.setState(STATE_LOADING);
+    };
+    Button.prototype.reset = function() {
+        this.setState(STATE_RESET);
+    };
+    Button.prototype.setState = function(state) {
+        if (this.state === state) {
+            return false;
+        }
+        this.state = state;
+        if (state === STATE_RESET) {
+            this.element.disabled = false;
+            this.element.classList.remove(CLASS_DISABLED);
+            this.setHtml(this.resetHTML);
+        } else if (state === STATE_LOADING) {
+            this.element.disabled = true;
+            this.element.classList.add(CLASS_DISABLED);
+            var html = this.isInput ? this.options.loadingText : ('<span>' + this.options.loadingText + '</span>');
+            if (this.options.loadingIcon && !this.isInput) {
+                if (this.options.loadingIconPosition === 'right') {
+                    html += '&nbsp;<span class="' + this.options.loadingIcon + '"></span>';
+                } else {
+                    html = '<span class="' + this.options.loadingIcon + '"></span>&nbsp;' + html;
+                }
+            }
+            this.setHtml(html);
+        }
+    };
+    Button.prototype.setHtml = function(html) {
+        if (this.isInput) {
+            this.element.value = html;
+        } else {
+            this.element.innerHTML = html;
+        }
+    }
+    $.fn.button = function(state) {
+        var buttonApis = [];
+        this.each(function() {
+            var buttonApi = this.mui_plugin_button;
+            if (!buttonApi) {
+                var loadingText = this.getAttribute('data-loading-text');
+                var loadingIcon = this.getAttribute('data-loading-icon');
+                var loadingIconPosition = this.getAttribute('data-loading-icon-position');
+                this.mui_plugin_button = buttonApi = new Button(this, {
+                    loadingText: loadingText,
+                    loadingIcon: loadingIcon,
+                    loadingIconPosition: loadingIconPosition
+                });
+            }
+            if (state === STATE_LOADING || state === STATE_RESET) {
+                buttonApi.setState(state);
+            }
+            buttonApis.push(buttonApi);
+        });
+        return buttonApis.length === 1 ? buttonApis[0] : buttonApis;
+    };
+})(mui, window, document);

+ 47 - 0
v2tv/src/App.vue

@@ -0,0 +1,47 @@
+<template>
+    <div id="app">
+        <router-view/>
+    </div>
+</template>
+
+<script>
+    export default {
+        mounted() {
+        }
+    }
+</script>
+<style>
+    #app {
+        position: absolute;
+        width: 100%;
+        height: 100%;
+        top: 0;
+        left: 0;
+        right: 0;
+        bottom: 0;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        font-family: Avenir, Helvetica, Arial, sans-serif;
+        -webkit-font-smoothing: antialiased;
+        -moz-osx-font-smoothing: grayscale;
+        text-align: center;
+        color: #2c3e50;
+    }
+    ul, li {
+        list-style: none;
+        margin: 0;
+        padding: 0;
+    }
+
+
+    @font-face {
+        font-family: vista;
+        src: url('assets/font/vista.otf');
+    }
+
+    * {
+        font-family: vista;
+    }
+
+</style>

+ 494 - 0
v2tv/src/Global.js

@@ -0,0 +1,494 @@
+// 网站基本信息
+companyInfo = {
+    url: 'http://det.shandongewall.com/',
+    main: 'alloutlong',
+    year: new Date().getFullYear(),
+};
+
+// 当前版本   演示版
+// runVersion = 'test';
+// 户外版本
+runVersion = 'outDoor';
+// normal
+// runVersion = 'normal';
+
+// headapi = process.env.NODE_ENV === 'development' ? '/api/' : '../';
+// headapi = 'http://192.168.0.110:8080/';//从郑伟那里获得数据源
+// headapi = '';//从郑伟那里获得数据源
+// headapi = 'http://192.168.0.63:8080/';//从郑伟那里获得数据源
+headapi = 'http://192.168.0.10:8080/';//实际场馆默认数据源
+
+// 七牛云imgsrc
+imgUrl = "http://qjzpcd34v.hb-bkt.clouddn.com";
+
+// pad测试版本
+
+// 常用选项
+globalQuipState = function () {
+    let option = [
+        {
+            value: '',
+            label: '全部'
+        }, {
+            value: '0',
+            label: '新入库'
+        }, {
+            value: '1',
+            label: '未售'
+        },
+    ];
+    return option
+};
+
+// 开始时间
+globalBt = function () {
+    const et = new Date();
+    const bt = new Date("2019-01-01 00:00:01");
+    return [bt, et];
+};
+
+globalBt2 = function (days) {
+    const et = new Date();
+    const bt = new Date();
+    days = days ? days : 0;
+    bt.setTime(bt.getTime() - 3600 * 1000 * 24 * days);
+    return [bt, et];
+};
+
+// 格式化时间
+globalfmtDate = function (datetime, length) {
+    if ((datetime == '') || (datetime == undefined))
+        return '';
+    if ((datetime == '1900-01-01') || (datetime == '1900-01-01 00:00:00.000'))
+        return '';
+    length = !length ? 10 : length;//缺省参数
+    return (datetime != null) ? datetime.substr(0, length) : '';
+};
+
+getHoursAndMin = function (datetime) {
+    let date = new Date(datetime);
+    h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
+    m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
+    return h + m;
+};
+
+getHoursAndMinAndSec = function () {
+    let date = new Date();
+    h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
+    m = date.getMinutes() < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
+    s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
+    return h + m + s;
+};
+
+// 格式化时间去掉T
+nonTfmtDate = function (datetime, length) {
+    if ((datetime == '') || (datetime == undefined))
+        return '';
+    if ((datetime == '1900-01-01') || (datetime == '1900-01-01 00:00:00.000'))
+        return '';
+    length = !length ? 10 : length;//缺省参数
+    datetime = new Date(+new Date(datetime) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '');
+    return datetime
+};
+
+// 格式化时间去掉T
+nonTfmtDatetoLength = function (datetime, length) {
+    if ((datetime == '') || (datetime == undefined))
+        return '';
+    if ((datetime == '1900-01-01') || (datetime == '1900-01-01 00:00:00.000'))
+        return '';
+    length = !length ? 10 : length;//缺省参数
+    datetime = new Date(+new Date(datetime) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '').substr(0, length);
+    return datetime
+};
+
+// 获取当前时间
+globalcurrent = function () {
+    let date = new Date();
+    let seperator1 = "-";
+    let year = date.getFullYear();
+    let month = date.getMonth() + 1;
+    let strDate = date.getDate();
+    if (month >= 1 && month <= 9) {
+        month = "0" + month;
+    }
+    if (strDate >= 0 && strDate <= 9) {
+        strDate = "0" + strDate;
+    }
+    let thisdata = year + seperator1 + month + seperator1 + strDate;
+    return thisdata;
+};
+
+// 校验内容长度
+globalValid = function (data, mins, maxs, text, that) {
+    let thisVal = data;
+    let thisLeng = thisVal.length;
+    let min = parseInt(mins);
+    let max = parseInt(maxs);
+    let dispalyMin = min + 1;
+    let title = '警告';
+    if (thisVal == '') {
+        that.$message({
+            message: text + '不能为空!',
+            type: 'warning'
+        });
+        return false
+    } else if (thisLeng <= min) {
+        that.$message({
+            message: text + '最少' + dispalyMin + '字符!',
+            type: 'warning'
+        });
+        return false
+    } else if (thisLeng > max) {
+        that.$message({
+            message: text + '超出限制数量!',
+            type: 'warning'
+        });
+        return false
+    } else {
+        return true
+    }
+};
+
+// 手机号码格式
+globalCheckPhone = function (val) {
+    let re = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
+    val = val.toString();
+    if (val.search(re) == -1) {
+        return false;
+    } else {
+        return true;
+    }
+};
+
+getNowDate = function () {
+    let date = new Date();
+    let y = date.getFullYear();
+    let m = date.getMonth() + 1;
+    let d = date.getDate();
+    let H = date.getHours();
+    let mm = date.getMinutes();
+    let s = date.getSeconds()
+    m = m < 10 ? "0" + m : m;
+    d = d < 10 ? "0" + d : d;
+    // H = H < 10 ? "0" + H : H;
+    return y + "年" + m + "月" + d + "日";
+}
+
+globalcurrentWeek = function () {
+    let weeks = new Date().getDay();
+    let d = new Date().getDate();
+    return getNowDate() + ' ' + numberToWeekdays(weeks) + ' 第' + getWeekOfYear() + '周';
+}
+
+getWeekOfYear = function () {
+    var today = new Date();
+    var firstDay = new Date(today.getFullYear(), 0, 1);
+    var dayOfWeek = firstDay.getDay();
+    var spendDay = 1;
+    if (dayOfWeek != 0) {
+        spendDay = 7 - dayOfWeek + 1;
+    }
+    firstDay = new Date(today.getFullYear(), 0, 1 + spendDay);
+    var d = Math.ceil((today.valueOf() - firstDay.valueOf()) / 86400000);
+    var result = Math.ceil(d / 7);
+    return result + 1;
+};
+
+// table配置项目
+
+// 每页选项
+pageOptions = function () {
+    let option = [
+        {
+            value: 10,
+            label: '10'
+        }, {
+            value: 25,
+            label: '25'
+        }, {
+            value: 50,
+            label: '50'
+        }, {
+            value: 100,
+            label: '100'
+        }, {
+            value: 2000,
+            label: '2000'
+        },
+    ];
+    return option
+};
+
+// 到期日
+endTypeOptions = function () {
+    let option = [
+        {
+            value: '',
+            label: '全部'
+        }, {
+            value: 1,
+            label: '当天'
+        }, {
+            value: 7,
+            label: '一周'
+        }, {
+            value: 30,
+            label: '一个月'
+        }, {
+            value: 90,
+            label: '一季度'
+        }, {
+            value: 180,
+            label: '半年'
+        },
+    ];
+    return option
+}
+//会员类型
+vipOptions = function (i) {
+    let option = [];
+    if (i == 0) {
+        option = [
+            {
+                value: '',
+                label: '全部'
+            }, {
+                value: 1,
+                label: '年费会员'
+            }, {
+                value: 2,
+                label: '充值会员'
+            },
+        ];
+    } else {
+        option = [
+            {
+                value: 1,
+                label: '年费会员'
+            }, {
+                value: 2,
+                label: '充值会员'
+            },
+        ];
+    }
+    return option
+}
+
+turnResToOption = function (data) {
+    if (!data) return false
+    let ids = data.map(item => {
+        return {
+            label: item.UserInfo.Name + ' ' + item.UserInfo.Phone,
+            key: parseInt(item.UserInfo.Id),
+            value: parseInt(item.UserInfo.Id),
+        }
+    })
+    return ids
+}
+
+turnResToOptionByViper = function (data) {
+    if (!data) return false;
+    let ids = data.map(item => {
+        return {
+            label: item.Name + ' ' + item.Phone,
+            key: parseInt(item.Id),
+            value: parseInt(item.Id),
+        }
+    });
+    return ids
+};
+turnResToOptionBySimViper = function (data) {
+    if (!data) return false;
+    let ids = data.map(item => {
+        return {
+            label: item.Name + ' ' + item.Usercode,
+            key: parseInt(item.Id),
+            value: parseInt(item.Id),
+            RemainHour: parseInt(item.RemainHour),
+        }
+    });
+    return ids
+};
+turnResToOptionByCoach = function (data) {
+    if (!data) return false;
+    let ids = data.map(item => {
+        return {
+            label: item.Name + ' ' + item.Phone,
+            key: parseInt(item.TeacherId),
+            value: parseInt(item.TeacherId),
+        }
+    });
+    return ids
+};
+turnResToOptionByUsers = function (data) {
+    if (!data) return false;
+    let ids = data.map(item => {
+        return {
+            label: item.Name + ' ' + item.Phone,
+            key: parseInt(item.Id),
+            value: parseInt(item.Id),
+        }
+    });
+    return ids
+};
+
+turnClassResToOption = function (data) {
+    if (data == null) return false;
+    if (!data) return false;
+    let ids = data.map(item => {
+        return {
+            label: item.ClassSelf.ClassName,
+            key: parseInt(item.ClassSelf.ClassId),
+            value: parseInt(item.ClassSelf.ClassId),
+            ClassColor: item.ClassSelf.ClassColor,
+        }
+    });
+    return ids
+};
+
+turnShopResToOption = function (data) {
+    if (!data) return false
+    let ids = data.map(item => {
+        return {
+            label: item.ShopName,
+            key: parseInt(item.ShopID),
+            value: parseInt(item.ShopID)
+        }
+    });
+    return ids
+};
+
+turnStdToOption = function (data) {
+    if (!data) return false;
+    let ids = data.map(item => {
+        return {
+            label: item.ClassName + '(' + item.BeginStr + '-' + item.EndStr + ')',
+            key: parseInt(item.StdId),
+            value: parseInt(item.StdId),
+            classId: parseInt(item.ClassId),
+        }
+    });
+    return ids
+};
+
+numberToWeekdays = function (val) {
+    switch (parseInt(val)) {
+        case 1:
+            return '星期一';
+            break;
+        case 2:
+            return '星期二';
+            break;
+        case 3:
+            return '星期三';
+            break;
+        case 4:
+            return '星期四';
+            break;
+        case 5:
+            return '星期五';
+            break;
+        case 6:
+            return '星期六';
+            break;
+        case 0:
+            return '星期天';
+            break;
+    }
+};
+
+// 随机背景
+RandomBg = function () {
+    let bgClassNum = parseInt(Math.random() * 4) + 1;
+    return 'bgStyle' + bgClassNum + '  pages';
+};
+RandomBg2 =function(){
+    let bgClassNum = parseInt(Math.random() * 4) + 1;
+    return 'bg2Style' + bgClassNum + '  pages';
+};
+
+// 运动强度
+sportLevel = function (val) {
+    let colorClass = '';
+    let per = parseInt(val);
+    switch (true) {
+        case per >= 90:
+            colorClass = 'red';
+            break;
+        case per <= 89 && per > 79:
+            colorClass = 'brown';
+            break;
+        case per <= 79 && per > 69:
+            colorClass = 'yellow';
+            break;
+        case per <= 69 && per > 54:
+            colorClass = 'green';
+            break;
+        case per <= 54 && per > 39:
+            colorClass = 'violet';
+            break;
+        case per <= 39:
+            colorClass = 'blue';
+            break
+    }
+    return colorClass
+};
+
+// 假数据生成器
+fakeNews = function (num, team) {
+    let item = [];
+    let nums = Math.random() * 100 + 1;
+    let teamNum = team == 3 ? 3 : 2;
+    for (var i = 0; i < num; i++) {
+        item.push(
+            {
+                "SvId": 1,
+                "UserId": 1,
+                "Cle": parseInt(Math.random() * 100 + 50),
+                "realHr1": parseInt(Math.random() * 100 + 50),
+                "activePercent": parseInt(Math.random() * 100 + 50),
+                "realHr": parseInt(Math.random() * 100 + 50),
+                "heartRate": parseInt(Math.random() * 100 + 50),
+                "PureCalorieNoVo2": parseInt(Math.random() * 100 + 50),
+                "Name": "测试人",
+                "name": "测试人",
+                "updateTime": 1604568915582,
+                "Ck": (nums + i + 1) * 2.2,
+                "formatCk": parseInt(Math.random() * 100 + 50),
+                "Head": "http://192.168.0.2/gc.png",
+                "GroupNo": i % teamNum + 1,
+                "Sex": i % 2 + 1,
+                "IsBirthday": i % 2
+            }
+        )
+    }
+    return item;
+};
+
+// 欢迎新同学
+OpenStudent = function (msg, that) {
+    that.studentInfo.Rs = msg;
+    that.studentInfo.dialogVisible = true;
+    // 倒计时5秒自动关闭
+    let studentTime = 6;
+    let clock = window.setInterval(() => {
+        studentTime--;
+        let num = (6 - studentTime) / 6 * 100;
+        this.studentInfo.percent = num > 100 ? 100 : num;
+        console.log('num' + num);
+        console.log('studentTime' + this.studentTime);
+        if (parseInt(studentTime) < 0) {
+            that.studentInfo.dialogVisible = false;
+            clearInterval(clock);
+        }
+    }, 1000)
+};
+
+// 深拷贝
+deepClone = function (obj) {
+    let _obj = JSON.stringify(obj),
+        objClone = JSON.parse(_obj);
+    return objClone
+};
+

+ 437 - 0
v2tv/src/Mock/index.js

@@ -0,0 +1,437 @@
+import Mock from 'mockjs'
+import global from '../Global'
+
+let Random = Mock.Random;
+
+// worldDetail
+let worldDetail = function () {
+    let item = [];
+    for (var i = 0; i < 30; i++) {
+        item.push({
+            "id": "@guid",
+            // "name": "@region",
+            Name: "西门吹雪",
+            "Confirmed": "@integer(36844, 368449)",
+            "Deaths": "@integer(1099, 10993)",
+            "Recovered": "@integer(1986, 19865)",
+        })
+    }
+
+    let res = {
+        Rs: item,
+        Code: 0,
+        Memo: ''
+    };
+    return res;
+};
+
+let testTable = function () {
+    let item = [];
+
+    let members = [
+        {id: 1, name: '霍元甲', userCode: '15253135600', vipType: 1},
+        {id: 2, name: '陈真', userCode: '15253135602', vipType: 2},
+        {id: 3, name: '成龙', userCode: '15253135604', vipType: 1},
+    ];
+
+    for (var i = 0; i < 6; i++) {
+        item.push({
+            "id": "@guid",
+            "userCode": "@integer(15253135600, 15253135699)",
+            "name": "@region",
+            "tel": "@integer(15253135600, 15253135699)",
+            "shop": "@region",
+            "create": "@datetime",
+            "expTime": "@datetime",
+            "valid": "@datetime",
+            "Confirmed": "@integer(36844, 368449)",
+            "Deaths": "@integer(1099, 10993)",
+            "Recovered": "@integer(1986, 9999)",
+            "kick": "@integer(1986, 9999)",
+            "Status": "@integer(1, 2)",
+            "color": "@hex",
+            "memo": "@paragraph(1, 1)",
+            "dialogValue": "@range(1, 3)",
+            "vipType": "@integer(1, 2)",
+            "members": members,
+            "wxVisible": "@integer(0, 1)",
+            "timeLong": "12:00-14:00",
+            "timeScope": [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],
+        })
+    }
+
+    let res = {
+        Rs: item,
+        Code: 0,
+        Memo: ''
+    };
+    return res;
+};
+// "percent":  "@integer(0, 100)",
+let getUserList = function () {
+    let item = [];
+
+    let nameList = [
+        {name: '杨东艳'},
+        {name: '隋小飞'},
+        {name: '刘晓蕾'},
+        {name: '刘海生'},
+        {name: '贾雨琦'},
+        {name: '李延海'},
+        {name: '宋凌晨'},
+        {name: '段长鹏'},
+        {name: '郑伟'},
+        {name: '周睿'},
+        {name: '贾奕'},
+        {name: '王正祥'},
+        {name: '高超'},
+        {name: '武发鲁'},
+        {name: '赵晋洪'},
+        {name: '张岩'},
+    ];
+
+    let img = [
+        {name: 'flyhead.png'},
+    ];
+
+    for (var i = 0; i < 16; i++) {
+        item.push({
+            "name": nameList[i].name,
+            "ActivePercent": "@integer(0, 54)",
+            "heartRate": "@integer(70, 150)",
+            "calorie": "@integer(200, 1000)",
+            "ck": "23.2",
+            "topCk": "@integer(150, 200)",
+            "step": "@integer(200, 20000)",
+            "hubId": "@guid",
+            "deviceId": "@guid",
+            "userCode": "@integer(15253135600, 15253135699)",
+        })
+    }
+    let res = {
+        Rs: item,
+        Code: 0,
+        Memo: ''
+    };
+    return res;
+};
+
+
+let testStudent = function (num, team, mustbeTeamOne) {
+    let item = [];
+    let group = team == 2 ? "@integer(1, 2)" : "@integer(1, 3)";
+    // group = 1;
+    if (mustbeTeamOne) {
+        group = mustbeTeamOne;
+    }
+    for (var i = 0; i < num; i++) {
+        item.push({
+            Age: 13,
+            AvgHr: 0,
+            BeginTime: 1608188579,
+            Ck: "@float(1,99,0,1)",
+            Cle: "@float(1,9999,0,1)",
+            DuId: 119,
+            EndTime: 0,
+            GroupNo: group,
+            Head: "http://192.168.0.2/gc.png",
+            Height: 160,
+            HrId: 41,
+            IsBirthday: 0,
+            IsBreaking: 0,
+            IsNewUser: 0,
+            MaxHr: 80,
+            PowerPercent: "@integer(1, 100)",
+            // PowerPercent: "100",
+            // Name: "@cname",
+            Name: "西门吹雪",
+            PkSucessnum: '1',//胜场数
+            PkTotalnum: '1',//总场数
+            PlanId: 60,
+            PureCalorieNoVo2: "@integer(1, 999)",
+            Sex: 1,
+            Sn: "22735",
+            StaticHr: 60,
+            Steps: "@float(1,9999,0,1)",
+            SvId: 20,
+            UserId: 104,
+            UserMd5: "55661a861f8fae20dd505b2b4575dc0e",
+            Weight: 50,
+            // ActivePercent: "@integer(1, 200)",
+            ActivePercent: 70,
+            bmrMSjRmrcb: 66.00000000000001,
+            FormatCk: "@integer(1, 999)",
+            isAlive: true,
+            isFinish: false,
+            isOver: false,
+            IsPrivate: 1,
+            lastPushDataTime: 1608188947175,
+            lastUpdateTime: 1608188945184,
+            queuePushData: [],
+            RealHr: "@integer(1, 200)",
+            // RealHr: 0,
+            vo2Max: "@float(1,9999,0,1)"
+        })
+    }
+
+    let Dp = {
+        "PlanId": 182,
+        "ShopId": 1,
+        "SvId": 1,
+        "PlanName": "齐源大厦浏览器显示2020-12-02日08:40开始的竞技游戏",
+        "Status": 3,
+        "BeginTime": "17:15:18",
+        "EndTime": 0,
+        "ClassType": 2,
+        "PkNum": 2,
+        "Teacher": '测试教练',
+    };
+    return {
+        Rs: item,
+        Dp: Dp,
+        Code: 0,
+        Memo: ''
+    };
+};
+
+let getNewUser = function (code) {
+
+    let item = [];
+    for (var i = 0; i < 3; i++) {
+        item.push({
+            "SvId": "@guid",
+            "UserId": "@integer(15253135600, 15253135699)",
+            "name": "测试人",
+            "Name": "测试人",
+        })
+    }
+
+    return {
+        Code: code,
+        Memo: "Success",
+        Rs: item,
+    };
+};
+
+let getRecordBreak = function (code) {
+
+    let item = {
+        "SvId": "@guid",
+        "UserId": "@integer(15253135600, 15253135699)",
+        "UserName": "测试人",
+        "Cle": "@integer(200, 1000)",
+        "Ck": "@integer(10, 100)",
+        "CleUnit": "千卡",
+        "CkUnit": "CK",
+    };
+
+    return {
+        Code: code,
+        Memo: "Success",
+        Rs: item,
+    };
+};
+let CalorieStatsQuery = function () {
+    let Rs = [
+        {
+            Title: '本<s>周</s>场馆卡路里总消耗',
+            Result: [{'Values': "@integer(1, 999999)", Unite: '千卡'}],
+        },
+        {
+            Title: '本<s>周</s>场馆卡路里总消耗',
+            Result: [{'Values': "@integer(1, 888888)", Unite: '千卡'}],
+        }
+    ];
+    return {
+        Code: 0,
+        Memo: "Success",
+        Rs: Rs,
+    };
+};
+
+let UserRankingQuery = function (num) {
+    let item1 = [];
+    let item2 = [];
+    for (var i = 0; i < num; i++) {
+        item1.push({
+            // "UserName": "@cname",
+            UserName: "西门吹雪",
+            "Values": "@integer(1, 9999)",
+        })
+    }
+    for (var i = 0; i < num; i++) {
+        item2.push({
+            // "UserName": "@cname",
+            UserName: "西门吹雪",
+            "Values": "@float(1,9999,0,1)",
+        })
+    }
+    let Rs = [
+        {
+            Title: '月度卡路里排行榜',
+            Result: item1,
+        }, {
+            Title: '月度CK排行榜',
+            Result: item2,
+        }, {
+            Title: '今日卡路里排行榜',
+            Result: item1,
+        }, {
+            Title: '今日CK排行榜',
+            Result: item2,
+        }
+    ];
+    return {
+        Code: 0,
+        Memo: "Success",
+        Rs: Rs,
+    };
+};
+
+
+let testHerosRankingQuery = function (num) {
+    let item = [
+        {
+            "Title": "本周消耗卡路里英雄榜",
+            "Style": "heros",
+            "Result": [
+                {
+                    // "UserName": "@cname",
+                    UserName: "西门吹雪",
+                    "Sex": 1,
+                    "Head": "",
+                    "Values": "4744",
+                    "Unite": "千卡",
+                    "Message": ""
+                },
+                {
+                    // "UserName": "@cname",
+                    UserName: "西门吹雪",
+                    "Sex": 1,
+                    "Head": "",
+                    "Values": "4034",
+                    "Unite": "千卡",
+                    "Message": ""
+                },
+                {
+                    // "UserName": "@cname",
+                    UserName: "西门吹雪",
+                    "Sex": 1,
+                    "Head": "",
+                    "Values": "2290",
+                    "Unite": "千卡",
+                    "Message": ""
+                }
+            ]
+        },
+        {
+            "Title": "单次CK值(新个人记录)",
+            "Style": "tops",
+            "Result": [
+                {
+                    // "UserName": "@cname",
+                    UserName: "西门吹雪",
+                    "Sex": 1,
+                    "Head": "",
+                    "Values": "1022",
+                    "Unite": "",
+                    "Message": "打破了历史记录100000"
+                },
+                {
+                    // "UserName": "@cname",
+                    UserName: "西门吹雪",
+                    "Sex": 1,
+                    "Head": "",
+                    "Values": "1020",
+                    "Unite": "",
+                    "Message": "打破了历史记录100000"
+                }
+            ]
+        },
+
+    ];
+
+    return {
+        Code: 0,
+        Memo: "Success",
+        Rs: item,
+    };
+};
+
+let getClassStat = function (ClassOn, dp) {
+    return {
+        ClassOn: ClassOn, //   // 0: 下课 团课/私教/PK 的排名
+        Code: 0,
+        Memo: "Success",
+        dp: dp,
+        // 1:团课/私教
+        // 2:竞技课2PK
+        // 3:竞技课threepk
+    };
+};
+
+let t = 1;//0 is on 1 is off
+if (t == 1) {
+    // 列表测试
+    Mock.mock('/api/testTable', 'post', testTable());
+    Mock.mock('/api/getUserList', 'post', getUserList());
+
+    let curheadapi = 'http://192.168.0.63:8080/';
+
+    if (runVersion == 'test') {
+        curheadapi = 'http://cal.beswell.com:85/DataTransfer/';
+    }
+    if(runVersion == 'outDoor'){
+         curheadapi = 'http://192.168.0.105:9000/';
+    }
+
+    // 0: 下课 团课/私教/PK 的排名
+    let LessonClass = 1;
+    let LessonDp = 1;
+    // 1:团课/私教
+    // 2:竞技课2PK
+    // 3:竞技课threepk
+    if (LessonClass == 1) {
+        // 上团课
+        Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 1));
+        Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(2, 1));
+    } else if (LessonClass == 2) {
+        // 上2队PK课
+        Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 2));
+        Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(8, 2,));
+    } else if (LessonClass == 3) {
+        // 上3队PK课
+        Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(1, 3));
+        Mock.mock(curheadapi + 'UserListInfo', 'post', testStudent(8, 3,));
+    } else if (LessonClass == 0) {
+        // 下课
+        if (LessonDp == 0) {
+            Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(0, 0));
+        } else if (LessonDp == 1) {
+            Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(0, 1));
+            Mock.mock(curheadapi + 'ClassUserRank', 'post', testStudent(16, 2));
+        } else if (LessonDp == 2) {
+            Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(0, 2));
+            // 下课排名
+            Mock.mock(curheadapi + 'ClassUserRank', 'post', testStudent(16, 2));
+        } else if (LessonDp == 3) {
+            Mock.mock(curheadapi + 'ClassStatQuery', 'post', getClassStat(0, 3));
+            // 下课排名
+            Mock.mock(curheadapi + 'ClassUserRank', 'post', testStudent(16, 3));
+        }
+    }
+
+    // wait
+    // 英雄榜
+    Mock.mock(curheadapi + 'HerosRankingQuery', 'post', testHerosRankingQuery(3));
+    // 卡路里排行榜
+    Mock.mock(curheadapi + 'CalorieStatsQuery', 'post', CalorieStatsQuery(1, 2));
+    // 用户排行榜
+    Mock.mock(curheadapi + 'UserRankingQuery', 'post', UserRankingQuery(8));
+    // 新同学 0 999
+    Mock.mock(curheadapi + 'getNewUser', 'post', getNewUser(999));
+    // 彩蛋 0 999
+    Mock.mock(curheadapi + 'getRecordBreak', 'post', getRecordBreak(999));
+}
+
+export default Mock;

+ 223 - 0
v2tv/src/api/Navs.js

@@ -0,0 +1,223 @@
+let navs = [
+    {
+        "clmid": "1",
+        "clmcode": "index",
+        "clmname": "系统首页",
+        "clmurl": "/",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-house",
+    }, {
+        "clmid": "2",
+        "clmcode": "member",
+        "clmname": "会员管理",
+        "clmurl": "/member",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-user",
+    }, {
+        "clmid": "3",
+        "clmcode": "lesson",
+        "clmname": "课程管理",
+        "clmurl": "/lesson",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-s-cooperation",
+    }, {
+        "clmid": "4",
+        "clmcode": "lessonTable",
+        "clmname": "课程表模板",
+        "clmurl": "/lessonTable",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-tickets",
+    }, {
+        "clmid": "5",
+        "clmcode": "lessonManage",
+        "clmname": "课程表管理",
+        "clmurl": "/lessonManage",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-date",
+    }, {
+        "clmid": "6",
+        "clmcode": "coach",
+        "clmname": "教练管理",
+        "clmurl": "/coach",
+        "prname": "",
+        "show": 999,
+        "grouplist": "2,5",
+        "icon": "el-icon-medal-1",
+    }, {
+        "clmid": "7",
+        "clmcode": "appoint",
+        "clmname": "预约管理",
+        "clmurl": "/appoint",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-time",
+    }, {
+        "clmid": "8",
+        "clmcode": "record",
+        "clmname": "预约记录",
+        "clmurl": "/record",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-document-copy",
+    }, {
+        "clmid": "9",
+        "clmcode": "cost",
+        "clmname": "消费记录",
+        "clmurl": "/cost",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-bank-card",
+    }, {
+        "clmid": "10",
+        "clmcode": "finish",
+        "clmname": "下课管理",
+        "clmurl": "/finish",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-bell",
+    }, {
+        "clmid": "11",
+        "clmcode": "setting",
+        "clmname": "系统设置",
+        "clmurl": "/setting",
+        "prname": "",
+        "show": 3,
+        "grouplist": "2,5",
+        "icon": "el-icon-setting",
+    }, {
+        "clmid": "12",
+        "clmcode": "shop",
+        "clmname": "店面管理",
+        "clmurl": "/shopManage",
+        "prname": "",
+        "show": 2,
+        "grouplist": "2,5",
+        "icon": "el-icon-s-shop",
+    }, {
+        "clmid": "13",
+        "clmcode": "adminManage",
+        "clmname": "管理员管理",
+        "clmurl": "/adminManage",
+        "prname": "",
+        "show": 2,
+        "grouplist": "2,5",
+        "icon": "el-icon-user",
+    }, {
+        "clmid": "14",
+        "clmcode": "log",
+        "clmname": "操作日志",
+        "clmurl": "/log",
+        "prname": "",
+        "show": 2,
+        "grouplist": "2,5",
+        "icon": "el-icon-s-claim",
+    }, {
+        "clmid": "15",
+        "clmcode": "setting",
+        "clmname": "系统设置",
+        "clmurl": "/adminSetting",
+        "prname": "",
+        "show": 2,
+        "grouplist": "2,5",
+        "icon": "el-icon-setting",
+    },
+    {
+        "clmid": "1",
+        "clmcode": "index",
+        "clmname": "系统首页",
+        "clmurl": "/",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-house",
+    }, {
+        "clmid": "2",
+        "clmcode": "member",
+        "clmname": "会员管理",
+        "clmurl": "/member",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-user",
+    }, {
+        "clmid": "3",
+        "clmcode": "lesson",
+        "clmname": "课程管理",
+        "clmurl": "/lesson",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-s-cooperation",
+    }, {
+        "clmid": "5",
+        "clmcode": "lessonManage",
+        "clmname": "课程表管理",
+        "clmurl": "/lessonManage",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-date",
+    }, {
+        "clmid": "7",
+        "clmcode": "appoint",
+        "clmname": "预约管理",
+        "clmurl": "/appoint",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-time",
+    }, {
+        "clmid": "8",
+        "clmcode": "record",
+        "clmname": "预约记录",
+        "clmurl": "/record",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-document-copy",
+    }, {
+        "clmid": "9",
+        "clmcode": "cost",
+        "clmname": "消费记录",
+        "clmurl": "/cost",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-bank-card",
+    }, {
+        "clmid": "10",
+        "clmcode": "finish",
+        "clmname": "下课管理",
+        "clmurl": "/finish",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-bell",
+    },
+    {
+        "clmid": "15",
+        "clmcode": "setting",
+        "clmname": "系统设置",
+        "clmurl": "/adminSetting",
+        "prname": "",
+        "show": 4,
+        "grouplist": "2,5",
+        "icon": "el-icon-setting",
+    },
+];
+
+export default navs;

+ 125 - 0
v2tv/src/api/getApiRes.js

@@ -0,0 +1,125 @@
+import axios from 'axios';
+import global from '../Global.js'
+
+// 基础方法进行封装
+function getApiBasic(url, postdata) {
+    return axios.post(url, postdata).then(function (data) {
+        let json = data.data;
+        return json
+    }, function (response) {
+        console.info(response);
+    })
+}
+
+// 获取当前版本
+export function getCheckUpdate(postdata) {
+    let url = headapi + 'getUserList';
+    return getApiBasic(url, postdata);
+}
+
+
+
+// 调用的api改写成方法
+export function getUserList(postdata) {
+    let url = headapi + 'UserList';
+    return getApiBasic(url, postdata);
+}
+
+// 上课中学生信息
+// 11-20 竞技课用GroupNo来分组
+export function getHello(postdata) {
+    let url = headapi + 'UserListInfo';
+    return getApiBasic(url, postdata);
+}
+
+// 上课中学生信息
+// export function getHello(postdata) {
+//     let url =  'http://192.168.74.1:9000/getUserListInfo';
+//     return getApiBasic(url, postdata);
+// }
+
+// 是否开始上课的状态
+// ClassType为课程类型
+// 1:团课
+// 2:竞技课PK
+// 3:私教课
+export function getClassStat(postdata) {
+    let url = headapi + 'ClassStatQuery';
+    return getApiBasic(url, postdata);
+}
+
+// 新纪录彩蛋
+export function getRecordBreak(postdata) {
+    let url = headapi + 'getRecordBreak';
+    return getApiBasic(url, postdata);
+}
+
+// // 英雄榜和个人破纪录查询
+// export function HerosRankingQuery(postdata) {
+//     // let url = 'http://192.168.0.236:19096/v1/Sensors/HerosRankingQuery';
+//     let url = '/bpi/v1/Sensors/HerosRankingQuery';
+//     return getApiBasic(url, postdata);
+// }
+//
+// // 卡路里场馆统计(分月度、周统计,TV左上角统计)
+// export function CalorieStatsQuery(postdata) {
+//     let url = '/bpi/v1/Sensors/CalorieStatsQuery';
+//     return getApiBasic(url, postdata);
+// }
+//
+// // 用户排名查询(Tv待机页面右侧排名)
+// export function UserRankingQuery(postdata) {
+//     let url = '/bpi/v1/Sensors/UserRankingQuery';
+//     return getApiBasic(url, postdata);
+// }
+
+
+// 英雄榜和个人破纪录查询
+export function HerosRankingQuery(postdata) {
+    let url = headapi + 'HerosRankingQuery';
+    return getApiBasic(url, postdata);
+}
+
+// 卡路里场馆统计(分月度、周统计,TV左上角统计)
+export function CalorieStatsQuery(postdata) {
+    let url = headapi + 'CalorieStatsQuery';
+    return getApiBasic(url, postdata);
+}
+
+// 用户排名查询(Tv待机页面右侧排名)
+export function UserRankingQuery(postdata) {
+    let url = headapi + 'UserRankingQuery';
+    return getApiBasic(url, postdata);
+}
+
+// 11-20 新增
+// 课堂记录排名 下课后查询当堂课程人员排名
+export function ClassUserRank(postdata) {
+    let url = headapi + 'ClassUserRank';
+    return getApiBasic(url, postdata);
+}
+
+
+// 用查询最新wgt 般本
+export function QueryVueFramework(postdata) {
+    let url = 'http://cal.beswell.com:85/v1/Sensors/QueryVueFramework';
+    return getApiBasic(url, postdata);
+}
+// 下载最新wgt 般本
+export function DownloadVueFramework(postdata) {
+    let url = 'http://cal.beswell.com:85/v1/Sensors/DownloadVueFramework';
+    return getApiBasic(url, postdata);
+}
+
+// 12/13 欢迎新同学
+export function getNewUser(postdata) {
+    let url = headapi + 'getNewUser';
+    return getApiBasic(url, postdata);
+}
+
+// 12/17
+// 竞技课程结果上传
+export function AddPkInfo(postdata) {
+    let url = headapi + 'AddPkInfo';
+    return getApiBasic(url, postdata);
+}

+ 393 - 0
v2tv/src/api/test.js

@@ -0,0 +1,393 @@
+新增 - 课堂记录排名
+/ ClassUserRank
+下课后查询当堂课程人员排名
+{
+    "Code"
+:
+    "0", "Memo"
+:
+    "Success", "Rs"
+:
+    {
+        "CkSort"
+    :
+        [{
+            "DuId": 178,
+            "HrId": 11,
+            "PlanId": 9,
+            "UserId": 16,
+            "SvId": 1,
+            "EqSn": "",
+            "Sn": "22731",
+            "UserMd5": "郑伟",
+            "GroupNo": 0,
+            "AvgHr": 75,
+            "MaxHr": 138,
+            "realHr": 73,
+            "Steps": 0,
+            "Cle": 465.31564306429306,
+            "Ck": 50.436683654785156,
+            "BeginTime": 1605503891,
+            "EndTime": 1605768133,
+            "Name": "郑伟",
+            "Age": 26,
+            "Height": 172,
+            "Weight": 76.7,
+            "Sex": 1,
+            "StaticHr": 60,
+            "Head": "http://192.168.0.2/zw.png",
+            "vo2Max": 0.0,
+            "PureCalorieNoVo2": 259.01474862971804,
+            "activePercent": 10,
+            "bmrMSjRmrcb": 78.69583333333334,
+            "lastUpdateTime": 1605775599442,
+            "lastPushDataTime": 1605775599515,
+            "isOver": false,
+            "isAlive": true,
+            "queuePushData": [],
+            "queueHeartRate": [{"heartRate": 73, "rcvTime": 1605775599442}]
+        }, {
+            "DuId": 175,
+            "HrId": 15,
+            "PlanId": 16,
+            "UserId": 13,
+            "SvId": 1,
+            "EqSn": "",
+            "Sn": "88888",
+            "UserMd5": "高超",
+            "GroupNo": 0,
+            "AvgHr": 0,
+            "MaxHr": 0,
+            "realHr": 0,
+            "Steps": 0,
+            "Cle": 12.341233,
+            "Ck": 45.646767,
+            "BeginTime": 1605503891,
+            "EndTime": 0,
+            "Name": "高超",
+            "Age": 30,
+            "Height": 172,
+            "Weight": 80.0,
+            "Sex": 1,
+            "StaticHr": 60,
+            "Head": "http://192.168.0.2/gc.png",
+            "vo2Max": 0.0,
+            "PureCalorieNoVo2": 0.0,
+            "activePercent": 0,
+            "bmrMSjRmrcb": 0.0,
+            "lastUpdateTime": 0,
+            "lastPushDataTime": 0,
+            "isOver": false,
+            "isAlive": true,
+            "queuePushData": [],
+            "queueHeartRate": []
+        }, {
+            "DuId": 179,
+            "HrId": 17,
+            "PlanId": 9,
+            "UserId": 17,
+            "SvId": 1,
+            "EqSn": "",
+            "Sn": "22732",
+            "UserMd5": "大华",
+            "GroupNo": 0,
+            "AvgHr": 0,
+            "MaxHr": 0,
+            "realHr": 0,
+            "Steps": 0,
+            "Cle": 42.34231,
+            "Ck": 34.53451,
+            "BeginTime": 1605503891,
+            "EndTime": 0,
+            "Name": "大华",
+            "Age": 26,
+            "Height": 172,
+            "Weight": 76.7,
+            "Sex": 1,
+            "StaticHr": 65,
+            "Head": "http://192.168.0.2/zw.png",
+            "vo2Max": 0.0,
+            "PureCalorieNoVo2": 0.0,
+            "activePercent": 0,
+            "bmrMSjRmrcb": 0.0,
+            "lastUpdateTime": 0,
+            "lastPushDataTime": 0,
+            "isOver": false,
+            "isAlive": true,
+            "queuePushData": [],
+            "queueHeartRate": []
+        }]
+    }
+,
+    "CalSort"
+:
+    [{
+        "DuId": 178,
+        "HrId": 11,
+        "PlanId": 9,
+        "UserId": 16,
+        "SvId": 1,
+        "EqSn": "",
+        "Sn": "22731",
+        "UserMd5": "郑伟",
+        "GroupNo": 0,
+        "AvgHr": 75,
+        "MaxHr": 138,
+        "realHr": 73,
+        "Steps": 0,
+        "Cle": 465.31564306429306,
+        "Ck": 50.436683654785156,
+        "BeginTime": 1605503891,
+        "EndTime": 1605768133,
+        "Name": "郑伟",
+        "Age": 26,
+        "Height": 172,
+        "Weight": 76.7,
+        "Sex": 1,
+        "StaticHr": 60,
+        "Head": "http://192.168.0.2/zw.png",
+        "vo2Max": 0.0,
+        "PureCalorieNoVo2": 259.01474862971804,
+        "activePercent": 10,
+        "bmrMSjRmrcb": 78.69583333333334,
+        "lastUpdateTime": 1605775599442,
+        "lastPushDataTime": 1605775599515,
+        "isOver": false,
+        "isAlive": true,
+        "queuePushData": [],
+        "queueHeartRate": [{"heartRate": 73, "rcvTime": 1605775599442}]
+    }, {
+        "DuId": 179,
+        "HrId": 17,
+        "PlanId": 9,
+        "UserId": 17,
+        "SvId": 1,
+        "EqSn": "",
+        "Sn": "22732",
+        "UserMd5": "大华",
+        "GroupNo": 0,
+        "AvgHr": 0,
+        "MaxHr": 0,
+        "realHr": 0,
+        "Steps": 0,
+        "Cle": 42.34231,
+        "Ck": 34.53451,
+        "BeginTime": 1605503891,
+        "EndTime": 0,
+        "Name": "大华",
+        "Age": 26,
+        "Height": 172,
+        "Weight": 76.7,
+        "Sex": 1,
+        "StaticHr": 65,
+        "Head": "http://192.168.0.2/zw.png",
+        "vo2Max": 0.0,
+        "PureCalorieNoVo2": 0.0,
+        "activePercent": 0,
+        "bmrMSjRmrcb": 0.0,
+        "lastUpdateTime": 0,
+        "lastPushDataTime": 0,
+        "isOver": false,
+        "isAlive": true,
+        "queuePushData": [],
+        "queueHeartRate": []
+    }, {
+        "DuId": 175,
+        "HrId": 15,
+        "PlanId": 16,
+        "UserId": 13,
+        "SvId": 1,
+        "EqSn": "",
+        "Sn": "88888",
+        "UserMd5": "高超",
+        "GroupNo": 0,
+        "AvgHr": 0,
+        "MaxHr": 0,
+        "realHr": 0,
+        "Steps": 0,
+        "Cle": 12.341233,
+        "Ck": 45.646767,
+        "BeginTime": 1605503891,
+        "EndTime": 0,
+        "Name": "高超",
+        "Age": 30,
+        "Height": 172,
+        "Weight": 80.0,
+        "Sex": 1,
+        "StaticHr": 60,
+        "Head": "http://192.168.0.2/gc.png",
+        "vo2Max": 0.0,
+        "PureCalorieNoVo2": 0.0,
+        "activePercent": 0,
+        "bmrMSjRmrcb": 0.0,
+        "lastUpdateTime": 0,
+        "lastPushDataTime": 0,
+        "isOver": false,
+        "isAlive": true,
+        "queuePushData": [],
+        "queueHeartRate": []
+    }]
+}
+
+修改接口名getUserListInfo为UserListInfo
+竞技课用GroupNo来分组
+返回值不变
+{
+    "Code"
+:
+    "0", "Memo"
+:
+    "Success", "Rs"
+:
+    [{
+        "DuId": 178,
+        "HrId": 11,
+        "PlanId": 9,
+        "UserId": 16,
+        "SvId": 1,
+        "EqSn": "",
+        "Sn": "22731",
+        "UserMd5": "郑伟",
+        "GroupNo": 0,
+        "AvgHr": 75,
+        "MaxHr": 138,
+        "realHr": 78,
+        "Steps": 0,
+        "Cle": 470.7780018836046,
+        "Ck": 50.507904052734375,
+        "BeginTime": 1605503891,
+        "EndTime": 1605768133,
+        "Name": "郑伟",
+        "Age": 26,
+        "Height": 172,
+        "Weight": 76.7,
+        "Sex": 1,
+        "StaticHr": 60,
+        "Head": "http://192.168.0.2/zw.png",
+        "vo2Max": 0.0,
+        "PureCalorieNoVo2": 262.4222718008815,
+        "activePercent": 13,
+        "bmrMSjRmrcb": 78.69583333333334,
+        "lastUpdateTime": 1605775732977,
+        "lastPushDataTime": 1605775732028,
+        "isOver": false,
+        "isAlive": true,
+        "queuePushData": [{
+            "heartRate": 78,
+            "rcvTime": 1605775731927,
+            "lastRcvTime": 0,
+            "calories": 0.0
+        }, {"heartRate": 78, "rcvTime": 1605775732674, "lastRcvTime": 0, "calories": 0.0}],
+        "queueHeartRate": [{"heartRate": 78, "rcvTime": 1605775732977}]
+    }, {
+        "DuId": 179,
+        "HrId": 17,
+        "PlanId": 9,
+        "UserId": 17,
+        "SvId": 1,
+        "EqSn": "",
+        "Sn": "22732",
+        "UserMd5": "大华",
+        "GroupNo": 0,
+        "AvgHr": 0,
+        "MaxHr": 0,
+        "realHr": 0,
+        "Steps": 0,
+        "Cle": 42.34231,
+        "Ck": 34.53451,
+        "BeginTime": 1605503891,
+        "EndTime": 0,
+        "Name": "大华",
+        "Age": 26,
+        "Height": 172,
+        "Weight": 76.7,
+        "Sex": 1,
+        "StaticHr": 65,
+        "Head": "http://192.168.0.2/zw.png",
+        "vo2Max": 0.0,
+        "PureCalorieNoVo2": 0.0,
+        "activePercent": 0,
+        "bmrMSjRmrcb": 0.0,
+        "lastUpdateTime": 0,
+        "lastPushDataTime": 0,
+        "isOver": false,
+        "isAlive": true,
+        "queuePushData": [],
+        "queueHeartRate": []
+    }, {
+        "DuId": 175,
+        "HrId": 15,
+        "PlanId": 16,
+        "UserId": 13,
+        "SvId": 1,
+        "EqSn": "",
+        "Sn": "88888",
+        "UserMd5": "高超",
+        "GroupNo": 0,
+        "AvgHr": 0,
+        "MaxHr": 0,
+        "realHr": 0,
+        "Steps": 0,
+        "Cle": 12.341233,
+        "Ck": 45.646767,
+        "BeginTime": 1605503891,
+        "EndTime": 0,
+        "Name": "高超",
+        "Age": 30,
+        "Height": 172,
+        "Weight": 80.0,
+        "Sex": 1,
+        "StaticHr": 60,
+        "Head": "http://192.168.0.2/gc.png",
+        "vo2Max": 0.0,
+        "PureCalorieNoVo2": 0.0,
+        "activePercent": 0,
+        "bmrMSjRmrcb": 0.0,
+        "lastUpdateTime": 0,
+        "lastPushDataTime": 0,
+        "isOver": false,
+        "isAlive": true,
+        "queuePushData": [],
+        "queueHeartRate": []
+    }]
+}
+
+修改接口查询当前课程状态
+/ ClassStatQuery
+增加了课程返回类型,其中ClassType为课程类型
+1:团课
+2:竞技课PK
+3:私教课
+{
+    "Code"
+:
+    "0", "Memo"
+:
+    "Success", "Rs"
+:
+    [
+        {
+            "PlanId": 9,
+            "ShopId": 1,
+            "SvId": 1,
+            "PlanName": "2",
+            "Status": 2,
+            "BeginTime": 1605749000,
+            "EndTime": 0,
+            "ClassType": 1,
+            "DuMd5": "1a2fecd549d319af88dad82f15311b5f"
+        },
+        {
+            "PlanId": 16,
+            "ShopId": 1,
+            "SvId": 1,
+            "PlanName": "3",
+            "Status": 3,
+            "BeginTime": 1605749000,
+            "EndTime": 0,
+            "ClassType": 1,
+            "DuMd5": "3aaeceb9581a0ec33c2ae36fef37d09b"
+        }
+    ]
+}
+

BIN
v2tv/src/assets/404/back.png


BIN
v2tv/src/assets/404/back_w.png


BIN
v2tv/src/assets/404/homepage.png


BIN
v2tv/src/assets/404/homepage_w.png


BIN
v2tv/src/assets/404/man.png


BIN
v2tv/src/assets/404/refresh.png


BIN
v2tv/src/assets/404/refresh_w.png


+ 69 - 0
v2tv/src/assets/css/bg.css

@@ -0,0 +1,69 @@
+.bgStyle1 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg_1.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+.bgStyle2 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg_2.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+.bgStyle3 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg_3.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+.bgStyle4 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg_4.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+
+/*bg2*/
+.bg2Style1 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg2_1.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+.bg2Style2 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg2_2.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+.bg2Style3 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg2_3.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+.bg2Style4 {
+    background-color: #028fe1;
+    background: url("../../static/img/bg/bg2_4.png");
+    background-size: 100%  100%;
+    background-repeat: no-repeat;
+}
+
+ul, li {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+
+s, em, i {
+    font-style: normal;
+    text-decoration: none;
+}
+

+ 1217 - 0
v2tv/src/assets/css/main.css

@@ -0,0 +1,1217 @@
+.pages {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    background-color: #028fe1;
+    background: url("../static/img/mainBg.png");
+    background-size: 100%;
+    background-repeat: no-repeat;
+}
+
+ul, li {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+
+.userList {
+    width: 96%;
+    height: 80%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.userList {
+    height: 100%;
+}
+
+.userList ul {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.userList .max {
+    width: 80%;
+    height: 100%;
+    overflow: visible;
+    display: block;
+    margin: 0 auto;
+}
+
+.max .ltLi {
+    width: 5%;
+    height: 545px;
+    float: left;
+    background: url("../static/img/ltCube.png");
+    background-size: 100% 100%;
+    background-repeat: no-repeat;
+}
+
+.max .rtLi {
+    width: 5%;
+    height: 545px;
+    float: right;
+    background: url("../static/img/rtCube.png");
+    background-size: 100% 100%;
+    background-repeat: no-repeat;
+}
+
+.max .centerLi {
+    width: 90%;
+    float: left;
+    height: 545px;
+    background: #028FE1;
+}
+
+.blue .centerLi {
+    background: #028FE1;
+}
+
+.violet .centerLi {
+    background: #6D26FA;
+}
+
+.green .centerLi {
+    background: #0AB105;
+}
+
+.yellow .centerLi {
+    background: #BACC01;
+}
+
+.brown .centerLi {
+    background: #EA8813;
+}
+
+.red .centerLi {
+    background: #CF1122;
+}
+
+.centerLi .top {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.centerLi .bottom {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.centerLi .cla {
+    width: 30%;
+    float: left;
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 175px;
+    text-align: center;
+    color: #fff;
+    line-height: 360px;
+}
+
+
+.centerLi .cla s {
+    position: relative;
+    top: -100px;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 54px;
+    text-align: center;
+    color: #fff;
+    text-decoration: none;
+}
+
+.centerLi .heartJump {
+    width: 30%;
+    float: right;
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 175px;
+    text-align: center;
+    color: #fff;
+    line-height: 360px;
+}
+
+.centerLi .heartJump img {
+    position: relative;
+    top: -100px;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 54px;
+    text-align: center;
+    color: #fff;
+    text-decoration: none;
+
+    animation: mymove 2s infinite;
+    -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
+    animation-direction: alternate; /*轮流反向播放动画。*/
+    animation-timing-function: ease-in-out; /*动画的速度曲线*/
+    /* Safari 和 Chrome */
+    -webkit-animation: mymove 3s infinite;
+    -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
+    -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
+}
+
+@keyframes mymove {
+    0% {
+        transform: scale(1); /*开始为原始大小*/
+    }
+    25% {
+        transform: scale(1.2); /*放大1.1倍*/
+    }
+    50% {
+        transform: scale(1);
+    }
+    75% {
+        transform: scale(1.2);
+    }
+
+}
+
+@-webkit-keyframes mymove /*Safari and Chrome*/
+{
+    0% {
+        transform: scale(1); /*开始为原始大小*/
+    }
+    25% {
+        transform: scale(1.2); /*放大1.1倍*/
+    }
+    50% {
+        transform: scale(1);
+    }
+    75% {
+        transform: scale(1.2);
+    }
+}
+
+.centerLi .human {
+    width: 39%;
+    float: left;
+    padding-top: 3%;
+    overflow: hidden;
+}
+
+.human img {
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    border-radius: 250px;
+    border: 1px solid #fff;
+}
+
+.human .name {
+    width: 40%;
+    height: 70px;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    border-radius: 35px;
+    color: #fff;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 43px;
+    text-align: center;
+    color: #fff;
+}
+
+.bottomLi {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 50px;
+    text-align: left;
+    color: #fff;
+    text-align: center;
+}
+
+.bottomLi .btcla {
+    width: 30%;
+    float: left;
+}
+
+.bottomLi .btck {
+    width: 40%;
+    float: left;
+    text-align: left;
+    text-indent: 7px;
+}
+
+.bottomLi .step {
+    width: 30%;
+    float: left;
+}
+
+.levelIcon {
+    position: absolute;
+    bottom: 5px;
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    height: 120px;
+    padding-bottom: 5px;
+}
+
+.levelIcon ul {
+    width: 96%;
+    height: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.levelIcon li {
+    width: 14.666666666667%;
+    height: 100%;
+    float: left;
+    padding-left: 2%;
+}
+
+.levelIcon li:nth-child(1) {
+    padding-left: 0;
+}
+
+.levelIcon li span {
+    width: 119px;
+    height: 119px;
+    overflow: hidden;
+    float: left;
+    background: url("../static/img/l1.png");
+    background-repeat: no-repeat;
+    background-size: 100% 100%;
+    background-position: top center;
+    font-family: "PingFang SC";
+    font-weight: normal;
+    font-size: 22px;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    line-height: 35px;
+
+}
+
+.levelIcon li span div {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    padding-top: 17%;
+}
+
+.levelIcon li:nth-child(2) span {
+    background: url("../static/img/l2.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(3) span {
+    background: url("../static/img/l3.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(4) span {
+    background: url("../static/img/l4.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(5) span {
+    background: url("../static/img/l5.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(6) span {
+    background: url("../static/img/l6.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(6) span div {
+    margin-top: 13%;
+}
+
+.levelIcon li em {
+    float: right;
+    width: 130px;
+    height: 42px;
+    border-radius: 21px;
+    background: rgba(2, 143, 225, 0.16);
+    border: 1px solid #028fe1;
+    box-shadow: 0px 0px 5px #028fe1;
+    font-family: "PingFang SC";
+    font-weight: normal;
+    font-size: 24px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    line-height: 42px;
+    margin-top: 15%;
+    margin-left: 1%;
+}
+
+.levelIcon li:nth-child(2) em {
+    background: rgba(109, 38, 250, 0.16);
+    border: 1px solid #6d26fa;
+    box-shadow: 0px 0px 5px #6d26fa;
+}
+
+.levelIcon li:nth-child(3) em {
+    background: rgba(10, 177, 5, 0.16);
+    border: 1px solid #0ab105;
+    box-shadow: 0px 0px 5px #0ab105;
+
+}
+
+.levelIcon li:nth-child(4) em {
+    background: rgba(186, 204, 1, 0.16);
+    border: 1px solid #bacc01;
+    box-shadow: 0px 0px 5px #bacc01;
+}
+
+.levelIcon li:nth-child(5) em {
+    background: rgba(234, 136, 19, 0.16);
+    border: 1px solid #ea8813;
+    box-shadow: 0px 0px 5px #ea8813;
+}
+
+.levelIcon li:nth-child(6) em {
+    background: rgba(209, 17, 34, 0.16);
+    border: 1px solid #d11122;
+    box-shadow: 0px 0px 5px #d11122;
+}
+
+.long {
+    width: 198px;
+    position: relative;
+    bottom: 198px;
+    right: -70px;
+    float: right;
+    z-index: 222;
+    overflow: visible;
+}
+
+/*two*/
+.two {
+    width: 48%;
+    height: 475px;
+    float: left;
+    border: 1px solid #fff;
+}
+
+.two:nth-child(2) {
+    float: right;
+}
+
+.two .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 180px;
+    letter-spacing: -0.05em;
+    height: 310px;
+    line-height: 310px;
+}
+
+.two .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 38px;
+    letter-spacing: -0.05em;
+    top: -120px;
+}
+
+.two .human {
+    padding-top: 8%;
+}
+
+.two img {
+    width: 280px;
+    height: 280px;
+}
+
+.two .name {
+    width: 290px;
+    height: 60px;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 40px;
+    text-align: center;
+    color: #fff;
+    line-height: 60px;
+}
+
+.two .centerLi .heartJump {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 140px;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    height: 310px;
+    line-height: 310px;
+}
+
+.two .centerLi .heartJump img {
+    width: 25px;
+    height: 25px;
+    top: -110px;
+}
+
+.two .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 40px;
+    color: #fff;
+    padding-bottom: 5px;
+}
+
+
+/*six*/
+.six {
+    width: 31%;
+    float: left;
+    margin-right: 2%;
+    margin-bottom: 2%;
+    border: 1px solid #fff;
+}
+
+.six:nth-child(3) {
+    margin-right: 0
+}
+
+.six:nth-child(6) {
+    margin-right: 0
+}
+
+.six .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 100px;
+    letter-spacing: -0.05em;
+    height: 220px;
+    line-height: 220px;
+}
+
+.six .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 40px;
+    letter-spacing: -0.05em;
+    top: -60px;
+}
+
+.six .human {
+    padding-top: 6%;
+}
+
+.six img {
+    width: 160px;
+    height: 160px;
+}
+
+.six .name {
+    width: 180px;
+    height: 40px;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 30px;
+    text-align: center;
+    color: #fff;
+    line-height: 40px;
+}
+
+.six .centerLi .heartJump {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 100px;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    height: 220px;
+    line-height: 220px;
+}
+
+.six .centerLi .heartJump img {
+    width: 25px;
+    height: 25px;
+    top: -60px;
+}
+
+.six .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 32px;
+    color: #fff;
+    padding-bottom: 15px;
+}
+
+/*nine*/
+.nine {
+    width: 31.5%;
+    float: left;
+    margin-right: 2%;
+    margin-bottom: 2%;
+    border: 1px solid #fff;
+}
+
+.nine:nth-child(3) {
+    margin-right: 0
+}
+
+.nine:nth-child(6) {
+    margin-right: 0
+}
+
+.nine:nth-child(9) {
+    margin-right: 0
+}
+
+.nine .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 79px;
+    letter-spacing: -0.05em;
+    height: 150px;
+    line-height: 150px;
+}
+
+.nine .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 36px;
+    letter-spacing: -0.05em;
+    top: -60px;
+}
+
+.nine .human {
+    padding-top: 2%;
+}
+
+.nine img {
+    width: 100px;
+    height: 100px;
+}
+
+.nine .name {
+    width: 120px;
+    height: 30px;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 24px;
+    text-align: center;
+    color: #fff;
+    line-height: 30px;
+}
+
+.nine .centerLi .heartJump {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 79px;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    height: 150px;
+    line-height: 150px;
+}
+
+.nine .centerLi .heartJump img {
+    width: 25px;
+    height: 25px;
+    top: -60px;
+}
+
+.nine .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 24px;
+    color: #fff;
+    padding-bottom: 5px;
+}
+
+/*sixteen*/
+.sixteen {
+    width: 23.5%;
+    float: left;
+    margin-right: 0.3%;
+    margin-bottom: 0.3%;
+    border: 1px solid rgba(255, 255, 255, 0.5);
+}
+
+.sixteen .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 49px;
+    letter-spacing: -0.05em;
+    height: 100px;
+    line-height: 120px;
+}
+
+.sixteen .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 30px;
+    letter-spacing: -0.05em;
+    top: -30px;
+}
+
+.sixteen .human {
+    padding-top: 2%;
+    height: 120px;
+    overflow: hidden;
+}
+
+.sixteen .head img {
+    width: 90px;
+    height: 90px;
+}
+
+.sixteen .name {
+    width: 100px;
+    height: 26px;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 20px;
+    text-align: center;
+    color: #fff;
+    line-height: 26px;
+}
+
+.sixteen .centerLi .heartJump {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 49px;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    height: 100px;
+    line-height: 120px;
+}
+
+.sixteen .centerLi .heartJump img {
+    width: 20px;
+    height: 20px;
+    top: -30px;
+    right: -5px;
+}
+
+.sixteen .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 22px;
+    color: #fff;
+    line-height: 30px;
+    padding-bottom: 5px;
+}
+
+
+/*twenty*/
+.twenty {
+    width: 19.5%;
+    float: left;
+    margin-right: 10px;
+    margin-bottom: 0.3%;
+    border: 1px solid rgba(255, 255, 255, 0.5);
+}
+
+.twenty:nth-child(5) {
+    margin-right: 0
+}
+
+.twenty:nth-child(10) {
+    margin-right: 0
+}
+
+.twenty:nth-child(15) {
+    margin-right: 0
+}
+
+.twenty:nth-child(20) {
+    margin-right: 0
+}
+
+.twenty .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 40px;
+    letter-spacing: -0.05em;
+    height: 90px;
+    line-height: 90px;
+}
+
+.twenty .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 16px;
+    letter-spacing: -0.05em;
+    top: -20px;
+}
+
+.twenty .human {
+    padding-top: 2%;
+    height: 110px;
+    overflow: hidden;
+}
+
+.twenty img {
+    width: 90px;
+    height: 90px;
+}
+
+.twenty .name {
+    width: 80px;
+    height: 24px;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 16px;
+    text-align: center;
+    color: #fff;
+    line-height: 24px;
+}
+
+.twenty .centerLi .heartJump {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 40px;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    height: 90px;
+    line-height: 90px;
+}
+
+.twenty .centerLi .heartJump img {
+    width: 14px;
+    height: 14px;
+    top: -20px;
+}
+
+.twenty .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 18px;
+    color: #fff;
+    padding-bottom: 5px;
+}
+
+/*成就彩蛋*/
+/deep/ .el-dialog {
+    background: url("../static/img/dialog.png");
+    background-position: top center;
+    background-repeat: no-repeat;
+    background-size: 100%;
+    min-height: 50%;
+    box-shadow: none;
+}
+
+.eggContainer {
+    width: 87%;
+    overflow: hidden;
+    margin: 0 auto;
+    float: left;
+}
+
+.eggContainer h5 {
+    font-family: Roboto;
+    font-weight: normal;
+    font-size: 36px;
+    text-align: center;
+    color: #fff;
+    margin: 0;
+    margin-bottom: 5%;
+}
+
+.eggContainer .dgCenter {
+    width: 90%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.dgCenter .dghead {
+    width: 40%;
+    float: left;
+}
+
+.dghead img {
+    width: 140px;
+    height: 140px;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    padding: 3px;
+    border-radius: 250px;
+    border: 1px solid #fff;
+}
+
+.dghead s {
+    font-family: Roboto;
+    font-weight: normal;
+    font-size: 30px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    text-decoration: none;
+    margin-top: 10px;
+}
+
+.score {
+    width: 60%;
+    float: right;
+}
+
+.score em {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: Roboto;
+    font-weight: bold;
+    font-size: 90px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    height: 150px;
+    line-height: 150px;
+}
+
+.score span {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: Roboto;
+    font-weight: normal;
+    font-size: 30px;
+    color: #fff;
+    text-align: center;
+
+}
+
+
+@media only screen and (min-width: 1260px) {
+    .human img {
+        width: 100px;
+        height: 100px;
+    }
+
+    .levelIcon {
+        height: 70px;
+    }
+
+    .levelIcon li span {
+        width: 70px;
+        height: 70px;
+        font-size: 12px;
+    }
+
+    .userList .max {
+        position: absolute;
+        width: 78%;
+        left: 0;
+        right: 0;
+        overflow: visible;
+        display: block;
+        margin: 0 auto;
+        margin-top: 7%;
+    }
+
+    .levelIcon li span div {
+        font-size: 16px;
+        padding-top: 12px;
+        line-height: 22px;
+    }
+
+    .levelIcon ul {
+        width: 98%;
+    }
+
+    .levelIcon li em {
+        width: 45%;
+        height: 30px;
+        line-height: 30px;
+        font-size: 14px;
+        margin-top: 11%;
+        margin-left: 8%;
+        float: left;
+    }
+
+    .max .centerLi {
+        height: 360px;
+    }
+
+    .max .ltLi {
+        height: 360px;
+    }
+
+    .max .rtLi {
+        height: 360px;
+    }
+
+    .max .human .name {
+        height: 30px;
+        font-size: 14px;
+        line-height: 30px;
+    }
+
+    .max .longIcon {
+        width: 140px;
+        position: relative;
+        top: -20%;
+        right: -5%;
+        float: right;
+    }
+
+    .max .centerLi .topLi {
+        height: 280px;
+    }
+
+    .max .centerLi .cla, .max .centerLi .heartJump {
+        height: 229px;
+        line-height: 210px;
+        font-size: 120px;
+        padding-top: 4%;
+        text-align: center;
+    }
+
+    .max .human img {
+        width: 200px;
+        height: 200px;
+    }
+
+    .max .human .name {
+        height: 40px;
+        line-height: 40px;
+        font-size: 30px;
+    }
+
+    .max .centerLi .heartJump img {
+        width: 20px;
+        font-size: 20px;
+        top: -60px;
+    }
+
+    .max .centerLi .cla s {
+        font-size: 22px;
+        top: -60px;
+    }
+
+    .max .bottomLi {
+        font-size: 40px !important;
+    }
+
+
+    /*two*/
+    .two {
+        width: 48%;
+        height: 400px;
+        float: left;
+        overflow: hidden;
+        border: 1px solid #fff;
+        margin-top: 2%
+    }
+
+    .two:nth-child(2) {
+        float: right;
+    }
+
+    .two .centerLi {
+        height: 100%;
+    }
+
+    .two .human .name {
+        height: 30px;
+        font-size: 14px;
+        line-height: 30px;
+    }
+
+    .two .longIcon {
+        width: 140px;
+        position: relative;
+        top: -20%;
+        right: -5%;
+        float: right;
+    }
+
+    .two .centerLi .topLi {
+        height: 280px;
+    }
+
+    .two .centerLi .cla, .two .centerLi .heartJump {
+        height: 229px;
+        line-height: 210px;
+        font-size: 120px;
+        padding-top: 4%;
+        text-align: center;
+    }
+
+    .two .human img {
+        width: 200px;
+        height: 200px;
+    }
+
+    .two .human .name {
+        height: 40px;
+        line-height: 40px;
+        font-size: 30px;
+    }
+
+    .two .centerLi .heartJump img {
+        width: 20px;
+        font-size: 20px;
+        top: -60px;
+    }
+
+    .two .centerLi .cla s {
+        font-size: 22px;
+        top: -60px;
+    }
+
+    .two .bottomLi {
+        font-size: 40px !important;
+    }
+
+    /*sixteen*/
+    .sixteen {
+        width: 19%;
+        height: 120px;
+        float: left;
+        overflow: hidden;
+        border: 1px solid rgba(255, 255, 255, 0.35);
+        margin-top: 5px;
+        margin-right: 1%;
+    }
+
+    .sixteen:nth-child(5) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen:nth-child(10) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen:nth-child(15) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen:nth-child(20) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen .centerLi {
+        height: 100%;
+    }
+
+    .sixteen .human {
+        height: 80px;
+    }
+
+    .sixteen .human .name {
+        width: 60px;
+        height: 16px;
+        font-size: 12px;
+        line-height: 16px;
+    }
+
+    .sixteen .longIcon {
+        width: 140px;
+        position: relative;
+        top: -20%;
+        right: -5%;
+        float: right;
+    }
+
+    .sixteen .centerLi .topLi {
+        width: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        /*height: 70px;*/
+    }
+
+    .sixteen .centerLi .cla, .sixteen .centerLi .heartJump {
+        height: 60px;
+        line-height: 90px;
+        font-size: 33px;
+        padding-top: 4%;
+        text-align: center;
+        font-weight: 800;
+    }
+
+    .sixteen .centerLi .cla span {
+        width: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+    }
+
+    .sixteen .human img {
+        width: 60px;
+        height: 60px;
+        margin-top: 2px;
+    }
+
+    .sixteen .centerLi .heartJump img {
+        width: 8px;
+        height: 8px;
+        top: -58px;
+        right: 3px;
+        float: right;
+    }
+
+    .sixteen .centerLi .heartJump span {
+        width: 80%;
+        padding-right: 20%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        text-align: right;
+    }
+
+    .sixteen .centerLi .heartJump {
+        float: left;
+        text-align: center;
+    }
+
+    .sixteen .centerLi .cla s {
+        font-size: 14px;
+        top: -100px;
+        right: 3px;
+        float: right;
+    }
+
+    .sixteen .bottomLi {
+        margin-top: 5px;
+        font-size: 14px !important;
+        line-height: 30px;
+    }
+
+    .bottomLi img {
+        padding-top: 5px;
+        float: left;
+        padding-left: 10px;
+    }
+    .bottomLi .btck {
+        width: 35%;
+    }
+
+}

+ 1197 - 0
v2tv/src/assets/css/mainBk.css

@@ -0,0 +1,1197 @@
+.pages {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    background-color: #028fe1;
+    background: url("../static/img/mainBg.png");
+    background-size: 100%;
+    background-repeat: no-repeat;
+}
+
+ul, li {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+
+.userList {
+    width: 96%;
+    height: 80%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.userList {
+    height: 100%;
+}
+
+.userList ul {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.blue .centerLi {
+    background: #028FE1;
+}
+
+.violet .centerLi {
+    background: #6D26FA;
+}
+
+.green .centerLi {
+    background: #0AB105;
+}
+
+.yellow .centerLi {
+    background: #BACC01;
+}
+
+.brown .centerLi {
+    background: #EA8813;
+}
+
+.red .centerLi {
+    background: #CF1122;
+}
+
+.centerLi .top {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.centerLi .bottom {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.centerLi .cla {
+    width: 30%;
+    float: left;
+    font-family: HeadLineA;
+    font-weight: normal;
+    text-align: center;
+    color: #fff;
+}
+
+
+.centerLi .cla s {
+    position: relative;
+    font-family: "PingFang SC";
+    text-decoration: none;
+}
+
+.centerLi .heartJump {
+    width: 30%;
+    font-family: HeadLineA;
+    font-weight: normal;
+    text-align: center;
+    color: #fff;
+}
+
+.centerLi .heartJump img {
+    position: relative;
+    font-family: "PingFang SC";
+    text-align: center;
+    color: #fff;
+    text-decoration: none;
+
+    animation: mymove 2s infinite;
+    -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
+    animation-direction: alternate; /*轮流反向播放动画。*/
+    animation-timing-function: ease-in-out; /*动画的速度曲线*/
+    /* Safari 和 Chrome */
+    -webkit-animation: mymove 3s infinite;
+    -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
+    -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
+}
+
+@keyframes mymove {
+    0% {
+        transform: scale(1); /*开始为原始大小*/
+    }
+    25% {
+        transform: scale(1.2); /*放大1.1倍*/
+    }
+    50% {
+        transform: scale(1);
+    }
+    75% {
+        transform: scale(1.2);
+    }
+
+}
+
+@-webkit-keyframes mymove /*Safari and Chrome*/
+{
+    0% {
+        transform: scale(1); /*开始为原始大小*/
+    }
+    25% {
+        transform: scale(1.2); /*放大1.1倍*/
+    }
+    50% {
+        transform: scale(1);
+    }
+    75% {
+        transform: scale(1.2);
+    }
+}
+
+.centerLi .human {
+    width: 39%;
+    float: left;
+    padding-top: 3%;
+    overflow: hidden;
+}
+
+.human img {
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    border-radius: 250px;
+    border: 1px solid #fff;
+}
+
+.human .name {
+    width: 40%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    color: #fff;
+    text-align: center;
+    color: #fff;
+}
+
+.bottomLi {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: HeadLineA;
+    font-weight: normal;
+    text-align: left;
+    color: #fff;
+    text-align: center;
+}
+
+.bottomLi .btcla {
+    width: 30%;
+    float: left;
+}
+
+.bottomLi .btck {
+    width: 40%;
+    float: left;
+    text-align: left;
+    text-indent: 7px;
+}
+
+.bottomLi .step {
+    width: 30%;
+    float: left;
+}
+
+.levelIcon {
+    position: absolute;
+    bottom: 5px;
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    height: 120px;
+    padding-bottom: 5px;
+}
+
+.levelIcon ul {
+    width: 96%;
+    height: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.levelIcon li {
+    width: 14.666666666667%;
+    height: 100%;
+    float: left;
+    padding-left: 2%;
+}
+
+.levelIcon li:nth-child(1) {
+    padding-left: 0;
+}
+
+.levelIcon li span {
+    width: 119px;
+    height: 119px;
+    overflow: hidden;
+    float: left;
+    background: url("../static/img/l1.png");
+    background-repeat: no-repeat;
+    background-size: 100% 100%;
+    background-position: top center;
+    font-family: "PingFang SC";
+    font-weight: normal;
+    font-size: 22px;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    line-height: 35px;
+
+}
+
+.levelIcon li span div {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    padding-top: 17%;
+}
+
+.levelIcon li:nth-child(2) span {
+    background: url("../static/img/l2.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(3) span {
+    background: url("../static/img/l3.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(4) span {
+    background: url("../static/img/l4.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(5) span {
+    background: url("../static/img/l5.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(6) span {
+    background: url("../static/img/l6.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(6) span div {
+    margin-top: 13%;
+}
+
+.levelIcon li em {
+    float: right;
+    width: 130px;
+    height: 42px;
+    border-radius: 21px;
+    background: rgba(2, 143, 225, 0.16);
+    border: 1px solid #028fe1;
+    box-shadow: 0px 0px 5px #028fe1;
+    font-family: "PingFang SC";
+    font-weight: normal;
+    font-size: 24px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    line-height: 42px;
+    margin-top: 15%;
+    margin-left: 1%;
+}
+
+.levelIcon li:nth-child(2) em {
+    background: rgba(109, 38, 250, 0.16);
+    border: 1px solid #6d26fa;
+    box-shadow: 0px 0px 5px #6d26fa;
+}
+
+.levelIcon li:nth-child(3) em {
+    background: rgba(10, 177, 5, 0.16);
+    border: 1px solid #0ab105;
+    box-shadow: 0px 0px 5px #0ab105;
+
+}
+
+.levelIcon li:nth-child(4) em {
+    background: rgba(186, 204, 1, 0.16);
+    border: 1px solid #bacc01;
+    box-shadow: 0px 0px 5px #bacc01;
+}
+
+.levelIcon li:nth-child(5) em {
+    background: rgba(234, 136, 19, 0.16);
+    border: 1px solid #ea8813;
+    box-shadow: 0px 0px 5px #ea8813;
+}
+
+.levelIcon li:nth-child(6) em {
+    background: rgba(209, 17, 34, 0.16);
+    border: 1px solid #d11122;
+    box-shadow: 0px 0px 5px #d11122;
+}
+
+.long {
+    width: 198px;
+    position: relative;
+    bottom: 198px;
+    right: -70px;
+    float: right;
+    z-index: 222;
+    overflow: visible;
+}
+
+/*成就彩蛋*/
+/deep/ .el-dialog {
+    background: url("../static/img/dialog.png");
+    background-position: top center;
+    background-repeat: no-repeat;
+    background-size: 100%;
+    min-height: 50%;
+    box-shadow: none;
+}
+
+.eggContainer {
+    width: 87%;
+    overflow: hidden;
+    margin: 0 auto;
+    float: left;
+}
+
+.eggContainer h5 {
+    font-family: Roboto;
+    font-weight: normal;
+    font-size: 36px;
+    text-align: center;
+    color: #fff;
+    margin: 0;
+    margin-bottom: 5%;
+}
+
+.eggContainer .dgCenter {
+    width: 90%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.dgCenter .dghead {
+    width: 40%;
+    float: left;
+}
+
+.dghead img {
+    width: 140px;
+    height: 140px;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    padding: 3px;
+    border-radius: 250px;
+    border: 1px solid #fff;
+}
+
+.dghead s {
+    font-family: Roboto;
+    font-weight: normal;
+    font-size: 30px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    text-decoration: none;
+    margin-top: 10px;
+}
+
+.score {
+    width: 60%;
+    float: right;
+}
+
+.score em {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: Roboto;
+    font-weight: bold;
+    font-size: 90px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    height: 150px;
+    line-height: 150px;
+}
+
+.score span {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: Roboto;
+    font-weight: normal;
+    font-size: 30px;
+    color: #fff;
+    text-align: center;
+
+}
+
+
+@media only screen and (min-width: 1260px) {
+
+    .levelIcon {
+        height: 70px;
+    }
+
+    .levelIcon li span {
+        width: 70px;
+        height: 70px;
+        font-size: 12px;
+    }
+
+    .levelIcon li span div {
+        font-size: 16px;
+        padding-top: 12px;
+        line-height: 22px;
+    }
+
+    .levelIcon ul {
+        width: 98%;
+    }
+
+    .levelIcon li em {
+        width: 45%;
+        height: 30px;
+        line-height: 30px;
+        font-size: 14px;
+        margin-top: 11%;
+        margin-left: 14%;
+        float: left;
+    }
+
+    .userList .max {
+        width: 80%;
+        height: 100%;
+        overflow: visible;
+        display: block;
+        margin: 0 auto;
+    }
+
+    .max .ltLi {
+        width: 5%;
+        height: 545px;
+        float: left;
+        background: url("../static/img/ltCube.png");
+        background-size: 100% 100%;
+        background-repeat: no-repeat;
+    }
+
+    .max .rtLi {
+        width: 5%;
+        height: 545px;
+        float: right;
+        background: url("../static/img/rtCube.png");
+        background-size: 100% 100%;
+        background-repeat: no-repeat;
+    }
+
+    .max .centerLi {
+        width: 90%;
+        float: left;
+        height: 545px;
+        background: #028FE1;
+    }
+
+
+    .userList .max {
+        position: absolute;
+        width: 78%;
+        left: 0;
+        right: 0;
+        overflow: visible;
+        display: block;
+        margin: 0 auto;
+        margin-top: 7%;
+    }
+
+
+    .max .centerLi {
+        height: 360px;
+    }
+
+    .max .ltLi {
+        height: 360px;
+    }
+
+    .max .rtLi {
+        height: 360px;
+    }
+
+    .max .human .name {
+        height: 30px;
+        font-size: 14px;
+        line-height: 30px;
+    }
+
+    .max .longIcon {
+        width: 140px;
+        position: relative;
+        top: -20%;
+        right: -5%;
+        float: right;
+    }
+
+    .max .centerLi .topLi {
+        height: 280px;
+    }
+
+    .max .centerLi .cla, .max .centerLi .heartJump {
+        height: 229px;
+        line-height: 210px;
+        font-size: 120px;
+        padding-top: 4%;
+        text-align: center;
+    }
+
+    .max .human img {
+        width: 200px;
+        height: 200px;
+    }
+
+    .max .human .name {
+        height: 40px;
+        line-height: 40px;
+        font-size: 30px;
+    }
+
+    .max .centerLi .heartJump img {
+        width: 20px;
+        font-size: 20px;
+        top: -60px;
+    }
+
+    .max .centerLi .cla s {
+        font-size: 22px;
+        top: -60px;
+    }
+
+    .max .bottomLi {
+        font-size: 40px !important;
+    }
+
+
+    /*two*/
+    .two {
+        width: 48%;
+        height: 475px;
+        float: left;
+        border: 1px solid #fff;
+    }
+
+    .two:nth-child(2) {
+        float: right;
+    }
+
+    .two .centerLi .cla {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 180px;
+        letter-spacing: -0.05em;
+        height: 310px;
+        line-height: 310px;
+    }
+
+    .two .centerLi .cla s {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 38px;
+        letter-spacing: -0.05em;
+        top: -120px;
+    }
+
+    .two .human {
+        padding-top: 8%;
+    }
+
+    .two img {
+        width: 280px;
+        height: 280px;
+    }
+
+    .two .name {
+        width: 290px;
+        height: 60px;
+        font-family: "PingFang SC";
+        font-weight: 500;
+        font-size: 40px;
+        text-align: center;
+        color: #fff;
+        line-height: 60px;
+    }
+
+    .two .centerLi .heartJump {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 140px;
+        letter-spacing: -0.05em;
+        text-align: center;
+        color: #fff;
+        height: 310px;
+        line-height: 310px;
+    }
+
+    .two .centerLi .heartJump img {
+        width: 25px;
+        height: 25px;
+        top: -110px;
+    }
+
+    .two .bottomLi {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 40px;
+        color: #fff;
+        padding-bottom: 5px;
+    }
+
+
+    /*six*/
+    .six {
+        width: 31%;
+        float: left;
+        margin-right: 2%;
+        margin-bottom: 2%;
+        border: 1px solid #fff;
+    }
+
+    .six:nth-child(3) {
+        margin-right: 0
+    }
+
+    .six:nth-child(6) {
+        margin-right: 0
+    }
+
+    .six .centerLi .cla {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 100px;
+        letter-spacing: -0.05em;
+        height: 220px;
+        line-height: 220px;
+    }
+
+    .six .centerLi .cla s {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 40px;
+        letter-spacing: -0.05em;
+        top: -60px;
+    }
+
+    .six .human {
+        padding-top: 6%;
+    }
+
+    .six img {
+        width: 160px;
+        height: 160px;
+    }
+
+    .six .name {
+        width: 180px;
+        height: 40px;
+        font-family: "PingFang SC";
+        font-weight: 500;
+        font-size: 30px;
+        text-align: center;
+        color: #fff;
+        line-height: 40px;
+    }
+
+    .six .centerLi .heartJump {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 100px;
+        letter-spacing: -0.05em;
+        text-align: center;
+        color: #fff;
+        height: 220px;
+        line-height: 220px;
+    }
+
+    .six .centerLi .heartJump img {
+        width: 25px;
+        height: 25px;
+        top: -60px;
+    }
+
+    .six .bottomLi {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 32px;
+        color: #fff;
+        padding-bottom: 15px;
+    }
+
+    /*nine*/
+    .nine {
+        width: 31.5%;
+        float: left;
+        margin-right: 2%;
+        margin-bottom: 2%;
+        border: 1px solid #fff;
+    }
+
+    .nine:nth-child(3) {
+        margin-right: 0
+    }
+
+    .nine:nth-child(6) {
+        margin-right: 0
+    }
+
+    .nine:nth-child(9) {
+        margin-right: 0
+    }
+
+    .nine .centerLi .cla {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 79px;
+        letter-spacing: -0.05em;
+        height: 150px;
+        line-height: 150px;
+    }
+
+    .nine .centerLi .cla s {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 36px;
+        letter-spacing: -0.05em;
+        top: -60px;
+    }
+
+    .nine .human {
+        padding-top: 2%;
+    }
+
+    .nine img {
+        width: 100px;
+        height: 100px;
+    }
+
+    .nine .name {
+        width: 120px;
+        height: 30px;
+        font-family: "PingFang SC";
+        font-weight: 500;
+        font-size: 24px;
+        text-align: center;
+        color: #fff;
+        line-height: 30px;
+    }
+
+    .nine .centerLi .heartJump {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 79px;
+        letter-spacing: -0.05em;
+        text-align: center;
+        color: #fff;
+        height: 150px;
+        line-height: 150px;
+    }
+
+    .nine .centerLi .heartJump img {
+        width: 25px;
+        height: 25px;
+        top: -60px;
+    }
+
+    .nine .bottomLi {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 24px;
+        color: #fff;
+        padding-bottom: 5px;
+    }
+
+    /*sixteen*/
+    .sixteen {
+        width: 23.5%;
+        float: left;
+        margin-right: 0.3%;
+        margin-bottom: 0.3%;
+        border: 1px solid rgba(255, 255, 255, 0.5);
+    }
+
+    .sixteen .centerLi .cla {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 49px;
+        letter-spacing: -0.05em;
+        height: 100px;
+        line-height: 120px;
+    }
+
+    .sixteen .centerLi .cla s {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 30px;
+        letter-spacing: -0.05em;
+        top: -30px;
+    }
+
+    .sixteen .human {
+        padding-top: 2%;
+        height: 120px;
+        overflow: hidden;
+    }
+
+    .sixteen .head img {
+        width: 90px;
+        height: 90px;
+    }
+
+    .sixteen .name {
+        width: 100px;
+        height: 26px;
+        font-family: "PingFang SC";
+        font-weight: 500;
+        font-size: 20px;
+        text-align: center;
+        color: #fff;
+        line-height: 26px;
+    }
+
+    .sixteen .centerLi .heartJump {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 49px;
+        letter-spacing: -0.05em;
+        text-align: center;
+        color: #fff;
+        height: 100px;
+        line-height: 120px;
+    }
+
+    .sixteen .centerLi .heartJump img {
+        width: 20px;
+        height: 20px;
+        top: -30px;
+        right: -5px;
+    }
+
+    .sixteen .bottomLi {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 22px;
+        color: #fff;
+        line-height: 30px;
+        padding-bottom: 5px;
+    }
+
+
+    /*twenty*/
+    .twenty {
+        width: 19.5%;
+        float: left;
+        margin-right: 10px;
+        margin-bottom: 0.3%;
+        border: 1px solid rgba(255, 255, 255, 0.5);
+    }
+
+    .twenty:nth-child(5) {
+        margin-right: 0
+    }
+
+    .twenty:nth-child(10) {
+        margin-right: 0
+    }
+
+    .twenty:nth-child(15) {
+        margin-right: 0
+    }
+
+    .twenty:nth-child(20) {
+        margin-right: 0
+    }
+
+    .twenty .centerLi .cla {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 40px;
+        letter-spacing: -0.05em;
+        height: 90px;
+        line-height: 90px;
+    }
+
+    .twenty .centerLi .cla s {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 16px;
+        letter-spacing: -0.05em;
+        top: -20px;
+    }
+
+    .twenty .human {
+        padding-top: 2%;
+        height: 110px;
+        overflow: hidden;
+    }
+
+    .twenty img {
+        width: 90px;
+        height: 90px;
+    }
+
+    .twenty .name {
+        width: 80px;
+        height: 24px;
+        font-family: "PingFang SC";
+        font-weight: 500;
+        font-size: 16px;
+        text-align: center;
+        color: #fff;
+        line-height: 24px;
+    }
+
+    .twenty .centerLi .heartJump {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 40px;
+        letter-spacing: -0.05em;
+        text-align: center;
+        color: #fff;
+        height: 90px;
+        line-height: 90px;
+    }
+
+    .twenty .centerLi .heartJump img {
+        width: 14px;
+        height: 14px;
+        top: -20px;
+    }
+
+    .twenty .bottomLi {
+        font-family: HeadLineA;
+        font-weight: normal;
+        font-size: 18px;
+        color: #fff;
+        padding-bottom: 5px;
+    }
+
+    /*two*/
+    .two {
+        width: 48%;
+        height: 400px;
+        float: left;
+        overflow: hidden;
+        border: 1px solid #fff;
+        margin-top: 2%
+    }
+
+    .two:nth-child(2) {
+        float: right;
+    }
+
+    .two .centerLi {
+        height: 100%;
+    }
+
+    .two .human .name {
+        height: 30px;
+        font-size: 14px;
+        line-height: 30px;
+    }
+
+    .two .longIcon {
+        width: 140px;
+        position: relative;
+        top: -20%;
+        right: -5%;
+        float: right;
+    }
+
+    .two .centerLi .topLi {
+        height: 280px;
+    }
+
+    .two .centerLi .cla, .two .centerLi .heartJump {
+        height: 229px;
+        line-height: 210px;
+        font-size: 120px;
+        padding-top: 4%;
+        text-align: center;
+    }
+
+    .two .human img {
+        width: 200px;
+        height: 200px;
+    }
+
+    .two .human .name {
+        height: 40px;
+        line-height: 40px;
+        font-size: 30px;
+    }
+
+    .two .centerLi .heartJump img {
+        width: 20px;
+        font-size: 20px;
+        top: -60px;
+    }
+
+    .two .centerLi .cla s {
+        font-size: 22px;
+        top: -60px;
+    }
+
+    .two .bottomLi {
+        font-size: 40px !important;
+    }
+
+    /*sixteen*/
+    .sixteen {
+        width: 19%;
+        height: 120px;
+        float: left;
+        overflow: hidden;
+        border: 1px solid rgba(255, 255, 255, 0.35);
+        margin-top: 5px;
+        margin-right: 1%;
+    }
+
+    .sixteen:nth-child(5) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen:nth-child(10) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen:nth-child(15) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen:nth-child(20) {
+        float: right;
+        margin-right: 0;
+    }
+
+    .sixteen .centerLi {
+        height: 100%;
+    }
+
+    .sixteen .human {
+        height: 80px;
+    }
+
+    .sixteen .human .name {
+        width: 60px;
+        height: 16px;
+        font-size: 12px;
+        line-height: 16px;
+    }
+
+    .sixteen .longIcon {
+        width: 140px;
+        position: relative;
+        top: -20%;
+        right: -5%;
+        float: right;
+    }
+
+    .sixteen .centerLi .topLi {
+        width: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        /*height: 70px;*/
+    }
+
+    .sixteen .centerLi .cla, .sixteen .centerLi .heartJump {
+        height: 60px;
+        line-height: 90px;
+        font-size: 33px;
+        padding-top: 4%;
+        text-align: center;
+        font-weight: 800;
+    }
+
+    .sixteen .centerLi .cla span {
+        width: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+    }
+
+    .sixteen .human img {
+        width: 60px;
+        height: 60px;
+        margin-top: 2px;
+    }
+
+    .sixteen .centerLi .heartJump img {
+        width: 8px;
+        height: 8px;
+        top: -58px;
+        right: 4px;
+        float: right;
+    }
+
+    .sixteen .centerLi .heartJump span {
+        width: 80%;
+        padding-right: 20%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        text-align: right;
+    }
+
+    .sixteen .centerLi .heartJump {
+        float: left;
+        text-align: center;
+    }
+
+    .sixteen .centerLi .cla s {
+        font-size: 14px;
+        top: -100px;
+        right: 3px;
+        float: right;
+    }
+
+    .sixteen .bottomLi {
+        margin-top: 5px;
+        font-size: 14px !important;
+        line-height: 30px;
+    }
+
+    .bottomLi img {
+        padding-top: 5px;
+        float: left;
+        padding-left: 10px;
+    }
+
+    .bottomLi .btck {
+        width: 35%;
+    }
+
+}

+ 1498 - 0
v2tv/src/assets/css/mainBk2.css

@@ -0,0 +1,1498 @@
+.pages {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    background-color: #028fe1;
+    background: url("../static/img/mainBg.png");
+    background-size: 100%;
+    background-repeat: no-repeat;
+}
+
+ul, li {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+
+.userList {
+    width: 98%;
+    height: 80%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.userList {
+    height: 100%;
+}
+
+.userList ul {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    padding-bottom: 0.2rem;
+}
+
+.blue .centerLi {
+    background: #028FE1;
+}
+
+.violet .centerLi {
+    background: #6D26FA;
+}
+
+.green .centerLi {
+    background: #0AB105;
+}
+
+.yellow .centerLi {
+    background: #BACC01;
+}
+
+.brown .centerLi {
+    background: #EA8813;
+}
+
+.red .centerLi {
+    background: #CF1122;
+}
+
+.centerLi {
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    /*border: 3px solid rgba(0, 0, 0, 0.5);*/
+    box-shadow: inset 0 0 10px 3px rgba(0, 0, 0, 0.5);
+    /*box-shadow:inset 0px 0px 5px 1px #000;*/
+}
+
+.centerLi .top {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.centerLi .bottom {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.centerLi .cla {
+    width: 30%;
+    float: left;
+    font-family: HeadLineA;
+    font-weight: normal;
+    /*text-align: center;*/
+    color: #fff;
+    text-align: right !important;
+
+
+    /*animation: mymove 3s infinite;*/
+    /*-webkit-animation: mymove 3s infinite; !*Safari and Chrome*!*/
+    /*animation-direction: alternate; !*轮流反向播放动画。*!*/
+    /*animation-timing-function: ease-in-out; !*动画的速度曲线*!*/
+    /*!* Safari 和 Chrome *!*/
+    /*-webkit-animation: mymove 3s infinite;*/
+    /*-webkit-animation-direction: alternate; !*轮流反向播放动画。*!*/
+    /*-webkit-animation-timing-function: ease-in-out; !*动画的速度曲线*!*/
+}
+
+
+.centerLi .cla s {
+    position: relative;
+    font-family: "PingFang SC";
+    text-decoration: none;
+}
+
+.centerLi .heartJump {
+    width: 30%;
+    font-family: HeadLineA;
+    font-weight: normal;
+    text-align: right;
+    color: #fff;
+    float: right;
+    text-indent: -0.1rem;
+}
+
+.centerLi .heartJump img {
+    position: relative;
+    font-family: "PingFang SC";
+    text-align: center;
+    color: #fff;
+    text-decoration: none;
+}
+
+
+.centerLi .fastJump {
+    animation: mymove 1s infinite;
+    -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
+    animation-direction: alternate; /*轮流反向播放动画。*/
+    animation-timing-function: ease-in-out; /*动画的速度曲线*/
+    /* Safari 和 Chrome */
+    -webkit-animation: mymove 1s infinite;
+    -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
+    -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
+}
+
+.centerLi .slowJump {
+    animation: mymove 2s infinite;
+    -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
+    animation-direction: alternate; /*轮流反向播放动画。*/
+    animation-timing-function: ease-in-out; /*动画的速度曲线*/
+    /* Safari 和 Chrome */
+    -webkit-animation: mymove 3s infinite;
+    -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
+    -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
+}
+
+@keyframes mymove {
+    0% {
+        transform: scale(1); /*开始为原始大小*/
+    }
+    25% {
+        transform: scale(1.2); /*放大1.1倍*/
+    }
+    50% {
+        transform: scale(1);
+    }
+    75% {
+        transform: scale(1.2);
+    }
+
+}
+
+@-webkit-keyframes mymove /*Safari and Chrome*/
+{
+    0% {
+        transform: scale(1); /*开始为原始大小*/
+    }
+    25% {
+        transform: scale(1.2); /*放大1.1倍*/
+    }
+    50% {
+        transform: scale(1);
+    }
+    75% {
+        transform: scale(1.2);
+    }
+}
+
+.centerLi .human {
+    /*width: 36%;*/
+    width: 40%;
+    float: left;
+    padding-top: 0.1rem;
+    overflow: hidden;
+}
+
+.human img {
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    border-radius: 250px;
+    border: 2px solid #fff;
+}
+
+.human .name {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    color: #fff;
+    text-align: center;
+}
+
+.bottomLi {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    margin-top: 0.4rem;
+    font-weight: normal !important;
+    color: #fff;
+    text-align: left;
+    line-height: 0.7rem;
+}
+.bottomLi img {
+    float: left;
+    margin-left: 10%;
+}
+
+.bottomLi .btcla {
+    width: 31%;
+    float: left;
+}
+
+.bottomLi .btck {
+    width: 32%;
+    float: left;
+    /*text-indent: 0.8rem;*/
+}
+
+.bottomLi .step {
+    width: 30%;
+    float: right;
+}
+
+.levelIcon {
+    position: absolute;
+    bottom: 0.1rem;
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    height: 5rem;
+    padding-bottom: 5px;
+}
+
+.levelIcon ul {
+    width: 94%;
+    height: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.levelIcon li {
+    width: 14.666666666667%;
+    height: 100%;
+    float: left;
+    padding-left: 2%;
+}
+
+.levelIcon li:nth-child(1) {
+    padding-left: 0;
+}
+
+.levelIcon li span {
+    width: 5rem;
+    height: 4rem;
+    overflow: hidden;
+    float: left;
+    background: url("../static/img/l1.png");
+    background-repeat: no-repeat;
+    background-size: 100% 100%;
+    background-position: top center;
+    font-family: "PingFang SC";
+    font-weight: normal;
+    font-size: 1.2rem;
+    letter-spacing: -0.05em;
+    text-align: center;
+    color: #fff;
+    line-height: 35px;
+
+}
+
+.levelIcon li span div {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    padding-top: 17%;
+}
+
+.levelIcon li:nth-child(2) span {
+    background: url("../static/img/l2.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(3) span {
+    background: url("../static/img/l3.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(4) span {
+    background: url("../static/img/l4.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(5) span {
+    background: url("../static/img/l5.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(6) span {
+    background: url("../static/img/l6.png");
+    background-size: 100% 100%;
+    background-position: top center;
+}
+
+.levelIcon li:nth-child(6) span div {
+    margin-top: 13%;
+}
+
+.levelIcon li em {
+    float: right;
+    width: 4rem;
+    height: 42px;
+    border-radius: 21px;
+    background: rgba(2, 143, 225, 0.16);
+    border: 1px solid #028fe1;
+    box-shadow: 0px 0px 5px #028fe1;
+    font-family: "PingFang SC";
+    font-weight: normal;
+    font-size: 24px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    line-height: 42px;
+    margin-top: 15%;
+    margin-left: 1%;
+}
+
+.levelIcon li:nth-child(2) em {
+    background: rgba(109, 38, 250, 0.16);
+    border: 1px solid #6d26fa;
+    box-shadow: 0px 0px 5px #6d26fa;
+}
+
+.levelIcon li:nth-child(3) em {
+    background: rgba(10, 177, 5, 0.16);
+    border: 1px solid #0ab105;
+    box-shadow: 0px 0px 5px #0ab105;
+
+}
+
+.levelIcon li:nth-child(4) em {
+    background: rgba(186, 204, 1, 0.16);
+    border: 1px solid #bacc01;
+    box-shadow: 0px 0px 5px #bacc01;
+}
+
+.levelIcon li:nth-child(5) em {
+    background: rgba(234, 136, 19, 0.16);
+    border: 1px solid #ea8813;
+    box-shadow: 0px 0px 5px #ea8813;
+}
+
+.levelIcon li:nth-child(6) em {
+    background: rgba(209, 17, 34, 0.16);
+    border: 1px solid #d11122;
+    box-shadow: 0px 0px 5px #d11122;
+}
+
+.long {
+    width: 2.772rem;
+    position: relative;
+    bottom: 1.772rem;
+    right: -1.4rem;
+    float: right;
+    z-index: 222;
+    overflow: visible;
+}
+
+
+.score {
+    width: 60%;
+    float: right;
+}
+
+.score em {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: Roboto;
+    font-weight: bold;
+    font-size: 90px;
+    text-align: center;
+    color: #fff;
+    font-style: normal;
+    height: 150px;
+    line-height: 150px;
+}
+
+.score span {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    font-family: Roboto;
+    font-weight: normal;
+    font-size: 30px;
+    color: #fff;
+    text-align: center;
+
+}
+
+.btck {
+    width: 35%;
+    float: left;
+    text-align: left;
+    text-indent: 0.05rem;
+}
+
+.btcla {
+    text-indent: 0.05rem;
+}
+
+.step {
+    text-indent: 0.05rem;
+}
+
+
+/*@media only screen and (min-width: 1260px) {*/
+
+.levelIcon {
+    height: 70px;
+}
+
+.levelIcon li span {
+    width: 70px;
+    height: 70px;
+    font-size: 12px;
+}
+
+.levelIcon li span div {
+    font-size: 16px;
+    padding-top: 12px;
+    line-height: 22px;
+}
+
+.levelIcon ul {
+    width: 98%;
+}
+
+.levelIcon li em {
+    width: 45%;
+    height: 30px;
+    line-height: 30px;
+    font-size: 0.2rem;
+    margin-top: 11%;
+    margin-left: 18%;
+    float: left;
+}
+
+.userList .max {
+    width: 80%;
+    height: 6rem;
+    overflow: visible;
+    display: block;
+    margin: 0 auto;
+    margin-top: 5%;
+}
+
+.max .ltLi {
+    width: 5%;
+    float: left;
+    background: url("../static/img/ltCube.png");
+    background-size: 100% 100%;
+    background-repeat: no-repeat;
+}
+
+.max .rtLi {
+    width: 5%;
+    float: right;
+    background: url("../static/img/rtCube.png");
+    background-size: 100% 100%;
+    background-repeat: no-repeat;
+}
+
+.max .centerLi {
+    width: 90%;
+    float: left;
+    height: 6rem;
+    border: none;
+}
+
+.max .ltLi {
+    height: 6rem;
+}
+
+.max .rtLi {
+    height: 6rem;
+}
+
+
+.max .human .name {
+    width: 100%;
+    font-size: 0.7rem;
+    height: 1rem;
+    line-height: 1rem;
+}
+
+.max .longIcon {
+    position: absolute;
+    width: 1.96rem;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    top: 57%;
+    right: 8%;
+}
+
+.max .centerLi .topLi {
+    height: 4.5rem;
+}
+
+.max .centerLi .cla, .max .centerLi .heartJump {
+    height: 4rem;
+    line-height: 4rem;
+    font-size: 1.8rem;
+    padding-top: 4%;
+    text-align: center;
+    float: left;
+}
+.max .centerLi .heartJump {
+    text-align:left;
+}
+.max .human img {
+    width: 3rem;
+    height: 3rem;
+}
+
+
+.max .centerLi .heartJump img {
+    width: 0.5rem;
+    font-size: 20px;
+    top: -1rem;
+}
+
+.max .centerLi .cla s {
+    font-size: 0.6rem;
+    top: -1rem;
+}
+
+.max .bottomLi {
+    font-size: 0.7rem;
+    text-align: center;
+}
+
+.max .bottomLi .btck {
+    /*text-indent: 1.6rem;*/
+}
+
+.max .bottomLi img {
+    width: 0.5rem;
+    height: 0.5rem;
+}
+
+/*two*/
+.two {
+    width: 49%;
+    height: 5.33rem;
+    float: left;
+    overflow: hidden;
+    border: 1px solid #fff;
+    margin-top: 6%
+}
+
+.two:nth-child(2) {
+    float: right;
+}
+
+.two .human {
+    margin-top: 0.2rem;
+}
+
+.two .centerLi {
+    height: 100%;
+}
+
+.two .human .name {
+    width: 100%;
+    height: 0.4rem;
+    font-size: 0.2rem;
+    line-height: 0.4rem;
+}
+
+
+.two .centerLi .topLi {
+    height: 3.7rem;
+}
+
+.two .centerLi .cla, .two .centerLi .heartJump {
+    height: 3rem;
+    line-height: 4rem;
+    font-size: 1.2rem;
+    padding-top: 4%;
+    /*text-align: center;*/
+}
+
+.two .human img {
+    width: 2.8rem;
+    height: 2.8rem;
+    margin-top: 0.2rem;
+}
+
+.two .human .name {
+    height: 40px;
+    line-height: 40px;
+    font-size: 0.5rem;
+}
+
+.two .centerLi .heartJump img {
+    width: 0.3rem;
+    height: 0.3rem;
+    top: -60px;
+}
+
+.two .centerLi .cla s {
+    font-size: 0.4rem;
+    top: -60px;
+}
+
+.two .bottomLi {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    font-size: 0.5rem;
+    line-height: 1.4rem;
+}
+
+.two .bottomLi img {
+    width: 0.5rem;
+    height: 0.5rem;
+}
+
+/*three*/
+.three {
+    width: 49%;
+    height: 3.9rem;
+    float: left;
+    overflow: hidden;
+    margin-top: 2%
+}
+
+.three .human {
+    margin-top: 0rem;
+}
+
+.three .centerLi {
+    width: 92%;
+    /*height: 100%;*/
+    border: 1px solid #fff;
+}
+
+.three .human .name {
+    font-size: 0.4rem;
+    line-height: 0.4rem;
+    margin-top: 0.2rem;
+}
+
+
+.three .centerLi .topLi {
+    height: 3rem;
+}
+
+.three .centerLi .cla, .three .centerLi .heartJump {
+    height: 2.2rem;
+    line-height: 2.8rem;
+    font-size: 1rem;
+    padding-top: 4%;
+    /*text-align: center;*/
+}
+
+.three .human img {
+    width: 1.8rem;
+    height: 1.8rem;
+    margin-top: 0.2rem;
+}
+
+
+.three .centerLi .heartJump img {
+    width: 0.3rem;
+    height: 0.3rem;
+    top: -0.7rem;
+}
+
+.three .centerLi .cla s {
+    font-size: 0.4rem;
+    top: -0.7rem;
+}
+
+.three .bottomLi {
+    margin-top: 0;
+    font-size: 0.4rem;
+    font-weight: normal;
+}
+
+.three .bottomLi img {
+    width: 0.4rem;
+    height: 0.4rem;
+}
+
+/*six*/
+.six {
+    width: 33.3333%;
+    height: 3.6rem;
+    float: left;
+    margin-top: 0.5rem;
+
+}
+
+.six .centerLi {
+    width: 96%;
+    height: 100%;
+    border: 1px solid #fff;
+}
+
+.six .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 1.1rem;
+    letter-spacing: -0.05em;
+    height: 2rem;
+    line-height: 3.2rem;
+}
+
+.six .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.4rem;
+    letter-spacing: -0.05em;
+    top: -0.5rem;
+}
+
+.six .human {
+    width: 41%;
+    padding-top: 0.1rem;
+    margin-top: 0.1rem;
+}
+
+.six .centerLi .cla, .six .centerLi .heartJump {
+    height: 1.9rem;
+    line-height: 2.7rem;
+    font-size: 0.7rem;
+    padding-top: 4%;
+    /*text-align: center;*/
+}
+
+
+.six .human img {
+    width: 1.6rem;
+    height: 1.6rem;
+    margin-top: 0.1rem;
+}
+
+.six .name {
+    width: 100%;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 0.4rem;
+    text-align: center;
+    color: #fff;
+    line-height: 0.6rem;
+}
+
+.six .topLi {
+    height: 2.2rem;
+}
+.six .centerLi .heartJump {
+    width: 29%;
+}
+.six .centerLi .heartJump img {
+    width: 0.25rem;
+    height: 0.25rem;
+    top: -0.5rem;
+}
+
+.six .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.35rem;
+    color: #fff;
+    line-height: 1.2rem;
+}
+
+.six .bottomLi img {
+    width: 0.3rem;
+    height: 0.3rem;
+}
+
+/*nine*/
+.nine {
+    width: 33.3333%;
+    height: 2.7rem;
+    float: left;
+    margin-top: 0.1rem;
+}
+
+.nine .centerLi {
+    width: 98%;
+    height: 100%;
+    /*border: 1px solid #fff;*/
+}
+
+.nine .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 1rem;
+    letter-spacing: -0.05em;
+    height: 1.6rem;
+    line-height: 2rem;
+}
+
+.nine .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.3rem;
+    letter-spacing: -0.05em;
+    top: -0.5rem;
+}
+
+.nine .human {
+    padding-top: 0.1rem;
+}
+
+.nine .human img {
+    width: 1.2rem;
+    height: 1.2rem;
+    margin-top: 0.1rem;
+}
+
+.nine .centerLi .cla, .nine .centerLi .heartJump {
+    height: 1.8rem;
+    line-height: 1.9rem;
+    font-size: 0.75rem;
+    padding-top: 4%;
+    /*text-align: center;*/
+}
+
+.nine .name {
+    width: 100%;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 0.3rem;
+    text-align: center;
+    color: #fff;
+    line-height: 0.5rem;
+}
+
+
+.nine .centerLi .heartJump img {
+    width: 0.2rem;
+    height: 0.2rem;
+    top: -0.5rem;
+}
+
+.nine .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.3rem;
+    color: #fff;
+    margin-top: 0;
+    line-height: 0.7rem;
+}
+
+.nine .bottomLi img {
+    width: 0.3rem;
+    height: 0.3rem;
+}
+
+/*ten*/
+.ten {
+    width: 25%;
+    height: 2.5rem;
+    float: left;
+    margin-top: 0.3rem;
+}
+
+.ten .centerLi {
+    width: 96%;
+    height: 100%;
+}
+
+.ten .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 1rem;
+    letter-spacing: -0.05em;
+    height: 1.6rem;
+    line-height: 2rem;
+}
+
+.ten .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.3rem;
+    letter-spacing: -0.05em;
+    top: -0.4rem;
+}
+
+.ten .human {
+    padding-top: 0.1rem;
+}
+
+.ten .human img {
+    width: 1.1rem;
+    height: 1.1rem;
+    margin-top: 0.1rem;
+}
+
+.ten .centerLi .cla, .ten .centerLi .heartJump {
+    height: 1.6rem;
+    line-height: 2rem;
+    font-size: 0.6rem;
+    padding-top: 4%;
+    /*text-align: center;*/
+}
+
+.ten .name {
+    width: 100%;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 0.3rem;
+    text-align: center;
+    color: #fff;
+    line-height: 0.5rem;
+}
+
+
+.ten .centerLi .heartJump img {
+    width: 0.2rem;
+    height: 0.2rem;
+    top: -0.4rem;
+}
+
+.ten .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.25rem;
+    color: #fff;
+    padding-bottom: 5px;
+    margin-top: 0;
+    line-height: 0.8rem;
+}
+
+.ten .bottomLi img {
+    width: 0.25rem;
+    height: 0.25rem;
+}
+
+
+/*twelve*/
+.twelve {
+    width: 20%;
+    height: 2.3rem;
+    float: left;
+    margin-top: 0.3rem;
+}
+
+.twelve .centerLi {
+    width: 96%;
+    height: 100%;
+}
+
+.twelve .centerLi .cla {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.8rem;
+    letter-spacing: -0.05em;
+    height: 1.6rem;
+    line-height: 2rem;
+}
+
+.twelve .centerLi .cla s {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.2rem;
+    letter-spacing: -0.05em;
+    top: -0.25rem;
+    right: -0.05rem;
+}
+
+.twelve .human {
+    padding-top: 0.1rem;
+}
+
+.twelve .human img {
+    width: 0.9rem;
+    height: 0.9rem;
+    margin-top: 0.1rem;
+}
+
+.twelve .centerLi .cla, .twelve .centerLi .heartJump {
+    height: 1.6rem;
+    line-height: 1.9rem;
+    font-size: 0.45rem;
+    padding-top: 4%;
+    /*text-align: center;*/
+}
+
+.twelve .name {
+    width: 100%;
+    font-family: "PingFang SC";
+    font-weight: 500;
+    font-size: 0.25rem;
+    text-align: center;
+    color: #fff;
+    line-height: 0.4rem;
+}
+
+
+.twelve .centerLi .heartJump img {
+    width: 0.15rem;
+    height: 0.15rem;
+    top: -0.3rem;
+}
+
+.twelve .bottomLi {
+    font-family: HeadLineA;
+    font-weight: normal;
+    font-size: 0.25rem;
+    color: #fff;
+    line-height: 0.5rem;
+    padding-bottom: 5px;
+}
+
+.twelve .bottomLi img {
+    width: 0.2rem;
+    height: 0.2rem;
+}
+
+.twelve .bottomLi .step {
+    width: 35%;
+}
+
+/*sixteen*/
+.sixteen {
+    width: 20%;
+    height: 1.92rem;
+    float: left;
+    overflow: hidden;
+    margin: 0;
+    margin-top: 1%;
+}
+
+.sixteen .centerLi {
+    width: 96%;
+    height: 100%;
+}
+
+.sixteen .human {
+    width: 40%;
+    height: 1.28rem;
+}
+
+.sixteen .human .name {
+    width: 100%;
+    height: 0.3rem;
+    font-size: 0.25rem;
+    line-height: 0.25rem;
+    margin-top: 0.1rem;
+}
+
+.sixteen .centerLi .topLi {
+    /*height: 1.3rem;*/
+    height: 1.3rem;
+}
+
+.sixteen .centerLi .cla, .sixteen .centerLi .heartJump {
+    height: 1rem;
+    line-height: 1.9rem;
+    font-size: 0.42rem;
+    /*text-align: center;*/
+    font-weight: 800;
+}
+
+.sixteen .centerLi .cla span {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+.sixteen .human img {
+    width: 0.75rem;
+    height: 0.75rem;
+    margin-top: 0.1rem;
+}
+
+.sixteen .centerLi .heartJump img {
+    width: 0.15rem;
+    height: 0.15rem;
+    top: -1.2rem;
+    right: 0.25rem;
+    float: right;
+}
+
+.sixteen .centerLi .heartJump span {
+    width: 80%;
+    padding-right: 20%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    /*text-align: center;*/
+}
+
+.sixteen .centerLi .heartJump {
+    float: left;
+    /*text-align: left;*/
+}
+
+.sixteen .centerLi .cla s {
+    font-size: 0.2rem;
+    top: -2rem;
+    right: -0.2rem;
+    float: right;
+}
+
+.sixteen .bottomLi {
+    line-height: 0.5rem;
+    font-size: 0.22rem;
+    text-align: left;
+    margin-top: 0.15rem;
+}
+
+.sixteen .bottomLi img {
+    width: 0.25rem;
+    height: 0.25rem;
+    padding-top: 0.1rem;
+    padding-left: 4%;
+}
+
+.sixteen .bottomLi .btcla {
+    width: 35%;
+    text-align: center;
+    text-indent: 0;
+}
+
+.sixteen .bottomLi .btck {
+    width: 35%;
+    text-align: left;
+}
+
+
+/*twenty*/
+.twenty {
+    width: 16.66667%;
+    height: 1.85rem;
+    float: left;
+    overflow: hidden;
+    margin: 0;
+    margin-top: 0.2rem;
+}
+
+.twenty .centerLi {
+    width: 96%;
+    height: 100%;
+}
+
+.twenty .human {
+    width: 38%;
+    /*height: 1.1rem;*/
+}
+
+.twenty .human .name {
+    width: 100%;
+    height: 0.3rem;
+    font-size: 0.25rem;
+    line-height: 0.3rem;
+}
+
+.twenty .centerLi .topLi {
+    height: 1.3rem;
+}
+
+.twenty .centerLi .cla {
+    width: 32%;
+}
+
+.twenty .centerLi .cla, .twenty .centerLi .heartJump {
+    height: 1rem;
+    line-height: 1.75rem;
+    font-size: 0.35rem;
+    /*text-align: center;*/
+    font-weight: 800;
+}
+
+.twenty .centerLi .cla span {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    text-align: center;
+    text-indent: 0.2rem;
+    /*line-height: 1.75rem;*/
+}
+
+.twenty .human img {
+    width: 0.7rem;
+    height: 0.7rem;
+    margin-top: 0.1rem;
+}
+
+.twenty .centerLi .heartJump img {
+    width: 0.15rem;
+    height: 0.15rem;
+    top: -1.1rem;
+    right: 0.20rem;
+    float: right;
+}
+
+.twenty .centerLi .heartJump span {
+    width: 80%;
+    padding-right: 20%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    /*text-align: right;*/
+}
+
+.twenty .centerLi .heartJump {
+    float: left;
+    /*text-align: center;*/
+}
+
+.twenty .centerLi .cla s {
+    font-size: 0.2rem;
+    top: -1.9rem;
+    right: -0.15rem;
+    float: right;
+    text-align: right;
+}
+
+.twenty .bottomLi {
+    line-height: 0.5rem;
+    font-size: 0.21rem;
+    text-align: center;
+    margin-top: 0.1rem;
+
+}
+
+
+.twenty .bottomLi img {
+    width: 0.2rem;
+    height: 0.2rem;
+}
+
+.twenty .bottomLi .btck {
+    width: 35%;
+}
+
+.twenty .bottomLi .step {
+    float: left;
+    text-align: center;
+}
+
+/*twentyFour*/
+.twentyFour {
+    /*width: 20%;*/
+    width: 16.6667%;
+    height: 1.7rem;
+    /*height: 2rem;*/
+    float: left;
+    overflow: hidden;
+    margin: 0;
+    margin-top: 0.04rem;
+}
+
+
+.twentyFour .centerLi {
+    width: 96%;
+    height: 100%;
+}
+
+.twentyFour .human {
+    width: 38%;
+    /*height: 1.1rem;*/
+}
+
+.twentyFour .human .name {
+    width: 100%;
+    height: 0.3rem;
+    font-size: 0.25rem;
+    line-height: 0.3rem;
+}
+
+.twentyFour .centerLi .topLi {
+    height: 1.3rem;
+}
+
+.twentyFour .centerLi .cla {
+    width: 32%;
+}
+
+.twentyFour .centerLi .cla, .twentyFour .centerLi .heartJump {
+    height: 1rem;
+    line-height: 1.75rem;
+    font-size: 0.35rem;
+    /*text-align: center;*/
+    font-weight: 800;
+}
+
+.twentyFour .centerLi .cla span {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    text-align: center;
+    text-indent: 0.2rem;
+    /*line-height: 1.75rem;*/
+}
+
+.twentyFour .human img {
+    width: 0.7rem;
+    height: 0.7rem;
+    margin-top: 0.1rem;
+}
+
+.twentyFour .centerLi .heartJump img {
+    width: 0.15rem;
+    height: 0.15rem;
+    top: -1.1rem;
+    right: 0.20rem;
+    float: right;
+}
+
+.twentyFour .centerLi .heartJump span {
+    width: 80%;
+    padding-right: 20%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    /*text-align: right;*/
+}
+
+.twentyFour .centerLi .heartJump {
+    float: left;
+    /*text-align: center;*/
+}
+
+.twentyFour .centerLi .cla s {
+    font-size: 0.2rem;
+    top: -1.9rem;
+    right: -0.15rem;
+    float: right;
+    text-align: right;
+}
+
+.twentyFour .bottomLi {
+    line-height: 0.4rem;
+    font-size: 0.21rem;
+    text-align: center;
+    margin-top: 0rem;
+
+}
+
+
+.twentyFour .bottomLi img {
+    width: 0.2rem;
+    height: 0.2rem;
+}
+
+.twentyFour .bottomLi .btck {
+    width: 35%;
+}
+
+.twentyFour .bottomLi .step {
+    float: left;
+    text-align: center;
+}
+
+/*thirtyFive */
+/*.thirtyFive {*/
+/*width: 14.285%;*/
+/*height: 1.6rem;*/
+/*float: left;*/
+/*overflow: hidden;*/
+/*margin: 0;*/
+/*margin-top: 0.05rem;*/
+/*}*/
+
+/*.thirtyFive .centerLi {*/
+/*width: 98%;*/
+/*height: 100%;*/
+/*}*/
+
+/*.thirtyFive .human {*/
+/*height: 1rem;*/
+/*}*/
+
+/*.thirtyFive .human .name {*/
+/*width: 100%;*/
+/*height: 0.18rem;*/
+/*font-size: 0.2rem;*/
+/*line-height: 0.2rem;*/
+/*text-align: center;*/
+/*overflow: hidden;*/
+/*display: block;*/
+/*margin: 0 auto;*/
+/*}*/
+
+/*.thirtyFive .centerLi .topLi {*/
+/*height: 1rem;*/
+/*}*/
+
+/*.thirtyFive .centerLi .cla, .thirtyFive .centerLi .heartJump {*/
+/*height: 1rem;*/
+/*line-height: 1.4rem;*/
+/*font-size: 0.35rem;*/
+/*text-align: center;*/
+/*font-weight: 800;*/
+/*}*/
+
+/*.thirtyFive .centerLi .cla span {*/
+/*width: 100%;*/
+/*overflow: hidden;*/
+/*display: block;*/
+/*margin: 0 auto;*/
+/*}*/
+
+/*.thirtyFive .human img {*/
+/*width: 0.7rem;*/
+/*height: 0.7rem;*/
+/*margin-top: 0.1rem;*/
+/*}*/
+
+/*.thirtyFive .centerLi .heartJump img {*/
+/*width: 0.11rem;*/
+/*height: 0.11rem;*/
+/*top: -0.9rem;*/
+/*right: 4px;*/
+/*float: right;*/
+/*}*/
+
+/*.thirtyFive .centerLi .heartJump span {*/
+/*width: 80%;*/
+/*padding-right: 20%;*/
+/*overflow: hidden;*/
+/*display: block;*/
+/*margin: 0 auto;*/
+/*text-align: right;*/
+/*}*/
+
+/*.thirtyFive .centerLi .heartJump {*/
+/*float: left;*/
+/*text-align: center;*/
+/*}*/
+
+/*.thirtyFive .centerLi .cla s {*/
+/*font-size: 0.12rem;*/
+/*top: -1.5rem;*/
+/*right: 3px;*/
+/*float: right;*/
+/*}*/
+
+/*.thirtyFive .bottomLi {*/
+/*line-height: 0.5rem;*/
+/*font-size: 0.2rem;*/
+/*text-align: center;*/
+/*margin-top: 0.1rem;*/
+/*}*/
+
+/*.thirtyFive .bottomLi img {*/
+/*float: left;*/
+/*padding-top: 0.1rem;*/
+/*padding-left: 4%;*/
+/*}*/
+
+/*.thirtyFive .bottomLi .btck {*/
+/*width: 35%;*/
+/*text-indent: 0.1rem;*/
+/*}*/

+ 384 - 0
v2tv/src/assets/css/panel.css

@@ -0,0 +1,384 @@
+.sub_title {
+    width: 96%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    margin-top: 10px;
+    text-align: left;
+}
+
+.sub_title em {
+    text-decoration: none;
+    font-style: normal;
+}
+
+.container {
+    width: 100%;
+    overflow: hidden;
+    overflow-y: scroll;
+    display: block;
+    margin: 0 auto;
+}
+
+.panel {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    /*margin-bottom: 20px;*/
+    background: #ccc;
+    padding: 5px;
+}
+
+.panel /deep/ h5 {
+    margin: 0;
+    text-align: left;
+    font-size: 18px;
+    font-weight: normal;
+    padding-bottom: 10px;
+    border-bottom: 1px solid #F0F2F5;
+    margin-bottom: 10px;
+}
+
+.panel /deep/ .el-col em {
+    float: left;
+    text-align: left;
+    line-height: 35px;
+    margin-right: 10px;
+    font-style: normal;
+}
+
+.panel /deep/ .el-input {
+    width: 150px;
+    float: left;
+}
+
+.panel /deep/ .el-select {
+    width: 150px;
+    float: left;
+}
+
+.panel /deep/ .el-input__inner {
+    width: 140px;
+    height: 30px;
+    line-height: 30px;
+    margin-top: 5px;
+    border-radius: 0;
+    float: left;
+    padding-right: 22px;
+}
+
+.panel /deep/ .el-date-editor--daterange {
+    width: 280px;
+}
+
+.panel /deep/ .el-date-editor .el-range-separator {
+    width: 30px;
+}
+
+.panel {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    background-color: #fff;
+    margin-top: 0px;
+    margin-bottom: 10px;
+    padding: 0 !important;
+}
+
+.panel /deep/ .el-input {
+    width: 140px;
+}
+
+.panel .panel_control em {
+    width: 70px;
+    float: left;
+    text-align: right;
+}
+
+.table_container {
+    width: 100%;
+    overflow: hidden;
+    margin-top: 5px;
+    margin-bottom: 10px;
+    background-color: #fff;
+    float: left;
+    padding: 10px;
+}
+
+.table_container /deep/ .el-input .el-input__inner {
+    height: 30px;
+    line-height: 30px;
+    width: 100px;
+    padding-right: 22px;
+}
+
+.table_container /deep/ .el-select .el-input__inner {
+    height: 30px;
+    line-height: 30px;
+    width: 70px;
+    padding-right: 22px;
+}
+
+.dataTables_length {
+    width: 380px;
+    float: left;
+    margin-bottom: 10px;
+    margin-right: 10px;
+    text-align: left;
+    font-size: 14px;
+}
+
+.dataTables_length /deep/ .el-input {
+    width: 100px;
+}
+
+
+.modal {
+    display: block !important;
+}
+
+.modal ul, .modal li {
+    margin: 0;
+    padding: 0;
+    list-style: none;
+}
+
+.modal li {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    height: 24px;
+    line-height: 24px;
+    text-align: left;
+}
+
+/deep/ .form-horizontal .col-sm-5 .el-select {
+    width: 100%;
+}
+
+/deep/ .form-horizontal .col-sm-5 .el-input {
+    width: 100%;
+}
+
+/deep/ .el-input-number {
+    width: 100%;
+}
+
+.large {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+}
+
+#pages {
+    position: absolute;
+    top: 0;
+    bottom: 0;
+    left: 0;
+    right: 0;
+    width: 100%;
+    height: 100%;
+    overflow: hidden;
+    overflow-y: scroll;
+    display: block;
+    margin: 0 auto;
+    background-color: #F2F2F2;
+    padding-bottom: 30px;
+}
+
+/*eldialog*/
+.el-dialog__body .form-group {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    margin-bottom: 10px;
+}
+
+/deep/ .el-dialog__body em {
+    width: 90px;
+    height: 40px;
+    line-height: 40px;
+    text-align: right;
+    float: left;
+    font-style: normal;
+}
+
+/deep/ .el-dialog__body .el-input {
+    width: 70%;
+    float: left;
+}
+
+/deep/ .el-dialog__body .panel_select {
+    width: 70%;
+    float: left;
+}
+
+/deep/ .el-dialog__body .panel_select .el-input--suffix {
+    width: 100%;
+    float: left;
+}
+
+/deep/ .el-dialog__body .el-textarea {
+    width: 70%;
+    float: left;
+}
+
+.table_container .pull-right {
+    margin-left: 10px;
+}
+
+/deep/ .el-table td, .el-table th {
+    padding: 5px;
+}
+
+.mid_time {
+    float: left;
+    margin-left: 5px;
+    margin-right: 5px;
+    line-height: 35px;
+}
+
+.red {
+    color: red;
+}
+
+.green {
+    color: #67c23a;
+}
+
+.yellow {
+    color: yellow;
+}
+
+.red_icon {
+    background: red;
+}
+
+.red_green {
+    background: #67c23a;
+}
+
+.el-dialog__body em {
+    width: 70px;
+    float: left;
+    margin-left: 10px;
+    text-align: right;
+    margin-right: 10px;
+}
+
+.el-dialog__body .el-col {
+    width: 100%;
+    overflow: hidden;
+    display: block;
+    margin: 0 auto;
+    margin-bottom: 10px;
+}
+
+/deep/ .el-select .el-input .el-select__caret {
+    line-height: 20px !important;
+}
+
+.el-table--border th, .el-table__fixed-right-patch {
+    background-color: #F0F2F5 !important;
+}
+
+.panel /deep/ .el-col-4 {
+    padding-left: 3px !important;
+    padding-right: 3px !important;
+}
+
+.panel /deep/ .el-input__icon {
+    line-height: 20px;
+}
+
+.el-transfer__buttons {
+    /*width: 66px;*/
+}
+
+.el-transfer .el-button + .el-button {
+    /*margin-left: 0;*/
+}
+
+/deep/ .el-checkbox {
+    margin-right: 0;
+}
+
+.el-transfer-panel__item.el-checkbox .el-checkbox__label {
+    text-align: left;
+    float: left;
+    text-indent: 20px;
+}
+
+.el-transfer__buttons button {
+    /*float: right;*/
+}
+
+.el-dialog__body {
+    padding-top: 4px;
+}
+
+/*颜色选择器*/
+.el-color-picker__trigger {
+    border-radius: 250px;
+}
+
+.el-color-picker__color-inner {
+    border-radius: 250px;
+}
+
+.el-color-picker__color {
+    border-radius: 250px;
+}
+
+.el-tabs__item.is-active {
+    color: #fff;
+    background: #409EFF;
+}
+
+/*隐藏调色盘*/
+.el-color-dropdown__main-wrapper {
+    display: none !important;
+}
+
+/deep/ .el-color-dropdown__main-wrapper {
+    display: none !important;
+}
+
+/* 处理input type = number的上下箭头*/
+input::-webkit-outer-spin-button,
+input::-webkit-inner-spin-button {
+    -webkit-appearance: none;
+}
+
+input[type="number"] {
+    -moz-appearance: textfield;
+}
+/*ipad only*/
+@media only screen and (max-width: 1366px) {
+    .panel .panel_control em {
+        font-size: 12px;
+        width: 60px;
+    }
+    .panel /deep/ .el-input__inner {
+        /*width: 130px;*/
+    }
+    .panel /deep/ .el-date-editor--daterange {
+        width: 100%;
+    }
+    .panel /deep/ .el-date-editor .el-range-separator {
+        width: 20px;
+        padding: 0;
+    }
+    .panel /deep/ .el-input__inner {
+        padding-right:3px
+    }
+    .panel .el-date-editor .el-range-input {
+        width: 44%;
+    }
+}
+

BIN
v2tv/src/assets/font/vista.otf


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 62 - 0
v2tv/src/assets/img/2pkRank/2pkTitle.svg


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 46 - 0
v2tv/src/assets/img/2pkRank/blueMvp.svg


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3 - 0
v2tv/src/assets/img/2pkRank/flag.svg


+ 3 - 0
v2tv/src/assets/img/2pkRank/king.svg

@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="59.917" height="52.921" viewBox="0 0 59.917 52.921">
+  <path id="路径_140" data-name="路径 140" d="M49.127,6.647a2.062,2.062,0,0,1,1.2.331,1.119,1.119,0,0,1,.529.856v.029a.288.288,0,0,1-.013.114L46.866,27.643A1.754,1.754,0,0,1,46.9,27.2a4.212,4.212,0,0,1-3.258,2.985,2.164,2.164,0,0,1,.431-.08c-3.709,1.006-10.9,1.68-19.178,1.644-8.21-.035-15.34-.746-18.946-1.78a2.766,2.766,0,0,1,.451.1,4.1,4.1,0,0,1-3.145-3.028l.015.226L.013,7.4A.423.423,0,0,1,0,7.267a1.128,1.128,0,0,1,.552-.853A2.074,2.074,0,0,1,1.77,6.1a1.8,1.8,0,0,1,.828.166l11.555,7.84L23.484.9A2.608,2.608,0,0,1,25.61,0,2.666,2.666,0,0,1,27.5.7L36.474,14.35l11.47-7.363L48,6.948a1.885,1.885,0,0,1,1.119-.3Z" transform="translate(0 25.429) rotate(-30)" fill="#fed530"/>
+</svg>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 46 - 0
v2tv/src/assets/img/2pkRank/redMvp.svg


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3 - 0
v2tv/src/assets/img/3pkRank/3pkbg.svg


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 46 - 0
v2tv/src/assets/img/3pkRank/blueMvp.svg


+ 16 - 0
v2tv/src/assets/img/3pkRank/bluetit.svg

@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="456" height="90" viewBox="0 0 456 90">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.987" y1="1" x2="0" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#1604ff"/>
+      <stop offset="1" stop-color="#1604ff" stop-opacity="0"/>
+    </linearGradient>
+    <linearGradient id="linear-gradient-2" x1="0.013" x2="1" xlink:href="#linear-gradient"/>
+  </defs>
+  <g id="tit" transform="translate(-135 -220)">
+    <rect id="矩形_91" data-name="矩形 91" width="100" height="72" transform="translate(135 238)" fill="url(#linear-gradient)"/>
+    <path id="路径_157" data-name="路径 157" d="M197,292h38v18Z" fill="#1a00c3"/>
+    <rect id="矩形_92" data-name="矩形 92" width="100" height="72" transform="translate(491 238)" fill="url(#linear-gradient-2)"/>
+    <path id="路径_158" data-name="路径 158" d="M235,292H197v18Z" transform="translate(294)" fill="#1a00c3"/>
+    <path id="路径_159" data-name="路径 159" d="M0,0H332V72H0Z" transform="translate(197 220)" fill="#0920fa"/>
+  </g>
+</svg>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 17 - 0
v2tv/src/assets/img/3pkRank/pk.svg


+ 9 - 0
v2tv/src/assets/img/3pkRank/rank1.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="30.832" height="40" viewBox="0 0 30.832 40">
+  <g id="名次" transform="translate(0 813.914)">
+    <path id="路径_164" data-name="路径 164" d="M92.809-373.484l4.939-3.629,2.461,5.61,4.614-17.217-7.4-1.984Z" transform="translate(-88.248 -402.412)" fill="#efac44"/>
+    <path id="路径_165" data-name="路径 165" d="M290.074-388.719l4.615,17.217,2.462-5.61,4.939,3.627L297.475-390.7Z" transform="translate(-275.818 -402.412)" fill="#efac44"/>
+    <path id="路径_166" data-name="路径 166" d="M15.416-813.914l-2.831,1.173H9.517l-2.169,2.169L4.516-809.4l-1.174,2.832L1.173-804.4v3.066L0-798.5l1.173,2.833v3.066l2.169,2.169L4.516-787.6l2.832,1.174,2.169,2.169h3.066l2.834,1.173,2.833-1.173h3.066l2.169-2.169,2.834-1.174,1.173-2.832L29.66-792.6v-3.065l1.173-2.834-1.174-2.834V-804.4l-2.167-2.169L26.318-809.4l-2.834-1.174-2.169-2.169H18.251Z" fill="#ffde61"/>
+    <path id="路径_167" data-name="路径 167" d="M135.916-687.687A9.688,9.688,0,0,1,126.227-678a9.688,9.688,0,0,1-9.688-9.688,9.688,9.688,0,0,1,9.688-9.688A9.688,9.688,0,0,1,135.916-687.687Z" transform="translate(-110.812 -110.812)" fill="#efac44"/>
+    <text id="_1" data-name="1" transform="translate(16 -792.914)" fill="#fff" font-size="16" font-family="SourceHanSansCN-Bold, Source Han Sans CN" font-weight="700"><tspan x="-4.712" y="0">1</tspan></text>
+  </g>
+</svg>

+ 9 - 0
v2tv/src/assets/img/3pkRank/rank2.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="30.832" height="40" viewBox="0 0 30.832 40">
+  <g id="名次" transform="translate(0 813.914)">
+    <path id="路径_164" data-name="路径 164" d="M92.809-373.484l4.939-3.629,2.461,5.61,4.614-17.217-7.4-1.984Z" transform="translate(-88.248 -402.412)" fill="#b1c8d6"/>
+    <path id="路径_165" data-name="路径 165" d="M290.074-388.719l4.615,17.217,2.462-5.61,4.939,3.627L297.475-390.7Z" transform="translate(-275.818 -402.412)" fill="#b1c8d6"/>
+    <path id="路径_166" data-name="路径 166" d="M15.416-813.914l-2.831,1.173H9.517l-2.169,2.169L4.516-809.4l-1.174,2.832L1.173-804.4v3.066L0-798.5l1.173,2.833v3.066l2.169,2.169L4.516-787.6l2.832,1.174,2.169,2.169h3.066l2.834,1.173,2.833-1.173h3.066l2.169-2.169,2.834-1.174,1.173-2.832L29.66-792.6v-3.065l1.173-2.834-1.174-2.834V-804.4l-2.167-2.169L26.318-809.4l-2.834-1.174-2.169-2.169H18.251Z" fill="#d1dfe8"/>
+    <path id="路径_167" data-name="路径 167" d="M135.916-687.687A9.688,9.688,0,0,1,126.227-678a9.688,9.688,0,0,1-9.688-9.688,9.688,9.688,0,0,1,9.688-9.688A9.688,9.688,0,0,1,135.916-687.687Z" transform="translate(-110.812 -110.812)" fill="#a1b5c1"/>
+    <text id="_2" data-name="2" transform="translate(16 -792.914)" fill="#fff" font-size="16" font-family="SourceHanSansCN-Bold, Source Han Sans CN" font-weight="700"><tspan x="-4.712" y="0">2</tspan></text>
+  </g>
+</svg>

+ 9 - 0
v2tv/src/assets/img/3pkRank/rank3.svg

@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="30.832" height="40" viewBox="0 0 30.832 40">
+  <g id="名次" transform="translate(0 813.914)">
+    <path id="路径_164" data-name="路径 164" d="M92.809-373.484l4.939-3.629,2.461,5.61,4.614-17.217-7.4-1.984Z" transform="translate(-88.248 -402.412)" fill="#ccab78"/>
+    <path id="路径_165" data-name="路径 165" d="M290.074-388.719l4.615,17.217,2.462-5.61,4.939,3.627L297.475-390.7Z" transform="translate(-275.818 -402.412)" fill="#ccab78"/>
+    <path id="路径_166" data-name="路径 166" d="M15.416-813.914l-2.831,1.173H9.517l-2.169,2.169L4.516-809.4l-1.174,2.832L1.173-804.4v3.066L0-798.5l1.173,2.833v3.066l2.169,2.169L4.516-787.6l2.832,1.174,2.169,2.169h3.066l2.834,1.173,2.833-1.173h3.066l2.169-2.169,2.834-1.174,1.173-2.832L29.66-792.6v-3.065l1.173-2.834-1.174-2.834V-804.4l-2.167-2.169L26.318-809.4l-2.834-1.174-2.169-2.169H18.251Z" fill="#edc78c"/>
+    <path id="路径_167" data-name="路径 167" d="M135.916-687.687A9.688,9.688,0,0,1,126.227-678a9.688,9.688,0,0,1-9.688-9.688,9.688,9.688,0,0,1,9.688-9.688A9.688,9.688,0,0,1,135.916-687.687Z" transform="translate(-110.812 -110.812)" fill="#c89e5e"/>
+    <text id="_3" data-name="3" transform="translate(16 -792.914)" fill="#fff" font-size="16" font-family="SourceHanSansCN-Bold, Source Han Sans CN" font-weight="700"><tspan x="-4.712" y="0">3</tspan></text>
+  </g>
+</svg>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 46 - 0
v2tv/src/assets/img/3pkRank/redMvp.svg


+ 16 - 0
v2tv/src/assets/img/3pkRank/redtit.svg

@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="456" height="90" viewBox="0 0 456 90">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.987" y1="1" x2="0" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#c3234f"/>
+      <stop offset="1" stop-color="#c3234f" stop-opacity="0"/>
+    </linearGradient>
+    <linearGradient id="linear-gradient-2" x1="0.013" x2="1" xlink:href="#linear-gradient"/>
+  </defs>
+  <g id="tit" transform="translate(-135 -220)">
+    <rect id="矩形_91" data-name="矩形 91" width="100" height="72" transform="translate(135 238)" fill="url(#linear-gradient)"/>
+    <path id="路径_157" data-name="路径 157" d="M197,292h38v18Z" fill="#7b1d2e"/>
+    <rect id="矩形_92" data-name="矩形 92" width="100" height="72" transform="translate(491 238)" fill="url(#linear-gradient-2)"/>
+    <path id="路径_158" data-name="路径 158" d="M235,292H197v18Z" transform="translate(294)" fill="#7b1d2e"/>
+    <rect id="矩形_90" data-name="矩形 90" width="332" height="72" transform="translate(197 220)" fill="#ff3f52"/>
+  </g>
+</svg>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 46 - 0
v2tv/src/assets/img/3pkRank/yellowMvp.svg


+ 19 - 0
v2tv/src/assets/img/3pkRank/yellowtit.svg

@@ -0,0 +1,19 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="456" height="90" viewBox="0 0 456 90">
+  <defs>
+    <linearGradient id="linear-gradient" x1="0.987" y1="1" x2="0" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#ceb31e"/>
+      <stop offset="1" stop-color="#ceb31e" stop-opacity="0"/>
+    </linearGradient>
+    <linearGradient id="linear-gradient-2" x1="0.013" y1="1" x2="1" y2="1" gradientUnits="objectBoundingBox">
+      <stop offset="0" stop-color="#acbb14"/>
+      <stop offset="1" stop-color="#ceb31e" stop-opacity="0"/>
+    </linearGradient>
+  </defs>
+  <g id="tit" transform="translate(-135 -220)">
+    <rect id="矩形_91" data-name="矩形 91" width="100" height="72" transform="translate(135 238)" fill="url(#linear-gradient)"/>
+    <path id="路径_157" data-name="路径 157" d="M197,292h38v18Z" fill="#928121"/>
+    <rect id="矩形_92" data-name="矩形 92" width="100" height="72" transform="translate(491 238)" fill="url(#linear-gradient-2)"/>
+    <path id="路径_158" data-name="路径 158" d="M235,292H197v18Z" transform="translate(294)" fill="#928121"/>
+    <path id="路径_159" data-name="路径 159" d="M0,0H332V72H0Z" transform="translate(197 220)" fill="#ecd034"/>
+  </g>
+</svg>

BIN
v2tv/src/assets/img/birth/birthCrow.png


BIN
v2tv/src/assets/img/birth/birthText.png


BIN
v2tv/src/assets/img/border/bbl.png


BIN
v2tv/src/assets/img/border/bbr.png


BIN
v2tv/src/assets/img/border/btl.png


BIN
v2tv/src/assets/img/border/btr.png


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
v2tv/src/assets/img/comm/hat.svg


BIN
v2tv/src/assets/img/header/left.png


BIN
v2tv/src/assets/img/header/ltehead.png


BIN
v2tv/src/assets/img/header/right.png


BIN
v2tv/src/assets/img/icon/addMemo.png


BIN
v2tv/src/assets/img/icon/equip.png


BIN
v2tv/src/assets/img/icon/header.png


BIN
v2tv/src/assets/img/icon/home.png


BIN
v2tv/src/assets/img/icon/list.png


BIN
v2tv/src/assets/img/icon/location.png


BIN
v2tv/src/assets/img/icon/logout.png


BIN
v2tv/src/assets/img/icon/qrcode.png


BIN
v2tv/src/assets/img/icon/question_icon.png


BIN
v2tv/src/assets/img/icon/setting.png


BIN
v2tv/src/assets/img/icon/user.png


BIN
v2tv/src/assets/img/lessonTable/star.png


BIN
v2tv/src/assets/img/login/bg.png


BIN
v2tv/src/assets/img/login/logo.png


BIN
v2tv/src/assets/img/main/Oval.png


BIN
v2tv/src/assets/img/main/appoint.png


BIN
v2tv/src/assets/img/main/empty.jpg


BIN
v2tv/src/assets/img/main/lesson.png


BIN
v2tv/src/assets/img/main/member.png


BIN
v2tv/src/assets/img/nav/head.png


BIN
v2tv/src/assets/img/nav/home.png


BIN
v2tv/src/assets/img/nav/logo.png


+ 21 - 0
v2tv/src/assets/img/pk/blueFlag.svg

@@ -0,0 +1,21 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.804" height="33.138" viewBox="0 0 32.804 33.138">
+  <defs>
+    <clipPath id="clip-path">
+      <path id="路径_97" data-name="路径 97" d="M0-783.862H32.8V-817H0Z" transform="translate(0 817.001)" fill="none" clip-rule="evenodd"/>
+    </clipPath>
+  </defs>
+  <g id="组_165" data-name="组 165" transform="translate(0 817.001)">
+    <g id="组_163" data-name="组 163" transform="translate(0 -817.001)" clip-path="url(#clip-path)">
+      <path id="路径_87" data-name="路径 87" d="M121.637-747.553l.105.007a4.247,4.247,0,0,1,1.719.493,2.083,2.083,0,0,0,1.242.3,3.725,3.725,0,0,1,1.639.285,11.576,11.576,0,0,1,1.13.509c.294.146.6.295.909.421a2.372,2.372,0,0,1,.256.13,1.883,1.883,0,0,0,.243.123c.5.191.938.337,1.386.467a3.6,3.6,0,0,0,.9.087,5.933,5.933,0,0,1,.867.062,2.033,2.033,0,0,0,.378.013,2.792,2.792,0,0,1,.406.01,13.386,13.386,0,0,1,1.959.415,7.282,7.282,0,0,1,2.144.914c.122.084.24.175.355.269a7.519,7.519,0,0,1,1.094,1.244,6.544,6.544,0,0,0,.839.975l.032.029a13.317,13.317,0,0,0,1.168.924,5.075,5.075,0,0,0,2.794.962.133.133,0,0,1,.077-.062l.061-.016.051.036a.14.14,0,0,1,.045.182c0,.01-.013.029-.022.055-.026.058-.045.1-.061.146-.067.156-.1.227-.176.434-.013.039-.029.075-.042.113-.032.084-.061.165-.09.246-.413,1.183.173,2.735.739,4.233.611,1.614,1.187,3.144.608,4.275-.851,1.659-.141,4.91.6,6.582l.1.217-.234-.023a47.1,47.1,0,0,1-7.361-1.481,5.937,5.937,0,0,1-1.2-.7c-.272-.188-.566-.4-.851-.6s-.582-.415-.858-.606a5.994,5.994,0,0,0-1.255-.719,6.754,6.754,0,0,1-1.447-.846l-.179-.123a6.17,6.17,0,0,0-2.109-1.112c-.259-.032-.522-.055-.784-.071s-.5-.016-.752-.019a6.7,6.7,0,0,1-1.175-.071,14.6,14.6,0,0,1-1.479-.363c-.41-.126-.835-.272-1.325-.457a1.07,1.07,0,0,0-.253-.045,1.193,1.193,0,0,1-.323-.065,6.378,6.378,0,0,1-.887-.463,5.871,5.871,0,0,0-1-.5c-.358-.126-.694-.237-1.027-.327a13.891,13.891,0,0,0-3.424-.638l-.173-.007Z" transform="translate(-112.319 750.366)"/>
+      <path id="路径_88" data-name="路径 88" d="M.072-783.869a.189.189,0,0,1-.064-.207l8.824-30.176-.07-.023a.529.529,0,0,1-.154-.075.461.461,0,0,1-.2-.5.416.416,0,0,1,.182-.237c0-.006,0-.01,0-.016a.4.4,0,0,1,.218-.243.472.472,0,0,1,.326-.019l.016,0,.016-.058a.8.8,0,0,1-.246-.83.8.8,0,0,1,.374-.47.779.779,0,0,1,.6-.065.79.79,0,0,1,.218.1.8.8,0,0,1,.31.882.79.79,0,0,1-.541.538l-.032.11a.511.511,0,0,1,.134.065.411.411,0,0,1,.179.454c0,.007,0,.01-.006.016a.421.421,0,0,1,.026.3.432.432,0,0,1-.24.269.523.523,0,0,1-.365.019l-.051-.016L.837-784.326c-.154.525-.173.548-.237.583a.129.129,0,0,1-.109.01l-.381-.117A.108.108,0,0,1,.072-783.869Z" transform="translate(0 816.822)" fill="#231715"/>
+      <path id="路径_89" data-name="路径 89" d="M13.046-807.979l.384.117c.016,0,.022.029.15-.408l-9.39,32.117c-.144.49-.163.509-.179.5l-.387-.113c-.016,0-.022-.029-.013-.055L13-807.937C13.011-807.966,13.03-807.986,13.046-807.979Z" transform="translate(-3.462 808.625)" fill="#fff"/>
+      <path id="路径_90" data-name="路径 90" d="M226.536-811.742a.646.646,0,0,0,.8-.441A.662.662,0,0,0,226.9-813a.647.647,0,0,0-.8.441A.656.656,0,0,0,226.536-811.742Z" transform="translate(-217.029 813.188)" fill="#c3af00"/>
+      <path id="路径_91" data-name="路径 91" d="M251.958-784.637C251.968-784.585,251.939-784.715,251.958-784.637Z" transform="translate(-241.872 785.973)" fill="#fff"/>
+      <path id="路径_92" data-name="路径 92" d="M231.111-808.915a.251.251,0,0,0,.246.026.225.225,0,0,0,.131-.2.258.258,0,0,0-.115-.224.25.25,0,0,0-.246-.026.226.226,0,0,0-.131.2A.265.265,0,0,0,231.111-808.915Z" transform="translate(-221.755 809.667)" fill="#ece738"/>
+      <path id="路径_93" data-name="路径 93" d="M218.515-777.774l.707.214a.3.3,0,0,1,.227.35.293.293,0,0,1-.378.169l-.707-.214a.3.3,0,0,1-.227-.35A.292.292,0,0,1,218.515-777.774Z" transform="translate(-209.401 779.379)" fill="#c3af00"/>
+      <path id="路径_94" data-name="路径 94" d="M213.927-772.222l.819.246a.351.351,0,0,1,.266.405.34.34,0,0,1-.438.194l-.819-.246a.351.351,0,0,1-.266-.405A.338.338,0,0,1,213.927-772.222Z" transform="translate(-204.939 774.053)" fill="#c3af00"/>
+      <path id="路径_95" data-name="路径 95" d="M216.425-775.532a2.349,2.349,0,0,0,.461.107c.1.006.109-.023.022-.075a2.329,2.329,0,0,0-.438-.178,2.361,2.361,0,0,0-.461-.107c-.1-.006-.109.023-.023.075A2.324,2.324,0,0,0,216.425-775.532Zm.157-.373a1.778,1.778,0,0,0,.323.078c.07.006.074-.01.013-.042a1.877,1.877,0,0,0-.31-.12,1.761,1.761,0,0,0-.323-.078c-.07-.006-.074.01-.013.042A1.865,1.865,0,0,0,216.582-775.9Z" transform="translate(-207.289 777.726)" fill="#ece738"/>
+      <path id="路径_96" data-name="路径 96" d="M126.7-738.674l.105.007a4.221,4.221,0,0,1,1.687.5,2.1,2.1,0,0,0,1.219.311,3.755,3.755,0,0,1,1.607.3c.381.146.755.327,1.111.506.291.146.6.3.893.418a2.7,2.7,0,0,1,.253.13,2.052,2.052,0,0,0,.237.123c.49.191.922.34,1.36.47a3.788,3.788,0,0,0,.883.1,5.664,5.664,0,0,1,.848.071,1.9,1.9,0,0,0,.368.016,2.327,2.327,0,0,1,.4.016,13.511,13.511,0,0,1,1.924.428,7.37,7.37,0,0,1,2.109.914c.118.081.237.172.349.266a7.872,7.872,0,0,1,1.088,1.218,6.613,6.613,0,0,0,.835.956l.032.026c.362.3.736.622,1.155.911a5.152,5.152,0,0,0,2.743.969.11.11,0,0,1,.077-.058l.057-.016.051.036a.137.137,0,0,1,.045.175c0,.01-.013.029-.023.052l-.057.139c-.064.149-.09.217-.166.415-.013.036-.026.075-.038.11-.029.081-.058.159-.083.237-.39,1.141.2,2.648.778,4.106.618,1.572,1.2,3.056.653,4.142-.81,1.594-.074,4.748.675,6.375l.1.211-.227-.026a47.676,47.676,0,0,1-7.22-1.53,6.055,6.055,0,0,1-1.187-.694c-.269-.185-.557-.389-.839-.593s-.573-.412-.848-.6a6.156,6.156,0,0,0-1.235-.713,6.789,6.789,0,0,1-1.424-.836l-.179-.123a6.318,6.318,0,0,0-2.077-1.105c-.256-.032-.512-.061-.768-.081s-.493-.023-.736-.029a6.4,6.4,0,0,1-1.152-.088,14.44,14.44,0,0,1-1.453-.373c-.4-.126-.819-.276-1.3-.46a1.234,1.234,0,0,0-.246-.049,1.178,1.178,0,0,1-.317-.068,7.063,7.063,0,0,1-.877-.46,5.727,5.727,0,0,0-.983-.5c-.352-.13-.682-.237-1.008-.331a13.967,13.967,0,0,0-3.357-.664l-.17-.01Z" transform="translate(-117.464 741.847)" fill="#11d8ff"/>
+    </g>
+  </g>
+</svg>

+ 12 - 0
v2tv/src/assets/img/pk/blueGood.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
+  <g id="赞" transform="translate(-15 -140)">
+    <g id="椭圆_23" data-name="椭圆 23" transform="translate(15 140)" fill="#4566f7" stroke="#fff" stroke-width="4">
+      <circle cx="32" cy="32" r="32" stroke="none"/>
+      <circle cx="32" cy="32" r="30" fill="none"/>
+    </g>
+    <g id="组_143" data-name="组 143" transform="translate(31 156)">
+      <path id="路径_79" data-name="路径 79" d="M204.667-656.951h8.716c-3.377-12.474,2.327-13.111,2.327-13.111,2.418,0,1.916,1.912,2.1,2.231,0,6.1,6.479,10.88,6.479,10.88v17.3c0,1.708-2.327,2.323-3.24,2.323h-13.1c-1.232,0-2.236-3.232-2.236-3.232-3.24-11.017-3.24-14.3-3.24-14.3A1.977,1.977,0,0,1,204.667-656.951Z" transform="translate(-202.477 670.062)" fill="#fff"/>
+      <path id="路径_80" data-name="路径 80" d="M1.327-401.558H6.546A1.062,1.062,0,0,1,7.64-400.5L6.562-383.052a1.089,1.089,0,0,1-1.112,1.11H.933c-.941,0-.933-.734-.933-.734v-17.559a1.284,1.284,0,0,1,1.327-1.323Z" transform="translate(24.063 414.675)" fill="#fff"/>
+    </g>
+  </g>
+</svg>

+ 21 - 0
v2tv/src/assets/img/pk/redFlag.svg

@@ -0,0 +1,21 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.804" height="33.138" viewBox="0 0 32.804 33.138">
+  <defs>
+    <clipPath id="clip-path">
+      <path id="路径_97" data-name="路径 97" d="M0-783.862H32.8V-817H0Z" transform="translate(0 817.001)" fill="none" clip-rule="evenodd"/>
+    </clipPath>
+  </defs>
+  <g id="组_164" data-name="组 164" transform="translate(0 817.001)">
+    <g id="组_163" data-name="组 163" transform="translate(0 -817.001)" clip-path="url(#clip-path)">
+      <path id="路径_87" data-name="路径 87" d="M121.637-747.553l.105.007a4.247,4.247,0,0,1,1.719.493,2.083,2.083,0,0,0,1.242.3,3.725,3.725,0,0,1,1.639.285,11.576,11.576,0,0,1,1.13.509c.294.146.6.295.909.421a2.372,2.372,0,0,1,.256.13,1.883,1.883,0,0,0,.243.123c.5.191.938.337,1.386.467a3.6,3.6,0,0,0,.9.087,5.933,5.933,0,0,1,.867.062,2.033,2.033,0,0,0,.378.013,2.792,2.792,0,0,1,.406.01,13.386,13.386,0,0,1,1.959.415,7.282,7.282,0,0,1,2.144.914c.122.084.24.175.355.269a7.519,7.519,0,0,1,1.094,1.244,6.544,6.544,0,0,0,.839.975l.032.029a13.317,13.317,0,0,0,1.168.924,5.075,5.075,0,0,0,2.794.962.133.133,0,0,1,.077-.062l.061-.016.051.036a.14.14,0,0,1,.045.182c0,.01-.013.029-.022.055-.026.058-.045.1-.061.146-.067.156-.1.227-.176.434-.013.039-.029.075-.042.113-.032.084-.061.165-.09.246-.413,1.183.173,2.735.739,4.233.611,1.614,1.187,3.144.608,4.275-.851,1.659-.141,4.91.6,6.582l.1.217-.234-.023a47.1,47.1,0,0,1-7.361-1.481,5.937,5.937,0,0,1-1.2-.7c-.272-.188-.566-.4-.851-.6s-.582-.415-.858-.606a5.994,5.994,0,0,0-1.255-.719,6.754,6.754,0,0,1-1.447-.846l-.179-.123a6.17,6.17,0,0,0-2.109-1.112c-.259-.032-.522-.055-.784-.071s-.5-.016-.752-.019a6.7,6.7,0,0,1-1.175-.071,14.6,14.6,0,0,1-1.479-.363c-.41-.126-.835-.272-1.325-.457a1.07,1.07,0,0,0-.253-.045,1.193,1.193,0,0,1-.323-.065,6.378,6.378,0,0,1-.887-.463,5.871,5.871,0,0,0-1-.5c-.358-.126-.694-.237-1.027-.327a13.891,13.891,0,0,0-3.424-.638l-.173-.007Z" transform="translate(-112.319 750.366)"/>
+      <path id="路径_88" data-name="路径 88" d="M.072-783.869a.189.189,0,0,1-.064-.207l8.824-30.176-.07-.023a.529.529,0,0,1-.154-.075.461.461,0,0,1-.2-.5.416.416,0,0,1,.182-.237c0-.006,0-.01,0-.016a.4.4,0,0,1,.218-.243.472.472,0,0,1,.326-.019l.016,0,.016-.058a.8.8,0,0,1-.246-.83.8.8,0,0,1,.374-.47.779.779,0,0,1,.6-.065.79.79,0,0,1,.218.1.8.8,0,0,1,.31.882.79.79,0,0,1-.541.538l-.032.11a.511.511,0,0,1,.134.065.411.411,0,0,1,.179.454c0,.007,0,.01-.006.016a.421.421,0,0,1,.026.3.432.432,0,0,1-.24.269.523.523,0,0,1-.365.019l-.051-.016L.837-784.326c-.154.525-.173.548-.237.583a.129.129,0,0,1-.109.01l-.381-.117A.108.108,0,0,1,.072-783.869Z" transform="translate(0 816.822)" fill="#231715"/>
+      <path id="路径_89" data-name="路径 89" d="M13.046-807.979l.384.117c.016,0,.022.029.15-.408l-9.39,32.117c-.144.49-.163.509-.179.5l-.387-.113c-.016,0-.022-.029-.013-.055L13-807.937C13.011-807.966,13.03-807.986,13.046-807.979Z" transform="translate(-3.462 808.625)" fill="#fff"/>
+      <path id="路径_90" data-name="路径 90" d="M226.536-811.742a.646.646,0,0,0,.8-.441A.662.662,0,0,0,226.9-813a.647.647,0,0,0-.8.441A.656.656,0,0,0,226.536-811.742Z" transform="translate(-217.029 813.188)" fill="#c3af00"/>
+      <path id="路径_91" data-name="路径 91" d="M251.958-784.637C251.968-784.585,251.939-784.715,251.958-784.637Z" transform="translate(-241.872 785.973)" fill="#fff"/>
+      <path id="路径_92" data-name="路径 92" d="M231.111-808.915a.251.251,0,0,0,.246.026.225.225,0,0,0,.131-.2.258.258,0,0,0-.115-.224.25.25,0,0,0-.246-.026.226.226,0,0,0-.131.2A.265.265,0,0,0,231.111-808.915Z" transform="translate(-221.755 809.667)" fill="#ece738"/>
+      <path id="路径_93" data-name="路径 93" d="M218.515-777.774l.707.214a.3.3,0,0,1,.227.35.293.293,0,0,1-.378.169l-.707-.214a.3.3,0,0,1-.227-.35A.292.292,0,0,1,218.515-777.774Z" transform="translate(-209.401 779.379)" fill="#c3af00"/>
+      <path id="路径_94" data-name="路径 94" d="M213.927-772.222l.819.246a.351.351,0,0,1,.266.405.34.34,0,0,1-.438.194l-.819-.246a.351.351,0,0,1-.266-.405A.338.338,0,0,1,213.927-772.222Z" transform="translate(-204.939 774.053)" fill="#c3af00"/>
+      <path id="路径_95" data-name="路径 95" d="M216.425-775.532a2.349,2.349,0,0,0,.461.107c.1.006.109-.023.022-.075a2.329,2.329,0,0,0-.438-.178,2.361,2.361,0,0,0-.461-.107c-.1-.006-.109.023-.023.075A2.324,2.324,0,0,0,216.425-775.532Zm.157-.373a1.778,1.778,0,0,0,.323.078c.07.006.074-.01.013-.042a1.877,1.877,0,0,0-.31-.12,1.761,1.761,0,0,0-.323-.078c-.07-.006-.074.01-.013.042A1.865,1.865,0,0,0,216.582-775.9Z" transform="translate(-207.289 777.726)" fill="#ece738"/>
+      <path id="路径_96" data-name="路径 96" d="M126.7-738.674l.105.007a4.221,4.221,0,0,1,1.687.5,2.1,2.1,0,0,0,1.219.311,3.755,3.755,0,0,1,1.607.3c.381.146.755.327,1.111.506.291.146.6.3.893.418a2.7,2.7,0,0,1,.253.13,2.052,2.052,0,0,0,.237.123c.49.191.922.34,1.36.47a3.788,3.788,0,0,0,.883.1,5.664,5.664,0,0,1,.848.071,1.9,1.9,0,0,0,.368.016,2.327,2.327,0,0,1,.4.016,13.511,13.511,0,0,1,1.924.428,7.37,7.37,0,0,1,2.109.914c.118.081.237.172.349.266a7.872,7.872,0,0,1,1.088,1.218,6.613,6.613,0,0,0,.835.956l.032.026c.362.3.736.622,1.155.911a5.152,5.152,0,0,0,2.743.969.11.11,0,0,1,.077-.058l.057-.016.051.036a.137.137,0,0,1,.045.175c0,.01-.013.029-.023.052l-.057.139c-.064.149-.09.217-.166.415-.013.036-.026.075-.038.11-.029.081-.058.159-.083.237-.39,1.141.2,2.648.778,4.106.618,1.572,1.2,3.056.653,4.142-.81,1.594-.074,4.748.675,6.375l.1.211-.227-.026a47.676,47.676,0,0,1-7.22-1.53,6.055,6.055,0,0,1-1.187-.694c-.269-.185-.557-.389-.839-.593s-.573-.412-.848-.6a6.156,6.156,0,0,0-1.235-.713,6.789,6.789,0,0,1-1.424-.836l-.179-.123a6.318,6.318,0,0,0-2.077-1.105c-.256-.032-.512-.061-.768-.081s-.493-.023-.736-.029a6.4,6.4,0,0,1-1.152-.088,14.44,14.44,0,0,1-1.453-.373c-.4-.126-.819-.276-1.3-.46a1.234,1.234,0,0,0-.246-.049,1.178,1.178,0,0,1-.317-.068,7.063,7.063,0,0,1-.877-.46,5.727,5.727,0,0,0-.983-.5c-.352-.13-.682-.237-1.008-.331a13.967,13.967,0,0,0-3.357-.664l-.17-.01Z" transform="translate(-117.464 741.847)" fill="#fd3f37"/>
+    </g>
+  </g>
+</svg>

+ 12 - 0
v2tv/src/assets/img/pk/redGood.svg

@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
+  <g id="赞" transform="translate(-15 -140)">
+    <g id="椭圆_23" data-name="椭圆 23" transform="translate(15 140)" fill="#e6302b" stroke="#fff" stroke-width="4">
+      <circle cx="32" cy="32" r="32" stroke="none"/>
+      <circle cx="32" cy="32" r="30" fill="none"/>
+    </g>
+    <g id="组_143" data-name="组 143" transform="translate(31 826.062)">
+      <path id="路径_79" data-name="路径 79" d="M222.1-656.951h-8.716c3.377-12.474-2.327-13.111-2.327-13.111-2.418,0-1.916,1.912-2.1,2.231,0,6.1-6.479,10.88-6.479,10.88v17.3c0,1.708,2.327,2.323,3.24,2.323h13.1c1.232,0,2.236-3.232,2.236-3.232,3.24-11.017,3.24-14.3,3.24-14.3A1.977,1.977,0,0,0,222.1-656.951Z" transform="translate(-192.586)" fill="#fff"/>
+      <path id="路径_80" data-name="路径 80" d="M6.314-401.558H1.095A1.062,1.062,0,0,0,0-400.5l1.078,17.447a1.089,1.089,0,0,0,1.112,1.11H6.708c.941,0,.933-.734.933-.734v-17.559a1.284,1.284,0,0,0-1.327-1.323Z" transform="translate(0 -255.387)" fill="#fff"/>
+    </g>
+  </g>
+</svg>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 11 - 0
v2tv/src/assets/img/pk/vs.svg


+ 21 - 0
v2tv/src/assets/img/pk/yellowFlag.svg

@@ -0,0 +1,21 @@
+<svg id="组_146" data-name="组 146" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="19.798" height="20" viewBox="0 0 19.798 20">
+  <defs>
+    <clipPath id="clip-path">
+      <path id="路径_97" data-name="路径 97" d="M0-797H19.8v-20H0Z" transform="translate(0 817)" fill="none" clip-rule="evenodd"/>
+    </clipPath>
+  </defs>
+  <g id="组_164" data-name="组 164" transform="translate(0 0)">
+    <g id="组_163" data-name="组 163" transform="translate(0 0)" clip-path="url(#clip-path)">
+      <path id="路径_87" data-name="路径 87" d="M119.8-747.553l.064,0a2.563,2.563,0,0,1,1.037.3,1.257,1.257,0,0,0,.749.184,2.249,2.249,0,0,1,.989.172,6.984,6.984,0,0,1,.682.307c.178.088.365.178.549.254a1.442,1.442,0,0,1,.154.078,1.127,1.127,0,0,0,.147.074c.3.115.566.2.836.282a2.173,2.173,0,0,0,.543.053,3.568,3.568,0,0,1,.523.037,1.229,1.229,0,0,0,.228.008,1.686,1.686,0,0,1,.245.006,8.073,8.073,0,0,1,1.182.25,4.392,4.392,0,0,1,1.294.552c.073.051.145.106.214.162a4.539,4.539,0,0,1,.661.751,3.944,3.944,0,0,0,.506.589l.019.018a8.041,8.041,0,0,0,.705.557,3.064,3.064,0,0,0,1.686.581.081.081,0,0,1,.046-.037l.037-.01.031.022a.084.084,0,0,1,.027.109c0,.006-.008.018-.014.033-.015.035-.027.063-.037.088-.041.094-.058.137-.106.262-.008.024-.017.045-.025.068-.019.051-.037.1-.054.149a4.154,4.154,0,0,0,.446,2.555c.369.974.717,1.9.367,2.58-.514,1-.085,2.963.365,3.973l.058.131-.141-.014a28.426,28.426,0,0,1-4.443-.894,3.587,3.587,0,0,1-.726-.422c-.164-.114-.342-.239-.514-.362s-.352-.25-.518-.366a3.616,3.616,0,0,0-.757-.434,4.081,4.081,0,0,1-.873-.511l-.108-.074a3.722,3.722,0,0,0-1.273-.671c-.156-.02-.315-.033-.473-.043s-.3-.01-.454-.012a4.057,4.057,0,0,1-.709-.043,8.809,8.809,0,0,1-.892-.219c-.247-.076-.5-.164-.8-.276a.654.654,0,0,0-.153-.027.719.719,0,0,1-.2-.039,3.834,3.834,0,0,1-.535-.28,3.55,3.55,0,0,0-.6-.3c-.216-.076-.419-.143-.62-.2a8.385,8.385,0,0,0-2.067-.385l-.1,0Z" transform="translate(-114.175 749.251)"/>
+      <path id="路径_88" data-name="路径 88" d="M.043-796.931A.115.115,0,0,1,0-797.056L5.33-815.268l-.043-.014a.319.319,0,0,1-.093-.045.278.278,0,0,1-.122-.3.252.252,0,0,1,.11-.143s0-.006,0-.01a.239.239,0,0,1,.131-.147.285.285,0,0,1,.2-.012l.01,0,.01-.035a.484.484,0,0,1-.149-.5.485.485,0,0,1,.226-.284.47.47,0,0,1,.359-.039.475.475,0,0,1,.131.063.482.482,0,0,1,.187.532.477.477,0,0,1-.326.325l-.019.066a.312.312,0,0,1,.081.039.248.248,0,0,1,.108.274s0,.006,0,.01a.254.254,0,0,1,.015.18.261.261,0,0,1-.145.162.316.316,0,0,1-.22.012l-.031-.01L.505-797.206c-.093.317-.1.331-.143.352a.078.078,0,0,1-.066.006l-.23-.071A.066.066,0,0,1,.043-796.931Z" transform="translate(0 816.819)" fill="#231715"/>
+      <path id="路径_89" data-name="路径 89" d="M9.3-808.095l.232.07c.01,0,.013.018.091-.246L3.959-788.887c-.087.3-.1.307-.108.3l-.234-.069c-.01,0-.013-.018-.008-.033L9.277-808.07C9.283-808.087,9.294-808.1,9.3-808.095Z" transform="translate(-3.52 808.484)" fill="#fff"/>
+      <path id="路径_90" data-name="路径 90" d="M226.352-812.252a.39.39,0,0,0,.485-.266.4.4,0,0,0-.263-.493.39.39,0,0,0-.485.266A.4.4,0,0,0,226.352-812.252Z" transform="translate(-220.615 813.124)" fill="#c3af00"/>
+      <path id="路径_91" data-name="路径 91" d="M251.956-784.647C251.961-784.616,251.944-784.694,251.956-784.647Z" transform="translate(-245.868 785.453)" fill="#fff"/>
+      <path id="路径_92" data-name="路径 92" d="M231.066-809.09a.152.152,0,0,0,.149.016.136.136,0,0,0,.079-.119.156.156,0,0,0-.07-.135.151.151,0,0,0-.149-.016.136.136,0,0,0-.079.119A.16.16,0,0,0,231.066-809.09Z" transform="translate(-225.419 809.544)" fill="#ece738"/>
+      <path id="路径_93" data-name="路径 93" d="M218.361-777.781l.427.129a.181.181,0,0,1,.137.211.177.177,0,0,1-.228.1l-.427-.129a.181.181,0,0,1-.137-.211A.176.176,0,0,1,218.361-777.781Z" transform="translate(-212.861 778.749)" fill="#c3af00"/>
+      <path id="路径_94" data-name="路径 94" d="M213.749-772.229l.494.149a.212.212,0,0,1,.16.244.205.205,0,0,1-.265.117l-.495-.149a.212.212,0,0,1-.16-.245A.2.2,0,0,1,213.749-772.229Z" transform="translate(-208.325 773.334)" fill="#c3af00"/>
+      <path id="路径_95" data-name="路径 95" d="M216.228-775.744a1.425,1.425,0,0,0,.278.064c.06,0,.066-.014.014-.045a1.4,1.4,0,0,0-.265-.108,1.426,1.426,0,0,0-.278-.064c-.06,0-.066.014-.014.045A1.4,1.4,0,0,0,216.228-775.744Zm.095-.225a1.072,1.072,0,0,0,.2.047c.043,0,.044-.006.008-.026a1.118,1.118,0,0,0-.187-.072,1.048,1.048,0,0,0-.2-.047c-.042,0-.044.006-.008.025A1.115,1.115,0,0,0,216.323-775.969Z" transform="translate(-210.714 777.069)" fill="#ece738"/>
+      <path id="路径_96" data-name="路径 96" d="M124.976-738.674l.064,0a2.55,2.55,0,0,1,1.018.3,1.266,1.266,0,0,0,.736.188,2.268,2.268,0,0,1,.97.18c.23.088.456.2.67.305.176.088.359.18.539.252a1.663,1.663,0,0,1,.153.078,1.236,1.236,0,0,0,.143.074c.3.115.556.205.821.284a2.289,2.289,0,0,0,.533.059,3.412,3.412,0,0,1,.512.043,1.154,1.154,0,0,0,.222.01,1.405,1.405,0,0,1,.241.01,8.147,8.147,0,0,1,1.161.258,4.446,4.446,0,0,1,1.273.552c.072.049.143.1.211.16a4.753,4.753,0,0,1,.657.735,3.989,3.989,0,0,0,.5.577l.019.016c.218.184.444.376.7.55a3.11,3.11,0,0,0,1.655.585.067.067,0,0,1,.046-.035l.035-.01.031.022a.083.083,0,0,1,.027.106c0,.006-.008.018-.014.031l-.035.084c-.039.09-.054.131-.1.25l-.023.067c-.017.049-.035.1-.05.143a4.032,4.032,0,0,0,.469,2.478c.373.949.726,1.844.394,2.5-.489.962-.044,2.866.408,3.847l.058.127-.137-.016a28.779,28.779,0,0,1-4.358-.923,3.659,3.659,0,0,1-.717-.419c-.162-.111-.336-.235-.506-.358s-.346-.248-.512-.362a3.716,3.716,0,0,0-.746-.43,4.1,4.1,0,0,1-.859-.5l-.108-.074a3.813,3.813,0,0,0-1.254-.667c-.154-.019-.309-.037-.464-.049s-.3-.014-.444-.018a3.879,3.879,0,0,1-.7-.053,8.729,8.729,0,0,1-.877-.225c-.243-.076-.494-.166-.786-.278a.74.74,0,0,0-.149-.029.712.712,0,0,1-.191-.041,4.27,4.27,0,0,1-.529-.278,3.456,3.456,0,0,0-.593-.3c-.212-.078-.411-.143-.608-.2a8.439,8.439,0,0,0-2.026-.4l-.1-.006Z" transform="translate(-119.405 740.589)" fill="#ffd800"/>
+    </g>
+  </g>
+</svg>

BIN
v2tv/src/assets/img/threepk/threepkbg.png


BIN
v2tv/src/assets/pk.png


+ 239 - 0
v2tv/src/components/Headside.vue

@@ -0,0 +1,239 @@
+<template>
+  <div class="headerContainer dv1">
+    <div class="lt" @click="showfullScreen()">
+      <em> {{ nowWeeks }}</em> <span>  {{ nowDay }}</span>
+    </div>
+    <div class="rt">
+      {{ nowTime }}
+      <span @click="showUuid()">版本:{{ version }}</span>
+      <img @click="showConsole()" src="../static/img/blue.svg"/>
+      <img src="../static/img/wifi.svg"/>
+    </div>
+
+
+    <el-dialog
+        title=""
+        :visible.sync="dialogVisible"
+        width="60%"
+    >
+      <span class="eqSnText">当前设备uuid</span>
+      <br>
+      <span class="eqSnText">{{ eqSn }}</span>
+      <div id='qrcode' class="qrcode" ref="qrCodeUrl">
+      </div>
+      <table>
+        <th>
+            <td>版本</td>
+            <td>热点IP</td>
+        </th>
+        <tr>
+          <td>{{currunVersion}}</td>
+          <td>{{curheadapi}}</td>
+        </tr>
+      </table>
+      <span slot="footer" class="dialog-footer">
+            <el-button @click="dialogVisible = false">了解</el-button>
+  </span>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import global from '../Global'
+import '../libs/rem';
+import QRCode from 'qrcodejs2'
+
+export default {
+  data() {
+    return {
+      dialogVisible: false,
+      lastClickTime: 0,
+      count:0,
+      eqSn: localStorage.eqSn,
+      nowWeeks: '',
+      nowDay: '',
+      nowTime: '',
+      version: '',
+      currunVersion:runVersion,
+      curheadapi:headapi,
+    }
+  },
+  mounted() {
+    this.nowtimer = setInterval(() => {
+      let date = new Date();
+      let h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
+      let m = date.getMinutes() < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
+      let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
+      this.nowTime = h + m + s;
+      this.nowDayFunc();
+      // 获取版本号
+      this.version = localStorage.version;
+      this.currunVersion = runVersion
+      this.curheadapi = headapi
+    }, 1000);
+    this.getCurVersion();
+  },
+  beforeDestroy() {
+    clearInterval(this.timer);
+  },
+  methods: {
+    // 手动开启输出控制台
+    showConsole() {
+        let vconDom = document.getElementById('__vconsole');
+        this.toggleClass(vconDom,'show')
+    },
+    hasClass(obj, cls) {
+      return obj.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'));
+    },
+    addClass(obj, cls) {
+      if (!this.hasClass(obj, cls)) obj.className += " " + cls;
+    },
+    toggleClass(obj,cls){
+      if(this.hasClass(obj,cls)){
+        this.removeClass(obj, cls);
+      }else{
+        this.addClass(obj, cls);
+      }
+    },
+    removeClass(obj, cls) {
+      if (this.hasClass(obj, cls)) {
+        var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)');
+        obj.className = obj.className.replace(reg, ' ');
+      }
+    },
+    // 全屏展示
+    showfullScreen() {
+      let elem = document.body;
+      if (elem.webkitRequestFullScreen) {
+        elem.webkitRequestFullScreen();
+      } else if (elem.mozRequestFullScreen) {
+        elem.mozRequestFullScreen();
+      } else if (elem.requestFullScreen) {
+        elem.requestFullscreen();
+      } else {
+        notice.notice_show("浏览器不支持全屏API或已被禁用", null, null, null, true, true);
+      }
+    },
+    nowDayFunc() {
+      let days = new Date().getDay();
+      let wd = numberToWeekdays(days);
+      this.nowWeeks = wd;
+      this.nowDay = globalcurrent();
+    },
+    // 获取当前版本
+    getCurVersion() {
+      // console.log(version)
+    },
+    qrcode(code) {
+      this.$refs.qrCodeUrl.innerHTML = "";
+      let qrcode = new QRCode(this.$refs.qrCodeUrl, {
+        width: 100,
+        height: 100, // 高度
+        text: code, // 二维码内容
+        image: '',
+        render: 'canvas',// 设置渲染方式(有两种方式 table和canvas,默认是canvas)
+        background: '#f0f',
+        foreground: '#ff0',
+      });
+    },
+    showUuid() {
+      this.eqSn = localStorage.eqSn;
+      this.dialogVisible = true;
+      this.$nextTick(function () {
+        setTimeout(() => {
+          this.qrcode(localStorage.eqSn);
+        }, 500);
+      })
+    }
+  }
+}
+</script>
+
+<style scoped>
+.headerContainer {
+  height: 4%;
+  overflow: hidden;
+  display: block;
+  margin: 0 auto;
+  margin-top: 1%;
+  padding: 2%;
+  background: url("../static/img/logo.svg");
+  background-position: top center;
+  background-repeat: no-repeat;
+  background-size: 14%;
+}
+
+* {
+  font-family: vista;
+}
+
+.lt {
+  width: 40%;
+  float: left;
+  font-family: vista;
+  font-weight: normal;
+  font-size: 0.4rem;
+  text-align: left;
+  color: #fff;
+  line-height: 20%;
+}
+
+.rt {
+  width: 40%;
+  float: right;
+  font-family: vista;
+  font-weight: normal;
+  font-size: 0.4rem;
+  text-align: right;
+  color: #fff;
+  line-height: 20%;
+  padding-right: 14%;
+}
+
+.rt img {
+  position: absolute;
+  top: 4%;
+  right: 9%;
+  padding: 0;
+  margin: 0;
+  float: right;
+  width: 0.4rem;
+  height: 0.4rem;
+}
+
+.rt img:nth-child(2) {
+  right: 12%;
+}
+
+em {
+  float: left;
+  font-style: normal;
+  margin-right: 0.5rem;
+}
+
+.rt span {
+  position: absolute;
+  top: 4%;
+  right: 2%;
+  float: right;
+  color: #fff;
+  font-size: 0.2rem;
+  text-align: center;
+  background: rgba(0, 0, 0, 0.35);
+  width: 1.2rem;
+  height: 0.4rem;
+  line-height: 0.4rem;
+  cursor: pointer;
+}
+
+#qrcode {
+  width: 100%;
+  overflow: hidden;
+  display: block;
+  margin: 0 auto;
+}
+
+.eqSnText {
+  font-size: 0.4rem;
+}
+</style>

+ 241 - 0
v2tv/src/components/levelIcon.vue

@@ -0,0 +1,241 @@
+<template>
+    <div  :class="[{'levelIconTV':runVersion == 'test'},{'levelIconOutDoor':runVersion != 'test'},{'levelIcon':true}]">
+        <ul>
+            <li>
+          <span class="cube">
+             <div>
+                  0%-<br>
+            39%
+             </div>
+          </span>
+                <em>激活放松</em>
+            </li>
+            <li>
+          <span class="cube">
+             <div>
+             40%-<br>54%  </div>
+          </span>
+                <em>动态热身</em>
+            </li>
+            <li>
+          <span class="cube">
+             <div>
+             55%-<br>69%  </div>
+          </span>
+                <em>脂肪燃烧</em>
+            </li>
+            <li>
+          <span class="cube">
+             <div>
+             70%-<br>79%  </div>
+          </span>
+                <em>糖分消耗</em>
+            </li>
+            <li>
+          <span class="cube">
+             <div>
+             80%-<br>89%  </div>
+          </span>
+                <em>心肺训练</em>
+            </li>
+            <li>
+          <span class="cube">
+             <div>
+             ≥90%  </div>
+          </span>
+                <em>峰值锻炼</em>
+            </li>
+        </ul>
+    </div>
+</template>
+
+<script>
+    import '../Global'
+    export default {
+      data(){
+        return {
+          runVersion:runVersion
+        }
+      }
+    }
+</script>
+
+<style scoped>
+    .levelIcon {
+      width: 100%;
+      overflow: hidden;
+      display: block;
+      margin: 0 auto;
+      height: 5rem;
+    }
+    .levelIconOutDoor {
+      position: absolute;
+      bottom: 0.1rem;
+      padding-bottom: 5px;
+    }
+    .levelIconTV {
+      position: absolute;
+      bottom: 0.1rem;
+      padding-bottom: 5px;
+    }
+
+    .levelIcon ul {
+        width: 96%;
+        height: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0;
+        margin-left: 2%;
+    }
+
+    .levelIcon li {
+        width: 14.666666666667%;
+        height: 100%;
+        float: left;
+        padding-left: 2.4%;
+    }
+
+    .levelIcon li:nth-child(1) {
+        padding-left: 0;
+    }
+
+    .levelIcon li span {
+        width: 5rem;
+        height: 4rem;
+        overflow: hidden;
+        float: left;
+        background: url("../static/img/t1.svg");
+        background-repeat: no-repeat;
+        background-size: 100% 100%;
+        background-position: top center;
+        font-family: vista;
+        font-weight: normal;
+        font-size: 1.2rem;
+        letter-spacing: -0.05em;
+        text-align: center;
+        color: #fff;
+        line-height: 0.4rem;
+    }
+
+    .levelIcon li span div {
+        width: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        padding-top: 17%;
+    }
+
+    .levelIcon li:nth-child(2) span {
+        background: url("../static/img/t2.svg");
+        background-size: 100% 100%;
+        background-position: top center;
+    }
+
+    .levelIcon li:nth-child(3) span {
+        background: url("../static/img/t3.svg");
+        background-size: 100% 100%;
+        background-position: top center;
+    }
+
+    .levelIcon li:nth-child(4) span {
+        background: url("../static/img/t4.svg");
+        background-size: 100% 100%;
+        background-position: top center;
+    }
+
+    .levelIcon li:nth-child(5) span {
+        background: url("../static/img/t5.svg");
+        background-size: 100% 100%;
+        background-position: top center;
+    }
+
+    .levelIcon li:nth-child(6) span {
+        background: url("../static/img/t6.svg");
+        background-size: 100% 100%;
+        background-position: top center;
+    }
+
+    .levelIcon li:nth-child(6) span div {
+        margin-top: 13%;
+    }
+
+    .levelIcon li em {
+        float: right;
+        width: 4rem;
+        height: 42px;
+        border-radius: 21px;
+        background: rgba(2, 143, 225, 0.16);
+        border: 1px solid #028fe1;
+        box-shadow: 0px 0px 5px #028fe1;
+        font-family: vista;
+        font-weight: normal;
+        font-size: 24px;
+        text-align: center;
+        color: #fff;
+        font-style: normal;
+        line-height: 42px;
+        margin-top: 15%;
+        margin-left: 1%;
+    }
+
+    .levelIcon li:nth-child(2) em {
+        background: rgba(109, 38, 250, 0.16);
+        border: 1px solid #6d26fa;
+        box-shadow: 0px 0px 5px #6d26fa;
+    }
+
+    .levelIcon li:nth-child(3) em {
+        background: rgba(10, 177, 5, 0.16);
+        border: 1px solid #0ab105;
+        box-shadow: 0px 0px 5px #0ab105;
+
+    }
+
+    .levelIcon li:nth-child(4) em {
+        background: rgba(186, 204, 1, 0.16);
+        border: 1px solid #DFB200 ;
+        box-shadow: 0px 0px 5px #DFB200 ;
+    }
+
+    .levelIcon li:nth-child(5) em {
+        background: rgba(234, 136, 19, 0.16);
+        border: 1px solid #ea8813;
+        box-shadow: 0px 0px 5px #ea8813;
+    }
+
+    .levelIcon li:nth-child(6) em {
+        background: rgba(209, 17, 34, 0.16);
+        border: 1px solid #d11122;
+        box-shadow: 0px 0px 5px #d11122;
+    }
+
+    .levelIcon {
+        height: 70px;
+    }
+
+    .levelIcon li span {
+        width: 70px;
+        height: 70px;
+        font-size: 0.2rem;
+    }
+
+    .levelIcon li span div {
+        font-size: 16px;
+        padding-top: 0.19rem;
+        line-height: 22px;
+    }
+
+    .levelIcon ul {
+        width: 98%;
+    }
+
+    .levelIcon li em {
+        width: 45%;
+        height: 30px;
+        line-height: 30px;
+        font-size: 0.2rem;
+        margin-top: 11%;
+        margin-left: 3%;
+        float: left;
+    }
+</style>

+ 164 - 0
v2tv/src/components/newRecord.vue

@@ -0,0 +1,164 @@
+<template>
+    <el-dialog title="" :visible.sync="toperInfo.dialogVisible" :close-on-click-modal="false" >
+        <div class="eggContainer">
+            <div class="toper">
+                <!--<img v-bind:src="require('../static/img/people/' + toperInfo.toper.head)" alt="">-->
+                <img :src="toperInfo.toper.Head" alt="" v-if="toperInfo.toper.Head">
+                <img src="../static/img/people/flyhead.png" alt="" v-if="!toperInfo.toper.Head">
+                <span>{{toperInfo.toper.UserName}}</span>
+            </div>
+            <div class="info">
+                <div class="lt">
+                    <h5>{{toperInfo.toper.CleTitle}}</h5>
+                    <div class="detail">
+                        <em>{{toperInfo.toper.Cle|fmtInt}}</em>
+                        <span>{{toperInfo.toper.CleUnit}}</span>
+                    </div>
+                    <img class="icons" src="../static/img/newRecord/record_icon.svg"/>
+                </div>
+                <div class="rt">
+                    <h5>{{toperInfo.toper.CkTitle}}</h5>
+                    <div class="detail">
+                        <em>{{toperInfo.toper.Ck|fmtFloat}}</em>
+                        <span>{{toperInfo.toper.CkUnit}}</span>
+                    </div>
+                    <img class="icons" src="../static/img/newRecord/record_icon.svg"/>
+                </div>
+            </div>
+        </div>
+    </el-dialog>
+
+</template>
+
+<script>
+    export default {
+        data() {
+            return {
+                dialogTableVisible: true,
+                dialogFormVisible: false,
+            };
+        },
+        props: ['toperInfo'],
+        filters: {
+            fmtNum(val) {
+                if (val == 0) {
+                    return '--'
+                } else {
+                    if (parseInt(val) < 0) return 0;
+                    if (parseInt(val) > 0) return val
+                }
+            },
+            fmtFloat(val){
+                if (val == 0) {
+                    return '0'
+                } else {
+                    return parseFloat(val).toFixed(1);
+                }
+            },
+            fmtInt(val){
+                if (val == 0) {
+                    return '0'
+                } else {
+                    return parseInt(val);
+                }
+            },
+        },
+    }
+</script>
+
+<style scoped>
+    /*成就彩蛋*/
+    /deep/ .el-dialog {
+        width: 22rem;
+        height: 6rem;
+        background: url("../static/img/newRecord/record.svg");
+        background-position: top center;
+        background-repeat: no-repeat;
+        background-size: 120% 100%;
+        box-shadow: none;
+        padding-bottom: 1rem;
+    }
+
+    .eggContainer {
+        width: 100%;
+        overflow: hidden;
+        margin: 0 auto;
+        float: left;
+    }
+
+    .toper {
+        width: 2.2rem;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        color: #fff;
+        font-size: 0.3rem;
+        line-height: 0.9rem;
+    }
+    .toper img {
+        width: 0.7rem;
+        height: 0.7rem;
+        float: left;
+        border-radius: 250px;
+        border: 2px dotted #fff;
+        padding: 0.1rem;
+    }
+    .info {
+        width: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+    }
+    .info .lt {
+        width: 50%;
+        height: 4rem;
+        float: left;
+    }
+    .info .rt {
+        width: 50%;
+        height: 4rem;
+        float: left;
+    }
+    .info h5 {
+        width: 4rem;
+        height: 0.6rem;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+        background: url("../static/img/newRecord/record_title.png");
+        background-repeat: no-repeat;
+        background-size: 100%;
+        background-position: top center;
+        font-family: vista;
+        font-weight: normal;
+        font-size: 0.3rem;
+        color: #333;
+        text-align: center;
+        line-height: 0.6rem;
+    }
+
+    .info .detail {
+        width: 100%;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+    }
+    .detail em {
+        font-size: 1.8rem;
+        color: #fff;
+        font-style: normal;
+    }
+    .detail span {
+        color: #fff;
+        font-size: 0.3rem;
+        font-family: vista;
+    }
+    .info img {
+        position: relative;
+        width: 2rem;
+        height: 2rem;
+        float: left;
+        left: 0;
+        bottom: 1rem;
+    }
+</style>

+ 222 - 0
v2tv/src/components/newStudent.vue

@@ -0,0 +1,222 @@
+<template>
+  <el-dialog title="" class="sss" :visible.sync="studentInfo.dialogVisible" :close-on-click-modal="false">
+    <div :class="[{'newStudentContainer1':bg == 0},{'newStudentContainer2':bg != 0}]">
+      <div class="info">
+        <span v-for="(s,i) in studentInfo.Rs" v-if="i < 8">{{ s.Name }}</span>
+      </div>
+      <div class="studentTips">
+                <span>
+                    欢迎新学员加入英泓小飞龙俱乐部
+                </span>
+        <span>
+                    欢迎入伙,以后你就是英泓小飞龙俱乐部的人啦,<i style="color: red">❤</i>!
+                </span>
+      </div>
+      <div class="progress">
+        <el-progress :percentage="studentInfo.percent" :show-text="false"></el-progress>
+      </div>
+    </div>
+    <img class="long" src="../static/img/newStudent/long.png" alt="">
+  </el-dialog>
+
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      percent: 0,
+      totalTime: 0,
+      sumTime: 4,
+      bg: 0,
+    };
+  },
+  props: ['studentInfo'],
+  watch: {
+    studentInfo: {
+      handler(newName, oldName) {
+        let that = this;
+        if (newName.Rs != '') {
+          if (newName.Rs.length > 3) {
+            that.bg = 0
+          } else {
+            that.bg = 1
+          }
+        }
+      },
+      deep: true,
+      immediate: true
+    }
+  }
+}
+</script>
+
+<style scoped>
+/*成就彩蛋*/
+/deep/ .el-dialog {
+  width: 80%;
+  height: 6rem;
+  background: none;
+  /*background: url("../static/img/newStudent/newStudent1.png");*/
+  /*background-position: top center;*/
+  /*background-repeat: no-repeat;*/
+  /*background-size: 100% 100%;*/
+  box-shadow: none;
+  border: none;
+  padding-bottom: 1rem;
+}
+
+/deep/ .el-dialog__header {
+  display: none;
+}
+
+.newStudentContainer1 {
+  height: 6rem;
+  margin-top: 0;
+  background: url("../static/img/newStudent/newStudent1.png");
+  background-position: top center;
+  background-repeat: no-repeat;
+  background-size: 100% 100%;
+}
+
+.newStudentContainer2 {
+  height: 6rem;
+  margin-top: 0;
+  background: url("../static/img/newStudent/newStudent2.png");
+  background-position: top center;
+  background-repeat: no-repeat;
+  background-size: 100% 100%;
+}
+
+.info .lt {
+  width: 50%;
+  height: 4rem;
+  float: left;
+}
+
+.info .rt {
+  width: 50%;
+  height: 4rem;
+  float: left;
+}
+
+.info h5 {
+  width: 4rem;
+  height: 0.6rem;
+  overflow: hidden;
+  display: block;
+  margin: 0 auto;
+  background: url("../static/img/newRecord/record_title.png");
+  background-repeat: no-repeat;
+  background-size: 100%;
+  background-position: top center;
+  font-family: vista;
+  font-weight: normal;
+  font-size: 0.3rem;
+  color: #333;
+  text-align: center;
+  line-height: 0.6rem;
+}
+
+.info .detail {
+  width: 100%;
+  overflow: hidden;
+  display: block;
+  margin: 0 auto;
+}
+
+.detail em {
+  font-size: 1.8rem;
+  color: #fff;
+  font-style: normal;
+}
+
+.detail span {
+  color: #fff;
+  font-size: 0.6rem;
+  font-family: vista;
+}
+
+.info img {
+  position: relative;
+  width: 2rem;
+  height: 2rem;
+  float: left;
+  left: 0;
+  bottom: 1rem;
+}
+
+.info {
+  width: 50%;
+  height: 2rem;
+  overflow: hidden;
+  display: flex;
+  margin: 0 auto;
+  padding-top: 2.9rem;
+  flex: 1;
+  flex-wrap: wrap;
+  /*justify-content: space-between;*/
+  justify-content: center;
+}
+
+.info span {
+  font-weight: 900;
+  font-size: 0.4rem;
+  text-align: center;
+  color: #FDED2E;
+  text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.38);
+  /*margin-right: 1rem;*/
+  padding-left: 0.1rem;
+  padding-right: 0.1rem;
+  padding-bottom: 0rem;
+
+}
+
+.studentTips {
+  width: 100%;
+  overflow: hidden;
+  display: block;
+  margin: 0 auto;
+}
+
+.studentTips span {
+  width: 100%;
+  height: 0.3rem;
+  overflow: hidden;
+  display: flex;
+  margin: 0 auto;
+  padding-top: 0.1rem;
+  text-align: center;
+  font-weight: 500;
+  font-size: 0.3rem;
+  color: #000;
+  align-items: center;
+  justify-content: center;
+}
+
+.progress {
+  position: relative;
+  top: 0.1rem;
+  width: 94%;
+  overflow: hidden;
+  display: block;
+  margin: 0 auto;
+}
+
+/deep/ .el-progress-bar .el-progress-bar__outer {
+  height: 0.4rem;
+
+}
+
+/deep/ .el-progress-bar__inner {
+  background-color: #FFEE00;
+}
+
+.long {
+  position: relative;
+  float: right;
+  bottom: 1.6rem;
+  right: -0.5rem;
+  width: 1.5rem;
+}
+</style>

+ 39 - 0
v2tv/src/components/power.vue

@@ -0,0 +1,39 @@
+<template>
+    <div class="powerContainer" v-if="parseInt(curPower) > 0">
+        <img src="../static/img/power/power_full.svg" alt="" v-if="parseInt(curPower) >= 81">
+        <img src="../static/img/power/power_half.svg" alt="" v-if="parseInt(curPower) >= 41 && parseInt(curPower) < 81">
+        <img src="../static/img/power/power_low.svg" alt=""  v-if="parseInt(curPower) >= 21 && parseInt(curPower) < 40">
+        <img src="../static/img/power/power_none.svg" alt="" v-if="parseInt(curPower) <= 20">
+        <!--<span>{{curPower}}-->
+        <!--<em>%</em>-->
+        <!--</span>-->
+    </div>
+</template>
+
+<script>
+    import '../libs/rem';
+    export default {
+        props: ['curPower'],
+    }
+</script>
+
+<style scoped>
+    .powerContainer {
+        float: right!important;
+        color: #fff;
+        font-size: 0.23rem;
+        width: 0.55rem!important;
+        overflow: hidden;
+    }
+    .powerContainer img {
+        width: 0.33rem;
+        line-height: 0.3rem;
+    }
+    .powerContainer span {
+        display: inline-block;
+        line-height: 0.2rem;
+    }
+    .powerContainer em {
+        font-size: 0.15rem;
+    }
+</style>

+ 82 - 0
v2tv/src/components/sumNumber.vue

@@ -0,0 +1,82 @@
+<template>
+    <div class="sumNumberContainer">
+        <div class="imgContainer">
+                <span v-for="n in imgNumber">
+                    <em v-if="n == 0"><img src="../static/img/num/0.svg" alt=""></em>
+                    <em v-if="n == 1"><img src="../static/img/num/1.svg" alt=""></em>
+                    <em v-if="n == 2"><img src="../static/img/num/2.svg" alt=""></em>
+                    <em v-if="n == 3"><img src="../static/img/num/3.svg" alt=""></em>
+                    <em v-if="n == 4"><img src="../static/img/num/4.svg" alt=""></em>
+                    <em v-if="n == 5"><img src="../static/img/num/5.svg" alt=""></em>
+                    <em v-if="n == 6"><img src="../static/img/num/6.svg" alt=""></em>
+                    <em v-if="n == 7"><img src="../static/img/num/7.svg" alt=""></em>
+                    <em v-if="n == 8"><img src="../static/img/num/8.svg" alt=""></em>
+                    <em v-if="n == 9"><img src="../static/img/num/9.svg" alt=""></em>
+                </span>
+        </div>
+    </div>
+</template>
+
+<script>
+    export default {
+        data() {
+            return {
+                imgNumber: ''
+            }
+        },
+        props: ['curNumber'],
+        mounted(){
+            this.imgNumber = this.curNumber.toString();
+        },
+        watch: {
+            'curNumber' (val) {
+                this.numTurnImg(val);
+            }
+        },
+        methods: {
+            numTurnImg(num){
+                this.imgNumber = num.toString();
+            }
+        }
+    }
+</script>
+
+<style scoped>
+    .sumNumberContainer {
+        width: 100%;
+        /*width: 960px;*/
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+    }
+    .imgContainer {
+        width: 100%;
+        overflow: hidden;
+        display: flex;
+        margin: 0 auto;
+        justify-content: center;
+        text-align: center;
+        align-items:center;
+        flex: 1;
+        border-radius: 33rem;
+        /*background: linear-gradient(#000 0%, rgba(0, 0, 0, 0.1) 100%);*/
+
+    }
+    .imgContainer span {
+        /*width: 30px;*/
+        /*display: flex;*/
+        display: inline-block;
+        float: none;
+        /*justify-content: center;*/
+        /*align-items:center;*/
+        /*flex: 1;*/
+    }
+    .imgContainer span em img {
+        /*width: 100%;*/
+        width: 1.3rem;
+        height: 2rem;
+        overflow: hidden;
+        display: block;
+        margin: 0 auto;
+    }
+</style>

+ 20 - 0
v2tv/src/components/upimg.vue

@@ -0,0 +1,20 @@
+<template>
+    <div>
+        <h5>upimg</h5>
+
+
+    </div>
+</template>
+
+<script>
+    const qiniu = require('qiniu-js');
+    // or
+    import * as qiniu from 'qiniu-js';
+    export default {
+
+    }
+</script>
+
+<style scoped>
+
+</style>

+ 21 - 0
v2tv/src/libs/rem.js

@@ -0,0 +1,21 @@
+// 设置 rem 函数
+function setRem() {
+
+    // 320 默认大小16px; 320px = 20rem ;每个元素px基础上/16
+    let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;
+
+    console.log('htmlWidth:' + htmlWidth);
+
+    //得到html的Dom元素
+    let htmlDom = document.getElementsByTagName('html')[0];
+    //设置根元素字体大小
+    htmlDom.style.fontSize = htmlWidth / 20 + 'px';
+}
+
+// 初始化
+setRem();
+// 改变窗口大小时重新设置 rem
+window.onresize = function () {
+    setRem()
+};
+

+ 34 - 0
v2tv/src/main.js

@@ -0,0 +1,34 @@
+import Vue from 'vue'
+import './plugins/axios'
+import App from './App.vue'
+import router from './router'
+import 'default-passive-events'
+// import store from './store'
+import ElementUI from 'element-ui';
+import 'element-ui/lib/theme-chalk/index.css';
+import axios from 'axios'
+
+import VConsole from 'vconsole/dist/vconsole.min.js' //import vconsole
+
+if (process.env.NODE_ENV === 'development') {
+    // 显示控制台
+    let vConsole = new VConsole();
+    // 演示版本数据
+    require('./Mock/index.js');
+} else {
+    let vConsole = new VConsole();
+    // 演示版本数据
+    // require('./Mock/index.js');
+}
+
+Vue.config.productionTip = false;
+Vue.use(ElementUI);
+
+
+// store,
+new Vue({
+    router,
+
+    render: h => h(App)
+}).$mount('#app');
+

+ 61 - 0
v2tv/src/plugins/axios.js

@@ -0,0 +1,61 @@
+"use strict";
+
+import Vue from 'vue';
+import axios from "axios";
+
+// Full config:  https://github.com/axios/axios#request-config
+// axios.defaults.baseURL = process.env.baseURL || process.env.apiUrl || '';
+// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
+// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
+
+let config = {
+  // baseURL: process.env.baseURL || process.env.apiUrl || ""
+  // timeout: 60 * 1000, // Timeout
+  // withCredentials: true, // Check cross-site Access-Control
+};
+
+const _axios = axios.create(config);
+
+_axios.interceptors.request.use(
+  function(config) {
+    // Do something before request is sent
+    return config;
+  },
+  function(error) {
+    // Do something with request error
+    return Promise.reject(error);
+  }
+);
+
+// Add a response interceptor
+_axios.interceptors.response.use(
+  function(response) {
+    // Do something with response data
+    return response;
+  },
+  function(error) {
+    // Do something with response error
+    return Promise.reject(error);
+  }
+);
+
+Plugin.install = function(Vue, options) {
+  Vue.axios = _axios;
+  window.axios = _axios;
+  Object.defineProperties(Vue.prototype, {
+    axios: {
+      get() {
+        return _axios;
+      }
+    },
+    $axios: {
+      get() {
+        return _axios;
+      }
+    },
+  });
+};
+
+Vue.use(Plugin)
+
+export default Plugin;

+ 125 - 0
v2tv/src/router/index.js

@@ -0,0 +1,125 @@
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+// 加载条
+import NProgress from 'nprogress'
+import 'nprogress/nprogress.css'
+import VueAMap from 'vue-amap';
+
+Vue.use(VueRouter);
+// Vue.use(VueAMap);
+
+// VueAMap.initAMapApiLoader({
+//     key: 'your amap key',
+//     plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
+//     // 默认高德 sdk 版本为 1.4.4
+//     v: '1.4.4'
+// });
+
+const routes = [
+    {
+        path: '/',
+        component: () => import( '../views/Index.vue'),
+        children: [
+            {
+                path: '/',
+                name: 'Wait',
+                component: () => import('@/views/Wait.vue'),
+                meta: {
+                    title: "等待",
+                    clmid: "1",
+                }
+            },{
+                path: '/main',
+                name: 'Main',
+                component: () => import('@/views/Main.vue'),
+                meta: {
+                    title: "团课",
+                    clmid: "1",
+                }
+            },{
+                path: '/rank',
+                name: 'Rank',
+                component: () => import('@/views/Rank.vue'),
+                meta: {
+                    title: "排名",
+                    clmid: "2",
+                }
+            },{
+                path: '/pk',
+                name: 'pk',
+                component: () => import('@/views/pk.vue'),
+                meta: {
+                    title: "pk",
+                    clmid: "3",
+                }
+            },{
+                path: '/2pkRank',
+                name: '2pkRank',
+                component: () => import('@/views/2pkRank.vue'),
+                meta: {
+                    title: "2pkRank",
+                    clmid: "5",
+                }
+            },{
+                path: '/threepk',
+                name: 'threepk',
+                component: () => import('@/views/threepk.vue'),
+                meta: {
+                    title: "threepk",
+                    clmid: "6",
+                }
+            },{
+                path: '/3pkRank',
+                name: '3pkRank',
+                component: () => import('@/views/3pkRank.vue'),
+                meta: {
+                    title: "3pkRank",
+                    clmid: "6",
+                }
+            },{
+                path: '/test',
+                name: 'test',
+                component: () => import('@/views/test.vue'),
+                meta: {
+                    title: "test",
+                    clmid: "6",
+                }
+            },
+        ]
+    }, {
+        path: '*',
+        name: '404',
+        component: () => import( '../views/404.vue')
+    },
+];
+
+const originalPush = VueRouter.prototype.push;
+VueRouter.prototype.push = function push(location) {
+    return originalPush.call(this, location).catch(err => err)
+};
+
+const router = new VueRouter({
+    // mode: 'history',
+    mode: 'hash',
+    base: process.env.BASE_URL,
+    routes
+});
+
+// 路由守卫
+router.beforeEach((to,from,next)=>{
+    NProgress.start();
+    const isLogin = localStorage.token? true : false;
+    if(to.path == '/login' || to.path == '/register'){//'login'和'register'相当于是路由白名单
+        next();
+    }else{
+        //如果token存在,就正常跳转,如果不存在,则说明未登陆,则跳转到'login'
+        // isLogin? next() : next("/login");
+        next();
+    }
+});
+
+router.afterEach(() => {
+    NProgress.done()
+});
+
+export default router

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác