guhongwei il y a 2 ans
Parent
commit
d1c2f9240a
100 fichiers modifiés avec 3784 ajouts et 2559 suppressions
  1. 27 3
      App.vue
  2. 2 2
      common/config.js
  3. 121 115
      manifest.json
  4. 19 14
      pages.json
  5. 32 31
      pages/index/index.vue
  6. 10 0
      pagesCommon/test/index.vue
  7. 47 0
      pagesHome/account/index.vue
  8. 47 0
      pagesHome/app/index.vue
  9. 108 0
      pagesHome/components/home-frame.vue
  10. 47 0
      pagesHome/find/index.vue
  11. 311 16
      pagesHome/home/index.vue
  12. 47 0
      pagesHome/hot/index.vue
  13. 0 142
      pagesHome/prize/index.vue
  14. 0 238
      pagesHome/video/index.vue
  15. 0 53
      pagesHome/video/info.vue
  16. 0 0
      unpackage/dist/build/.automator/app-plus/.automator.json
  17. 0 1
      unpackage/dist/build/app-plus/__uniappchooselocation.js
  18. BIN
      unpackage/dist/build/app-plus/__uniapperror.png
  19. 0 1
      unpackage/dist/build/app-plus/__uniappes6.js
  20. 0 1
      unpackage/dist/build/app-plus/__uniappopenlocation.js
  21. 0 1
      unpackage/dist/build/app-plus/__uniapppicker.js
  22. 0 8
      unpackage/dist/build/app-plus/__uniappquill.js
  23. 0 1
      unpackage/dist/build/app-plus/__uniappquillimageresize.js
  24. 0 1
      unpackage/dist/build/app-plus/__uniappscan.js
  25. BIN
      unpackage/dist/build/app-plus/__uniappsuccess.png
  26. 0 25
      unpackage/dist/build/app-plus/__uniappview.html
  27. 0 8
      unpackage/dist/build/app-plus/app-config-service.js
  28. 0 1
      unpackage/dist/build/app-plus/app-config.js
  29. 0 2
      unpackage/dist/build/app-plus/app-service.js
  30. 0 1
      unpackage/dist/build/app-plus/app-view.js
  31. 0 1
      unpackage/dist/build/app-plus/manifest.json
  32. BIN
      unpackage/dist/build/app-plus/static/logo.jpg
  33. BIN
      unpackage/dist/build/app-plus/uni_modules/uni-icons/components/uni-icons/uniicons.ttf
  34. 0 1
      unpackage/dist/build/app-plus/view.css
  35. 0 6
      unpackage/dist/build/app-plus/view.umd.min.js
  36. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  37. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
  38. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  39. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map
  40. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  41. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesCommon/test/index.js.map
  42. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/account/index.js.map
  43. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/app/index.js.map
  44. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/components/home-frame.js.map
  45. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/find/index.js.map
  46. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/home/index.js.map
  47. 0 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/home/video.js.map
  48. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/hot/index.js.map
  49. 0 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/prize/index.js.map
  50. 0 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/video/index.js.map
  51. 0 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/video/info.js.map
  52. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
  53. 2 2
      unpackage/dist/dev/app-plus/app-config-service.js
  54. 100 733
      unpackage/dist/dev/app-plus/app-service.js
  55. 854 455
      unpackage/dist/dev/app-plus/app-view.js
  56. 1 1
      unpackage/dist/dev/app-plus/manifest.json
  57. 105 0
      unpackage/dist/dev/app-plus/pagesCommon/app-sub-service.js
  58. 729 0
      unpackage/dist/dev/app-plus/pagesHome/app-sub-service.js
  59. 8 7
      unpackage/dist/dev/mp-weixin/app.json
  60. 13 3
      unpackage/dist/dev/mp-weixin/common/main.js
  61. 14 0
      unpackage/dist/dev/mp-weixin/common/main.wxss
  62. 2 2
      unpackage/dist/dev/mp-weixin/common/runtime.js
  63. 23 8
      unpackage/dist/dev/mp-weixin/common/vendor.js
  64. 15 15
      unpackage/dist/dev/mp-weixin/components/upload/index.js
  65. 43 31
      unpackage/dist/dev/mp-weixin/pages/index/index.js
  66. 1 1
      unpackage/dist/dev/mp-weixin/pages/index/index.wxml
  67. 1 1
      unpackage/dist/dev/mp-weixin/pages/index/index.wxss
  68. 12 2
      unpackage/dist/dev/mp-weixin/pagesCommon/test/index.js
  69. 209 0
      unpackage/dist/dev/mp-weixin/pagesHome/account/index.js
  70. 7 0
      unpackage/dist/dev/mp-weixin/pagesHome/account/index.json
  71. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/account/index.wxml
  72. 0 8
      unpackage/dist/dev/mp-weixin/pagesHome/video/info.wxss
  73. 73 100
      unpackage/dist/dev/mp-weixin/pagesHome/video/info.js
  74. 7 0
      unpackage/dist/dev/mp-weixin/pagesHome/app/index.json
  75. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/app/index.wxml
  76. 8 0
      unpackage/dist/dev/mp-weixin/pagesHome/app/index.wxss
  77. 257 0
      unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.js
  78. 4 0
      unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.json
  79. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.wxml
  80. 36 0
      unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.wxss
  81. 60 128
      unpackage/dist/dev/mp-weixin/pagesHome/prize/index.js
  82. 7 0
      unpackage/dist/dev/mp-weixin/pagesHome/find/index.json
  83. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/find/index.wxml
  84. 8 0
      unpackage/dist/dev/mp-weixin/pagesHome/find/index.wxss
  85. 198 18
      unpackage/dist/dev/mp-weixin/pagesHome/home/index.js
  86. 4 2
      unpackage/dist/dev/mp-weixin/pagesHome/home/index.json
  87. 1 1
      unpackage/dist/dev/mp-weixin/pagesHome/home/index.wxml
  88. 72 4
      unpackage/dist/dev/mp-weixin/pagesHome/home/index.wxss
  89. 59 234
      unpackage/dist/dev/mp-weixin/pagesHome/video/index.js
  90. 7 0
      unpackage/dist/dev/mp-weixin/pagesHome/hot/index.json
  91. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/hot/index.wxml
  92. 8 0
      unpackage/dist/dev/mp-weixin/pagesHome/hot/index.wxss
  93. 0 5
      unpackage/dist/dev/mp-weixin/pagesHome/prize/index.json
  94. 0 1
      unpackage/dist/dev/mp-weixin/pagesHome/prize/index.wxml
  95. 0 27
      unpackage/dist/dev/mp-weixin/pagesHome/prize/index.wxss
  96. 0 5
      unpackage/dist/dev/mp-weixin/pagesHome/video/index.json
  97. 0 1
      unpackage/dist/dev/mp-weixin/pagesHome/video/index.wxml
  98. 0 74
      unpackage/dist/dev/mp-weixin/pagesHome/video/index.wxss
  99. 0 5
      unpackage/dist/dev/mp-weixin/pagesHome/video/info.json
  100. 0 0
      unpackage/dist/dev/mp-weixin/pagesHome/video/info.wxml

+ 27 - 3
App.vue

@@ -7,11 +7,17 @@
 		onShow() {},
 		onLaunch() {
 			const that = this;
-			that.checkVersion()
+			// 设备信息
+			let system = that.$config.system;
+			if (system.uniPlatform == 'app') {
+				// that.appCheck()
+			} else if (system.uniPlatform == 'mp-weixin') {
+				that.weixinCheck()
+			}
 		},
 		methods: {
-			// 检查版本
-			checkVersion() {
+			// app检查版本
+			appCheck() {
 				const that = this;
 				plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
 					uni.request({
@@ -63,6 +69,10 @@
 						}
 					}
 				})
+			},
+			// 微信检查版本
+			weixinCheck() {
+				console.log('微信检查本版');
 			}
 		},
 	}
@@ -70,4 +80,18 @@
 
 <style>
 	@import url('@/uni.scss');
+	.textOver {
+		overflow: hidden;
+		text-overflow: ellipsis;
+		white-space: nowrap;
+	}
+	page {
+		/* 主要背景色 */
+		--rgb000: #000000;
+		--rgb111: #111111;
+		--rgbfff: #ffffff;
+		--rgbf1f: #f1f1f1;
+		--rgb61: #161616;
+		--rgbfa4: #FA4343;
+	}
 </style>

+ 2 - 2
common/config.js

