zhang 4 年之前
父節點
當前提交
5741fe1663
共有 3 個文件被更改,包括 28 次插入25 次删除
  1. 8 3
      manifest.json
  2. 12 14
      pages/index/index.vue
  3. 8 8
      pages/second/second.vue

+ 8 - 3
manifest.json

@@ -8,7 +8,7 @@
     /* 5+App特有相关 */
     "app-plus" : {
         "usingComponents" : true,
-		"nvueStyleCompiler" : "uni-app",
+        "nvueStyleCompiler" : "uni-app",
         "compilerVersion" : 3,
         "splashscreen" : {
             "alwaysShowBeforeRender" : true,
@@ -65,7 +65,12 @@
     "mp-toutiao" : {
         "usingComponents" : true
     },
-    "uniStatistics": {  
-        "enable": false
+    "uniStatistics" : {
+        "enable" : false
+    },
+    "h5" : {
+        "devServer" : {
+            "https" : false
+        }
     }
 }

+ 12 - 14
pages/index/index.vue

@@ -67,20 +67,18 @@
 	export default {
 		data() {
 			return {
-				rank: [], //档口人数级别
-				minNum: 5, //第一级别的人数
-				maxNum: 12, //第二级别的人数
-				shopNum1: [], //第一列档口
-				shopNum2: [], //第二列档口
+				rank: [], 
+				minNum: 5, 
+				maxNum: 12, 
+				shopNum1: [], 
+				shopNum2: [], 
 				shopNum: ['①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '⑪', '⑫', '⑬', '⑭', '⑮', '⑯', '⑰', '⑱', '⑲',
 					'⑳'
-				], //档口名称编号
+				], 
 				shopName: ['窗口名称1', '窗口名称2', '窗口名称3', '窗口名称4', '窗口名称5', '窗口名称6', '窗口名称7', '窗口名称8', '窗口名称9', '窗口名称10',
 					'窗口名称11', '窗口名称12', '窗口名称13', '窗口名称14', '窗口名称15', '窗口名称16', '窗口名称17', '窗口名称18', '窗口名称19', '窗口名称20'
-				], //档口名称
-				peopleNum: [6, 12, 6, 14, 5, 4, 17, 6, 9, 13, 6, 1, 4, 9, 5, 14, 5, 3, 2, 10], //每个档口的人数
-				// shopNum1: ['①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩'], //第一列档口
-				// shopNum2: ['⑳', '⑲', '⑱', '⑰', '⑯', '⑮', '⑭', '⑬', '⑫', '⑪'], //第二列档口
+				], 
+				
 			}
 		},
 		onLoad() {
@@ -90,12 +88,12 @@
 			this.getRank()
 		},
 		methods: {
-			//获取标号
+			
 			getShopNum() {
 				this.shopNum1 = this.shopNum.slice(0, 10)
 				this.shopNum2 = this.shopNum.slice(10, 20).reverse()
 			},
-			//获取人数级别
+			
 			getRank() {
 				var i = 0
 				this.rank = []
@@ -112,7 +110,7 @@
 				}
 				// console.log(this.rank)
 			},
-			//按键显示
+			
 			getInfo(e) {
 				// console.log(e)
 				uni.showToast({
@@ -121,7 +119,7 @@
 					duration: 2000
 				});
 			},
-			//跳转
+			
 			navigatorToSec() {
 				uni.navigateTo({
 					url: '/pages/second/second',

+ 8 - 8
pages/second/second.vue

@@ -75,18 +75,18 @@
 	export default {
 		data() {
 			return {
-				minNum: 5, //第一级别的人数
-				maxNum: 12, //第二级别的人数
-				rank: [], //档口人数级别
-				peopleNum: [6, 13, 3, 2, 10], //档口人数
-				shopName: ['1号窗口', '2号窗口', '蛋糕店', '3号窗口', '4号窗口', '5号窗口'], //档口名称
+				minNum: 5, 
+				maxNum: 12, 
+				rank: [], 
+				peopleNum: [6, 13, 3, 2, 10], 
+				shopName: ['1号窗口', '2号窗口', '蛋糕店', '3号窗口', '4号窗口', '5号窗口'], 
 			}
 		},
 		onLoad() {
 			this.getRank()
 		},
 		methods: {
-			//获取人数级别
+			
 			getRank() {
 				var i = 0
 				this.rank = []
@@ -101,13 +101,13 @@
 					i += 1
 				}
 			},
-			//跳转到第一层
+			
 			navigatorToFir() {
 				uni.navigateTo({
 					url: '/pages/index/index',
 				});
 			},
-			//按键显示
+			
 			getInfo(e) {
 				// console.log(e)
 				uni.showToast({