Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
b4f0e88c
Commit
b4f0e88c
authored
Oct 12, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员管理增加商品图片
parent
d6ad630e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
dev.env.js
config/dev.env.js
+1
-1
index.vue
src/views/userManagement/memberManagement/index.vue
+36
-1
No files found.
config/dev.env.js
View file @
b4f0e88c
module
.
exports
=
{
module
.
exports
=
{
NODE_ENV
:
'"development"'
,
NODE_ENV
:
'"development"'
,
BASE_API
:
'"https://
dev.dfangche.com"'
,
//'"https://xxtest.upyuns
.com"',//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威)
BASE_API
:
'"https://
xxtest.upyuns.com"'
,
//'"https://dev.dfangche
.com"',//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威)
APP_ORIGIN
:
'"https://wallstreetcn.com"'
APP_ORIGIN
:
'"https://wallstreetcn.com"'
}
}
src/views/userManagement/memberManagement/index.vue
View file @
b4f0e88c
...
@@ -42,6 +42,13 @@
...
@@ -42,6 +42,13 @@
<img
class=
"image"
:src=
"scope.row.bigIcon"
/>
<img
class=
"image"
:src=
"scope.row.bigIcon"
/>
</span>
</span>
</
template
>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"商品图片"
>
<
template
scope=
"scope"
>
<span>
<img
class=
"image"
:src=
"scope.row.itemImg"
/>
</span>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"折扣"
>
<el-table-column
align=
"center"
label=
"折扣"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
...
@@ -210,6 +217,29 @@
...
@@ -210,6 +217,29 @@
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row>
<el-form-item
label=
"商品图片"
:style=
"{display:'block'}"
>
<el-upload
class=
"upload-demo"
:headers=
"getHeaderWithToken"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list=
"false"
:on-success=
"product"
list-type=
"picture"
>
<img
v-if=
"$utils.isString(add.itemImg) && !$utils.isEmpty(add.itemImg)"
:src=
"add.itemImg"
style=
"width:300px;max-height:300px;"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
style=
"lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"
></i>
</el-upload>
</el-form-item>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelSetMemberArea('membershipGrade')"
>
取消
</el-button>
<el-button
@
click=
"cancelSetMemberArea('membershipGrade')"
>
取消
</el-button>
...
@@ -250,7 +280,8 @@ export default {
...
@@ -250,7 +280,8 @@ export default {
price
:
undefined
,
price
:
undefined
,
endDate
:
undefined
,
endDate
:
undefined
,
icon
:
undefined
,
icon
:
undefined
,
bigIcon
:
null
bigIcon
:
null
,
itemImg
:
null
},
},
endDatelist
:
[
endDatelist
:
[
{
id
:
0
,
name
:
"永久"
},
{
id
:
0
,
name
:
"永久"
},
...
@@ -445,6 +476,10 @@ export default {
...
@@ -445,6 +476,10 @@ export default {
//大图标
//大图标
handleAvatarSuccessBig
(
res
)
{
handleAvatarSuccessBig
(
res
)
{
this
.
add
.
bigIcon
=
res
.
data
;
this
.
add
.
bigIcon
=
res
.
data
;
},
//商品展示
product
(
res
)
{
this
.
add
.
itemImg
=
res
.
data
;
}
}
}
}
};
};
...
...
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