guhongwei 2 years ago
parent
commit
757518fc17
70 changed files with 7473 additions and 532 deletions
  1. 4 0
      .hbuilderx/launch.json
  2. 3 1
      App.vue
  3. 56 0
      common/api.js
  4. 7 0
      common/config.js
  5. 128 0
      components/upload/index.vue
  6. 18 16
      main.js
  7. 7 3
      manifest.json
  8. 19 11
      pages.json
  9. 8 9
      pages/index/index.vue
  10. 36 0
      pagesCommon/test/index.vue
  11. 37 0
      pagesHome/home/index.vue
  12. 0 29
      pagesOne/test/index.vue
  13. 7 76
      uni.scss
  14. 0 0
      unpackage/dist/dev/.automator/app-plus/.automator.json
  15. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  16. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
  17. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  18. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map
  19. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  20. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesCommon/test/index.js.map
  21. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/home/index.js.map
  22. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesOne/test/index.js.map
  23. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
  24. 1 0
      unpackage/dist/dev/app-plus/__uniappchooselocation.js
  25. BIN
      unpackage/dist/dev/app-plus/__uniapperror.png
  26. 1 0
      unpackage/dist/dev/app-plus/__uniappes6.js
  27. 1 0
      unpackage/dist/dev/app-plus/__uniappopenlocation.js
  28. 1 0
      unpackage/dist/dev/app-plus/__uniapppicker.js
  29. 8 0
      unpackage/dist/dev/app-plus/__uniappquill.js
  30. 1 0
      unpackage/dist/dev/app-plus/__uniappquillimageresize.js
  31. 1 0
      unpackage/dist/dev/app-plus/__uniappscan.js
  32. BIN
      unpackage/dist/dev/app-plus/__uniappsuccess.png
  33. 25 0
      unpackage/dist/dev/app-plus/__uniappview.html
  34. 8 0
      unpackage/dist/dev/app-plus/app-config-service.js
  35. 154 0
      unpackage/dist/dev/app-plus/app-config.js
  36. 1576 0
      unpackage/dist/dev/app-plus/app-service.js
  37. 1829 0
      unpackage/dist/dev/app-plus/app-view.js
  38. 1 0
      unpackage/dist/dev/app-plus/manifest.json
  39. BIN
      unpackage/dist/dev/app-plus/static/logo.png
  40. BIN
      unpackage/dist/dev/app-plus/uni_modules/uni-icons/components/uni-icons/uniicons.ttf
  41. 1 0
      unpackage/dist/dev/app-plus/view.css
  42. 6 0
      unpackage/dist/dev/app-plus/view.umd.min.js
  43. 8 1
      unpackage/dist/dev/mp-weixin/app.json
  44. 1 1
      unpackage/dist/dev/mp-weixin/app.wxss
  45. 72 31
      unpackage/dist/dev/mp-weixin/common/main.js
  46. 8 0
      unpackage/dist/dev/mp-weixin/common/main.wxss
  47. 115 0
      unpackage/dist/dev/mp-weixin/common/runtime.js
  48. 1735 80
      unpackage/dist/dev/mp-weixin/common/vendor.js
  49. 301 0
      unpackage/dist/dev/mp-weixin/components/upload/index.js
  50. 6 0
      unpackage/dist/dev/mp-weixin/components/upload/index.json
  51. 1 0
      unpackage/dist/dev/mp-weixin/components/upload/index.wxml
  52. 42 0
      unpackage/dist/dev/mp-weixin/components/upload/index.wxss
  53. 64 61
      unpackage/dist/dev/mp-weixin/pages/index/index.js
  54. 1 1
      unpackage/dist/dev/mp-weixin/pages/index/index.json
  55. 1 1
      unpackage/dist/dev/mp-weixin/pages/index/index.wxml
  56. 8 3
      unpackage/dist/dev/mp-weixin/pages/index/index.wxss
  57. 203 0
      unpackage/dist/dev/mp-weixin/pagesCommon/test/index.js
  58. 0 0
      unpackage/dist/dev/mp-weixin/pagesCommon/test/index.json
  59. 1 0
      unpackage/dist/dev/mp-weixin/pagesCommon/test/index.wxml
  60. 180 0
      unpackage/dist/dev/mp-weixin/pagesHome/home/index.js
  61. 7 0
      unpackage/dist/dev/mp-weixin/pagesHome/home/index.json
  62. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/home/index.wxml
  63. 0 191
      unpackage/dist/dev/mp-weixin/pagesOne/test/index.js
  64. 0 1
      unpackage/dist/dev/mp-weixin/pagesOne/test/index.wxml
  65. 0 6
      unpackage/dist/dev/mp-weixin/pagesOne/test/index.wxss
  66. 5 5
      unpackage/dist/dev/mp-weixin/project.config.json
  67. 240 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js
  68. 4 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.json
  69. 1 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.wxml
  70. 515 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.wxss

+ 4 - 0
.hbuilderx/launch.json

@@ -2,6 +2,10 @@
   // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
     "version": "0.0",
     "configurations": [{
+     	"app-plus" : 
+     	{
+     		"launchtype" : "local"
+     	},
      	"default" : 
      	{
      		"launchtype" : "local"

+ 3 - 1
App.vue

@@ -2,4 +2,6 @@
 	export default {}
 </script>
 
-<style></style>
+<style>
+	@import url('@/uni.scss');
+</style>

+ 56 - 0
common/api.js

@@ -0,0 +1,56 @@
+import config from "../common/config";
+const getDomain = (uri, type) => {
+	const {
+		serverUrl,
+		wechatUrl
+	} = config;
+	// 自定义
+	if (uri.includes("http")) return uri;
+	// 微信
+	if (uri.startsWith("/wechat/api")) return wechatUrl + uri;
+	// 地址前缀
+	else if (type) return serverUrl + `/projectadmin/${type}/api/` + uri;
+	// 常规
+	return serverUrl + "/projectadmin/api/" + uri;
+};
+// 常规请求
+export const requestBase = async (uri, method = "GET", data, type) => {
+	// 请求地址
+	let baseUrl = getDomain(uri, type);
+	// 请求头
+	let header = {};
+	// 用户信息
+	let token = "";
+	if (token) header.token = token;
+	return new Promise((resolve, reject) => {
+		uni.request({
+			url: baseUrl,
+			method,
+			data,
+			header,
+			success: (res) => toResolve(resolve, res),
+			fail: (err) => toReject(reject, err),
+		});
+	});
+};
+// 图片请求
+export const requestFile = (uri, method, data, type) => {
+	// 请求地址
+	let baseUrl = getDomain(uri, type);
+	return new Promise((resolve, reject) => {
+		uni.uploadFile({
+			url: `https://broadcast.waityou24.cn/${uri}`,
+			filePath: data,
+			name: 'file',
+			formData: {},
+			success: (res) => toResolve(resolve, res),
+			error: (e) => toReject(reject, e),
+		})
+	});
+};
+const toResolve = (resolve, result) => {
+	if (result.statusCode === 200) resolve(result.data);
+};
+const toReject = (reject, result) => {
+	reject(result);
+};

+ 7 - 0
common/config.js

@@ -0,0 +1,7 @@
+export default {
+  // 接口地址
+  serverUrl: "http://127.0.0.1:10102",
+  wechatUrl: "https://broadcast.waityou24.cn",
+  // 设备信息
+  system: uni.getSystemInfoSync(),
+};

+ 128 - 0
components/upload/index.vue

@@ -0,0 +1,128 @@
+<template>
+	<view class="upload">
+		<view class="upload_1">
+			<view class="list" v-for="(item, index) in list" :key="index">
+				<image class="image" :src="item.url" @click="toView(index, item)"></image>
+				<uni-icons class="del" type="close" size="30" color="#ff0000" @click="uplDel(index, item)"></uni-icons>
+			</view>
+			<view class="list" v-if="list && list.length < count" @tap="uplSuc()">
+				<uni-icons class="add" type="plusempty" size="55" color="#ff0000"></uni-icons>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		props: {
+			list: {
+				type: Array,
+			},
+			name: {
+				type: String,
+			},
+			count: {
+				type: Number,
+				default: 1,
+			},
+		},
+		data() {
+			return {};
+		},
+		methods: {
+			uplSuc() {
+				const that = this;
+				let serverUrl = that.$config.serverUrl;
+				uni.chooseImage({
+					count: 1,
+					sizeType: ["original", "compressed"],
+					sourceType: ["album", "camera"],
+					async success(chooseRes) {
+						let file = JSON.parse(JSON.stringify(chooseRes.tempFilePaths));
+						let res = await that.$apifile("files/test/upload", null, file[0]);
+						res = JSON.parse(res);
+						if (res.errcode == "0") {
+							let data = {
+								name: res.name,
+								uri: res.uri,
+								url: serverUrl + res.uri
+							}
+							that.$emit("uplSuc", {
+								data: data,
+								name: that.name,
+							});
+						} else {
+							uni.showToast({
+								title: '请求接口失败',
+								icon: 'fail',
+							});
+						}
+					},
+				});
+			},
+			// 删除图片
+			uplDel(index, e) {
+				const that = this;
+				let data = {
+					file: e,
+					index: index,
+				}
+				that.$emit("uplDel", {
+					data: data,
+					name: that.name,
+				});
+			},
+			// 图片预览
+			toView(index, e) {
+				const that = this;
+				uni.previewImage({
+					current: index,
+					urls: [e.url],
+				});
+			},
+		},
+	};
+</script>
+
+<style lang="scss">
+	.upload {
+		padding: 0 2vw;
+
+		.upload_1 {
+			display: flex;
+			flex-direction: row;
+			flex-wrap: wrap;
+
+			.list {
+				position: relative;
+				width: 30vw;
+				height: 28vw;
+				text-align: center;
+				margin: 0 3vw 2vw 0;
+				border-radius: 5px;
+				box-shadow: 0 0 2px #858585;
+
+				.image {
+					width: 100%;
+					height: 100%;
+					border-radius: 5px;
+				}
+
+				.add {
+					position: relative;
+					top: 20px;
+				}
+
+				.del {
+					position: absolute;
+					right: 0;
+					top: 0;
+				}
+			}
+
+			.list:nth-child(3n) {
+				margin: 0 0 2vw 0;
+			}
+		}
+	}
+</style>

+ 18 - 16
main.js

@@ -1,21 +1,23 @@
-import App from './App'
-
+import App from "./App";
+import Vue from "vue";
 // #ifndef VUE3
-import Vue from 'vue'
-Vue.config.productionTip = false
-App.mpType = 'app'
-const app = new Vue({
-    ...App
-})
-app.$mount()
+// 阻止生产环境信息
+Vue.config.productionTip = false;
+// 配置文件
+import config from '@/common/config.js';
+Vue.prototype.$config = config;
+// api配置
+import { requestBase, requestFile } from "@/common/api.js";
+Vue.prototype.$api = requestBase;
+Vue.prototype.$apifile = requestFile;
+App.mpType = "app";
+const app = new Vue({ ...App });
+app.$mount();
 // #endif
-
 // #ifdef VUE3
-import { createSSRApp } from 'vue'
+import { createSSRApp } from "vue";
 export function createApp() {
-  const app = createSSRApp(App)
-  return {
-    app
-  }
+  const app = createSSRApp(App);
+  return { app };
 }
-// #endif
+// #endif

+ 7 - 3
manifest.json

@@ -50,11 +50,15 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "",
+        "appid" : "wx0fd4b616bc7cf3bb",
         "setting" : {
-            "urlCheck" : false
+            "urlCheck" : false,
+            "es6" : true,
+            "postcss" : true,
+            "minified" : true
         },
-        "usingComponents" : true
+        "usingComponents" : true,
+        "permission" : {}
     },
     "mp-alipay" : {
         "usingComponents" : true

+ 19 - 11
pages.json

@@ -3,22 +3,30 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationBarTitleText": "uni-app"
+				"navigationBarTitleText": "首页"
 			}
 		}
 	],
-	"subPackages": [ //分包
+	"subPackages": [ //
 		{
-			"root": "pagesOne", //分包名称
-			"pages": [ //分包菜单配置
-				{
-					"path": "test/index",
-					"style": {
-						"navigationBarTitleText": "测试一", //菜单名称
-						"enablePullDownRefresh": true //是否启用下拉刷新
-					}
+			"root": "pagesCommon", //公共分包
+			"pages": [{
+				"path": "test/index",
+				"style": {
+					"navigationBarTitleText": "测试一",
+					"enablePullDownRefresh": true //是否启用下拉刷新
 				}
-			]
+			}]
+		},
+		{
+			"root": "pagesHome", //系統首页
+			"pages": [{
+				"path": "home/index",
+				"style": {
+					"navigationBarTitleText": "系统首页",
+					"enablePullDownRefresh": true //是否启用下拉刷新
+				}
+			}]
 		}
 	],
 	"globalStyle": {

+ 8 - 9
pages/index/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content">
-		系统首页
-		<button @tap="toPath()">分包一测试页面</button>
+		<button @tap="toPath('/pagesCommon/test/index')" size="mini">分包一测试页面</button>
+		<button @tap="toPath('/pagesHome/home/index')" size="mini">系统首页</button>
 	</view>
 </template>
 
@@ -13,22 +13,21 @@
 			}
 		},
 		onLoad() {
-
+			const that = this;
+			that.toPath('/pagesHome/home/index')
 		},
 		methods: {
-			toPath() {
+			toPath(e) {
 				uni.navigateTo({
-					url: '/pagesOne/test/index'
+					url: e
 				})
 			}
 		}
 	}
 </script>
 
-<style>
+<style lang="scss">
 	.content {
-		display: flex;
-		flex-direction: column;
-
+		text-align: center;
 	}
 </style>

+ 36 - 0
pagesCommon/test/index.vue

@@ -0,0 +1,36 @@
+<template>
+  <view class="content">
+    <view class="one">
+      <view v-for="(item, index) in list" :key="index">
+        <view class="name">
+          {{ item.name }}
+        </view>
+        <view class="brief">
+          {{ item.brief }}
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      list: [],
+    };
+  },
+  onLoad() {
+    const that = this;
+    that.search();
+  },
+  methods: {
+    async search({ skip = 0, limit = 10, ...info } = {}) {
+      let res = await this.$api("test", "GET", {});
+      console.log(res);
+    },
+  },
+};
+</script>
+
+<style lang="scss"></style>

+ 37 - 0
pagesHome/home/index.vue

@@ -0,0 +1,37 @@
+<template>
+	<view class="content">
+		<view class="one">
+			<upload :list="file" name="file" :count="6" @uplSuc="uplSuc" @uplDel="uplDel"></upload>
+		</view>
+	</view>
+</template>
+
+<script>
+	import upload from "@/components/upload/index.vue";
+	export default {
+		components: {
+			upload,
+		},
+		data() {
+			return {
+				file: [],
+			};
+		},
+		methods: {
+			// 图片上传
+			uplSuc(e) {
+				const that = this;
+				that.$set(that, `${e.name}`, [...that[e.name], e.data]);
+			},
+			// 图片删除
+			uplDel(e) {
+				const that = this;
+				let data = that[e.name];
+				let arr = data.filter((i, index) => index != e.data.index);
+				that.$set(that, `${e.name}`, arr);
+			},
+		},
+	};
+</script>
+
+<style lang="scss"></style>

+ 0 - 29
pagesOne/test/index.vue

@@ -1,29 +0,0 @@
-<template>
-	<view class="content">
-		分包一测试页面
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-
-			}
-		},
-		onLoad() {
-
-		},
-		methods: {
-
-		}
-	}
-</script>
-
-<style>
-	.content {
-		display: flex;
-		flex-direction: column;
-
-	}
-</style>

+ 7 - 76
uni.scss

@@ -1,76 +1,7 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
-
-/**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
-
-/* 颜色变量 */
-
-/* 行为相关颜色 */
-$uni-color-primary: #007aff;
-$uni-color-success: #4cd964;
-$uni-color-warning: #f0ad4e;
-$uni-color-error: #dd524d;
-
-/* 文字基本颜色 */
-$uni-text-color:#333;//基本色
-$uni-text-color-inverse:#fff;//反色
-$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
-$uni-text-color-placeholder: #808080;
-$uni-text-color-disable:#c0c0c0;
-
-/* 背景颜色 */
-$uni-bg-color:#ffffff;
-$uni-bg-color-grey:#f8f8f8;
-$uni-bg-color-hover:#f1f1f1;//点击状态颜色
-$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
-
-/* 边框颜色 */
-$uni-border-color:#c8c7cc;
-
-/* 尺寸变量 */
-
-/* 文字尺寸 */
-$uni-font-size-sm:12px;
-$uni-font-size-base:14px;
-$uni-font-size-lg:16;
-
-/* 图片尺寸 */
-$uni-img-size-sm:20px;
-$uni-img-size-base:26px;
-$uni-img-size-lg:40px;
-
-/* Border Radius */
-$uni-border-radius-sm: 2px;
-$uni-border-radius-base: 3px;
-$uni-border-radius-lg: 6px;
-$uni-border-radius-circle: 50%;
-
-/* 水平间距 */
-$uni-spacing-row-sm: 5px;
-$uni-spacing-row-base: 10px;
-$uni-spacing-row-lg: 15px;
-
-/* 垂直间距 */
-$uni-spacing-col-sm: 4px;
-$uni-spacing-col-base: 8px;
-$uni-spacing-col-lg: 12px;
-
-/* 透明度 */
-$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
-
-/* 文章场景相关 */
-$uni-color-title: #2C405A; // 文章标题颜色
-$uni-font-size-title:20px;
-$uni-color-subtitle: #555555; // 二级标题颜色
-$uni-font-size-subtitle:26px;
-$uni-color-paragraph: #3F536E; // 文章段落颜色
-$uni-font-size-paragraph:15px;
+.content {
+	display: flex;
+	flex-direction: column;
+	box-sizing: border-box;
+	width: 100vw;
+	height: 100vh;
+}

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


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesCommon/test/index.js.map


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/home/index.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesOne/test/index.js.map


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/__uniappchooselocation.js


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


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/__uniappes6.js


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/__uniappopenlocation.js


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/__uniapppicker.js


File diff suppressed because it is too large
+ 8 - 0
unpackage/dist/dev/app-plus/__uniappquill.js


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/__uniappquillimageresize.js


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/__uniappscan.js


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


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

@@ -0,0 +1,25 @@
+<!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>

File diff suppressed because it is too large
+ 8 - 0
unpackage/dist/dev/app-plus/app-config-service.js


+ 154 - 0
unpackage/dist/dev/app-plus/app-config.js