@@ -1,7 +1,7 @@
 export default {
 	// 接口地址
-	serverUrl: "http://47.93.34.200",//http://47.93.34.200   http://www.freeskyghw.cn
-	wechatUrl: "https://broadcast.waityou24.cn",
+	serverUrl: "http://192.168.1.144:10102",//http://47.93.34.200   http://www.freeskyghw.cn
+	wechatUrl: "//http://47.93.34.200",
 	// 设备信息
 	system: uni.getSystemInfoSync(),
 	// 节目类型

+ 121 - 115
manifest.json

@@ -1,117 +1,123 @@
 {
-    "name" : "益智游戏",
-    "appid" : "__UNI__2080341",
-    "description" : "",
-    "versionName" : "1.0.9",
-    "versionCode" : 109,
-    "transformPx" : false,
-    /* 5+App特有相关 */
-    "app-plus" : {
-        "usingComponents" : true,
-        "nvueStyleCompiler" : "uni-app",
-        "compilerVersion" : 3,
-        "splashscreen" : {
-            "alwaysShowBeforeRender" : true,
-            "waiting" : true,
-            "autoclose" : true,
-            "delay" : 0
-        },
-        /* 模块配置 */
-        "modules" : {
-            "VideoPlayer" : {}
-        },
-        /* 应用发布信息 */
-        "distribute" : {
-            /* android打包配置 */
-            "android" : {
-                "permissions" : [
-                    "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
-                    "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
-                    "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
-                    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
-                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
-                    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
-                ],
-                "autoSdkPermissions" : true
-            },
-            /* ios打包配置 */
-            "ios" : {
-                "dSYMs" : false
-            },
-            /* SDK配置 */
-            "sdkConfigs" : {
-                "ad" : {}
-            },
-            "icons" : {
-                "android" : {
-                    "hdpi" : "unpackage/res/icons/72x72.png",
-                    "xhdpi" : "unpackage/res/icons/96x96.png",
-                    "xxhdpi" : "unpackage/res/icons/144x144.png",
-                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
-                },
-                "ios" : {
-                    "appstore" : "unpackage/res/icons/1024x1024.png",
-                    "ipad" : {
-                        "app" : "unpackage/res/icons/76x76.png",
-                        "app@2x" : "unpackage/res/icons/152x152.png",
-                        "notification" : "unpackage/res/icons/20x20.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "proapp@2x" : "unpackage/res/icons/167x167.png",
-                        "settings" : "unpackage/res/icons/29x29.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "spotlight" : "unpackage/res/icons/40x40.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png"
-                    },
-                    "iphone" : {
-                        "app@2x" : "unpackage/res/icons/120x120.png",
-                        "app@3x" : "unpackage/res/icons/180x180.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "notification@3x" : "unpackage/res/icons/60x60.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "settings@3x" : "unpackage/res/icons/87x87.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png",
-                        "spotlight@3x" : "unpackage/res/icons/120x120.png"
-                    }
-                }
-            },
-            "splashscreen" : {
-                "androidStyle" : "common",
-                "useOriginalMsgbox" : false
-            }
-        },
-        "nativePlugins" : {}
-    },
-    /* 快应用特有相关 */
-    "quickapp" : {},
-    /* 小程序特有相关 */
-    "mp-weixin" : {
-        "appid" : "wx0fd4b616bc7cf3bb",
-        "setting" : {
-            "urlCheck" : false,
-            "es6" : true,
-            "postcss" : true,
-            "minified" : true
-        },
-        "usingComponents" : true,
-        "permission" : {},
-        "lazyCodeLoading" : "requiredComponents"
-    },
-    "mp-alipay" : {
-        "usingComponents" : true
-    },
-    "mp-baidu" : {
-        "usingComponents" : true
-    },
-    "mp-toutiao" : {
-        "usingComponents" : true
-    },
-    "uniStatistics" : {
-        "enable" : false
-    },
-    "vueVersion" : "2"
+	"name": "益智游戏",
+	"appid": "__UNI__2080341",
+	"description": "",
+	"versionName": "1.0.9",
+	"versionCode": 109,
+	"transformPx": false,
+	/* 5+App特有相关 */
+	"app-plus": {
+		"usingComponents": true,
+		"nvueStyleCompiler": "uni-app",
+		"compilerVersion": 3,
+		"splashscreen": {
+			"alwaysShowBeforeRender": true,
+			"waiting": true,
+			"autoclose": true,
+			"delay": 0
+		},
+		/* 模块配置 */
+		"modules": {
+			"VideoPlayer": {}
+		},
+		/* 应用发布信息 */
+		"distribute": {
+			/* android打包配置 */
+			"android": {
+				"permissions": [
+					"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
+					"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
+					"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
+					"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
+					"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+					"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
+					"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
+					"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
+					"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+					"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+					"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
+				],
+				"autoSdkPermissions": true
+			},
+			/* ios打包配置 */
+			"ios": {
+				"dSYMs": false
+			},
+			/* SDK配置 */
+			"sdkConfigs": {
+				"ad": {}
+			},
+			"icons": {
+				"android": {
+					"hdpi": "unpackage/res/icons/72x72.png",
+					"xhdpi": "unpackage/res/icons/96x96.png",
+					"xxhdpi": "unpackage/res/icons/144x144.png",
+					"xxxhdpi": "unpackage/res/icons/192x192.png"
+				},
+				"ios": {
+					"appstore": "unpackage/res/icons/1024x1024.png",
+					"ipad": {
+						"app": "unpackage/res/icons/76x76.png",
+						"app@2x": "unpackage/res/icons/152x152.png",
+						"notification": "unpackage/res/icons/20x20.png",
+						"notification@2x": "unpackage/res/icons/40x40.png",
+						"proapp@2x": "unpackage/res/icons/167x167.png",
+						"settings": "unpackage/res/icons/29x29.png",
+						"settings@2x": "unpackage/res/icons/58x58.png",
+						"spotlight": "unpackage/res/icons/40x40.png",
+						"spotlight@2x": "unpackage/res/icons/80x80.png"
+					},
+					"iphone": {
+						"app@2x": "unpackage/res/icons/120x120.png",
+						"app@3x": "unpackage/res/icons/180x180.png",
+						"notification@2x": "unpackage/res/icons/40x40.png",
+						"notification@3x": "unpackage/res/icons/60x60.png",
+						"settings@2x": "unpackage/res/icons/58x58.png",
+						"settings@3x": "unpackage/res/icons/87x87.png",
+						"spotlight@2x": "unpackage/res/icons/80x80.png",
+						"spotlight@3x": "unpackage/res/icons/120x120.png"
+					}
+				}
+			},
+			"splashscreen": {
+				"androidStyle": "common",
+				"useOriginalMsgbox": false
+			}
+		},
+		"nativePlugins": {},
+		"optimization": {
+			"subPackages": true
+		}
+	},
+	/* 快应用特有相关 */
+	"quickapp": {},
+	/* 小程序特有相关 */
+	"mp-weixin": {
+		"appid": "wx0fd4b616bc7cf3bb",
+		"setting": {
+			"urlCheck": false,
+			"es6": true,
+			"postcss": true,
+			"minified": true
+		},
+		"usingComponents": true,
+		"permission": {},
+		"lazyCodeLoading": "requiredComponents",
+		"optimization": {
+			"subPackages": true
+		}
+	},
+	"mp-alipay": {
+		"usingComponents": true
+	},
+	"mp-baidu": {
+		"usingComponents": true
+	},
+	"mp-toutiao": {
+		"usingComponents": true
+	},
+	"uniStatistics": {
+		"enable": false
+	},
+	"vueVersion": "2"
 }

+ 19 - 14
pages.json

@@ -24,39 +24,44 @@
 				{
 					"path": "home/index",
 					"style": {
-						"navigationBarTitleText": "系统首页",
+						"navigationBarTitleText": "首页",
 						"enablePullDownRefresh": true //是否启用下拉刷新
 					}
-				},
-				{
-					"path": "video/index",
+				}, {
+					"path": "hot/index",
 					"style": {
-						"navigationBarTitleText": "电视节目",
+						"navigationBarTitleText": "热播",
 						"enablePullDownRefresh": true //是否启用下拉刷新
 					}
 				},
 				{
-					"path": "video/info",
+					"path": "app/index",
+					"style": {
+						"navigationBarTitleText": "应用",
+						"enablePullDownRefresh": true //是否启用下拉刷新
+					}
+				}, {
+					"path": "find/index",
 					"style": {
-						"navigationBarTitleText": "详细信息",
+						"navigationBarTitleText": "发现",
 						"enablePullDownRefresh": true //是否启用下拉刷新
 					}
 				},
 				{
-					"path": "prize/index",
+					"path": "account/index",
 					"style": {
-						"navigationBarTitleText": "抽奖",
-						"enablePullDownRefresh": true //是否启用下拉刷新
+						"navigationBarTitleText": "账户",
+						"enablePullDownRefresh": false //是否启用下拉刷新
 					}
 				}
 			]
 		}
 	],
 	"globalStyle": {
-		"navigationBarTextStyle": "black",
-		"navigationBarTitleText": "uni-app",
-		"navigationBarBackgroundColor": "#F8F8F8",
-		"backgroundColor": "#F8F8F8"
+		"navigationBarTextStyle": "white",
+		"navigationBarTitleText": "益智游戏",
+		"navigationBarBackgroundColor": "#111111",
+		"backgroundColor": "#000000"
 	},
 	"uniIdRouter": {}
 }

