Sfoglia il codice sorgente

修改系统首页

zs 1 anno fa
parent
commit
eb542448c2
54 ha cambiato i file con 6665 aggiunte e 1437 eliminazioni
  1. 120 19
      App.vue
  2. 78 0
      common/api.js
  3. 64 0
      common/css/iconfont.css
  4. BIN
      common/css/iconfont.ttf
  5. 2188 0
      config.js
  6. 14 2
      main.js
  7. 3 2
      manifest.json
  8. 8 2
      pages.json
  9. 48 0
      pages/home/index.vue
  10. 89 19
      pages/index/index.vue
  11. BIN
      static/c1.png
  12. BIN
      static/c2.png
  13. BIN
      static/c3.png
  14. BIN
      static/c4.png
  15. BIN
      static/c5.png
  16. BIN
      static/c6.png
  17. BIN
      static/c7.png
  18. BIN
      static/c8.png
  19. BIN
      static/c9.png
  20. 0 20
      static/customicons.css
  21. BIN
      static/customicons.ttf
  22. BIN
      static/uni.png
  23. 29 0
      tsconfig.json
  24. 37 3
      unpackage/dist/dev/mp-weixin/app.js
  25. 3 2
      unpackage/dist/dev/mp-weixin/app.json
  26. 1113 1010
      unpackage/dist/dev/mp-weixin/app.wxss
  27. 84 0
      unpackage/dist/dev/mp-weixin/common/api.js
  28. 34 201
      unpackage/dist/dev/mp-weixin/common/vendor.js
  29. 2613 0
      unpackage/dist/dev/mp-weixin/config.js
  30. 37 0
      unpackage/dist/dev/mp-weixin/pages/home/index.js
  31. 4 0
      unpackage/dist/dev/mp-weixin/pages/home/index.json
  32. 1 0
      unpackage/dist/dev/mp-weixin/pages/home/index.wxml
  33. 5 0
      unpackage/dist/dev/mp-weixin/pages/home/index.wxss
  34. 70 24
      unpackage/dist/dev/mp-weixin/pages/index/index.js
  35. 2 4
      unpackage/dist/dev/mp-weixin/pages/index/index.json
  36. 1 1
      unpackage/dist/dev/mp-weixin/pages/index/index.wxml
  37. 18 6
      unpackage/dist/dev/mp-weixin/pages/index/index.wxss
  38. 2 2
      unpackage/dist/dev/mp-weixin/project.config.json
  39. BIN
      unpackage/dist/dev/mp-weixin/static/c1.png
  40. BIN
      unpackage/dist/dev/mp-weixin/static/c2.png
  41. BIN
      unpackage/dist/dev/mp-weixin/static/c3.png
  42. BIN
      unpackage/dist/dev/mp-weixin/static/c4.png
  43. BIN
      unpackage/dist/dev/mp-weixin/static/c5.png
  44. BIN
      unpackage/dist/dev/mp-weixin/static/c6.png
  45. BIN
      unpackage/dist/dev/mp-weixin/static/c7.png
  46. BIN
      unpackage/dist/dev/mp-weixin/static/c8.png
  47. BIN
      unpackage/dist/dev/mp-weixin/static/c9.png
  48. 0 20
      unpackage/dist/dev/mp-weixin/static/customicons.css
  49. BIN
      unpackage/dist/dev/mp-weixin/static/customicons.ttf
  50. BIN
      unpackage/dist/dev/mp-weixin/static/uni.png
  51. 0 88
      unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.js
  52. 0 4
      unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.json
  53. 0 1
      unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.wxml
  54. 0 7
      unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.wxss

+ 120 - 19
App.vue