@@ -0,0 +1,154 @@
+/******/ (function(modules) { // webpackBootstrap
+/******/ 	// install a JSONP callback for chunk loading
+/******/ 	function webpackJsonpCallback(data) {
+/******/ 		var chunkIds = data[0];
+/******/ 		var moreModules = data[1];
+/******/ 		var executeModules = data[2];
+/******/
+/******/ 		// add "moreModules" to the modules object,
+/******/ 		// then flag all "chunkIds" as loaded and fire callback
+/******/ 		var moduleId, chunkId, i = 0, resolves = [];
+/******/ 		for(;i < chunkIds.length; i++) {
+/******/ 			chunkId = chunkIds[i];
+/******/ 			if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
+/******/ 				resolves.push(installedChunks[chunkId][0]);
+/******/ 			}
+/******/ 			installedChunks[chunkId] = 0;
+/******/ 		}
+/******/ 		for(moduleId in moreModules) {
+/******/ 			if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
+/******/ 				modules[moduleId] = moreModules[moduleId];
+/******/ 			}
+/******/ 		}
+/******/ 		if(parentJsonpFunction) parentJsonpFunction(data);
+/******/
+/******/ 		while(resolves.length) {
+/******/ 			resolves.shift()();
+/******/ 		}
+/******/
+/******/ 		// add entry modules from loaded chunk to deferred list
+/******/ 		deferredModules.push.apply(deferredModules, executeModules || []);
+/******/
+/******/ 		// run deferred modules when all chunks ready
+/******/ 		return checkDeferredModules();
+/******/ 	};
+/******/ 	function checkDeferredModules() {
+/******/ 		var result;
+/******/ 		for(var i = 0; i < deferredModules.length; i++) {
+/******/ 			var deferredModule = deferredModules[i];
+/******/ 			var fulfilled = true;
+/******/ 			for(var j = 1; j < deferredModule.length; j++) {
+/******/ 				var depId = deferredModule[j];
+/******/ 				if(installedChunks[depId] !== 0) fulfilled = false;
+/******/ 			}
+/******/ 			if(fulfilled) {
+/******/ 				deferredModules.splice(i--, 1);
+/******/ 				result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
+/******/ 			}
+/******/ 		}
+/******/
+/******/ 		return result;
+/******/ 	}
+/******/
+/******/ 	// The module cache
+/******/ 	var installedModules = {};
+/******/
+/******/ 	// object to store loaded and loading chunks
+/******/ 	// undefined = chunk not loaded, null = chunk preloaded/prefetched
+/******/ 	// Promise = chunk loading, 0 = chunk loaded
+/******/ 	var installedChunks = {
+/******/ 		"app-config": 0
+/******/ 	};
+/******/
+/******/ 	var deferredModules = [];
+/******/
+/******/ 	// The require function
+/******/ 	function __webpack_require__(moduleId) {
+/******/
+/******/ 		// Check if module is in cache
+/******/ 		if(installedModules[moduleId]) {
+/******/ 			return installedModules[moduleId].exports;
+/******/ 		}
+/******/ 		// Create a new module (and put it into the cache)
+/******/ 		var module = installedModules[moduleId] = {
+/******/ 			i: moduleId,
+/******/ 			l: false,
+/******/ 			exports: {}
+/******/ 		};
+/******/
+/******/ 		// Execute the module function
+/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ 		// Flag the module as loaded
+/******/ 		module.l = true;
+/******/
+/******/ 		// Return the exports of the module
+/******/ 		return module.exports;
+/******/ 	}
+/******/
+/******/
+/******/ 	// expose the modules object (__webpack_modules__)
+/******/ 	__webpack_require__.m = modules;
+/******/
+/******/ 	// expose the module cache
+/******/ 	__webpack_require__.c = installedModules;
+/******/
+/******/ 	// define getter function for harmony exports
+/******/ 	__webpack_require__.d = function(exports, name, getter) {
+/******/ 		if(!__webpack_require__.o(exports, name)) {
+/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
+/******/ 		}
+/******/ 	};
+/******/
+/******/ 	// define __esModule on exports
+/******/ 	__webpack_require__.r = function(exports) {
+/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ 		}
+/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
+/******/ 	};
+/******/
+/******/ 	// create a fake namespace object
+/******/ 	// mode & 1: value is a module id, require it
+/******/ 	// mode & 2: merge all properties of value into the ns
+/******/ 	// mode & 4: return value when already ns object
+/******/ 	// mode & 8|1: behave like require
+/******/ 	__webpack_require__.t = function(value, mode) {
+/******/ 		if(mode & 1) value = __webpack_require__(value);
+/******/ 		if(mode & 8) return value;
+/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
+/******/ 		var ns = Object.create(null);
+/******/ 		__webpack_require__.r(ns);
+/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
+/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
+/******/ 		return ns;
+/******/ 	};
+/******/
+/******/ 	// getDefaultExport function for compatibility with non-harmony modules
+/******/ 	__webpack_require__.n = function(module) {
+/******/ 		var getter = module && module.__esModule ?
+/******/ 			function getDefault() { return module['default']; } :
+/******/ 			function getModuleExports() { return module; };
+/******/ 		__webpack_require__.d(getter, 'a', getter);
+/******/ 		return getter;
+/******/ 	};
+/******/
+/******/ 	// Object.prototype.hasOwnProperty.call
+/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ 	// __webpack_public_path__
+/******/ 	__webpack_require__.p = "/";
+/******/
+/******/ 	var jsonpArray = this["webpackJsonp"] = this["webpackJsonp"] || [];
+/******/ 	var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
+/******/ 	jsonpArray.push = webpackJsonpCallback;
+/******/ 	jsonpArray = jsonpArray.slice();
+/******/ 	for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
+/******/ 	var parentJsonpFunction = oldJsonpFunction;
+/******/
+/******/
+/******/ 	// run deferred modules from other chunks
+/******/ 	checkDeferredModules();
+/******/ })
+/************************************************************************/
+/******/ ([]);

