Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
occloud-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangjiarong
occloud-server
Commits
7ad0c37d
Commit
7ad0c37d
authored
Aug 03, 2022
by
liuliufashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ad2a7b7c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
17 deletions
+12
-17
.env.dev
web-vue-admin/.env.dev
+2
-1
request.ts
web-vue-admin/src/utils/request.ts
+2
-8
index.vue
...-admin/src/views/goods-cabinet/components/goods/index.vue
+3
-3
index.vue
...min/src/views/goods-cabinet/components/goodsubs/index.vue
+2
-2
index.vue
web-vue-admin/src/views/goods-cabinet/index.vue
+3
-3
No files found.
web-vue-admin/.env.dev
View file @
7ad0c37d
VUE_APP_MODE = 'dev'
NODE_ENV=production browserify -g envify -e main.js | uglifyjs -c -m > build.js
VUE_APP_BASE_URL = '/iships/'
VUE_APP_MODE = 'http://
43.142.42.187:8899
'
VUE_APP_MODE = 'http://
console-api.finekaa.com/occloud
'
VUE_APP_TEXT = '测试环境'
\ No newline at end of file
web-vue-admin/src/utils/request.ts
View file @
7ad0c37d
...
...
@@ -35,23 +35,17 @@ instance.interceptors.request.use(
// 响应式拦截器
instance
.
interceptors
.
response
.
use
(
function
(
response
)
{
if
(
response
.
status
===
200
)
{
if
(
response
.
data
.
state
!=
1
){
message
.
error
(
response
.
data
.
message
);
message
.
error
(
response
.
data
.
data
);
}
else
{
return
response
.
data
}
}
{
message
.
error
(
'api请求失败'
);
}
},
function
(
error
)
{
message
.
error
(
'登录超时'
);
localStorage
.
removeItem
(
'session_id'
)
localStorage
.
removeItem
(
'uid'
)
console
.
log
(
window
.
location
.
host
);
window
.
location
.
href
=
window
.
location
.
host
// window.location.href = window.location.host
return
Promise
.
reject
(
error
);
}
);
...
...
web-vue-admin/src/views/goods-cabinet/components/goods/index.vue
View file @
7ad0c37d
...
...
@@ -19,7 +19,7 @@
v-model:file-list=
"fileList"
list-type=
"picture-card"
:show-upload-list=
"false"
action=
"http://
43.142.42.187:8899
/file/upload"
action=
"http://
console-api.finekaa.com/occloud
/file/upload"
:before-upload=
"beforeUpload"
@
change=
"handleChange"
>
...
...
@@ -40,7 +40,7 @@
<a-form-item
label=
"商品详情"
name=
"body"
labelAlign=
"left"
:label-col=
"
{ span: 2 }">
<div
style=
"position: relative;"
>
<div
style=
"display:none"
>
<a-upload
class=
"clearfix-up-1"
action=
"http://
43.142.42.187:8899
/file/upload"
list-type=
"picture-card"
:maxCount=
"1"
<a-upload
class=
"clearfix-up-1"
action=
"http://
console-api.finekaa.com/occloud
/file/upload"
list-type=
"picture-card"
:maxCount=
"1"
@
change=
"onEdithandleChange"
:before-upload=
"onBeforeUpload"
>
<div
ref=
"upImage"
style=
"width:30px;height:30px;border: none;"
><i
class=
"iconfont icon-tupian"
style=
"font-size:28px;"
></i>
</div>
...
...
@@ -55,7 +55,7 @@
<div
class=
"editor-text"
>
<p>
1、商品描述需符合《中华人民共和国广告法》
</p>
<p>
1、商品描述需符合《中华人民共和国广告法》
。
</p>
<p>
2、详情图片宽度750,高度不超过5000,每张图片最大不超过2M,图片仅支持JPG、JPEG、PNG格式。
</p>
...
...
web-vue-admin/src/views/goods-cabinet/components/goodsubs/index.vue
View file @
7ad0c37d
...
...
@@ -18,7 +18,7 @@
:wrapper-col=
"
{ offset: 0, span: 8 }" class="Up" :label-col="{ span: 2 }">
<div
class=
"clearfix"
>
<a-upload
v-model:file-list=
"fileList"
list-type=
"picture-card"
:show-upload-list=
"false"
action=
"http://
43.142.42.187:8899
/file/upload"
:before-upload=
"beforeUpload"
action=
"http://
console-api.finekaa.com/occloud
/file/upload"
:before-upload=
"beforeUpload"
@
change=
"handleChange"
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
alt=
"avatar"
style=
"width: 102px;height: 102px;"
/>
<div
v-else
>
...
...
@@ -38,7 +38,7 @@
<a-form-item
label=
"商品详情:"
name=
"body"
:label-col=
"
{ span: 2 }" labelAlign="left">
<div
style=
"position: relative;"
>
<div
style=
"display: none;"
>
<a-upload
class=
"clearfix-up-1"
action=
"http://
43.142.42.187:8899
/file/upload"
<a-upload
class=
"clearfix-up-1"
action=
"http://
console-api.finekaa.com/occloud
/file/upload"
list-type=
"picture-card"
:maxCount=
"1"
@
change=
"onEdithandleChange"
:before-upload=
"onBeforeUpload"
>
<div
ref=
"upImage"
style=
"width:30px;height:30px;border: none;background: none;"
><i
...
...
web-vue-admin/src/views/goods-cabinet/index.vue
View file @
7ad0c37d
...
...
@@ -78,7 +78,7 @@
v-model:file-list=
"fileList"
list-type=
"picture-card"
:show-upload-list=
"false"
action=
"http://
43.142.42.187:8899
/file/upload"
action=
"http://
console-api.finekaa.com/occloud
/file/upload"
:before-upload=
"beforeUpload"
@
change=
"handleChange"
>
...
...
@@ -100,7 +100,7 @@
<a-form-item
label=
"商品详情"
name=
"body"
labelAlign=
"left"
:label-col=
"{ span: 2 }"
>
<div
style=
"position: relative;"
>
<div
style=
"display: none;"
>
<a-upload
class=
"clearfix-up-1"
action=
"http://
43.142.42.187:8899
/file/upload"
list-type=
"picture-card"
<a-upload
class=
"clearfix-up-1"
action=
"http://
console-api.finekaa.com/occloud
/file/upload"
list-type=
"picture-card"
:maxCount=
"1"
@
preview=
"onHandlePreview"
@
change=
"onEdithandleChange"
:before-upload=
"onBeforeUpload"
>
<div
ref=
"upImage"
style=
"width:30px;height:30px;border: none;"
><i
class=
"iconfont icon-tupian"
style=
"font-size:28px;"
></i>
</div>
...
...
@@ -113,7 +113,7 @@
</QuillEditor>
</div>
<div
class=
"editor-text"
>
<p>
1、商品描述需符合《中华人民共和国广告法》
</p>
<p>
1、商品描述需符合《中华人民共和国广告法》
。
</p>
<p>
2、详情图片宽度750,高度不超过5000,每张图片最大不超过2M,图片仅支持JPG、JPEG、PNG格式。
</p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment