Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
be8110ee
Commit
be8110ee
authored
Jun 15, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 图片提示文案
parent
1bf2f7cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
prize-config.vue
src/views/game/cmh/prize-config.vue
+1
-1
rule-config.vue
src/views/game/cmh/rule-config.vue
+1
-1
No files found.
src/views/game/cmh/prize-config.vue
View file @
be8110ee
...
...
@@ -74,7 +74,7 @@
<
template
slot-scope=
"{ row, $index }"
>
<div
v-if=
"row.prizeType == 1 || row.prizeType == 2"
style=
"width:60px;height:62px"
>
<el-form-item
:prop=
"'gamePrizeList.' + $index + '.' + 'prizeImageUrl'"
:rules=
"rules.prizeImageUrl"
label-width=
"0"
>
<dm-upload-avatar
class=
"upload-avatar"
width=
"60"
height=
"60"
:limit=
"
{ type: false, maxSize: 1 }" fileType="img" imgType="jpg/png" :model.sync="row.prizeImageUrl" tips="" :unused="isDisabled
&&
row.isOld ? true : false">
</dm-upload-avatar>
<dm-upload-avatar
class=
"upload-avatar"
width=
"60"
height=
"60"
:limit=
"
{ type: false, maxSize: 1 }" fileType="img" imgType="jpg/
jpeg/
png" :model.sync="row.prizeImageUrl" tips="" :unused="isDisabled
&&
row.isOld ? true : false">
</dm-upload-avatar>
</el-form-item>
</div>
<el-form-item
label-width=
"0"
v-else
>
...
...
src/views/game/cmh/rule-config.vue
View file @
be8110ee
...
...
@@ -362,7 +362,7 @@ export default {
const
arr
=
[
'image/jpeg'
,
'image/png'
];
const
limit
=
file
.
size
/
1024
/
1024
<
size1
;
if
(
!
arr
.
includes
(
file
.
type
))
{
this
.
$message
.
warning
(
'只能上传jpg/png格式文件!'
);
this
.
$message
.
warning
(
'只能上传jpg/
jpeg/
png格式文件!'
);
return
false
;
}
if
(
!
limit
)
{
...
...
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