diff --git a/public/nginx.conf b/public/nginx.conf
index fe21bdd..5dd0c44 100644
--- a/public/nginx.conf
+++ b/public/nginx.conf
@@ -1,4 +1,3 @@
-location ^~ /h5/ {
- root h5
- try_files $uri $uri/ /index.html
+location /h5 {
+ try_files $uri $uri/h5 /h5/index.html?$query_string;
}
\ No newline at end of file
diff --git a/src/components/README.md b/src/components/README.md
new file mode 100644
index 0000000..5ec0dcf
--- /dev/null
+++ b/src/components/README.md
@@ -0,0 +1,85 @@
+# 富文本编辑器插件
+uniapp 富文本编辑器插件
+
+## 兼容性
+|微信小程序|H5|APP|
+|:--:|:--:|:--:|
+|√|√ |x|
+
+## 使用方式
+在 `script` 中引用组件
+```js
+import myeditor from "@/components/robin-editor/editor.vue"
+export default {
+ components: {myeditor}
+}
+```
+在 `template` 中使用组件
+```html
+
+
+```
+
+## Demo
+https://github.com/health901/uniapp-editor-demo
+
+## 属性说明
+|属性|类型|默认值|说明|
+|--|--|--|--|
+|v-model|String| |富文本,双向绑定|
+|imageUploader|function(img,callback)| |上传图片处理函数 接受参数 img:本地图片地址,callback:上传成功回调传入图片链接|
+|muiltImage|Boolean|false|是否支持多图上传|
+|compressImage|Boolean|true|图片上传是否压缩|
+|previewMode|Boolean|false|预览模式,不可编辑|
+|autoHideToolbar|Boolean|false|失去焦点时自动隐藏工具栏|
+|tools|Array|['bold', 'italic', 'underline', 'strike', 'align-left', 'align-center', 'align-right', 'remove', 'font', 'color', 'backgroundColor','image', 'clear', 'preview']|工具栏|
+
+### 工具栏
+|名称|值|
+|--|--|
+|加粗|`bold`|
+|斜体|`italic`|
+|下划线|`underline`|
+|删除线|`strike`|
+|右对齐|`align-left`|
+|居中|`align-center`|
+|左对齐|`align-right`|
+|清除格式|`remove`|
+|字体大小|`font`|
+|字体颜色|`color`|
+|背景色|`backgroundColor`|
+|插入图片|`image`|
+|清空|`clear`|
+|预览|`preview`|
+|插入日期|`date`|
+|列表|`list-check`,`list-ordered`,`list-bullet`|
+|上下标|`sub`,`super`|
+|撤销,恢复撤销|`undo`,`redo`|
+|缩进|`indent`,`outdent`|
+|分割线|`divider`|
+|标题|`h1`,`h2`,`h3`,`h4`,`h5`,`h6`|
+|书写方向|`rtl`|
+
+## 事件说明
+|事件|说明|参数|
+|--|--|--|
+|cancel|点击取消按钮|
+|save|点击保存按钮|e={html,text,delta}|
+
+## 依赖
+|组件|链接|备注|
+|---|--|--|
+|Popup 弹出层[[1]](#注)|https://ext.dcloud.net.cn/plugin?id=329|uni-ui库|
+|Transition动画|https://ext.dcloud.net.cn/plugin?id=1231|uni-ui库,Popup依赖|
+|颜色选择器ColorPicker[[2]](#注)|https://ext.dcloud.net.cn/plugin?id=1237|字体颜色,背景色|
+
+
+## 注
+
+1. 修改:新增动画结束事件
+2. 修改:添加按钮,支持预设颜色值
diff --git a/src/components/colorPicker.vue b/src/components/colorPicker.vue
new file mode 100644
index 0000000..1a01304
--- /dev/null
+++ b/src/components/colorPicker.vue
@@ -0,0 +1,289 @@
+
+
+
+
+ {{ colorName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/cu-editor.vue b/src/components/cu-editor.vue
index 374ceb6..982367f 100644
--- a/src/components/cu-editor.vue
+++ b/src/components/cu-editor.vue
@@ -1,86 +1,19 @@
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
- {{ btn.name }}
-
- {{ item.name }}
-
-
-
-
-
-
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/components/robin-editor/editor-icon.css b/src/components/robin-editor/editor-icon.css
new file mode 100644
index 0000000..8e21561
--- /dev/null
+++ b/src/components/robin-editor/editor-icon.css
@@ -0,0 +1,236 @@
+@font-face {
+ font-family: "iconfont";
+ src: url('~./editor-icon.ttf') format('truetype');
+}
+
+.iconfont {
+ font-family: "iconfont" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-redo:before {
+ content: "\e627";
+}
+
+.icon-undo:before {
+ content: "\e633";
+}
+
+.icon-indent:before {
+ content: "\eb28";
+}
+
+.icon-outdent:before {
+ content: "\e6e8";
+}
+
+.icon-fontsize:before {
+ content: "\e6fd";
+}
+
+.icon-format-header-1:before {
+ content: "\e860";
+}
+
+.icon-format-header-4:before {
+ content: "\e863";
+}
+
+.icon-format-header-5:before {
+ content: "\e864";
+}
+
+.icon-format-header-6:before {
+ content: "\e865";
+}
+
+.icon-clearup:before {
+ content: "\e64d";
+}
+
+.icon-preview:before {
+ content: "\e631";
+}
+
+.icon-date:before {
+ content: "\e63e";
+}
+
+.icon-fontbgcolor:before {
+ content: "\e678";
+}
+
+.icon-clearedformat:before {
+ content: "\e67e";
+}
+
+.icon-font:before {
+ content: "\e684";
+}
+
+.icon-723bianjiqi_duanhouju:before {
+ content: "\e65f";
+}
+
+.icon-722bianjiqi_duanqianju:before {
+ content: "\e660";
+}
+
+.icon-text_color:before {
+ content: "\e72c";
+}
+
+.icon-format-header-2:before {
+ content: "\e75c";
+}
+
+.icon-format-header-3:before {
+ content: "\e75d";
+}
+
+.icon--checklist:before {
+ content: "\e664";
+}
+
+.icon-baocun:before {
+ content: "\ec09";
+}
+
+.icon-line-height:before {
+ content: "\e7f8";
+}
+
+.icon-quanping:before {
+ content: "\ec13";
+}
+
+.icon-direction-rtl:before {
+ content: "\e66e";
+}
+
+.icon-direction-ltr:before {
+ content: "\e66d";
+}
+
+.icon-selectall:before {
+ content: "\e62b";
+}
+
+.icon-fuzhi:before {
+ content: "\ec7a";
+}
+
+.icon-shanchu:before {
+ content: "\ec7b";
+}
+
+.icon-bianjisekuai:before {
+ content: "\ec7c";
+}
+
+.icon-fengexian:before {
+ content: "\ec7f";
+}
+
+.icon-dianzan:before {
+ content: "\ec80";
+}
+
+.icon-charulianjie:before {
+ content: "\ec81";
+}
+
+.icon-charutupian:before {
+ content: "\ec82";
+}
+
+.icon-wuxupailie:before {
+ content: "\ec83";
+}
+
+.icon-juzhongduiqi:before {
+ content: "\ec84";
+}
+
+.icon-yinyong:before {
+ content: "\ec85";
+}
+
+.icon-youxupailie:before {
+ content: "\ec86";
+}
+
+.icon-youduiqi:before {
+ content: "\ec87";
+}
+
+.icon-zitidaima:before {
+ content: "\ec88";
+}
+
+.icon-xiaolian:before {
+ content: "\ec89";
+}
+
+.icon-zitijiacu:before {
+ content: "\ec8a";
+}
+
+.icon-zitishanchuxian:before {
+ content: "\ec8b";
+}
+
+.icon-zitishangbiao:before {
+ content: "\ec8c";
+}
+
+.icon-zitibiaoti:before {
+ content: "\ec8d";
+}
+
+.icon-zitixiahuaxian:before {
+ content: "\ec8e";
+}
+
+.icon-zitixieti:before {
+ content: "\ec8f";
+}
+
+.icon-zitiyanse:before {
+ content: "\ec90";
+}
+
+.icon-zuoduiqi:before {
+ content: "\ec91";
+}
+
+.icon-zitiyulan:before {
+ content: "\ec92";
+}
+
+.icon-zitixiabiao:before {
+ content: "\ec93";
+}
+
+.icon-zuoyouduiqi:before {
+ content: "\ec94";
+}
+
+.icon-duigoux:before {
+ content: "\ec9e";
+}
+
+.icon-guanbi:before {
+ content: "\eca0";
+}
+
+.icon-shengyin_shiti:before {
+ content: "\eca5";
+}
+
+.icon-Character-Spacing:before {
+ content: "\e964";
+}
diff --git a/src/components/robin-editor/editor-icon.ttf b/src/components/robin-editor/editor-icon.ttf
new file mode 100644
index 0000000..98af97e
Binary files /dev/null and b/src/components/robin-editor/editor-icon.ttf differ
diff --git a/src/components/robin-editor/editor.vue b/src/components/robin-editor/editor.vue
new file mode 100644
index 0000000..6fc3273
--- /dev/null
+++ b/src/components/robin-editor/editor.vue
@@ -0,0 +1,488 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/robin-editor/header.vue b/src/components/robin-editor/header.vue
new file mode 100644
index 0000000..7153405
--- /dev/null
+++ b/src/components/robin-editor/header.vue
@@ -0,0 +1,57 @@
+
+
+ {{labelCancel}}
+ {{labelConfirm}}
+
+
+
+
+
+
diff --git a/src/components/uni-popup/uni-popup.vue b/src/components/uni-popup/uni-popup.vue
new file mode 100644
index 0000000..655b114
--- /dev/null
+++ b/src/components/uni-popup/uni-popup.vue
@@ -0,0 +1,273 @@
+
+
+
+
+
+
diff --git a/src/components/uni-transition/uni-transition.vue b/src/components/uni-transition/uni-transition.vue
new file mode 100644
index 0000000..908a939
--- /dev/null
+++ b/src/components/uni-transition/uni-transition.vue
@@ -0,0 +1,279 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/package.json b/src/package.json
new file mode 100644
index 0000000..2e58142
--- /dev/null
+++ b/src/package.json
@@ -0,0 +1,11 @@
+{
+ "id": "robin-editor",
+ "name": "微信小程序富文本编辑器",
+ "version": "1.1.6",
+ "description": "基于原生editor组件的富文本编辑器组件,支持颜色选择,插入图片",
+ "keywords": [
+ "编辑器",
+ "富文本",
+ "小程序"
+ ]
+}
\ No newline at end of file
diff --git a/src/pages/index/welcome.vue b/src/pages/index/welcome.vue
index 06ef403..366ecd5 100644
--- a/src/pages/index/welcome.vue
+++ b/src/pages/index/welcome.vue
@@ -12,6 +12,10 @@ export default {
uni.reLaunch({
url: '/pages/index/index'
})
+ } else if (e.reLaunch) {
+ uni.reLaunch({
+ url: e.reLaunch
+ })
} else {
uni.reLaunch({
url: '/pages/login/login'
diff --git a/src/pages/patient/form.vue b/src/pages/patient/form.vue
index 5f9d75e..1d4ac05 100644
--- a/src/pages/patient/form.vue
+++ b/src/pages/patient/form.vue
@@ -232,10 +232,6 @@ export default {
.page {
padding: 0 20px;
background: white;
- position: absolute;
- height: 100%;
- width: 100%;
- box-sizing: border-box;
}
.input-text {
color: #303133;
@@ -251,6 +247,6 @@ export default {
}
.button {
width: 100%;
- margin-top: 20px;
+ margin: 20px 0;
}
\ No newline at end of file
diff --git a/src/utils/request.js b/src/utils/request.js
index aeea0ea..9869767 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -4,6 +4,9 @@ module.exports = () => {
// 全局配置
uni.$u.http.setConfig((config) => {
config.baseURL = process.env.VUE_APP_BASE_API
+ config.custom = {
+ toast: true
+ }
return config
})