+ 32 - 31
pages/index/index.vue

@@ -1,8 +1,8 @@
 <template>
 	<view class="content">
 		<view class="one">
-			<image :src="logoUrl" mode="aspectFit"></image>
-			<view class="version">{{versionInfo.version}}</view>
+			<image :src="basicInfo.logo_url&&basicInfo.logo_url.length>0?basicInfo.logo_url[0].url:''" mode="aspectFit">
+			</image>
 		</view>
 		<view class="two">
 			<view class="two_1">
@@ -25,43 +25,44 @@
 	export default {
 		data() {
 			return {
-				logoUrl: 'https://broadcast.waityou24.cn/files/test/20230116145912.jpg',
+				basicInfo: {},
 				timer: null,
-				versionInfo: {}, 
 			}
 		},
-		onLoad() {
-			const that = this;
-			that.search('/pagesHome/home/index');
-		},
+		onLoad() {},
 		onShow() {
 			const that = this;
-			// 获取版本信息
-			plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
-				that.$set(that, `versionInfo`, wgtinfo)
-				that.setTitle(wgtinfo)
-			})
+			that.search();
 		},
 		methods: {
-			async search(e) {
+			async search() {
 				const that = this;
-				uni.redirectTo({
-					url: e
-				})
-				// that.timer = setTimeout(() => {
-				// 	uni.redirectTo({
-				// 		url: e
-				// 	})
-				// 	clearTimeout(that.timer);
-				// 	that.timer = null;
-				// }, 2000)
+				let url = '/pagesHome/home/index';
+				let res = await that.$api('appbasic', 'GET');
+				if (res.errcode == '0') {
+					that.$set(that, `basicInfo`, res.data)
+					uni.setStorage({
+						key: 'basicInfo',
+						data: res.data,
+						success: function() {
+							// 不可返回
+							// uni.redirectTo({
+							// 	url
+							// })
+							// 可返回
+							uni.navigateTo({
+								url
+							})
+						}
+					});
+
+				} else {
+					uni.showToast({
+						title: res.errmsg,
+						icon: 'none'
+					})
+				}
 			},
-			// 赋值标题栏
-			setTitle(e) {
-				uni.setNavigationBarTitle({
-					title: e.name
-				});
-			}
 		}
 	}
 </script>
@@ -76,7 +77,7 @@
 				width: 50vw;
 				height: 50vw;
 				border-radius: 90%;
-				box-shadow: 0 0 5px #f1f1f1;
+				box-shadow: 0 0 5px var(--rgbf1f);
 				margin: 30vw 0 0 0;
 			}
 

+ 10 - 0
pagesCommon/test/index.vue

@@ -15,6 +15,16 @@
 		data() {
 			return {
 				file: [],
+				logo: [ //
+					{
+						id: "20230216100918",
+						name: "头像.jpg",
+						status: "success",
+						uid: 1676513358695,
+						uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+						url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+					}
+				]
 			};
 		},
 		onLoad() {},

+ 47 - 0
pagesHome/account/index.vue

@@ -0,0 +1,47 @@
+<template>
+	<home-frame @toPath="toPath">
+		账户
+	</home-frame>
+</template>
+
+<script>
+	import homeFrame from "../components/home-frame.vue";
+	export default {
+		components: {
+			homeFrame
+		},
+		data() {
+			return {
+
+			};
+		},
+		onLoad() {
+
+		},
+		onShow() {
+
+		},
+		methods: {
+			// 跳转页面
+			toPath(e) {
+				let url = `/${e.route}`;
+				if (e.type == '0') uni.navigateTo({
+					url
+				})
+				else if (e.type == '1') uni.redirectTo({
+					url
+				})
+				else if (e.type == '2') uni.reLaunch({
+					url
+				})
+				else if (e.type == '3') uni.switchTab({
+					url
+				})
+			}
+		},
+	};
+</script>
+
+<style lang="scss">
+	.content {}
+</style>

+ 47 - 0
pagesHome/app/index.vue

@@ -0,0 +1,47 @@
+<template>
+	<home-frame @toPath="toPath">
+		app
+	</home-frame>
+</template>
+
+<script>
+	import homeFrame from "../components/home-frame.vue";
+	export default {
+		components: {
+			homeFrame
+		},
+		data() {
+			return {
+
+			};
+		},
+		onLoad() {
+
+		},
+		onShow() {
+
+		},
+		methods: {
+			// 跳转页面
+			toPath(e) {
+				let url = `/${e.route}`;
+				if (e.type == '0') uni.navigateTo({
+					url
+				})
+				else if (e.type == '1') uni.redirectTo({
+					url
+				})
+				else if (e.type == '2') uni.reLaunch({
+					url
+				})
+				else if (e.type == '3') uni.switchTab({
+					url
+				})
+			}
+		},
+	};
+</script>
+
+<style lang="scss">
+	.content {}
+</style>

+ 108 - 0
pagesHome/components/home-frame.vue

