From 816fa2fa6f19405453ae86e90c27a1760becfd30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com> Date: Sat, 15 Jan 2022 18:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- public/UEditor/ueditor.config.js | 4 +- src/api/EnterpriseAuthentication.js | 2 +- src/api/Resources.js | 19 +- src/api/yxStoreProduct.js | 8 + src/utils/amap.js | 20 ++ src/views/activitys/{activitys => }/cate.vue | 0 src/views/activitys/{activitys => }/flag.vue | 0 src/views/activitys/{activitys => }/index.vue | 117 ++++++-- src/views/activitys/{activitys => }/order.vue | 1 - .../activitys/{activitys => }/publisher.vue | 0 src/views/information/articleCatetory.vue | 35 +-- src/views/information/form.vue | 20 +- src/views/information/index.vue | 29 +- src/views/shop/demandHall/authentication.vue | 27 +- src/views/shop/goods/form.vue | 92 ++++-- src/views/shop/projectManage/index.vue | 275 ++++++++++++++++++ 17 files changed, 539 insertions(+), 112 deletions(-) create mode 100644 src/utils/amap.js rename src/views/activitys/{activitys => }/cate.vue (100%) rename src/views/activitys/{activitys => }/flag.vue (100%) rename src/views/activitys/{activitys => }/index.vue (88%) rename src/views/activitys/{activitys => }/order.vue (99%) rename src/views/activitys/{activitys => }/publisher.vue (100%) create mode 100644 src/views/shop/projectManage/index.vue diff --git a/.env.development b/.env.development index cc66d69..52b5791 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ ENV = 'development' # 接口地址 -VUE_APP_BASE_API = 'http://192.168.0.111:8094' +VUE_APP_BASE_API = 'http://192.168.1.34:8094' VUE_APP_WS_API = 'ws://localhost:8088' # 是否启用 babel-plugin-dynamic-import-node插件 diff --git a/public/UEditor/ueditor.config.js b/public/UEditor/ueditor.config.js index c8b7772..62bb6cd 100644 --- a/public/UEditor/ueditor.config.js +++ b/public/UEditor/ueditor.config.js @@ -34,8 +34,8 @@ // 工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的重新定义 toolbars: [[ 'source', '|', 'undo', 'redo', '|', - 'bold', 'italic', 'underline', 'strikethrough', '|', 'superscript', 'subscript', '|', 'forecolor', 'backcolor', '|', - 'removeformat', '|', 'insertorderedlist', 'insertunorderedlist', '|', 'selectall', 'cleardoc', 'paragraph', '|', + 'bold', 'italic', 'underline', 'strikethrough', '|','superscript', 'subscript', '|', 'forecolor', 'backcolor', '|', + 'formatmatch', '|','removeformat', '|', 'insertorderedlist', 'insertunorderedlist', '|', 'selectall', 'cleardoc', 'paragraph', '|', 'fontfamily', 'fontsize', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'link', 'unlink', '|', 'emotion', '|', '|', 'horizontal', 'print', 'preview', 'fullscreen', 'drafts', 'formula' diff --git a/src/api/EnterpriseAuthentication.js b/src/api/EnterpriseAuthentication.js index 6315cc1..4922565 100644 --- a/src/api/EnterpriseAuthentication.js +++ b/src/api/EnterpriseAuthentication.js @@ -26,7 +26,7 @@ export function edit(data) { export function getAuthenticationList(data) { return request({ - url: 'api/EnterpriseAuthentication/getAuthenticationList', + url: 'api/EnterpriseAuthentication/getAuthenticationList?page='+data.page+'&size='+data.size, method: 'post', data }) diff --git a/src/api/Resources.js b/src/api/Resources.js index d3da785..5e8280b 100644 --- a/src/api/Resources.js +++ b/src/api/Resources.js @@ -24,21 +24,4 @@ export function edit(data) { }) } -export function getResourceList(data) { - return request({ - url: 'api/Resources/listResource', - method: 'post', - data - }) -} - -export function examineResources(data) { - return request({ - url: 'api/Resources/examineResources', - method: 'post', - data - }) -} - - -export default { add, edit, del, getResourceList, examineResources } +export default { add, edit, del } diff --git a/src/api/yxStoreProduct.js b/src/api/yxStoreProduct.js index 411ea63..cccfed5 100644 --- a/src/api/yxStoreProduct.js +++ b/src/api/yxStoreProduct.js @@ -95,4 +95,12 @@ export function audit(data) { method: 'post', data }) +} +//获取虚拟商品列表 +export function getVirtualPorducts(data) { + return request({ + url: 'api/yxStoreProduct/virtualPorducts', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/utils/amap.js b/src/utils/amap.js new file mode 100644 index 0000000..b7c174d --- /dev/null +++ b/src/utils/amap.js @@ -0,0 +1,20 @@ +/* + * 异步创建script标签 + */ +export default function MapLoader (key) { + return new Promise((resolve, reject) => { + if (window.AMap) { + resolve(window.AMap) + } else { + var script = document.createElement('script') + script.type = 'text/javascript' + script.async = true + script.src = 'https://webapi.amap.com/maps?v=1.4.15&key=6b5ed4e01a6a876cc337c6dd805c2336&plugin=AMap.Autocomplete,AMap.PlaceSearch' + script.onerror = reject + document.head.appendChild(script) + } + window.initAMap = () => { + resolve(window.AMap) + } + }) +} diff --git a/src/views/activitys/activitys/cate.vue b/src/views/activitys/cate.vue similarity index 100% rename from src/views/activitys/activitys/cate.vue rename to src/views/activitys/cate.vue diff --git a/src/views/activitys/activitys/flag.vue b/src/views/activitys/flag.vue similarity index 100% rename from src/views/activitys/activitys/flag.vue rename to src/views/activitys/flag.vue diff --git a/src/views/activitys/activitys/index.vue b/src/views/activitys/index.vue similarity index 88% rename from src/views/activitys/activitys/index.vue rename to src/views/activitys/index.vue index 64dde23..14eb510 100644 --- a/src/views/activitys/activitys/index.vue +++ b/src/views/activitys/index.vue @@ -9,7 +9,7 @@ > @@ -68,7 +68,7 @@ > @@ -77,8 +77,8 @@ -
+
+
+
+ + + + + + + +
+ +
+ +
+
+
- + - - - - - + + - - + +