From e0e6238c1c89399e1080f08fb54e0d591a50e2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E8=83=9C=E5=BC=BA?= Date: Fri, 28 Sep 2018 15:44:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=BB=84=E4=BB=B6=E7=A4=BA=E4=BE=8B=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/wxcomponents-template/App.vue | 26 +++++++++ examples/wxcomponents-template/main.js | 11 ++++ examples/wxcomponents-template/manifest.json | 55 +++++++++++++++++++ examples/wxcomponents-template/pages.json | 16 ++++++ .../pages/index/index.vue | 26 +++++++++ 5 files changed, 134 insertions(+) create mode 100644 examples/wxcomponents-template/App.vue create mode 100644 examples/wxcomponents-template/main.js create mode 100644 examples/wxcomponents-template/manifest.json create mode 100644 examples/wxcomponents-template/pages.json create mode 100644 examples/wxcomponents-template/pages/index/index.vue diff --git a/examples/wxcomponents-template/App.vue b/examples/wxcomponents-template/App.vue new file mode 100644 index 0000000000..4e598e3afd --- /dev/null +++ b/examples/wxcomponents-template/App.vue @@ -0,0 +1,26 @@ + + + diff --git a/examples/wxcomponents-template/main.js b/examples/wxcomponents-template/main.js new file mode 100644 index 0000000000..0656173c06 --- /dev/null +++ b/examples/wxcomponents-template/main.js @@ -0,0 +1,11 @@ +import Vue from 'vue' +import App from './App' + +Vue.config.productionTip = false + +App.mpType = 'app' + +const app = new Vue({ + ...App +}) +app.$mount() diff --git a/examples/wxcomponents-template/manifest.json b/examples/wxcomponents-template/manifest.json new file mode 100644 index 0000000000..f098ca4fcb --- /dev/null +++ b/examples/wxcomponents-template/manifest.json @@ -0,0 +1,55 @@ +{ + "name" : "wxcomponents-template", + "appid" : "__UNI__773C51E", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx":false, + "app-plus": { /* 5+App特有相关 */ + "modules": { /* 模块配置 */ + + }, + "distribute": { /* 应用发布信息 */ + "android": { /* android打包配置 */ + "permissions": ["", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + "ios": { /* ios打包配置 */ + + }, + "sdkConfigs": { /* SDK配置 */ + + } + } + }, + "quickapp": { /* 快应用特有相关 */ + + }, + "mp-weixin": { /* 小程序特有相关 */ + "appid": "", + "setting" : { + "urlCheck" : true + } + } +} diff --git a/examples/wxcomponents-template/pages.json b/examples/wxcomponents-template/pages.json new file mode 100644 index 0000000000..bf32f65d10 --- /dev/null +++ b/examples/wxcomponents-template/pages.json @@ -0,0 +1,16 @@ +{ + "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "uni-app" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8" + } +} diff --git a/examples/wxcomponents-template/pages/index/index.vue b/examples/wxcomponents-template/pages/index/index.vue new file mode 100644 index 0000000000..78b92e81a4 --- /dev/null +++ b/examples/wxcomponents-template/pages/index/index.vue @@ -0,0 +1,26 @@ + + + + + -- GitLab