File diff suppressed because it is too large
+ 1576 - 0
unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 1829 - 0
unpackage/dist/dev/app-plus/app-view.js


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/manifest.json


BIN
unpackage/dist/dev/app-plus/static/logo.png


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


File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/view.css


File diff suppressed because it is too large
+ 6 - 0
unpackage/dist/dev/app-plus/view.umd.min.js


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

@@ -4,10 +4,16 @@
   ],
   "subPackages": [
     {
-      "root": "pagesOne",
+      "root": "pagesCommon",
       "pages": [
         "test/index"
       ]
+    },
+    {
+      "root": "pagesHome",
+      "pages": [
+        "home/index"
+      ]
     }
   ],
   "window": {
@@ -16,5 +22,6 @@
     "navigationBarBackgroundColor": "#F8F8F8",
     "backgroundColor": "#F8F8F8"
   },
+  "permission": {},
   "usingComponents": {}
 }

+ 1 - 1
unpackage/dist/dev/mp-weixin/app.wxss

@@ -1,3 +1,3 @@
-
+@import './common/main.wxss';
 
 [data-custom-hidden="true"],[bind-data-custom-hidden="true"]{display: none !important;}

File diff suppressed because it is too large
+ 72 - 31
unpackage/dist/dev/mp-weixin/common/main.js


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

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

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

@@ -55,6 +55,11 @@
 /******/ 	// The module cache
 /******/ 	var installedModules = {};
 /******/
+/******/ 	// object to store loaded CSS chunks
+/******/ 	var installedCssChunks = {
+/******/ 		"common/runtime": 0
+/******/ 	}
+/******/
 /******/ 	// object to store loaded and loading chunks
 /******/ 	// undefined = chunk not loaded, null = chunk preloaded/prefetched
 /******/ 	// Promise = chunk loading, 0 = chunk loaded
@@ -64,6 +69,11 @@
 /******/
 /******/ 	var deferredModules = [];
 /******/
+/******/ 	// script path function
+/******/ 	function jsonpScriptSrc(chunkId) {
+/******/ 		return __webpack_require__.p + "" + chunkId + ".js"
+/******/ 	}
+/******/
 /******/ 	// The require function
 /******/ 	function __webpack_require__(moduleId) {
 /******/
@@ -88,6 +98,108 @@
 /******/ 		return module.exports;
 /******/ 	}
 /******/