@@ -0,0 +1,108 @@
+<template>
+	<view class="content">
+		<view class="info">
+			<slot></slot>
+		</view>
+		<view class="foot">
+			<view class="list" v-for="(item,index) in list" :key="index" @tap="toPath(index,item)"
+				v-if="item.is_use=='0'">
+				<image class="image" :src="item.normal.length>0?item.normal[0].url:''" mode="" v-if="active!=index">
+				</image>
+				<image class="image" :src="item.active.length>0?item.active[0].url:''" mode="" v-else></image>
+				<view class="name" :style="{color:active==index?'var(--rgbfa4)':''}">{{item.name}}
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		props: {
+
+		},
+		data() {
+			return {
+				// 平台信息
+				basicInfo: {},
+				// 底部菜单
+				active: 0,
+				list: []
+			}
+		},
+		onLoad() {},
+		onShow() {},
+		created() {
+			const that = this;
+			that.search()
+		},
+		methods: {
+			search() {
+				const that = this;
+				let pages = getCurrentPages();
+				let currentPage = pages[pages.length - 1];
+				uni.getStorage({
+					key: 'basicInfo',
+					success: (res) => {
+						let data = res.data
+						that.$set(that, `basicInfo`, data);
+						// 底部菜单
+						let foot_menus = data.foot_menus;
+						let list = foot_menus.sort((a, b) => {
+							return a.sort - b.sort
+						});
+						that.$set(that, `list`, list);
+						let routeInfo = list.find((i) => i.route == currentPage.route);
+						if (routeInfo) {
+							let index = list.findIndex((i) => i.route == currentPage.route);
+							that.$set(that, `active`, index);
+						}
+
+					}
+				})
+			},
+			toPath(index, e) {
+				const that = this;
+				that.$set(that, `active`, index);
+				that.$emit('toPath', e)
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+	.content {
+		.info {
+			width: 100vw;
+			height: 92vh;
+			overflow: auto;
+		}
+
+		.foot {
+			position: absolute;
+			bottom: 0;
+			width: 100vw;
+			height: 8vh;
+			overflow: hidden;
+			background-color: var(--rgb111);
+			color: var(--rgbfff);
+			display: flex;
+			flex-direction: row;
+			justify-content: space-around;
+
+			.list {
+				padding: 1vw 0;
+				text-align: center;
+
+				.image {
+					width: 7vw;
+					height: 6vw;
+				}
+
+				.name {
+					font-size: 12px;
+				}
+			}
+		}
+	}
+</style>

+ 47 - 0
pagesHome/find/index.vue

@@ -0,0 +1,47 @@
+<template>
+	<home-frame @toPath="toPath">
+		发现
+	</home-frame>
+</template>
+
+<script>
+	import homeFrame from "../components/home-frame.vue";
+	export default {
+		components: {
+			homeFrame
+		},
+		data() {
+			return {
+
+			};
+		},
+		onLoad() {
+
+		},
+		onShow() {
+
+		},
+		methods: {
+			// 跳转页面
+			toPath(e) {
+				let url = `/${e.route}`;
+				if (e.type == '0') uni.navigateTo({
+					url
+				})
+				else if (e.type == '1') uni.redirectTo({
+					url
+				})
+				else if (e.type == '2') uni.reLaunch({
+					url
+				})
+				else if (e.type == '3') uni.switchTab({
+					url
+				})
+			}
+		},
+	};
+</script>
+
+<style lang="scss">
+	.content {}
+</style>

+ 311 - 16
pagesHome/home/index.vue

@@ -1,27 +1,236 @@
 <template>
-	<view class="content">
-		<view class="one">
-			<button type="primary" size="mini" @tap="toCommon('pagesHome/video/index')">电视节目</button>
-			<button type="primary" size="mini" @tap="toCommon('pagesHome/prize/index')">抽奖</button>
+	<home-frame @toPath="toPath">
+		<view class="main">
+			<view class="one">
+				<view class="one_1">
+					<input type="text" placeholder="搜索视频" @tap="toCommon('')">
+				</view>
+				<view class="one_2">
+					<button size="mini">筛选</button>
+				</view>
+			</view>
+			<view class="two">
+				<scroll-view scroll-y="true" class="scroll-view">
+					<view class="list-scroll-view">
+						<view class="two_0 two_1">
+							<swiper class="swiper" :autoplay="true" :interval="3000" :duration="1000">
+								<swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
+									<image class="image"
+										:src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
+									</image>
+								</swiper-item>
+							</swiper>
+						</view>
+						<view class="two_0 two_2">
+							<view class="list textOver" v-for="(item,index) in linkList" :key="index">
+								<image class="image" :src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''"
+									mode="">
+								</image>
+								<view class="name">
+									{{item.name}}
+								</view>
+							</view>
+						</view>
+						<view class="two_0 two_4">
+							Hot
+						</view>
+						<view class="two_0 two_5">
+							恐怖
+						</view>
+						<view class="two_0 two_5">
+							动作
+						</view>
+						<view class="two_0 two_6">
+							科幻
+						</view>
+					</view>
+				</scroll-view>
+			</view>
 		</view>
-	</view>
+	</home-frame>
 </template>
 
 <script>
+	import homeFrame from "../components/home-frame.vue";
 	export default {
+		components: {
+			homeFrame
+		},
 		data() {
 			return {
-
+				bannerList: [ // 轮播图
+					{
+						name: '轮播图1',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '轮播图2',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}
+				],
+				linkList: [ //热门链接
+					{
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}, {
+						name: '热门链接',
+						img_url: [ //
+							{
+								id: "20230216100918",
+								name: "头像.jpg",
+								status: "success",
+								uid: 1676513358695,
+								uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+								url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+							}
+						]
+					}
+				]
 			};
 		},
 		onLoad() {
-			const that = this;
-			// that.toCommon('pagesHome/prize/index')
+
+		},
+		onShow() {
+
 		},
 		methods: {
-			toCommon(e) {
-				uni.navigateTo({
-					url: `/${e}`
+			// 跳转页面
+			toPath(e) {
+				let url = `/${e.route}`;
+				if (e.type == '0') uni.navigateTo({
+					url
+				})
+				else if (e.type == '1') uni.redirectTo({
+					url
+				})
+				else if (e.type == '2') uni.reLaunch({
+					url
+				})
+				else if (e.type == '3') uni.switchTab({
+					url
 				})
 			}
 		},
@@ -29,14 +238,100 @@
 </script>
 
 <style lang="scss">
-	.content {
+	.main {
+		background-color: var(--rgb000);
+		display: flex;
+		flex-direction: column;
+		width: 100vw;
+		height: 92vh;
+
 		.one {
-			margin: 2vw;
-			text-align: center;
+			background-color: var(--rgb111);
+			display: flex;
+			padding: 5px;
+
+			.one_1 {
+				flex-grow: 1;
+
+				input {
+					border: 1px solid var(--rgbf1f);
+					height: 30px;
+					border-radius: 2px;
+					padding: 0 5px;
+					font-size: 12px;
+				}
+			}
 
-			button {
-				margin: 0.5vw;
+			.one_2 {
+				button {
+					height: 100%;
+					background-color: var(--rgbfa4);
+					color: var(--rgbfff);
+				}
 			}
 		}
+
+		.two {
+			position: relative;
+			flex-grow: 1;
+
+
+			.two_0 {
+				margin: 0 0 10px 0;
+				padding: 0 5px;
+			}
+
+			.two_1 {
+				.swiper {
+					height: 200px;
+					overflow: hidden;
+				}
+
+				.list {
+					.image {
+						width: 100%;
+						height: 100%;
+					}
+				}
+			}
+
+			.two_2 {
+				display: flex;
+				flex-direction: row;
+				flex-wrap: wrap;
+				justify-content: space-between;
+
+				.list {
+					text-align: center;
+					width: 18%;
+					margin: 0 0 10px 0;
+
+					.image {
+						width: 100%;
+						height: 64px;
+						border-radius: 90%;
+						margin: 0 0 5px 0;
+					}
+
+					.name {
+						font-size: 12px;
+						color: #ffffff;
+					}
+				}
+			}
+		}
+	}
+
+	.scroll-view {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		bottom: 0;
+
+		.list-scroll-view {
+			display: flex;
+			flex-direction: column;
+		}
 	}
 </style>

+ 47 - 0
pagesHome/hot/index.vue

@@ -0,0 +1,47 @@
+<template>
+	<home-frame @toPath="toPath">
+		热播
+	</home-frame>
+</template>
+
+<script>
+	import homeFrame from "../components/home-frame.vue";
+	export default {
+		components: {
+			homeFrame
+		},
+		data() {
+			return {
+
+			};
+		},
+		onLoad() {
+
+		},
+		onShow() {
+
+		},
+		methods: {
+			// 跳转页面
+			toPath(e) {
+				let url = `/${e.route}`;
+				if (e.type == '0') uni.navigateTo({
+					url
+				})
+				else if (e.type == '1') uni.redirectTo({
+					url
+				})
+				else if (e.type == '2') uni.reLaunch({
+					url
+				})
+				else if (e.type == '3') uni.switchTab({
+					url
+				})
+			}
+		},
+	};
+</script>
+
+<style lang="scss">
+	.content {}
+</style>

+ 0 - 142
pagesHome/prize/index.vue

@@ -1,142 +0,0 @@
-<template>
-	<view class="content">
-		<view class="one">
-			<view class="one_1">
-				<text :style="{background:`${prizeInfo.color}`}">{{prizeInfo.name||'待开奖中'}}</text>
-			</view>
-			<view class="one_2">
-				<button :type="is_start==true?'warn':'primary'" size="mini"
-					@tap="toCommon()">{{is_start==true?'结束':'开始'}}</button>
-			</view>
-		</view>
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-				// 是否开始抽奖
-				is_start: false,
-				// 抽奖名单
-				list: [ //
-					{
-						"name": "小夫妻麻辣烫",
-						"color": "#3d582f"
-					},
-					{
-						"name": "稻花香盒饭",
-						"color": "#c4ef4c"
-					},
-					{
-						"name": "三品阁米线",
-						"color": "#27b92b"
-					},
-					{
-						"name": "新天地超市",
-						"color": "#5d653c"
-					},
-					{
-						"name": "福苑粥铺",
-						"color": "#7e102d"
-					},
-					{
-						"name": "1949豆腐脑",
-						"color": "#51ccf"
-					},
-					{
-						"name": "干锅鸭头",
-						"color": "#332893"
-					},
-					{
-						"name": "水饺",
-						"color": "#164365"
-					},
-					{
-						"name": "酱大骨头",
-						"color": "#6dfdb4"
-					},
-					{
-						"name": "青山砂锅麻辣烫",
-						"color": "#d920e1"
-					},
-					{
-						"name": "黄焖鸡米饭",
-						"color": "#7c9d9b"
-					},
-					{
-						"name": "沈老头包子",
-						"color": "#b3dc5e"
-					},
-					{
-						"name": "兰州拉面",
-						"color": "#398fce"
-					},
-					{
-						"name": "田记抻面",
-						"color": "#d476e3"
-					},
-					{
-						"name": "裤带面",
-						"color": "#8cb2d1"
-					},
-					{
-						"name": "板面",
-						"color": "#4dfd51"
-					}
-
-				],
-				// 倒计时
-				timer: null,
-				// 中奖信息
-				prizeInfo: {},
-			};
-		},
-		methods: {
-			toCommon() {
-				const that = this;
-				let list = that.list;
-				if (that.is_start) {
-					that.is_start = false;
-					clearInterval(this.timer)
-					uni.showModal({
-						title: '中奖项',
-						content: `恭喜${that.prizeInfo.name}获得大奖,感谢参与!`
-					})
-				} else {
-					that.is_start = true;
-					that.timer = setInterval(function() {
-						var index = Math.floor(Math.random() * list.length)
-						that.prizeInfo = list[index]
-					}, 200)
-				}
-			}
-		}
-	}
-</script>
-
-<style lang="scss">
-	.content {
-		.one {
-			text-align: center;
-
-			.one_1 {
-				margin: 2vw 0;
-
-				text {
-					display: inline-block;
-					width: 50vw;
-					height: 50vw;
-					text-align: center;
-					line-height: 50vw;
-					border-radius: 90%;
-					background-color: #000000;
-					color: #ffffff;
-					font-weight: bold;
-					font-size: 30px;
-					font-family: cursive;
-				}
-			}
-		}
-	}
-</style>

+ 0 - 238
pagesHome/video/index.vue

@@ -1,238 +0,0 @@
-<template>
-	<view class="content">
-		<view class="one">
-			<input type="text" v-model="searchInfo.name" @blur="toInput" placeholder="搜索名称">
-		</view>
-		<view class="two">
-			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
-				<view class="list-scroll-view">
-					<view class="list" v-for="(item, index) in list" :key="index">
-						<view class="name">
-							<text>{{ index + 1 }}.</text>
-							<text>{{ item.name }}</text>
-						</view>
-						<view class="other">
-							<view class="other_1">
-								<text>节目类型:</text>
-								<text>{{ getDict(item.type,'typeList') }}</text>
-							</view>
-							<view class="other_1">
-								<text>视频流:</text>
-								<text>{{ item.path||'暂无视频流' }}</text>
-							</view>
-						</view>
-						<view class="btn">
-							<button type="primary" size="mini" @tap="toPlay(item)">
-								播放视频
-							</button>
-						</view>
-					</view>
-				</view>
-			</scroll-view>
-		</view>
-		<view class="is_bottom" v-if="is_bottom">
-			<text>到底了,嘻嘻!</text>
-		</view>
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-				// 查询
-				searchInfo: {},
-				list: [],
-				total: 0,
-				page: 0,
-				skip: 0,
-				limit: 10,
-				// 数据是否触底
-				is_bottom: false,
-				scrollTop: 0,
-				// 节目类型
-				typeList: this.$config.pro_type
-			};
-		},
-		onLoad() {
-			const that = this;
-			that.search();
-		},
-		onPullDownRefresh: async function() {
-			const that = this;
-			that.clearPage();
-			await that.search();
-			uni.stopPullDownRefresh();
-		},
-		methods: {
-			async search() {
-				const that = this;
-				let info = {
-					skip: that.skip,
-					limit: that.limit,
-					is_use: "0"
-				};
-				let res = await that.$api("program", "GET", {
-					...info,
-					...that.searchInfo
-				});
-				if (res.errcode == '0') {
-					let list = [...that.list, ...res.data]
-					that.$set(that, `list`, list)
-					that.$set(that, `total`, res.total)
-				} else {
-					uni.showToast({
-						title: res.errmsg,
-						icon: 'icon'
-					});
-				}
-			},
-			// 分页
-			toPage() {
-				const that = this;
-				let list = that.list;
-				let limit = that.limit;
-				if (that.total > list.length) {
-					uni.showLoading({
-						title: '加载中',
-						mask: true
-					})
-					let page = that.page + 1;
-					that.$set(that, `page`, page)
-					let skip = page * limit;
-					that.$set(that, `skip`, skip)
-					that.search();
-					uni.hideLoading();
-
-				} else that.$set(that, `is_bottom`, true)
-			},
-			toScroll(e) {
-				const that = this;
-				let up = that.scrollTop;
-				that.$set(that, `scrollTop`, e.detail.scrollTop);
-				let num = Math.sign(up - e.detail.scrollTop);
-				if (num == 1) that.$set(that, `is_bottom`, false);
-			},
-			// 输入框
-			toInput(e) {
-				const that = this;
-				if (e.detail.value) that.$set(that.searchInfo, `name`, e.detail.value);
-				else that.$set(that, `searchInfo`, {});
-				that.clearPage();
-				that.search();
-			},
-			toPlay(e) {
-				if (e.path) {
-					uni.navigateTo({
-						url: `/pagesHome/video/info?id=${e._id}`,
-					});
-				} else {
-					uni.showToast({
-						title: '暂无视频流,无法播放',
-						icon: 'none'
-					});
-				}
-			},
-			getDict(value, model) {
-				const that = this;
-				let data = that[model].find(i => i.dict_value == value);
-				if (data) return data.dict_label
-				else return '暂无'
-			},
-			// 清空列表
-			clearPage() {
-				const that = this;
-				that.$set(that, `list`, [])
-				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 10)
-				that.$set(that, `page`, 0)
-			}
-		},
-	};
-</script>
-
-<style lang="scss">
-	.content {
-		.one {
-			border-bottom: 1px solid #000000;
-
-			input {
-				padding: 2vw;
-				background-color: #f1f1f1;
-				font-size: 14px;
-				border-radius: 5px;
-			}
-		}
-
-		.two {
-			position: relative;
-			flex-grow: 1;
-			padding: 0 10px;
-
-			.list {
-				// width: 90%;
-				margin: 10px 0 0 0;
-				padding: 10px;
-				border-radius: 5px;
-				box-shadow: 0 0 5px #cccccc;
-
-				.name {
-					font-size: 16px;
-					font-weight: bold;
-					margin: 0 0 5px 0;
-				}
-
-				.other {
-					margin: 0 0 10px 0;
-
-					.other_1 {
-						margin: 0 0 5px 0;
-
-						text {
-							font-size: 14px;
-							color: #858585;
-						}
-
-						text:last-child {
-							color: #000000;
-							word-break: break-all;
-						}
-					}
-				}
-
-				.btn {
-					text-align: center;
-				}
-			}
-
-			.list:last-child {
-				margin: 10px 0;
-			}
-		}
-	}
-
-	.scroll-view {
-		position: absolute;
-		top: 0;
-		left: 0;
-		right: 0;
-		bottom: 0;
-
-		.list-scroll-view {
-			display: flex;
-			flex-direction: column;
-			padding: 0 10px;
-		}
-	}
-
-	.is_bottom {
-		text-align: center;
-
-		text {
-			padding: 2vw 0;
-			display: inline-block;
-			color: #858585;
-			font-size: 14px;
-		}
-	}
-</style>

+ 0 - 53
pagesHome/video/info.vue

@@ -1,53 +0,0 @@
-<template>
-	<view class="content">
-		<view class="one">
-			<video :src="info.path" :page-gesture="true" :show-mute-btn="true" :play-strategy="2"></video>
-		</view>
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-				id: '',
-				info: {},
-			};
-		},
-		onLoad(e) {
-			const that = this;
-			that.$set(that, `id`, e.id || '63c89e92d4f6e2a2ec22d5c8');
-			that.search()
-		},
-		methods: {
-			async search() {
-				const that = this;
-				if (that.id) {
-					let res = await that.$api(`program/${that.id}`, 'GET', {});
-					if (res.errcode == '0') {
-						that.$set(that, `info`, res.data);
-						uni.setNavigationBarTitle({
-							title: res.data.name
-						});
-					}
-				}
-			}
-		}
-	}
-</script>
-
-<style lang="scss">
-	.content {
-		.one {
-			text-align: center;
-			padding: 10px;
-
-			video {
-				width: 100%;
-				height: 250px;
-			}
-		}
-
-
-	}
-</style>

