diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..d0dceee --- /dev/null +++ b/.env.development @@ -0,0 +1,19 @@ +# just a flag +ENV = 'development' + +# base api +# VUE_APP_BASE_API = 'http://192.168.31.106:8324' +VUE_APP_BASE_API = 'http://many.shop.lo' + +# socket 连接地址 +VUE_APP_WS_URL = 'ws://many.shop.lo' +# VUE_APP_WS_URL = 'ws://mer1.crmeb.net' + +# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, +# to control whether the babel-plugin-dynamic-import-node plugin is enabled. +# It only does one thing by converting all import() to require(). +# This configuration can significantly increase the speed of hot updates, +# when you have a large number of pages. +# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js + +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.gitignore b/.gitignore index 101c0f2..c9dcfdf 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* **/*.log -.env.development tests/**/coverage/ tests/e2e/reports selenium-debug.log diff --git a/.history/.env_20240110150811.development b/.history/.env_20240110150811.development new file mode 100644 index 0000000..b2563a2 --- /dev/null +++ b/.history/.env_20240110150811.development @@ -0,0 +1,19 @@ +# just a flag +ENV = 'development' + +# base api +# VUE_APP_BASE_API = 'http://192.168.31.106:8324' +VUE_APP_BASE_API = 'https://mer1.crmeb.net' + +# socket 连接地址 +VUE_APP_WS_URL = 'ws://192.168.31.106:8324' +# VUE_APP_WS_URL = 'ws://mer1.crmeb.net' + +# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, +# to control whether the babel-plugin-dynamic-import-node plugin is enabled. +# It only does one thing by converting all import() to require(). +# This configuration can significantly increase the speed of hot updates, +# when you have a large number of pages. +# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js + +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.history/.env_20240325145243.development b/.history/.env_20240325145243.development new file mode 100644 index 0000000..d0dceee --- /dev/null +++ b/.history/.env_20240325145243.development @@ -0,0 +1,19 @@ +# just a flag +ENV = 'development' + +# base api +# VUE_APP_BASE_API = 'http://192.168.31.106:8324' +VUE_APP_BASE_API = 'http://many.shop.lo' + +# socket 连接地址 +VUE_APP_WS_URL = 'ws://many.shop.lo' +# VUE_APP_WS_URL = 'ws://mer1.crmeb.net' + +# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, +# to control whether the babel-plugin-dynamic-import-node plugin is enabled. +# It only does one thing by converting all import() to require(). +# This configuration can significantly increase the speed of hot updates, +# when you have a large number of pages. +# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js + +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.history/.gitignore_20240322155514 b/.history/.gitignore_20240322155514 new file mode 100644 index 0000000..101c0f2 --- /dev/null +++ b/.history/.gitignore_20240322155514 @@ -0,0 +1,23 @@ +.DS_Store +node_modules/ +dist/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +**/*.log +.env.development +tests/**/coverage/ +tests/e2e/reports +selenium-debug.log + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.local + +package-lock.json +yarn.lock diff --git a/.history/.gitignore_20240325145153 b/.history/.gitignore_20240325145153 new file mode 100644 index 0000000..c9dcfdf --- /dev/null +++ b/.history/.gitignore_20240325145153 @@ -0,0 +1,22 @@ +.DS_Store +node_modules/ +dist/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +**/*.log +tests/**/coverage/ +tests/e2e/reports +selenium-debug.log + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.local + +package-lock.json +yarn.lock diff --git a/.history/mock/index_20240322155514.js b/.history/mock/index_20240322155514.js new file mode 100644 index 0000000..38cedf3 --- /dev/null +++ b/.history/mock/index_20240322155514.js @@ -0,0 +1,65 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +import Mock from 'mockjs' +import { param2Obj } from '../src/utils' +import user from './user' +import role from './role' +import article from './article' +import search from './remote-search' + +const mocks = [ + ...user, + ...role, + ...article, + ...search +] + +// for front mock +// please use it cautiously, it will redefine XMLHttpRequest, +// which will cause many of your third-party libraries to be invalidated(like progress event). +export function mockXHR() { + // mock patch + // https://github.com/nuysoft/Mock/issues/300 + Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send + Mock.XHR.prototype.send = function() { + if (this.custom.xhr) { + this.custom.xhr.withCredentials = this.withCredentials || false + + if (this.responseType) { + this.custom.xhr.responseType = this.responseType + } + } + this.proxy_send(...arguments) + } + + function XHR2ExpressReqWrap(respond) { + return function(options) { + let result = null + if (respond instanceof Function) { + const { body, type, url } = options + // https://expressjs.com/en/4x/api.html#req + result = respond({ + method: type, + body: JSON.parse(body), + query: param2Obj(url) + }) + } else { + result = respond + } + return Mock.mock(result) + } + } + + for (const i of mocks) { + Mock.mock(new RegExp(i.url), i.type || 'get', XHR2ExpressReqWrap(i.response)) + } +} + +export default mocks diff --git a/.history/mock/index_20240324094414.js b/.history/mock/index_20240324094414.js new file mode 100644 index 0000000..e69de29 diff --git a/.history/mock/index_20240324094442.js b/.history/mock/index_20240324094442.js new file mode 100644 index 0000000..38cedf3 --- /dev/null +++ b/.history/mock/index_20240324094442.js @@ -0,0 +1,65 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +import Mock from 'mockjs' +import { param2Obj } from '../src/utils' +import user from './user' +import role from './role' +import article from './article' +import search from './remote-search' + +const mocks = [ + ...user, + ...role, + ...article, + ...search +] + +// for front mock +// please use it cautiously, it will redefine XMLHttpRequest, +// which will cause many of your third-party libraries to be invalidated(like progress event). +export function mockXHR() { + // mock patch + // https://github.com/nuysoft/Mock/issues/300 + Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send + Mock.XHR.prototype.send = function() { + if (this.custom.xhr) { + this.custom.xhr.withCredentials = this.withCredentials || false + + if (this.responseType) { + this.custom.xhr.responseType = this.responseType + } + } + this.proxy_send(...arguments) + } + + function XHR2ExpressReqWrap(respond) { + return function(options) { + let result = null + if (respond instanceof Function) { + const { body, type, url } = options + // https://expressjs.com/en/4x/api.html#req + result = respond({ + method: type, + body: JSON.parse(body), + query: param2Obj(url) + }) + } else { + result = respond + } + return Mock.mock(result) + } + } + + for (const i of mocks) { + Mock.mock(new RegExp(i.url), i.type || 'get', XHR2ExpressReqWrap(i.response)) + } +} + +export default mocks diff --git a/.history/src/views/order/orderRefund/index_20240322155514.vue b/.history/src/views/order/orderRefund/index_20240322155514.vue new file mode 100644 index 0000000..f1182d0 --- /dev/null +++ b/.history/src/views/order/orderRefund/index_20240322155514.vue @@ -0,0 +1,670 @@ + + + + + diff --git a/.history/src/views/order/orderRefund/index_20240329103706.vue b/.history/src/views/order/orderRefund/index_20240329103706.vue new file mode 100644 index 0000000..1395eac --- /dev/null +++ b/.history/src/views/order/orderRefund/index_20240329103706.vue @@ -0,0 +1,671 @@ + + + + + diff --git a/.history/src/views/system/service/index_20240322155514.vue b/.history/src/views/system/service/index_20240322155514.vue new file mode 100644 index 0000000..a4f9156 --- /dev/null +++ b/.history/src/views/system/service/index_20240322155514.vue @@ -0,0 +1,358 @@ + + + + + diff --git a/.history/src/views/system/service/index_20240328125054.vue b/.history/src/views/system/service/index_20240328125054.vue new file mode 100644 index 0000000..8bab182 --- /dev/null +++ b/.history/src/views/system/service/index_20240328125054.vue @@ -0,0 +1,359 @@ + + + + + diff --git a/public/favicon.ico b/public/favicon.ico index 5418325..d6fb9e7 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/views/order/orderRefund/index.vue b/src/views/order/orderRefund/index.vue index f1182d0..1395eac 100644 --- a/src/views/order/orderRefund/index.vue +++ b/src/views/order/orderRefund/index.vue @@ -159,6 +159,7 @@ + diff --git a/src/views/system/service/index.vue b/src/views/system/service/index.vue index a4f9156..8bab182 100644 --- a/src/views/system/service/index.vue +++ b/src/views/system/service/index.vue @@ -344,6 +344,7 @@ export default { }) } + } } }