commit 3a105de41e02e43b401eaf1a1c9bec3b5d59fdc6
Author: kylin L <452061493@qq.com>
Date: Wed Jan 10 16:22:09 2024 +0800
first commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f1d6a77
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+# maven ignore
+unpackage/
+uni_modules/
+node_modules/
+.hbuilderx/
\ No newline at end of file
diff --git a/App.vue b/App.vue
new file mode 100644
index 0000000..ee288b1
--- /dev/null
+++ b/App.vue
@@ -0,0 +1,32 @@
+
+
+
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..c3ff205
--- /dev/null
+++ b/index.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..31b1016
--- /dev/null
+++ b/main.js
@@ -0,0 +1,50 @@
+
+// #ifndef VUE3
+import Vue from 'vue'
+import App from './App'
+
+//导入网络请求的包
+import {$http} from '@escook/request-miniprogram'
+
+uni.$http = $http
+
+$http.baseUrl = 'http://localhost:85'
+
+$http.beforeRequest = function(options) {
+ uni.showLoading({
+ title: "数据加载中..."
+ })
+}
+
+$http.afterRequest = function(options) {
+ uni.hideLoading()
+}
+
+uni.$showMsg = function(title = '数据请求失败!', duration = 1500){
+ uni.showToast({
+ title,
+ duration,
+ icon:'none'
+ })
+}
+
+Vue.config.productionTip = false
+
+App.mpType = 'app'
+
+const app = new Vue({
+ ...App
+})
+app.$mount()
+// #endif
+
+// #ifdef VUE3
+import { createSSRApp } from 'vue'
+import App from './App.vue'
+export function createApp() {
+ const app = createSSRApp(App)
+ return {
+ app
+ }
+}
+// #endif
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
new file mode 100644
index 0000000..bc205e8
--- /dev/null
+++ b/manifest.json
@@ -0,0 +1,60 @@
+{
+ "name" : "zdxtDrillProgram",
+ "appid" : "",
+ "description" : "",
+ "versionName" : "1.0.0",
+ "versionCode" : "100",
+ "transformPx" : false,
+ "app-plus" : {
+ /* 5+App特有相关 */
+ "usingComponents" : true,
+ "nvueCompiler" : "uni-app",
+ "nvueStyleCompiler" : "uni-app",
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ "modules" : {},
+ /* 模块配置 */
+ "distribute" : {
+ /* 应用发布信息 */
+ "android" : {
+ /* android打包配置 */
+ "permissions" : [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ "ios" : {},
+ /* ios打包配置 */
+ "sdkConfigs" : {}
+ }
+ },
+ /* SDK配置 */
+ "quickapp" : {},
+ /* 快应用特有相关 */
+ "mp-weixin" : {
+ /* 小程序特有相关 */
+ "appid" : "wxf733c344d8e69a99",
+ "setting" : {
+ "urlCheck" : false
+ },
+ "usingComponents" : true
+ },
+ "vueVersion" : "2"
+}
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..0f1bb25
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,21 @@
+{
+ "name": "zdxtdrillprogram",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "zdxtdrillprogram",
+ "version": "1.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "@escook/request-miniprogram": "^0.2.1"
+ }
+ },
+ "node_modules/@escook/request-miniprogram": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/@escook/request-miniprogram/-/request-miniprogram-0.2.1.tgz",
+ "integrity": "sha512-ueWV5YsaEm/ycQZuEjMiA88GFMhfBQSjy9GrP9omy4xAQajkGTbYIlnhzsDfWzRPmRC1fKmAiKMrCVcgS+SHcQ=="
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..3051e3d
--- /dev/null
+++ b/package.json
@@ -0,0 +1,15 @@
+{
+ "name": "zdxtdrillprogram",
+ "version": "1.0.0",
+ "description": "",
+ "main": "main.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "keywords": [],
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "@escook/request-miniprogram": "^0.2.1"
+ }
+}
diff --git a/pages.json b/pages.json
new file mode 100644
index 0000000..e10c702
--- /dev/null
+++ b/pages.json
@@ -0,0 +1,67 @@
+{
+ "pages": [{
+ "path" : "pages/index/index",
+ "style" :
+ {
+ "navigationBarTitleText" : "全民演练",
+ "enablePullDownRefresh" : false
+ }
+ },
+ {
+ "path" : "pages/scan/scan",
+ "style" :
+ {
+ "navigationBarTitleText" : "全民演练",
+ "enablePullDownRefresh" : false
+ }
+ },
+ {
+ "path" : "pages/my/my",
+ "style" :
+ {
+ "navigationBarTitleText" : "全民演练",
+ "enablePullDownRefresh" : false
+ }
+ },
+ {
+ "path" : "pages/knowledge/knowledge",
+ "style" :
+ {
+ "navigationBarTitleText" : "全民演练",
+ "enablePullDownRefresh" : false
+ }
+ }],
+ "globalStyle": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "全民演练",
+ "navigationBarBackgroundColor": "#00b6ff",
+ "backgroundColor": "#F8F8F8",
+ "app-plus": {
+ "background": "#efeff4"
+ }
+ },
+ "tabBar": {
+ "selectedColor": "#009eff",
+ "list":[
+ {
+ "pagePath": "pages/index/index",
+ "text": "首页",
+ "iconPath": "static/tab_icons/home.png"
+ },
+ {
+ "pagePath": "pages/scan/scan",
+ "text": "扫一扫",
+ "iconPath": "static/tab_icons/cate.png"
+ },
+ {
+ "pagePath": "pages/knowledge/knowledge",
+ "text": "知识库",
+ "iconPath": "static/tab_icons/knownledge.png"
+ },{
+ "pagePath": "pages/my/my",
+ "text": "我的",
+ "iconPath": "static/tab_icons/my.png"
+ }
+ ]
+ }
+}
diff --git a/pages/index/index.vue b/pages/index/index.vue
new file mode 100644
index 0000000..a929777
--- /dev/null
+++ b/pages/index/index.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/knowledge/knowledge.vue b/pages/knowledge/knowledge.vue
new file mode 100644
index 0000000..901c839
--- /dev/null
+++ b/pages/knowledge/knowledge.vue
@@ -0,0 +1,19 @@
+
+
+ 知识库页面
+
+
+
+
+
+
diff --git a/pages/my/my.vue b/pages/my/my.vue
new file mode 100644
index 0000000..ef5414c
--- /dev/null
+++ b/pages/my/my.vue
@@ -0,0 +1,19 @@
+
+
+ 我的
+
+
+
+
+
+
diff --git a/pages/scan/scan.vue b/pages/scan/scan.vue
new file mode 100644
index 0000000..6cc1cbf
--- /dev/null
+++ b/pages/scan/scan.vue
@@ -0,0 +1,19 @@
+
+
+ 扫一扫
+
+
+
+
+
+
diff --git a/static/customicons.css b/static/customicons.css
new file mode 100644
index 0000000..14ed5fa
--- /dev/null
+++ b/static/customicons.css
@@ -0,0 +1,20 @@
+@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";
+}
diff --git a/static/customicons.ttf b/static/customicons.ttf
new file mode 100644
index 0000000..a3c8ab9
Binary files /dev/null and b/static/customicons.ttf differ
diff --git a/static/logo.png b/static/logo.png
new file mode 100644
index 0000000..b5771e2
Binary files /dev/null and b/static/logo.png differ
diff --git a/static/tab_icons/cate.png b/static/tab_icons/cate.png
new file mode 100755
index 0000000..6ec452f
Binary files /dev/null and b/static/tab_icons/cate.png differ
diff --git a/static/tab_icons/home.png b/static/tab_icons/home.png
new file mode 100755
index 0000000..b3b7cf3
Binary files /dev/null and b/static/tab_icons/home.png differ
diff --git a/static/tab_icons/knownledge.png b/static/tab_icons/knownledge.png
new file mode 100644
index 0000000..ea15883
Binary files /dev/null and b/static/tab_icons/knownledge.png differ
diff --git a/static/tab_icons/my.png b/static/tab_icons/my.png
new file mode 100755
index 0000000..8b5a263
Binary files /dev/null and b/static/tab_icons/my.png differ
diff --git a/static/uni.png b/static/uni.png
new file mode 100644
index 0000000..8e3a80f
Binary files /dev/null and b/static/uni.png differ
diff --git a/uni.scss b/uni.scss
new file mode 100644
index 0000000..c24ca6b
--- /dev/null
+++ b/uni.scss
@@ -0,0 +1 @@
+@import '@/uni_modules/uni-scss/variables.scss';
\ No newline at end of file