+ 0 - 0
unpackage/dist/build/.automator/app-plus/.automator.json


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/__uniappchooselocation.js


BIN
unpackage/dist/build/app-plus/__uniapperror.png


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/__uniappes6.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/__uniappopenlocation.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/__uniapppicker.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 8
unpackage/dist/build/app-plus/__uniappquill.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/__uniappquillimageresize.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/__uniappscan.js


BIN
unpackage/dist/build/app-plus/__uniappsuccess.png


+ 0 - 25
unpackage/dist/build/app-plus/__uniappview.html

@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html lang="zh-CN">
-
-  <head>
-    <meta charset="UTF-8" />
-    <script>
-      var __UniViewStartTime__ = Date.now();
-      var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
-        CSS.supports('top: constant(a)'))
-      document.write(
-        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
-        (coverSupport ? ', viewport-fit=cover' : '') + '" />')
-    </script>
-    <title>View</title>
-    <link rel="stylesheet" href="view.css" />
-  </head>
-
-  <body>
-    <div id="app"></div>
-    <script src="__uniappes6.js"></script>
-    <script src="view.umd.min.js"></script>
-    <script src="app-view.js"></script>
-  </body>
-
-</html>

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 8
unpackage/dist/build/app-plus/app-config-service.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/app-config.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 2
unpackage/dist/build/app-plus/app-service.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/app-view.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/manifest.json


BIN
unpackage/dist/build/app-plus/static/logo.jpg


BIN
unpackage/dist/build/app-plus/uni_modules/uni-icons/components/uni-icons/uniicons.ttf


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/app-plus/view.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 6
unpackage/dist/build/app-plus/view.umd.min.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesCommon/test/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/account/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/app/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/components/home-frame.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/find/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/home/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/home/video.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/hot/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/prize/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/video/index.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/video/info.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
unpackage/dist/dev/app-plus/app-config-service.js