+/******/ 	// This file contains only the entry chunk.
+/******/ 	// The chunk loading function for additional chunks
+/******/ 	__webpack_require__.e = function requireEnsure(chunkId) {
+/******/ 		var promises = [];
+/******/
+/******/
+/******/ 		// mini-css-extract-plugin CSS loading
+/******/ 		var cssChunks = {"components/upload/index":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 fullhref = __webpack_require__.p + href;
+/******/ 				var existingLinkTags = document.getElementsByTagName("link");
+/******/ 				for(var i = 0; i < existingLinkTags.length; i++) {
+/******/ 					var tag = existingLinkTags[i];
+/******/ 					var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
+/******/ 					if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return resolve();
+/******/ 				}
+/******/ 				var existingStyleTags = document.getElementsByTagName("style");
+/******/ 				for(var i = 0; i < existingStyleTags.length; i++) {
+/******/ 					var tag = existingStyleTags[i];
+/******/ 					var dataHref = tag.getAttribute("data-href");
+/******/ 					if(dataHref === href || dataHref === fullhref) return resolve();
+/******/ 				}
+/******/ 				var linkTag = document.createElement("link");
+/******/ 				linkTag.rel = "stylesheet";
+/******/ 				linkTag.type = "text/css";
+/******/ 				linkTag.onload = resolve;
+/******/ 				linkTag.onerror = function(event) {
+/******/ 					var request = event && event.target && event.target.src || fullhref;
+/******/ 					var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + request + ")");
+/******/ 					err.code = "CSS_CHUNK_LOAD_FAILED";
+/******/ 					err.request = request;
+/******/ 					delete installedCssChunks[chunkId]
+/******/ 					linkTag.parentNode.removeChild(linkTag)
+/******/ 					reject(err);
+/******/ 				};
+/******/ 				linkTag.href = fullhref;
+/******/
+/******/ 				var head = document.getElementsByTagName("head")[0];
+/******/ 				head.appendChild(linkTag);
+/******/ 			}).then(function() {
+/******/ 				installedCssChunks[chunkId] = 0;
+/******/ 			}));
+/******/ 		}
+/******/
+/******/ 		// JSONP chunk loading for javascript
+/******/
+/******/ 		var installedChunkData = installedChunks[chunkId];
+/******/ 		if(installedChunkData !== 0) { // 0 means "already installed".
+/******/
+/******/ 			// a Promise means "currently loading".
+/******/ 			if(installedChunkData) {
+/******/ 				promises.push(installedChunkData[2]);
+/******/ 			} else {
+/******/ 				// setup Promise in chunk cache
+/******/ 				var promise = new Promise(function(resolve, reject) {
+/******/ 					installedChunkData = installedChunks[chunkId] = [resolve, reject];
+/******/ 				});
+/******/ 				promises.push(installedChunkData[2] = promise);
+/******/
+/******/ 				// start chunk loading
+/******/ 				var script = document.createElement('script');
+/******/ 				var onScriptComplete;
+/******/
+/******/ 				script.charset = 'utf-8';
+/******/ 				script.timeout = 120;
+/******/ 				if (__webpack_require__.nc) {
+/******/ 					script.setAttribute("nonce", __webpack_require__.nc);
+/******/ 				}
+/******/ 				script.src = jsonpScriptSrc(chunkId);
+/******/
+/******/ 				// create error before stack unwound to get useful stacktrace later
+/******/ 				var error = new Error();
+/******/ 				onScriptComplete = function (event) {
+/******/ 					// avoid mem leaks in IE.
+/******/ 					script.onerror = script.onload = null;
+/******/ 					clearTimeout(timeout);
+/******/ 					var chunk = installedChunks[chunkId];
+/******/ 					if(chunk !== 0) {
+/******/ 						if(chunk) {
+/******/ 							var errorType = event && (event.type === 'load' ? 'missing' : event.type);
+/******/ 							var realSrc = event && event.target && event.target.src;
+/******/ 							error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
+/******/ 							error.name = 'ChunkLoadError';
+/******/ 							error.type = errorType;
+/******/ 							error.request = realSrc;
+/******/ 							chunk[1](error);
+/******/ 						}
+/******/ 						installedChunks[chunkId] = undefined;
+/******/ 					}
+/******/ 				};
+/******/ 				var timeout = setTimeout(function(){
+/******/ 					onScriptComplete({ type: 'timeout', target: script });
+/******/ 				}, 120000);
+/******/ 				script.onerror = script.onload = onScriptComplete;
+/******/ 				document.head.appendChild(script);
+/******/ 			}
+/******/ 		}
+/******/ 		return Promise.all(promises);
+/******/ 	};
 /******/
 /******/ 	// expose the modules object (__webpack_modules__)
 /******/ 	__webpack_require__.m = modules;
@@ -141,6 +253,9 @@
 /******/ 	// __webpack_public_path__
 /******/ 	__webpack_require__.p = "/";
 /******/
+/******/ 	// on error function for async loading
+/******/ 	__webpack_require__.oe = function(err) { console.error(err); throw err; };
+/******/
 /******/ 	var jsonpArray = global["webpackJsonp"] = global["webpackJsonp"] || [];
 /******/ 	var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
 /******/ 	jsonpArray.push = webpackJsonpCallback;

File diff suppressed because it is too large
+ 1735 - 80
unpackage/dist/dev/mp-weixin/common/vendor.js


File diff suppressed because it is too large
+ 301 - 0
unpackage/dist/dev/mp-weixin/components/upload/index.js


+ 6 - 0
unpackage/dist/dev/mp-weixin/components/upload/index.json

@@ -0,0 +1,6 @@
+{
+  "usingComponents": {
+    "uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
+  },
+  "component": true
+}

File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/mp-weixin/components/upload/index.wxml


+ 42 - 0
unpackage/dist/dev/mp-weixin/components/upload/index.wxss

