From 1b907f1f3bc31685f3bfbae8a189a55115a904f2 Mon Sep 17 00:00:00 2001 From: xiaomeng Date: Thu, 28 Sep 2023 09:37:21 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 18 ++++++++++++ index.html | 20 +++++++++++++ main.js | 32 +++++++++++++++++++++ manifest.json | 72 +++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 11 ++++++++ 5 files changed, 153 insertions(+) create mode 100644 App.vue create mode 100644 index.html create mode 100644 main.js create mode 100644 manifest.json create mode 100644 package-lock.json diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..537845e --- /dev/null +++ b/App.vue @@ -0,0 +1,18 @@ + + + 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..f0df2ed --- /dev/null +++ b/main.js @@ -0,0 +1,32 @@ +import App from './App' + +import uView from "uview-ui"; +Vue.use(uView); + +// #ifndef VUE3 +import Vue from 'vue' +import './uni.promisify.adaptor' +Vue.config.productionTip = false +App.mpType = 'app' +const app = new Vue({ + ...App +}) +app.$mount() +// #endif + +// #ifdef VUE3 +import { createSSRApp } from 'vue' +export function createApp() { + const app = createSSRApp(App) + return { + app + } +} +// #endif + +//接口 this.api +import api from '@/api/driverapi.js' +Vue.prototype.api = api; +// +import {myRequest} from "./api/nvuerequest" +Vue.prototype.$http=myRequest \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..df72a62 --- /dev/null +++ b/manifest.json @@ -0,0 +1,72 @@ +{ + "name" : "greenhouse-wisdom-applet", + "appid" : "__UNI__1066059", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : {}, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : {} + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wx05b45a2699f02a2b", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "2" +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..ee20846 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,11 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "uview-ui": { + "version": "1.8.4", + "resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-1.8.4.tgz", + "integrity": "sha512-Zr+D5dFdNy6CdHQLBEXeGq/w0LkjxzBtsgaaDwLl0P58g67H7fBBDvy6AzWK/k0c7dwPYMBiK7I4Tr9p92+0DA==" + } + } +}