Fichier diff supprimé car celui-ci est trop grand
+ 100 - 733
unpackage/dist/dev/app-plus/app-service.js


Fichier diff supprimé car celui-ci est trop grand
+ 854 - 455
unpackage/dist/dev/app-plus/app-view.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/app-plus/manifest.json


Fichier diff supprimé car celui-ci est trop grand
+ 105 - 0
unpackage/dist/dev/app-plus/pagesCommon/app-sub-service.js


Fichier diff supprimé car celui-ci est trop grand
+ 729 - 0
unpackage/dist/dev/app-plus/pagesHome/app-sub-service.js


+ 8 - 7
unpackage/dist/dev/mp-weixin/app.json

@@ -13,17 +13,18 @@
       "root": "pagesHome",
       "pages": [
         "home/index",
-        "video/index",
-        "video/info",
-        "prize/index"
+        "hot/index",
+        "app/index",
+        "find/index",
+        "account/index"
       ]
     }
   ],
   "window": {
-    "navigationBarTextStyle": "black",
-    "navigationBarTitleText": "uni-app",
-    "navigationBarBackgroundColor": "#F8F8F8",
-    "backgroundColor": "#F8F8F8"
+    "navigationBarTextStyle": "white",
+    "navigationBarTitleText": "益智游戏",
+    "navigationBarBackgroundColor": "#111111",
+    "backgroundColor": "#000000"
   },
   "permission": {},
   "lazyCodeLoading": "requiredComponents",

+ 13 - 3
unpackage/dist/dev/mp-weixin/common/main.js

@@ -115,11 +115,17 @@ var _default = {
   onShow: function onShow() {},
   onLaunch: function onLaunch() {
     var that = this;
-    that.checkVersion();
+    // 设备信息
+    var system = that.$config.system;
+    if (system.uniPlatform == 'app') {
+      // that.appCheck()
+    } else if (system.uniPlatform == 'mp-weixin') {
+      that.weixinCheck();
+    }
   },
   methods: {
-    // 检查版本
-    checkVersion: function checkVersion() {
+    // app检查版本
+    appCheck: function appCheck() {
       var _this = this;
       var that = this;
       plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
@@ -170,6 +176,10 @@ var _default = {
           }
         }
       });
+    },
+    // 微信检查版本
+    weixinCheck: function weixinCheck() {
+      console.log('微信检查本版');
     }
   }
 };

+ 14 - 0
unpackage/dist/dev/mp-weixin/common/main.wxss

@@ -5,4 +5,18 @@
 	width: 100vw;
 	height: 100vh;
 }
+.textOver {
+	overflow: hidden;
+	text-overflow: ellipsis;
+	white-space: nowrap;
+}
+page {
+	/* 主要背景色 */
+	--rgb000: #000000;
+	--rgb111: #111111;
+	--rgbfff: #ffffff;
+	--rgbf1f: #f1f1f1;
+	--rgb61: #161616;
+	--rgbfa4: #FA4343;
+}
 

+ 2 - 2
unpackage/dist/dev/mp-weixin/common/runtime.js

@@ -105,11 +105,11 @@
 /******/
 /******/
 /******/ 		// mini-css-extract-plugin CSS loading
-/******/ 		var cssChunks = {"components/upload/index":1,"uni_modules/uni-icons/components/uni-icons/uni-icons":1};
+/******/ 		var cssChunks = {"components/upload/index":1,"pagesHome/components/home-frame":1,"uni_modules/uni-icons/components/uni-icons/uni-icons":1};
 /******/ 		if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
 /******/ 		else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
 /******/ 			promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
-/******/ 				var href = "" + ({"components/upload/index":"components/upload/index","uni_modules/uni-icons/components/uni-icons/uni-icons":"uni_modules/uni-icons/components/uni-icons/uni-icons"}[chunkId]||chunkId) + ".wxss";
+/******/ 				var href = "" + ({"components/upload/index":"components/upload/index","pagesHome/components/home-frame":"pagesHome/components/home-frame","uni_modules/uni-icons/components/uni-icons/uni-icons":"uni_modules/uni-icons/components/uni-icons/uni-icons"}[chunkId]||chunkId) + ".wxss";
 /******/ 				var fullhref = __webpack_require__.p + href;
 /******/ 				var existingLinkTags = document.getElementsByTagName("link");
 /******/ 				for(var i = 0; i < existingLinkTags.length; i++) {

+ 23 - 8
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -1524,7 +1524,7 @@ function initData(vueOptions, context) {
     try {
       data = data.call(context); // 支持 Vue.prototype 上挂的数据
     } catch (e) {
-      if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
+      if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
         console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
       }
     }
@@ -8878,7 +8878,7 @@ function type(obj) {
 
 function flushCallbacks$1(vm) {
     if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
-        if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
+        if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
             var mpInstance = vm.$scope;
             console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
                 ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
@@ -8899,14 +8899,14 @@ function nextTick$1(vm, cb) {
     //1.nextTick 之前 已 setData 且 setData 还未回调完成
     //2.nextTick 之前存在 render watcher
     if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
-        if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
+        if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
             var mpInstance = vm.$scope;
             console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
                 ']:nextVueTick');
         }
         return nextTick(cb, vm)
     }else{
-        if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
+        if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
             var mpInstance$1 = vm.$scope;
             console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
                 ']:nextMPTick');
@@ -9002,7 +9002,7 @@ var patch = function(oldVnode, vnode) {
     });
     var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
     if (Object.keys(diffData).length) {
-      if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
+      if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"益智游戏","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
         console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
           ']差量更新',
           JSON.stringify(diffData));
@@ -9578,9 +9578,9 @@ Object.defineProperty(exports, "__esModule", {
 exports.default = void 0;
 var _default = {
   // 接口地址
-  serverUrl: "http://47.93.34.200",
+  serverUrl: "http://192.168.1.144:10102",
   //http://47.93.34.200   http://www.freeskyghw.cn
-  wechatUrl: "https://broadcast.waityou24.cn",
+  wechatUrl: "//http://47.93.34.200",
   // 设备信息
   system: uni.getSystemInfoSync(),
   // 节目类型
@@ -10137,7 +10137,22 @@ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exp
 /* 93 */,
 /* 94 */,
 /* 95 */,
-/* 96 */
+/* 96 */,
+/* 97 */,
+/* 98 */,
+/* 99 */,
+/* 100 */,
+/* 101 */,
+/* 102 */,
+/* 103 */,
+/* 104 */,
+/* 105 */,
+/* 106 */,
+/* 107 */,
+/* 108 */,
+/* 109 */,
+/* 110 */,
+/* 111 */
 /*!**********************************************************************************!*\
   !*** D:/project/项目模板/uniapp/uni_modules/uni-icons/components/uni-icons/icons.js ***!
   \**********************************************************************************/

Fichier diff supprimé car celui-ci est trop grand
+ 15 - 15
unpackage/dist/dev/mp-weixin/components/upload/index.js


+ 43 - 31
unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -102,6 +102,15 @@ var render = function () {
   var _vm = this
   var _h = _vm.$createElement
   var _c = _vm._self._c || _h
+  var g0 = _vm.basicInfo.logo_url && _vm.basicInfo.logo_url.length > 0
+  _vm.$mp.data = Object.assign(
+    {},
+    {
+      $root: {
+        g0: g0,
+      },
+    }
+  )
 }
 var recyclableRender = false
 var staticRenderFns = []
@@ -170,56 +179,59 @@ var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/r
 var _default = {
   data: function data() {
     return {
-      logoUrl: 'https://broadcast.waityou24.cn/files/test/20230116145912.jpg',
-      timer: null,
-      versionInfo: {}
+      basicInfo: {},
+      timer: null
     };
   },
-  onLoad: function onLoad() {
-    var that = this;
-    that.search('/pagesHome/home/index');
-  },
+  onLoad: function onLoad() {},
   onShow: function onShow() {
     var that = this;
-    // 获取版本信息
-    plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
-      that.$set(that, "versionInfo", wgtinfo);
-      that.setTitle(wgtinfo);
-    });
+    that.search();
   },
   methods: {
-    search: function search(e) {
+    search: function search() {
       var _this = this;
       return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
-        var that;
+        var that, url, res;
         return _regenerator.default.wrap(function _callee$(_context) {
           while (1) {
             switch (_context.prev = _context.next) {
               case 0:
                 that = _this;
-                uni.redirectTo({
-                  url: e
-                });
-                // that.timer = setTimeout(() => {
-                // 	uni.redirectTo({
-                // 		url: e
-                // 	})
-                // 	clearTimeout(that.timer);
-                // 	that.timer = null;
-                // }, 2000)
-              case 2:
+                url = '/pagesHome/home/index';
+                _context.next = 4;
+                return that.$api('appbasic', 'GET');
+              case 4:
+                res = _context.sent;
+                if (res.errcode == '0') {
+                  that.$set(that, "basicInfo", res.data);
+                  uni.setStorage({
+                    key: 'basicInfo',
+                    data: res.data,
+                    success: function success() {
+                      // 不可返回
+                      // uni.redirectTo({
+                      // 	url
+                      // })
+                      // 可返回
+                      uni.navigateTo({
+                        url: url
+                      });
+                    }
+                  });
+                } else {
+                  uni.showToast({
+                    title: res.errmsg,
+                    icon: 'none'
+                  });
+                }
+              case 6:
               case "end":
                 return _context.stop();
             }
           }
         }, _callee);
       }))();
-    },
-    // 赋值标题栏
-    setTitle: function setTitle(e) {
-      uni.setNavigationBarTitle({
-        title: e.name
-      });
     }
   }
 };