@@ -0,0 +1,42 @@
+.content {
+  display: flex;
+  flex-direction: column;
+  box-sizing: border-box;
+  width: 100vw;
+  height: 100vh;
+}
+.upload {
+  padding: 0 2vw;
+}
+.upload .upload_1 {
+  display: flex;
+  flex-direction: row;
+  flex-wrap: wrap;
+}
+.upload .upload_1 .list {
+  position: relative;
+  width: 30vw;
+  height: 28vw;
+  text-align: center;
+  margin: 0 3vw 2vw 0;
+  border-radius: 5px;
+  box-shadow: 0 0 2px #858585;
+}
+.upload .upload_1 .list .image {
+  width: 100%;
+  height: 100%;
+  border-radius: 5px;
+}
+.upload .upload_1 .list .add {
+  position: relative;
+  top: 20px;
+}
+.upload .upload_1 .list .del {
+  position: absolute;
+  right: 0;
+  top: 0;
+}
+.upload .upload_1 .list:nth-child(3n) {
+  margin: 0 0 2vw 0;
+}
+

File diff suppressed because it is too large
+ 64 - 61
unpackage/dist/dev/mp-weixin/pages/index/index.js


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

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

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

@@ -1 +1 @@
-<view class="content">系统首页<button data-event-opts="{{[['tap',[['toPath']]]]}}" bindtap="__e">分包一测试页面</button></view>
+<view class="content"><button size="mini" data-event-opts="{{[['tap',[['toPath',['/pagesCommon/test/index']]]]]}}" bindtap="__e">分包一测试页面</button><button size="mini" data-event-opts="{{[['tap',[['toPath',['/pagesHome/home/index']]]]]}}" bindtap="__e">系统首页</button></view>

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

@@ -1,6 +1,11 @@
-
 .content {
-	display: flex;
-	flex-direction: column;
+  display: flex;
+  flex-direction: column;
+  box-sizing: border-box;
+  width: 100vw;
+  height: 100vh;
+}
+.content {
+  text-align: center;
 }
 

File diff suppressed because it is too large
+ 203 - 0
unpackage/dist/dev/mp-weixin/pagesCommon/test/index.js


unpackage/dist/dev/mp-weixin/pagesOne/test/index.json → unpackage/dist/dev/mp-weixin/pagesCommon/test/index.json


+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesCommon/test/index.wxml

@@ -0,0 +1 @@
+<view class="content"><view class="one"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view class="name">{{''+item.name+''}}</view><view class="brief">{{''+item.brief+''}}</view></view></block></view></view>

File diff suppressed because it is too large
+ 180 - 0
unpackage/dist/dev/mp-weixin/pagesHome/home/index.js


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

@@ -0,0 +1,7 @@
+{
+  "navigationBarTitleText": "系统首页",
+  "enablePullDownRefresh": true,
+  "usingComponents": {
+    "upload": "/components/upload/index"
+  }
+}

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

@@ -0,0 +1 @@
+<view class="content"><view class="one"><upload vue-id="0188788a-1" list="{{file}}" name="file" count="{{6}}" data-event-opts="{{[['^uplSuc',[['uplSuc']]],['^uplDel',[['uplDel']]]]}}" bind:uplSuc="__e" bind:uplDel="__e" bind:__l="__l"></upload></view></view>

File diff suppressed because it is too large
+ 0 - 191
unpackage/dist/dev/mp-weixin/pagesOne/test/index.js


+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesOne/test/index.wxml

@@ -1 +0,0 @@
-<view class="content">分包一测试页面</view>

+ 0 - 6
unpackage/dist/dev/mp-weixin/pagesOne/test/index.wxss

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

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

@@ -6,9 +6,9 @@
     },
     "setting": {
         "urlCheck": false,
-        "es6": false,
-        "postcss": false,
-        "minified": false,
+        "es6": true,
+        "postcss": true,
+        "minified": true,
         "newFeature": true,
         "bigPackageSizeSupport": true,
         "babelSetting": {
@@ -18,8 +18,8 @@
         }
     },
     "compileType": "miniprogram",
-    "libVersion": "2.29.0",
-    "appid": "touristappid",
+    "libVersion": "2.29.2",
+    "appid": "wx0fd4b616bc7cf3bb",
     "projectname": "uniapp",
     "condition": {},
     "editorSetting": {

File diff suppressed because it is too large
+ 240 - 0
unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js


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

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

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

@@ -0,0 +1 @@
+<text data-event-opts="{{[['tap',[['_onClick',['$event']]]]]}}" class="{{['uni-icons','uniui-'+type,customPrefix,customPrefix?type:'']}}" style="{{'color:'+(color)+';'+('font-size:'+(iconSize)+';')}}" bindtap="__e"></text>

File diff suppressed because it is too large
+ 515 - 0
unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.wxss