@@ -1,32 +1,133 @@
 <script>
 	export default {
-		onLaunch: function() {
-			console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
-			console.log('App Launch')
+		onLaunch: function() {
+			const that = this;
+			that.forceUpdate();
 		},
 		onShow: function() {
-			console.log('App Show')
+			const that = this;
 		},
 		onHide: function() {
 			console.log('App Hide')
+		},
+		methods: {
+			// 强制更新
+			forceUpdate() {
+				const that = this;
+				let system = uni.getSystemInfoSync();
+				if (system.uniPlatform == 'mp-weixin') {
+					const updateManager = uni.getUpdateManager();
+					updateManager.onCheckForUpdate(function(res) {
+						// 请求完新版本信息的回调
+						console.log(res.hasUpdate);
+					});
+					updateManager.onUpdateReady(function(res) {
+						uni.showModal({
+							title: '更新提示',
+							content: '新版本已经准备好,是否重启应用?',
+							success(res) {
+								if (res.confirm) {
+									uni.clearStorage();
+									updateManager.applyUpdate();
+								}
+							}
+						});
+					});
+					updateManager.onUpdateFailed(function(res) {
+						console.log(res);
+						console.log('更新失败');
+					});
+				}
+			}
 		}
 	}
 </script>
 
 <style lang="scss">
-	/*每个页面公共css */
-	@import '@/uni_modules/uni-scss/index.scss';
-	/* #ifndef APP-NVUE */
-	@import '@/static/customicons.css';
-	// 设置整个项目的背景色
-	page {
-		background-color: #f5f5f5;
-	}
-
-	/* #endif */
-	.example-info {
-		font-size: 14px;
-		color: #333;
-		padding: 10px;
+	/*每个页面公共css */
+	@import '@/uni_modules/uni-scss/index.scss';
+	@import '@/common/css/iconfont.css';
+
+	/* 公用 */
+	.container {
+		display: flex;
+		flex-direction: column;
+		box-sizing: border-box;
+		width: 100vw;
+		height: 100vh;
+	}
+
+	.textOne {
+		overflow: hidden;
+		white-space: nowrap;
+		text-overflow: ellipsis;
+		-o-text-overflow: ellipsis;
+	}
+
+	.textOver {
+		overflow: hidden;
+		text-overflow: ellipsis;
+		word-break: break-all;
+		display: -webkit-box;
+		-webkit-box-orient: vertical;
+		-webkit-line-clamp: 2;
+	}
+
+	// 弹框公共样式
+	.uni-dialog-content {
+		padding: 2vw !important;
+		max-height: 40vh;
+		overflow-y: auto;
+		align-items: normal !important;
+		box-sizing: border-box;
+	}
+
+	/* 设置整个项目的公用样式*/
+	page {
+		// font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
+		/* 窗口可用高度 */
+		/* 有头有底 */
+		--oneHeight: 100vh;
+		/* 有头无底 */
+		--twoHeight: 92vh;
+		/* 可用窗口背景颜色 */
+		--mainColor: #ffffff;
+		/* 底部菜单背景颜色 */
+		--footColor: #f1f1f1;
+		/* 字体大小 */
+		--font20Size: 20px;
+		--font19Size: 19px;
+		--font18Size: 18px;
+		--font17Size: 17px;
+		--font16Size: 16px;
+		--font15Size: 15px;
+		--font14Size: 14px;
+		--font13Size: 13px;
+		--font12Size: 12px;
+		/* 颜色 */
+		--f1Color: #f1f1f1;
+		--f2Color: #f2f2f2;
+		--f3Color: #f3f3f3;
+		--f4Color: #f4f4f4;
+		--f5Color: #f5f5f5;
+		--f6Color: #f6f6f6;
+		--f7Color: #f7f7f7;
+		--f8Color: #f8f8f8;
+		--f9Color: #f9f9f9;
+		--f99Color: #999999;
+		--f85Color: #858585;
+		--f69Color: #696969;
+		--f80Color: #808080;
+		--f33Color: #333333;
+		--fFB1Color: #7A7E83;
+		--fDCColor: #DCDCDC;
+		--fcColor: #cccccc;
+		--f00Color: #000000;
+		--fffColor: #ffffff;
+		--f3CColor: #007AFF;
+		--fF0Color: #FF0000;
+		--f08Color: #008000;
+		--f35BColor: #35BD7B;
+		--f191Color: #191970;
 	}
-</style>
+</style>

+ 78 - 0
common/api.js

@@ -0,0 +1,78 @@
+import config from '../config.js';
+const getDomain = (uri, method, type) => {
+	let serverUrl = config.serverUrl;
+	if (type && type == 'file') return serverUrl + `/common/upload`;
+	else return serverUrl + uri;
+};
+
+export const requestBase = async (uri, method = 'GET', data, type) => {
+	let baseUrl = getDomain(uri, method, type);
+	return new Promise((resolve, reject) => {
+		uni.request({
+			url: baseUrl,
+			method: method || 'GET',
+			data: data || {},
+			header: {},
+			success: (res) => {
+				resolve(res.data);
+			},
+			fail: (err) => {
+				uni.showToast({
+					title: '请求接口失败',
+					icon: 'fail',
+				});
+				reject(err.data);
+			},
+		});
+	});
+};
+export const requestApp = async (uri, method = 'GET', data, type) => {
+	let baseUrl = `https://broadcast.waityou24.cn${uri}`;
+	return new Promise((resolve, reject) => {
+		uni.request({
+			url: baseUrl,
+			method: method || 'GET',
+			data: data || {},
+			header: {},
+			success: (res) => {
+				resolve(res.data);
+			},
+			fail: (err) => {
+				uni.showToast({
+					title: '请求接口失败',
+					icon: 'fail',
+				});
+				reject(err.data);
+			},
+		});
+	});
+};
+export const requestFile = (uri, method, data, type) => {
+	let baseUrl = getDomain(uri, method, type);
+	return new Promise((resolve, reject) => {
+		uni.uploadFile({
+			url: baseUrl,
+			filePath: data,
+			name: method || 'file',
+			formData: {},
+			success: (res) => {
+				let data = JSON.parse(res.data);
+				if (data.errcode != '0') {
+					return uni.showToast({
+						title: data.errmsg,
+						icon: 'error',
+					});
+				}
+				resolve(data);
+			},
+			fail: (err) => {
+				let data = JSON.parse(err.data);
+				uni.showToast({
+					title: '请求接口失败',
+					icon: 'fail',
+				});
+				reject(data);
+			},
+		});
+	});
+};

+ 64 - 0
common/css/iconfont.css

@@ -0,0 +1,64 @@
+@font-face {
+	font-family: "iconfont";
+	src: url('@/common/css/iconfont.ttf') format('truetype');
+}
+
+.iconfont {
+	font-family: "iconfont" !important;
+	font-size: 16px;
+	font-style: normal;
+	-webkit-font-smoothing: antialiased;
+	-moz-osx-font-smoothing: grayscale;
+}
+
+.icon-lishijilu_huaban:before {
+	content: "\e617";
+}
+
+.icon-jibenxinxi:before {
+	content: "\e659";
+}
+
+.icon-qunzu:before {
+	content: "\e649";
+}
+
+.icon-yiliao:before {
+	content: "\e6ee";
+}
+
+.icon-youbofang:before {
+	content: "\e638";
+}
+
+.icon-zuobofang:before {
+	content: "\e63a";
+}
+
+.icon-shanchu:before {
+	content: "\e68a";
+}
+
+.icon-weixin:before {
+	content: "\e73b";
+}
+
+.icon-dayuhao:before {
+	content: "\e625";
+}
+
+.icon-yonghu:before {
+	content: "\e614";
+}
+
+.icon-erweima:before {
+	content: "\1017b";
+}
+
+.icon-shezhi:before {
+	content: "\1017c";
+}
+
+.icon-gengduo:before {
+	content: "\e719";
+}

BIN
common/css/iconfont.ttf


File diff suppressed because it is too large
+ 2188 - 0
config.js


+ 14 - 2
main.js

@@ -14,10 +14,22 @@ app.$mount()
 // #endif
 
 // #ifdef VUE3
-import { createSSRApp } from 'vue'
+import { createSSRApp } from 'vue'
+// requset请求
+import {
+	requestBase,
+	requestApp,
+	requestFile
+} from '@/common/api.js';
+// 配置文件
+import config from '@/config.js';
 import App from './App.vue'
 export function createApp() {
-  const app = createSSRApp(App)
+  const app = createSSRApp(App)
+  app.config.globalProperties.$api = requestBase;
+  app.config.globalProperties.$app = requestApp;
+  app.config.globalProperties.$apifile = requestFile;
+  app.config.globalProperties.$config = config;
   return {
     app
   }

+ 3 - 2
manifest.json

@@ -50,9 +50,10 @@
     /* 快应用特有相关 */
     "mp-weixin" : {
         /* 小程序特有相关 */
-        "appid" : "",
+        "appid" : "wx34436977cd1e02e4",
         "setting" : {
-            "urlCheck" : false
+            "urlCheck" : false,
+            "minified" : true
         },
         "usingComponents" : true
     },

+ 8 - 2
pages.json

@@ -2,12 +2,18 @@
 	"pages": [{
 		"path": "pages/index/index",
 		"style": {
-			"navigationBarTitleText": "uni-app"
+			"navigationBarTitleText": "系统页"
+		}
+	},
+	{
+		"path": "pages/home/index",
+		"style": {
+			"navigationBarTitleText": "首页"
 		}
 	}],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
-		"navigationBarTitleText": "uni-app",
+		"navigationBarTitleText": "系统页",
 		"navigationBarBackgroundColor": "#F8F8F8",
 		"backgroundColor": "#F8F8F8",
 		"app-plus": {

+ 48 - 0
pages/home/index.vue

@@ -0,0 +1,48 @@
+<template>
+	<view class="content">
+		系统首页
+	</view>
+</template>
+
+<script setup lang="ts">
+	import { log } from 'console';
+	import {
+		getCurrentInstance,
+		computed,
+		ref
+	} from 'vue'
+	// 请求接口
+	const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
+	// openid
+	const openid = computed(() => {
+		return uni.getStorageSync('openid');
+	})
+	// 基本信息
+	const config = ref({});
+	// 用户信息
+	const initUser = async () => {
+		const res = await $api(`/system/matchUser/find`, 'GET', {
+			openid: openid.value
+		});
+		if (res.code === 200) {
+			if (res.data) console.log(res.data);
+		} else {
+			uni.showToast({
+				title: res.msg || '',
+				icon: 'error',
+			});
+		}
+	};
+	// config信息
+	const searchConfig = async () => {
+		config.value = uni.getStorageSync('config');
+	};
+	initUser();
+	searchConfig();
+</script>
+<style>
+	.content {
+		display: flex;
+		flex-direction: column;
+	}
+</style>

+ 89 - 19
pages/index/index.vue

@@ -1,28 +1,98 @@
 <template>
-	<view class="container">
-		<view class="intro">本项目已包含uni ui组件,无需import和注册,可直接使用。在代码区键入字母u,即可通过代码助手列出所有可用组件。光标置于组件名称处按F1,即可查看组件文档。</view>
-		<text class="intro">详见:</text>
-		<uni-link :href="href" :text="href"></uni-link>
+	<view class="main">
+		<view class="one">
+			<image class="logo" :src="logoUrl||'/static/logo.png'" />
+		</view>
 	</view>
 </template>
 
-<script>
-	export default {
-		data() {
-			return {
-				href: 'https://uniapp.dcloud.io/component/README?id=uniui'
+<script setup lang="ts">
+	import {
+		getCurrentInstance,
+		computed,
+		ref
+	} from 'vue'
+	// 请求接口
+	const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
+	const $app = getCurrentInstance()?.appContext.config.globalProperties.$app;
+	const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
+	// openid
+	const openid = computed(() => {
+		return uni.getStorageSync('openid');
+	})
+	// logo图片
+	const logoUrl = ref('');
+	// 用户信息
+	const initUser = async () => {
+		uni.login({
+			success: async function (result) {
+				if (!result.code) {
+					uni.showToast({
+						title: '登录失败请重进!',
+						icon: 'fail',
+					});
+					return false;
+				}
+				if (!openid.value) {
+					const res = await login(result.code)
+					if (res) uni.setStorageSync('openid', res);
+				}
+				uni.redirectTo({
+					url: '/pages/home/index'
+				})
 			}
-		},
-		methods: {
-
+		})
+	};
+	// 获取openid
+	const login = async (js_code : string) => {
+		const res = await $app('/wechat/api/login/app', 'GET', {
+			js_code: js_code,
+			config: $config.wx_projectkey
+		})
+		if (res.errcode === 0) return res.data.openid;
+		else {
+			uni.showToast({
+				title: '登录失败请重进!',
+				icon: 'fail',
+			});
+			return false;
 		}
-	}
+	};
+	// config信息
+	const searchConfig = async () => {
+		const res = await $api('/system/matchconfig/findOne', 'GET', {});
+		if (res.code === 200) {
+			if (res.data) {
+				logoUrl.value = res.data.logoUrl
+				uni.setStorageSync('config', res.data);
+			}
+		} else {
+			uni.showToast({
+				title: res.msg || '',
+				icon: 'error',
+			});
+		}
+	};
+	initUser();
+	searchConfig();
 </script>
+<style lang="scss">
+	.main {
+		display: flex;
+		flex-direction: column;
+		width: 100vw;
+		height: 100vh;
 
-<style>
-	.container {
-		padding: 20px;
-		font-size: 14px;
-		line-height: 24px;
+		.one {
+			text-align: center;
+			margin: 40vw 0 0 0;
+
+			.logo {
+				width: 50vw;
+				height: 50vw;
+				border-radius: 90px;
+				box-shadow: 0 0 5px #f1f1f1;
+			}
+		}
 	}
-</style>
+</style>

BIN
static/c1.png


BIN
static/c2.png


BIN
static/c3.png


BIN
static/c4.png


BIN
static/c5.png


BIN
static/c6.png


BIN
static/c7.png


BIN
static/c8.png


BIN
static/c9.png


+ 0 - 20
static/customicons.css

@@ -1,20 +0,0 @@
-@font-face {
-  font-family: "customicons"; /* Project id 2878519 */
-  src:url('/static/customicons.ttf') format('truetype');
-}
-
-.customicons {
-  font-family: "customicons" !important;
-}
-
-.youxi:before {
-  content: "\e60e";
-}
-
-.wenjian:before {
-  content: "\e60f";
-}
-
-.zhuanfa:before {
-  content: "\e610";
-}

BIN
static/customicons.ttf


BIN
static/uni.png


+ 29 - 0
tsconfig.json

@@ -0,0 +1,29 @@
+// tsconfig.json
+{
+  "compilerOptions": {
+    "target": "esnext",
+    "module": "esnext",
+    "strict": true,
+    "jsx": "preserve",
+    "moduleResolution": "node",
+    "esModuleInterop": true,
+    "sourceMap": true,
+    "skipLibCheck": true,
+    "importHelpers": true,
+    "allowSyntheticDefaultImports": true,
+    "useDefineForClassFields": true,
+    "resolveJsonModule": true,
+    "lib": [
+      "esnext",
+      "dom"
+    ],
+    "types": [
+      "@dcloudio/types"
+    ]
+  },
+  "exclude": [
+    "node_modules",
+    "unpackage",
+    "src/**/*.nvue"
+  ]
+}

+ 37 - 3
unpackage/dist/dev/mp-weixin/app.js

@@ -1,24 +1,58 @@
 "use strict";
 Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
 const common_vendor = require("./common/vendor.js");
+const common_api = require("./common/api.js");
+const config = require("./config.js");
 if (!Math) {
   "./pages/index/index.js";
+  "./pages/home/index.js";
 }
 const _sfc_main = {
   onLaunch: function() {
-    console.warn("当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!");
-    console.log("App Launch");
+    const that = this;
+    that.forceUpdate();
   },
   onShow: function() {
-    console.log("App Show");
   },
   onHide: function() {
     console.log("App Hide");
+  },
+  methods: {
+    // 强制更新
+    forceUpdate() {
+      let system = common_vendor.index.getSystemInfoSync();
+      if (system.uniPlatform == "mp-weixin") {
+        const updateManager = common_vendor.index.getUpdateManager();
+        updateManager.onCheckForUpdate(function(res) {
+          console.log(res.hasUpdate);
+        });
+        updateManager.onUpdateReady(function(res) {
+          common_vendor.index.showModal({
+            title: "更新提示",
+            content: "新版本已经准备好,是否重启应用?",
+            success(res2) {
+              if (res2.confirm) {
+                common_vendor.index.clearStorage();
+                updateManager.applyUpdate();
+              }
+            }
+          });
+        });
+        updateManager.onUpdateFailed(function(res) {
+          console.log(res);
+          console.log("更新失败");
+        });
+      }
+    }
   }
 };
 const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/project/足球比赛/match_applet/App.vue"]]);
 function createApp() {
   const app = common_vendor.createSSRApp(App);
+  app.config.globalProperties.$api = common_api.requestBase;
+  app.config.globalProperties.$app = common_api.requestApp;
+  app.config.globalProperties.$apifile = common_api.requestFile;
+  app.config.globalProperties.$config = config.config;
   return {
     app
   };

+ 3 - 2
unpackage/dist/dev/mp-weixin/app.json

@@ -1,10 +1,11 @@
 {
   "pages": [
-    "pages/index/index"
+    "pages/index/index",
+    "pages/home/index"
   ],
   "window": {
     "navigationBarTextStyle": "black",
-    "navigationBarTitleText": "uni-app",
+    "navigationBarTitleText": "系统页",
     "navigationBarBackgroundColor": "#F8F8F8",
     "backgroundColor": "#F8F8F8"
   },

File diff suppressed because it is too large
+ 1113 - 1010
unpackage/dist/dev/mp-weixin/app.wxss


+ 84 - 0
unpackage/dist/dev/mp-weixin/common/api.js

@@ -0,0 +1,84 @@
+"use strict";
+const common_vendor = require("./vendor.js");
+const config = require("../config.js");
+const getDomain = (uri, method, type) => {
+  let serverUrl = config.config.serverUrl;
+  if (type && type == "file")
+    return serverUrl + `/common/upload`;
+  else
+    return serverUrl + uri;
+};
+const requestBase = async (uri, method = "GET", data, type) => {
+  let baseUrl = getDomain(uri, method, type);
+  return new Promise((resolve, reject) => {
+    common_vendor.index.request({
+      url: baseUrl,
+      method: method || "GET",
+      data: data || {},
+      header: {},
+      success: (res) => {
+        resolve(res.data);
+      },
+      fail: (err) => {
+        common_vendor.index.showToast({
+          title: "请求接口失败",
+          icon: "fail"
+        });
+        reject(err.data);
+      }
+    });
+  });
+};
+const requestApp = async (uri, method = "GET", data, type) => {
+  let baseUrl = `https://broadcast.waityou24.cn${uri}`;
+  return new Promise((resolve, reject) => {
+    common_vendor.index.request({
+      url: baseUrl,
+      method: method || "GET",
+      data: data || {},
+      header: {},
+      success: (res) => {
+        resolve(res.data);
+      },
+      fail: (err) => {
+        common_vendor.index.showToast({
+          title: "请求接口失败",
+          icon: "fail"
+        });
+        reject(err.data);
+      }
+    });
+  });
+};
+const requestFile = (uri, method, data, type) => {
+  let baseUrl = getDomain(uri, method, type);
+  return new Promise((resolve, reject) => {
+    common_vendor.index.uploadFile({
+      url: baseUrl,
+      filePath: data,
+      name: method || "file",
+      formData: {},
+      success: (res) => {
+        let data2 = JSON.parse(res.data);
+        if (data2.errcode != "0") {
+          return common_vendor.index.showToast({
+            title: data2.errmsg,
+            icon: "error"
+          });
+        }
+        resolve(data2);
+      },
+      fail: (err) => {
+        let data2 = JSON.parse(err.data);
+        common_vendor.index.showToast({
+          title: "请求接口失败",
+          icon: "fail"
+        });
+        reject(data2);
+      }
+    });
+  });
+};
+exports.requestApp = requestApp;
+exports.requestBase = requestBase;
+exports.requestFile = requestFile;

+ 34 - 201
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -14,28 +14,6 @@ function makeMap(str, expectsLowerCase) {
   }
   return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
 }
-const toDisplayString = (val) => {
-  return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
-};
-const replacer = (_key, val) => {
-  if (val && val.__v_isRef) {
-    return replacer(_key, val.value);
-  } else if (isMap(val)) {
-    return {
-      [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => {
-        entries[`${key} =>`] = val2;
-        return entries;
-      }, {})
-    };
-  } else if (isSet(val)) {
-    return {
-      [`Set(${val.size})`]: [...val.values()]
-    };
-  } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
-    return String(val);
-  }
-  return val;
-};
 const EMPTY_OBJ = Object.freeze({});
 const EMPTY_ARR = Object.freeze([]);
 const NOOP = () => {
@@ -291,8 +269,8 @@ const E = function() {
 };
 E.prototype = {
   on: function(name, callback, ctx) {
-    var e2 = this.e || (this.e = {});
-    (e2[name] || (e2[name] = [])).push({
+    var e = this.e || (this.e = {});
+    (e[name] || (e[name] = [])).push({
       fn: callback,
       ctx
     });
@@ -318,8 +296,8 @@ E.prototype = {
     return this;
   },
   off: function(name, callback) {
-    var e2 = this.e || (this.e = {});
-    var evts = e2[name];
+    var e = this.e || (this.e = {});
+    var evts = e[name];
     var liveEvents = [];
     if (evts && callback) {
       for (var i = 0, len = evts.length; i < len; i++) {
@@ -327,7 +305,7 @@ E.prototype = {
           liveEvents.push(evts[i]);
       }
     }
-    liveEvents.length ? e2[name] = liveEvents : delete e2[name];
+    liveEvents.length ? e[name] = liveEvents : delete e[name];
     return this;
   }
 };
@@ -444,9 +422,9 @@ function assertType$1(value, type) {
   let valid;
   const expectedType = getType$1(type);
   if (isSimpleType$1(expectedType)) {
-    const t2 = typeof value;
-    valid = t2 === expectedType.toLowerCase();
-    if (!valid && t2 === "object") {
+    const t = typeof value;
+    valid = t === expectedType.toLowerCase();
+    if (!valid && t === "object") {
       valid = value instanceof type;
     }
   } else if (expectedType === "Object") {
@@ -502,8 +480,8 @@ function tryCatch(fn) {
   return function() {
     try {
       return fn.apply(fn, arguments);
-    } catch (e2) {
-      console.error(e2);
+    } catch (e) {
+      console.error(e);
     }
   };
 }
@@ -685,8 +663,8 @@ function promisify$1(name, fn) {
     if (hasCallback(args)) {
       return wrapperReturnValue(name, invokeApi(name, fn, args, rest));
     }
-    return wrapperReturnValue(name, handlePromise(new Promise((resolve2, reject) => {
-      invokeApi(name, fn, extend(args, { success: resolve2, fail: reject }), rest);
+    return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => {
+      invokeApi(name, fn, extend(args, { success: resolve, fail: reject }), rest);
     })));
   };
 }
@@ -938,7 +916,7 @@ let enabled;
 function normalizePushMessage(message) {
   try {
     return JSON.parse(message);
-  } catch (e2) {
+  } catch (e) {
   }
   return message;
 }
@@ -978,7 +956,7 @@ function invokeGetPushCidCallbacks(cid2, errMsg) {
   getPushCidCallbacks.length = 0;
 }
 const API_GET_PUSH_CLIENT_ID = "getPushClientId";
-const getPushClientId = defineAsyncApi(API_GET_PUSH_CLIENT_ID, (_, { resolve: resolve2, reject }) => {
+const getPushClientId = defineAsyncApi(API_GET_PUSH_CLIENT_ID, (_, { resolve, reject }) => {
   Promise.resolve().then(() => {
     if (typeof enabled === "undefined") {
       enabled = false;
@@ -987,7 +965,7 @@ const getPushClientId = defineAsyncApi(API_GET_PUSH_CLIENT_ID, (_, { resolve: re
     }
     getPushCidCallbacks.push((cid2, errMsg) => {
       if (cid2) {
-        resolve2({ cid: cid2 });
+        resolve({ cid: cid2 });
       } else {
         reject(errMsg);
       }
@@ -1052,9 +1030,9 @@ function promisify(name, api) {
     if (isFunction(options.success) || isFunction(options.fail) || isFunction(options.complete)) {
       return wrapperReturnValue(name, invokeApi(name, api, options, rest));
     }
-    return wrapperReturnValue(name, handlePromise(new Promise((resolve2, reject) => {
+    return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => {
       invokeApi(name, api, extend({}, options, {
-        success: resolve2,
+        success: resolve,
         fail: reject
       }), rest);
     })));
@@ -2384,9 +2362,6 @@ function isShallow(value) {
     /* ReactiveFlags.IS_SHALLOW */
   ]);
 }
-function isProxy(value) {
-  return isReactive(value) || isReadonly(value);
-}
 function toRaw(observed) {
   const raw = observed && observed[
     "__v_raw"
@@ -2822,8 +2797,8 @@ const resolvedPromise = /* @__PURE__ */ Promise.resolve();
 let currentFlushPromise = null;
 const RECURSION_LIMIT = 100;
 function nextTick$1(fn) {
-  const p2 = currentFlushPromise || resolvedPromise;
-  return fn ? p2.then(this ? fn.bind(this) : fn) : p2;
+  const p = currentFlushPromise || resolvedPromise;
+  return fn ? p.then(this ? fn.bind(this) : fn) : p;
 }
 function findInsertionIndex(id) {
   let start = flushIndex + 1;
@@ -3424,6 +3399,9 @@ function traverse(value, seen) {
   }
   return value;
 }
+function defineComponent(options) {
+  return isFunction(options) ? { setup: options, name: options.name } : options;
+}
 const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
 function onActivated(hook, target) {
   registerKeepAliveHook(hook, "a", target);
@@ -3541,46 +3519,6 @@ function validateDirectiveName(name) {
     warn("Do not use built-in directive ids as custom directive id: " + name);
   }
 }
-const COMPONENTS = "components";
-function resolveComponent(name, maybeSelfReference) {
-  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
-}
-function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
-  const instance = currentRenderingInstance || currentInstance;
-  if (instance) {
-    const Component2 = instance.type;
-    if (type === COMPONENTS) {
-      const selfName = getComponentName(
-        Component2,
-        false
-        /* do not include inferred name to avoid breaking existing code */
-      );
-      if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
-        return Component2;
-      }
-    }
-    const res = (
-      // local registration
-      // check instance[type] first which is resolved for options API
-      resolve(instance[type] || Component2[type], name) || // global registration
-      resolve(instance.appContext[type], name)
-    );
-    if (!res && maybeSelfReference) {
-      return Component2;
-    }
-    if (warnMissing && !res) {
-      const extra = type === COMPONENTS ? `
-If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
-      warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
-    }
-    return res;
-  } else {
-    warn(`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`);
-  }
-}
-function resolve(registry, name) {
-  return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
-}
 const getPublicInstance = (i) => {
   if (!i)
     return null;
@@ -4465,7 +4403,7 @@ function isSameType(a, b) {
 }
 function getTypeIndex(type, expectedTypes) {
   if (isArray(expectedTypes)) {
-    return expectedTypes.findIndex((t2) => isSameType(t2, type));
+    return expectedTypes.findIndex((t) => isSameType(t, type));
   } else if (isFunction(expectedTypes)) {
     return isSameType(expectedTypes, type) ? 0 : -1;
   }
@@ -4513,9 +4451,9 @@ function assertType(value, type) {
   let valid;
   const expectedType = getType(type);
   if (isSimpleType(expectedType)) {
-    const t2 = typeof value;
-    valid = t2 === expectedType.toLowerCase();
-    if (!valid && t2 === "object") {
+    const t = typeof value;
+    valid = t === expectedType.toLowerCase();
+    if (!valid && t === "object") {
       valid = value instanceof type;
     }
   } else if (expectedType === "Object") {
@@ -4722,12 +4660,6 @@ const Static = Symbol("Static");
 function isVNode(value) {
   return value ? value.__v_isVNode === true : false;
 }
-const InternalObjectKey = `__vInternal`;
-function guardReactiveProps(props) {
-  if (!props)
-    return null;
-  return isProxy(props) || InternalObjectKey in props ? extend({}, props) : props;
-}
 const emptyAppContext = createAppContext();
 let uid = 0;
 function createComponentInstance(vnode, parent, suspense) {
@@ -5170,8 +5102,8 @@ function nextTick(instance, fn) {
       _resolve(instance.proxy);
     }
   });
-  return new Promise((resolve2) => {
-    _resolve = resolve2;
+  return new Promise((resolve) => {
+    _resolve = resolve;
   });
 }
 function clone(src, seen) {
@@ -5549,8 +5481,8 @@ function setupRenderEffect(instance) {
   update.id = instance.uid;
   toggleRecurse(instance, true);
   {
-    effect.onTrack = instance.rtc ? (e2) => invokeArrayFns$1(instance.rtc, e2) : void 0;
-    effect.onTrigger = instance.rtg ? (e2) => invokeArrayFns$1(instance.rtg, e2) : void 0;
+    effect.onTrack = instance.rtc ? (e) => invokeArrayFns$1(instance.rtc, e) : void 0;
+    effect.onTrigger = instance.rtg ? (e) => invokeArrayFns$1(instance.rtg, e) : void 0;
     update.ownerInstance = instance;
   }
   update();
@@ -5764,11 +5696,6 @@ function initApp(app) {
   }
 }
 const propsCaches = /* @__PURE__ */ Object.create(null);
-function renderProps(props) {
-  const { uid: uid2, __counter } = getCurrentInstance();
-  const propsId = (propsCaches[uid2] || (propsCaches[uid2] = [])).push(guardReactiveProps(props)) - 1;
-  return uid2 + "," + propsId + "," + __counter;
-}
 function pruneComponentPropsCache(uid2) {
   delete propsCaches[uid2];
 }
@@ -5809,99 +5736,6 @@ function getCreateApp() {
     return my[method];
   }
 }
-function vOn(value, key) {
-  const instance = getCurrentInstance();
-  const ctx = instance.ctx;
-  const extraKey = typeof key !== "undefined" && (ctx.$mpPlatform === "mp-weixin" || ctx.$mpPlatform === "mp-qq") && (isString(key) || typeof key === "number") ? "_" + key : "";
-  const name = "e" + instance.$ei++ + extraKey;
-  const mpInstance = ctx.$scope;
-  if (!value) {
-    delete mpInstance[name];
-    return name;
-  }
-  const existingInvoker = mpInstance[name];
-  if (existingInvoker) {
-    existingInvoker.value = value;
-  } else {
-    mpInstance[name] = createInvoker(value, instance);
-  }
-  return name;
-}
-function createInvoker(initialValue, instance) {
-  const invoker = (e2) => {
-    patchMPEvent(e2);
-    let args = [e2];
-    if (e2.detail && e2.detail.__args__) {
-      args = e2.detail.__args__;
-    }
-    const eventValue = invoker.value;
-    const invoke = () => callWithAsyncErrorHandling(patchStopImmediatePropagation(e2, eventValue), instance, 5, args);
-    const eventTarget = e2.target;
-    const eventSync = eventTarget ? eventTarget.dataset ? String(eventTarget.dataset.eventsync) === "true" : false : false;
-    if (bubbles.includes(e2.type) && !eventSync) {
-      setTimeout(invoke);
-    } else {
-      const res = invoke();
-      if (e2.type === "input" && (isArray(res) || isPromise(res))) {
-        return;
-      }
-      return res;
-    }
-  };
-  invoker.value = initialValue;
-  return invoker;
-}
-const bubbles = [
-  // touch事件暂不做延迟,否则在 Android 上会影响性能,比如一些拖拽跟手手势等
-  // 'touchstart',
-  // 'touchmove',
-  // 'touchcancel',
-  // 'touchend',
-  "tap",
-  "longpress",
-  "longtap",
-  "transitionend",
-  "animationstart",
-  "animationiteration",
-  "animationend",
-  "touchforcechange"
-];
-function patchMPEvent(event) {
-  if (event.type && event.target) {
-    event.preventDefault = NOOP;
-    event.stopPropagation = NOOP;
-    event.stopImmediatePropagation = NOOP;
-    if (!hasOwn(event, "detail")) {
-      event.detail = {};
-    }
-    if (hasOwn(event, "markerId")) {
-      event.detail = typeof event.detail === "object" ? event.detail : {};
-      event.detail.markerId = event.markerId;
-    }
-    if (isPlainObject(event.detail) && hasOwn(event.detail, "checked") && !hasOwn(event.detail, "value")) {
-      event.detail.value = event.detail.checked;
-    }
-    if (isPlainObject(event.detail)) {
-      event.target = extend({}, event.target, event.detail);
-    }
-  }
-}
-function patchStopImmediatePropagation(e2, value) {
-  if (isArray(value)) {
-    const originalStop = e2.stopImmediatePropagation;
-    e2.stopImmediatePropagation = () => {
-      originalStop && originalStop.call(e2);
-      e2._stopped = true;
-    };
-    return value.map((fn) => (e3) => !e3._stopped && fn(e3));
-  } else {
-    return value;
-  }
-}
-const o = (value, key) => vOn(value, key);
-const e = (target, ...sources) => extend(target, ...sources);
-const t = (val) => toDisplayString(val);
-const p = (props) => renderProps(props);
 function createApp$1(rootComponent, rootProps = null) {
   rootComponent && (rootComponent.mpType = "app");
   return createVueApp(rootComponent, rootProps).use(plugin);
@@ -6726,10 +6560,9 @@ const createSubpackageApp = initCreateSubpackageApp();
   wx.createSubpackageApp = global.createSubpackageApp = createSubpackageApp;
 }
 exports._export_sfc = _export_sfc;
+exports.computed = computed;
 exports.createSSRApp = createSSRApp;
-exports.e = e;
+exports.defineComponent = defineComponent;
+exports.getCurrentInstance = getCurrentInstance;
 exports.index = index;
-exports.o = o;
-exports.p = p;
-exports.resolveComponent = resolveComponent;
-exports.t = t;
+exports.ref = ref;

File diff suppressed because it is too large
+ 2613 - 0
unpackage/dist/dev/mp-weixin/config.js


+ 37 - 0
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -0,0 +1,37 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
+  __name: "index",
+  setup(__props) {
+    var _a;
+    const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
+    const openid = common_vendor.computed(() => {
+      return common_vendor.index.getStorageSync("openid");
+    });
+    const config = common_vendor.ref({});
+    const initUser = async () => {
+      const res = await $api(`/system/matchUser/find`, "GET", {
+        openid: openid.value
+      });
+      if (res.code === 200) {
+        if (res.data)
+          console.log(res.data);
+      } else {
+        common_vendor.index.showToast({
+          title: res.msg || "",
+          icon: "error"
+        });
+      }
+    };
+    const searchConfig = async () => {
+      config.value = common_vendor.index.getStorageSync("config");
+    };
+    initUser();
+    searchConfig();
+    return (_ctx, _cache) => {
+      return {};
+    };
+  }
+});
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/project/足球比赛/match_applet/pages/home/index.vue"]]);
+wx.createPage(MiniProgramPage);

+ 4 - 0
unpackage/dist/dev/mp-weixin/pages/home/index.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "首页",
+  "usingComponents": {}
+}

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

@@ -0,0 +1 @@
+<view class="content"> 系统首页 </view>

+ 5 - 0
unpackage/dist/dev/mp-weixin/pages/home/index.wxss

@@ -0,0 +1,5 @@
+
+.content {
+		display: flex;
+		flex-direction: column;
+}

+ 70 - 24
unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -1,28 +1,74 @@
 "use strict";
 const common_vendor = require("../../common/vendor.js");
-const _sfc_main = {
-  data() {
-    return {
-      href: "https://uniapp.dcloud.io/component/README?id=uniui"
+const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
+  __name: "index",
+  setup(__props) {
+    var _a, _b, _c;
+    const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
+    const $app = (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$app;
+    const $config = (_c = common_vendor.getCurrentInstance()) == null ? void 0 : _c.appContext.config.globalProperties.$config;
+    const openid = common_vendor.computed(() => {
+      return common_vendor.index.getStorageSync("openid");
+    });
+    const logoUrl = common_vendor.ref("");
+    const initUser = async () => {
+      common_vendor.index.login({
+        success: async function(result) {
+          if (!result.code) {
+            common_vendor.index.showToast({
+              title: "登录失败请重进!",
+              icon: "fail"
+            });
+            return false;
+          }
+          if (!openid.value) {
+            const res = await login(result.code);
+            if (res)
+              common_vendor.index.setStorageSync("openid", res);
+          }
+          common_vendor.index.redirectTo({
+            url: "/pages/home/index"
+          });
+        }
+      });
     };
-  },
-  methods: {}
-};
-if (!Array) {
-  const _easycom_uni_link2 = common_vendor.resolveComponent("uni-link");
-  _easycom_uni_link2();
-}
-const _easycom_uni_link = () => "../../uni_modules/uni-link/components/uni-link/uni-link.js";
-if (!Math) {
-  _easycom_uni_link();
-}
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return {
-    a: common_vendor.p({
-      href: $data.href,
-      text: $data.href
-    })
-  };
-}
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/project/足球比赛/match_applet/pages/index/index.vue"]]);
+    const login = async (js_code) => {
+      const res = await $app("/wechat/api/login/app", "GET", {
+        js_code,
+        config: $config.wx_projectkey
+      });
+      if (res.errcode === 0)
+        return res.data.openid;
+      else {
+        common_vendor.index.showToast({
+          title: "登录失败请重进!",
+          icon: "fail"
+        });
+        return false;
+      }
+    };
+    const searchConfig = async () => {
+      const res = await $api("/system/matchconfig/findOne", "GET", {});
+      if (res.code === 200) {
+        if (res.data) {
+          logoUrl.value = res.data.logoUrl;
+          common_vendor.index.setStorageSync("config", res.data);
+        }
+      } else {
+        common_vendor.index.showToast({
+          title: res.msg || "",
+          icon: "error"
+        });
+      }
+    };
+    initUser();
+    searchConfig();
+    return (_ctx, _cache) => {
+      return {
+        a: logoUrl.value || "/static/logo.png"
+      };
+    };
+  }
+});
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/project/足球比赛/match_applet/pages/index/index.vue"]]);
 wx.createPage(MiniProgramPage);

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

@@ -1,6 +1,4 @@
 {
-  "navigationBarTitleText": "uni-app",
-  "usingComponents": {
-    "uni-link": "../../uni_modules/uni-link/components/uni-link/uni-link"
-  }
+  "navigationBarTitleText": "系统页",
+  "usingComponents": {}
 }

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

@@ -1 +1 @@
-<view class="container"><view class="intro">本项目已包含uni ui组件,无需import和注册,可直接使用。在代码区键入字母u,即可通过代码助手列出所有可用组件。光标置于组件名称处按F1,即可查看组件文档。</view><text class="intro">详见:</text><uni-link wx:if="{{a}}" u-i="5b29e0b4-0" bind:__l="__l" u-p="{{a}}"></uni-link></view>
+<view class="main"><view class="one"><image class="logo" src="{{a}}"/></view></view>

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

@@ -1,6 +1,18 @@
-
-.container {
-		padding: 20px;
-		font-size: 14px;
-		line-height: 24px;
-}
+/* 水平间距 */
+/* 水平间距 */
+.main {
+  display: flex;
+  flex-direction: column;
+  width: 100vw;
+  height: 100vh;
+}
+.main .one {
+  text-align: center;
+  margin: 40vw 0 0 0;
+}
+.main .one .logo {
+  width: 50vw;
+  height: 50vw;
+  border-radius: 90px;
+  box-shadow: 0 0 5px #f1f1f1;
+}

+ 2 - 2
unpackage/dist/dev/mp-weixin/project.config.json

@@ -8,7 +8,7 @@
     "urlCheck": false,
     "es6": true,
     "postcss": false,
-    "minified": false,
+    "minified": true,
     "newFeature": true,
     "bigPackageSizeSupport": true,
     "babelSetting": {
@@ -19,7 +19,7 @@
   },
   "compileType": "miniprogram",
   "libVersion": "3.2.0",
-  "appid": "touristappid",
+  "appid": "wx34436977cd1e02e4",
   "projectname": "match_applet",
   "condition": {},
   "editorSetting": {

BIN
unpackage/dist/dev/mp-weixin/static/c1.png


BIN
unpackage/dist/dev/mp-weixin/static/c2.png


BIN
unpackage/dist/dev/mp-weixin/static/c3.png


BIN
unpackage/dist/dev/mp-weixin/static/c4.png


BIN
unpackage/dist/dev/mp-weixin/static/c5.png


BIN
unpackage/dist/dev/mp-weixin/static/c6.png


BIN
unpackage/dist/dev/mp-weixin/static/c7.png


BIN
unpackage/dist/dev/mp-weixin/static/c8.png


BIN
unpackage/dist/dev/mp-weixin/static/c9.png


+ 0 - 20
unpackage/dist/dev/mp-weixin/static/customicons.css

@@ -1,20 +0,0 @@
-@font-face {
-  font-family: "customicons"; /* Project id 2878519 */
-  src:url('/static/customicons.ttf') format('truetype');
-}
-
-.customicons {
-  font-family: "customicons" !important;
-}
-
-.youxi:before {
-  content: "\e60e";
-}
-
-.wenjian:before {
-  content: "\e60f";
-}
-
-.zhuanfa:before {
-  content: "\e610";
-}

BIN
unpackage/dist/dev/mp-weixin/static/customicons.ttf


BIN
unpackage/dist/dev/mp-weixin/static/uni.png


+ 0 - 88
unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.js

@@ -1,88 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "uniLink",
-  props: {
-    href: {
-      type: String,
-      default: ""
-    },
-    text: {
-      type: String,
-      default: ""
-    },
-    download: {
-      type: String,
-      default: ""
-    },
-    showUnderLine: {
-      type: [Boolean, String],
-      default: true
-    },
-    copyTips: {
-      type: String,
-      default: "已自动复制网址,请在手机浏览器里粘贴该网址"
-    },
-    color: {
-      type: String,
-      default: "#999999"
-    },
-    fontSize: {
-      type: [Number, String],
-      default: 14
-    }
-  },
-  computed: {
-    isShowA() {
-      if ((this.isMail() || this.isTel()) && this._isH5 === true) {
-        return true;
-      }
-      return false;
-    }
-  },
-  created() {
-    this._isH5 = null;
-  },
-  methods: {
-    isMail() {
-      return this.href.startsWith("mailto:");
-    },
-    isTel() {
-      return this.href.startsWith("tel:");
-    },
-    openURL() {
-      common_vendor.index.setClipboardData({
-        data: this.href
-      });
-      common_vendor.index.showModal({
-        content: this.copyTips,
-        showCancel: false
-      });
-    },
-    makePhoneCall(phoneNumber) {
-      common_vendor.index.makePhoneCall({
-        phoneNumber
-      });
-    }
-  }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return common_vendor.e({
-    a: $options.isShowA
-  }, $options.isShowA ? {
-    b: common_vendor.t($props.text),
-    c: $props.href,
-    d: $props.showUnderLine === true || $props.showUnderLine === "true" ? 1 : "",
-    e: $props.color,
-    f: $props.fontSize + "px",
-    g: $props.download
-  } : {
-    h: common_vendor.t($props.text),
-    i: $props.showUnderLine === true || $props.showUnderLine === "true" ? 1 : "",
-    j: $props.color,
-    k: $props.fontSize + "px",
-    l: common_vendor.o((...args) => $options.openURL && $options.openURL(...args))
-  });
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/project/足球比赛/match_applet/uni_modules/uni-link/components/uni-link/uni-link.vue"]]);
-wx.createComponent(Component);

+ 0 - 4
unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.json

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

+ 0 - 1
unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.wxml

@@ -1 +0,0 @@
-<navigator wx:if="{{a}}" href="{{c}}" class="{{['uni-link', d && 'uni-link--withline']}}" style="{{'color:' + e + ';' + ('font-size:' + f)}}" download="{{g}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else>{{b}}</block></navigator><text wx:else class="{{['uni-link', i && 'uni-link--withline']}}" style="{{'color:' + j + ';' + ('font-size:' + k)}}" bindtap="{{l}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else>{{h}}</block></text>

+ 0 - 7
unpackage/dist/dev/mp-weixin/uni_modules/uni-link/components/uni-link/uni-link.wxss

@@ -1,7 +0,0 @@
-
-.uni-link {
-		cursor: pointer;
-}
-.uni-link--withline {
-		text-decoration: underline;
-}