+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml

@@ -1 +1 @@
-<view class="content"><view class="one"><image src="{{logoUrl}}" mode="aspectFit"></image><view class="version">{{versionInfo.version}}</view></view><view class="two"><view class="two_1">抵制不良游戏,拒绝盗版游戏。</view><view class="two_1">注意自我保护,谨防受骗上当。</view><view class="two_1">适度游戏宜脑,沉迷游戏伤身体。</view><view class="two_1">合理安排时间,享受健康时间。</view></view></view>
+<view class="content"><view class="one"><image src="{{$root.g0?basicInfo.logo_url[0].url:''}}" mode="aspectFit"></image></view><view class="two"><view class="two_1">抵制不良游戏,拒绝盗版游戏。</view><view class="two_1">注意自我保护,谨防受骗上当。</view><view class="two_1">适度游戏宜脑,沉迷游戏伤身体。</view><view class="two_1">合理安排时间,享受健康时间。</view></view></view>

+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.wxss

@@ -13,7 +13,7 @@
   width: 50vw;
   height: 50vw;
   border-radius: 90%;
-  box-shadow: 0 0 5px #f1f1f1;
+  box-shadow: 0 0 5px var(--rgbf1f);
   margin: 30vw 0 0 0;
 }
 .content .one .version {

+ 12 - 2
unpackage/dist/dev/mp-weixin/pagesCommon/test/index.js

@@ -143,7 +143,7 @@ exports.default = void 0;
 var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
 var upload = function upload() {
   Promise.all(/*! require.ensure | components/upload/index */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/upload/index")]).then((function () {
-    return resolve(__webpack_require__(/*! @/components/upload/index.vue */ 84));
+    return resolve(__webpack_require__(/*! @/components/upload/index.vue */ 92));
   }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
 };
 var _default = {
@@ -152,7 +152,17 @@ var _default = {
   },
   data: function data() {
     return {
-      file: []
+      file: [],
+      logo: [
+      //
+      {
+        id: "20230216100918",
+        name: "头像.jpg",
+        status: "success",
+        uid: 1676513358695,
+        uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+        url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+      }]
     };
   },
   onLoad: function onLoad() {},

Fichier diff supprimé car celui-ci est trop grand
+ 209 - 0
unpackage/dist/dev/mp-weixin/pagesHome/account/index.js


+ 7 - 0
unpackage/dist/dev/mp-weixin/pagesHome/account/index.json

@@ -0,0 +1,7 @@
+{
+  "navigationBarTitleText": "账户",
+  "enablePullDownRefresh": false,
+  "usingComponents": {
+    "home-frame": "/pagesHome/components/home-frame"
+  }
+}

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/account/index.wxml

@@ -0,0 +1 @@
+<home-frame bind:toPath="__e" vue-id="24e7ea80-1" data-event-opts="{{[['^toPath',[['toPath']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">账户</home-frame>

+ 0 - 8
unpackage/dist/dev/mp-weixin/pagesHome/video/info.wxss

@@ -5,12 +5,4 @@
   width: 100vw;
   height: 100vh;
 }
-.content .one {
-  text-align: center;
-  padding: 10px;
-}
-.content .one video {
-  width: 100%;
-  height: 250px;
-}
 

Fichier diff supprimé car celui-ci est trop grand
+ 73 - 100
unpackage/dist/dev/mp-weixin/pagesHome/video/info.js


+ 7 - 0
unpackage/dist/dev/mp-weixin/pagesHome/app/index.json

@@ -0,0 +1,7 @@
+{
+  "navigationBarTitleText": "应用",
+  "enablePullDownRefresh": true,
+  "usingComponents": {
+    "home-frame": "/pagesHome/components/home-frame"
+  }
+}

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/app/index.wxml

@@ -0,0 +1 @@
+<home-frame bind:toPath="__e" vue-id="22718b4c-1" data-event-opts="{{[['^toPath',[['toPath']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">app</home-frame>

+ 8 - 0
unpackage/dist/dev/mp-weixin/pagesHome/app/index.wxss

@@ -0,0 +1,8 @@
+.content {
+  display: flex;
+  flex-direction: column;
+  box-sizing: border-box;
+  width: 100vw;
+  height: 100vh;
+}
+

Fichier diff supprimé car celui-ci est trop grand
+ 257 - 0
unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.js


+ 4 - 0
unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "component": true
+}

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.wxml


+ 36 - 0
unpackage/dist/dev/mp-weixin/pagesHome/components/home-frame.wxss

@@ -0,0 +1,36 @@
+.content {
+  display: flex;
+  flex-direction: column;
+  box-sizing: border-box;
+  width: 100vw;
+  height: 100vh;
+}
+.content .info {
+  width: 100vw;
+  height: 92vh;
+  overflow: auto;
+}
+.content .foot {
+  position: absolute;
+  bottom: 0;
+  width: 100vw;
+  height: 8vh;
+  overflow: hidden;
+  background-color: var(--rgb111);
+  color: var(--rgbfff);
+  display: flex;
+  flex-direction: row;
+  justify-content: space-around;
+}
+.content .foot .list {
+  padding: 1vw 0;
+  text-align: center;
+}
+.content .foot .list .image {
+  width: 7vw;
+  height: 6vw;
+}
+.content .foot .list .name {
+  font-size: 12px;
+}
+

Fichier diff supprimé car celui-ci est trop grand
+ 60 - 128
unpackage/dist/dev/mp-weixin/pagesHome/prize/index.js


+ 7 - 0
unpackage/dist/dev/mp-weixin/pagesHome/find/index.json

@@ -0,0 +1,7 @@
+{
+  "navigationBarTitleText": "发现",
+  "enablePullDownRefresh": true,
+  "usingComponents": {
+    "home-frame": "/pagesHome/components/home-frame"
+  }
+}

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/find/index.wxml

@@ -0,0 +1 @@
+<home-frame bind:toPath="__e" vue-id="2d1f6920-1" data-event-opts="{{[['^toPath',[['toPath']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">发现</home-frame>

+ 8 - 0
unpackage/dist/dev/mp-weixin/pagesHome/find/index.wxss

@@ -0,0 +1,8 @@
+.content {
+  display: flex;
+  flex-direction: column;
+  box-sizing: border-box;
+  width: 100vw;
+  height: 100vh;
+}
+

+ 198 - 18
unpackage/dist/dev/mp-weixin/pagesHome/home/index.js

@@ -102,6 +102,31 @@ var render = function () {
   var _vm = this
   var _h = _vm.$createElement
   var _c = _vm._self._c || _h
+  var l0 = _vm.__map(_vm.bannerList, function (item, index) {
+    var $orig = _vm.__get_orig(item)
+    var g0 = item.img_url && item.img_url.length > 0
+    return {
+      $orig: $orig,
+      g0: g0,
+    }
+  })
+  var l1 = _vm.__map(_vm.linkList, function (item, index) {
+    var $orig = _vm.__get_orig(item)
+    var g1 = item.img_url && item.img_url.length > 0
+    return {
+      $orig: $orig,
+      g1: g1,
+    }
+  })
+  _vm.$mp.data = Object.assign(
+    {},
+    {
+      $root: {
+        l0: l0,
+        l1: l1,
+      },
+    }
+  )
 }
 var recyclableRender = false
 var staticRenderFns = []
@@ -141,28 +166,183 @@ Object.defineProperty(exports, "__esModule", {
   value: true
 });
 exports.default = void 0;
-//
-//
-//
-//
-//
-//
-//
-//
-//
+var homeFrame = function homeFrame() {
+  __webpack_require__.e(/*! require.ensure | pagesHome/components/home-frame */ "pagesHome/components/home-frame").then((function () {
+    return resolve(__webpack_require__(/*! ../components/home-frame.vue */ 99));
+  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
+};
 var _default = {
-  data: function data() {
-    return {};
+  components: {
+    homeFrame: homeFrame
   },
-  onLoad: function onLoad() {
-    var that = this;
-    // that.toCommon('pagesHome/prize/index')
+  data: function data() {
+    return {
+      bannerList: [
+      // 轮播图
+      {
+        name: '轮播图1',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '轮播图2',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }],
+      linkList: [
+      //热门链接
+      {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }, {
+        name: '热门链接',
+        img_url: [
+        //
+        {
+          id: "20230216100918",
+          name: "头像.jpg",
+          status: "success",
+          uid: 1676513358695,
+          uri: "/files/projectadmin/imgurl/20230216100918.jpg",
+          url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
+        }]
+      }]
+    };
   },
-
+  onLoad: function onLoad() {},
+  onShow: function onShow() {},
   methods: {
-    toCommon: function toCommon(e) {
-      uni.navigateTo({
-        url: "/".concat(e)
+    // 跳转页面
+    toPath: function toPath(e) {
+      var url = "/".concat(e.route);
+      if (e.type == '0') uni.navigateTo({
+        url: url
+      });else if (e.type == '1') uni.redirectTo({
+        url: url
+      });else if (e.type == '2') uni.reLaunch({
+        url: url
+      });else if (e.type == '3') uni.switchTab({
+        url: url
       });
     }
   }

+ 4 - 2
unpackage/dist/dev/mp-weixin/pagesHome/home/index.json

@@ -1,5 +1,7 @@
 {
-  "navigationBarTitleText": "系统首页",
+  "navigationBarTitleText": "首页",
   "enablePullDownRefresh": true,
-  "usingComponents": {}
+  "usingComponents": {
+    "home-frame": "/pagesHome/components/home-frame"
+  }
 }

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesHome/home/index.wxml


+ 72 - 4
unpackage/dist/dev/mp-weixin/pagesHome/home/index.wxss

@@ -5,11 +5,79 @@
   width: 100vw;
   height: 100vh;
 }
-.content .one {
-  margin: 2vw;
+.main {
+  background-color: var(--rgb000);
+  display: flex;
+  flex-direction: column;
+  width: 100vw;
+  height: 92vh;
+}
+.main .one {
+  background-color: var(--rgb111);
+  display: flex;
+  padding: 5px;
+}
+.main .one .one_1 {
+  flex-grow: 1;
+}
+.main .one .one_1 input {
+  border: 1px solid var(--rgbf1f);
+  height: 30px;
+  border-radius: 2px;
+  padding: 0 5px;
+  font-size: 12px;
+}
+.main .one .one_2 button {
+  height: 100%;
+  background-color: var(--rgbfa4);
+  color: var(--rgbfff);
+}
+.main .two {
+  position: relative;
+  flex-grow: 1;
+}
+.main .two .two_0 {
+  margin: 0 0 10px 0;
+  padding: 0 5px;
+}
+.main .two .two_1 .swiper {
+  height: 200px;
+  overflow: hidden;
+}
+.main .two .two_1 .list .image {
+  width: 100%;
+  height: 100%;
+}
+.main .two .two_2 {
+  display: flex;
+  flex-direction: row;
+  flex-wrap: wrap;
+  justify-content: space-between;
+}
+.main .two .two_2 .list {
   text-align: center;
+  width: 18%;
+  margin: 0 0 10px 0;
 }
-.content .one button {
-  margin: 0.5vw;
+.main .two .two_2 .list .image {
+  width: 100%;
+  height: 64px;
+  border-radius: 90%;
+  margin: 0 0 5px 0;
+}
+.main .two .two_2 .list .name {
+  font-size: 12px;
+  color: #ffffff;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
 }
 

Fichier diff supprimé car celui-ci est trop grand
+ 59 - 234
unpackage/dist/dev/mp-weixin/pagesHome/video/index.js


+ 7 - 0
unpackage/dist/dev/mp-weixin/pagesHome/hot/index.json

@@ -0,0 +1,7 @@
+{
+  "navigationBarTitleText": "热播",
+  "enablePullDownRefresh": true,
+  "usingComponents": {
+    "home-frame": "/pagesHome/components/home-frame"
+  }
+}

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/hot/index.wxml

@@ -0,0 +1 @@
+<home-frame bind:toPath="__e" vue-id="7fc59da0-1" data-event-opts="{{[['^toPath',[['toPath']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">热播</home-frame>

+ 8 - 0
unpackage/dist/dev/mp-weixin/pagesHome/hot/index.wxss

@@ -0,0 +1,8 @@
+.content {
+  display: flex;
+  flex-direction: column;
+  box-sizing: border-box;
+  width: 100vw;
+  height: 100vh;
+}
+

+ 0 - 5
unpackage/dist/dev/mp-weixin/pagesHome/prize/index.json

@@ -1,5 +0,0 @@
-{
-  "navigationBarTitleText": "抽奖",
-  "enablePullDownRefresh": true,
-  "usingComponents": {}
-}

+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesHome/prize/index.wxml

@@ -1 +0,0 @@
-<view class="content"><view class="one"><view class="one_1"><text style="{{'background:'+(''+prizeInfo.color)+';'}}">{{prizeInfo.name||'待开奖中'}}</text></view><view class="one_2"><button type="{{is_start==true?'warn':'primary'}}" size="mini" data-event-opts="{{[['tap',[['toCommon']]]]}}" bindtap="__e">{{is_start==true?'结束':'开始'}}</button></view></view></view>

+ 0 - 27
unpackage/dist/dev/mp-weixin/pagesHome/prize/index.wxss

@@ -1,27 +0,0 @@
-.content {
-  display: flex;
-  flex-direction: column;
-  box-sizing: border-box;
-  width: 100vw;
-  height: 100vh;
-}
-.content .one {
-  text-align: center;
-}
-.content .one .one_1 {
-  margin: 2vw 0;
-}
-.content .one .one_1 text {
-  display: inline-block;
-  width: 50vw;
-  height: 50vw;
-  text-align: center;
-  line-height: 50vw;
-  border-radius: 90%;
-  background-color: #000000;
-  color: #ffffff;
-  font-weight: bold;
-  font-size: 30px;
-  font-family: cursive;
-}
-

+ 0 - 5
unpackage/dist/dev/mp-weixin/pagesHome/video/index.json

@@ -1,5 +0,0 @@
-{
-  "navigationBarTitleText": "电视节目",
-  "enablePullDownRefresh": true,
-  "usingComponents": {}
-}

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesHome/video/index.wxml


+ 0 - 74
unpackage/dist/dev/mp-weixin/pagesHome/video/index.wxss

@@ -1,74 +0,0 @@
-.content {
-  display: flex;
-  flex-direction: column;
-  box-sizing: border-box;
-  width: 100vw;
-  height: 100vh;
-}
-.content .one {
-  border-bottom: 1px solid #000000;
-}
-.content .one input {
-  padding: 2vw;
-  background-color: #f1f1f1;
-  font-size: 14px;
-  border-radius: 5px;
-}
-.content .two {
-  position: relative;
-  flex-grow: 1;
-  padding: 0 10px;
-}
-.content .two .list {
-  margin: 10px 0 0 0;
-  padding: 10px;
-  border-radius: 5px;
-  box-shadow: 0 0 5px #cccccc;
-}
-.content .two .list .name {
-  font-size: 16px;
-  font-weight: bold;
-  margin: 0 0 5px 0;
-}
-.content .two .list .other {
-  margin: 0 0 10px 0;
-}
-.content .two .list .other .other_1 {
-  margin: 0 0 5px 0;
-}
-.content .two .list .other .other_1 text {
-  font-size: 14px;
-  color: #858585;
-}
-.content .two .list .other .other_1 text:last-child {
-  color: #000000;
-  word-break: break-all;
-}
-.content .two .list .btn {
-  text-align: center;
-}
-.content .two .list:last-child {
-  margin: 10px 0;
-}
-.scroll-view {
-  position: absolute;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-}
-.scroll-view .list-scroll-view {
-  display: flex;
-  flex-direction: column;
-  padding: 0 10px;
-}
-.is_bottom {
-  text-align: center;
-}
-.is_bottom text {
-  padding: 2vw 0;
-  display: inline-block;
-  color: #858585;
-  font-size: 14px;
-}
-

+ 0 - 5
unpackage/dist/dev/mp-weixin/pagesHome/video/info.json

@@ -1,5 +0,0 @@
-{
-  "navigationBarTitleText": "详细信息",
-  "enablePullDownRefresh": true,
-  "usingComponents": {}
-}

+ 0 - 0
unpackage/dist/dev/mp-weixin/pagesHome/video/info.wxml


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff