Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a106683
authored
Dec 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
7ae1b7a8
1f969efe
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
61 additions
and
56 deletions
src/api/modules/center.js
src/components/glsx-combi-form/index.vue
src/views/classifyList/editClassify.vue
src/views/couponManage/editCashCoupon.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/homeSet/index.vue
src/views/memberCenter/center.vue
src/views/orderShare/editShare.vue
src/views/productGroup/editProduct.vue
src/views/seckillActivity/editActivity.vue
src/views/template/edit.vue
src/views/zoneList/editZone.vue
src/api/modules/center.js
View file @
1a10668
...
@@ -26,8 +26,8 @@ const getMoreMerchant = params => {
...
@@ -26,8 +26,8 @@ const getMoreMerchant = params => {
}
}
//获取上方卡片的相关信息
//获取上方卡片的相关信息
const
getCardContent
=
params
=>
{
const
getCardContent
=
params
=>
{
// scrm.api.equity.card.get.by.merchant.id旧版的
params
.
method
=
`scrm.api.equity.
card.get.by.merchant.
id`
params
.
method
=
`scrm.api.equity.
open.card.price.get.by.merchant
id`
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
...
...
src/components/glsx-combi-form/index.vue
View file @
1a10668
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || defaultWidth }">
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || defaultWidth }">
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
>
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
>
<div
class=
"add"
:style=
"
{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+
</div>
<div
class=
"add"
:style=
"
{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+
</div>
<span
v-
show
=
"item.maxPhotoNum > 1"
class=
"number"
>
{{
formObj
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
<span
v-
if
=
"item.maxPhotoNum > 1"
class=
"number"
>
{{
formObj
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
<input
v-if=
"item.uploadType == 'video'"
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"video/mp4"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-if=
"item.uploadType == 'video'"
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"video/mp4"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-else
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-else
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
</div>
</div>
...
@@ -99,11 +99,13 @@
...
@@ -99,11 +99,13 @@
</template>
</template>
<slot
name=
"footer"
></slot>
<slot
name=
"footer"
></slot>
</el-form>
</el-form>
<el-dialog
v-if=
"isImgVisible"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<div
class=
"dialog-look"
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
</video>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
<img
v-else
class=
"dialog-img"
width=
"100%"
:src=
"dialogObj.url"
alt=
""
/>
</video>
<img
v-else
class=
"dialog-img"
width=
"100%"
:src=
"dialogObj.url"
alt=
""
/>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -203,16 +205,19 @@ export default {
...
@@ -203,16 +205,19 @@ export default {
const
maxPhotoNum
=
targetItem
.
maxPhotoNum
||
1
const
maxPhotoNum
=
targetItem
.
maxPhotoNum
||
1
const
wdithLt
=
targetItem
.
wdithLt
||
300
const
wdithLt
=
targetItem
.
wdithLt
||
300
const
heightLt
=
targetItem
.
heightLt
||
300
const
heightLt
=
targetItem
.
heightLt
||
300
if
(
maxPhotoNum
==
this
.
formObj
[
targetItem
.
name
].
length
)
{
if
(
Array
.
isArray
(
this
.
formObj
[
targetItem
.
name
])
&&
maxPhotoNum
==
this
.
formObj
[
targetItem
.
name
].
length
)
{
this
.
$message
.
error
(
'只能上传'
+
maxPhotoNum
+
(
uploadType
==
'img'
?
'张图片'
:
'个视频'
))
this
.
$message
.
error
(
'只能上传'
+
maxPhotoNum
+
(
uploadType
==
'img'
?
'张图片'
:
'个视频'
))
document
.
getElementById
(
targetItem
.
name
+
'file'
).
value
=
''
return
true
return
true
}
}
if
(
!
isType
)
{
if
(
!
isType
)
{
this
.
$message
.
error
(
uploadType
==
'img'
?
'上传图片不是jpg、jpeg或png的格式!'
:
'上传视频不是MP4的格式!'
)
this
.
$message
.
error
(
uploadType
==
'img'
?
'上传图片不是jpg、jpeg或png的格式!'
:
'上传视频不是MP4的格式!'
)
document
.
getElementById
(
targetItem
.
name
+
'file'
).
value
=
''
return
true
return
true
}
}
if
(
!
isLt
)
{
if
(
!
isLt
)
{
this
.
$message
.
error
(
'上传'
+
(
uploadType
==
'img'
?
'图片'
:
'视频'
)
+
'大小不能超过'
+
limitSize
+
'MB!'
)
this
.
$message
.
error
(
'上传'
+
(
uploadType
==
'img'
?
'图片'
:
'视频'
)
+
'大小不能超过'
+
limitSize
+
'MB!'
)
document
.
getElementById
(
targetItem
.
name
+
'file'
).
value
=
''
return
true
return
true
}
}
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
...
@@ -233,6 +238,7 @@ export default {
...
@@ -233,6 +238,7 @@ export default {
targetItem
.
handleUpload
(
e
,
file
,
targetItem
)
targetItem
.
handleUpload
(
e
,
file
,
targetItem
)
}
}
}
}
document
.
getElementById
(
targetItem
.
name
+
'file'
).
value
=
''
},
},
// 图片删除
// 图片删除
handleImgDelete
(
targetItem
,
subIndex
=
-
1
)
{
handleImgDelete
(
targetItem
,
subIndex
=
-
1
)
{
...
@@ -433,10 +439,10 @@ export default {
...
@@ -433,10 +439,10 @@ export default {
.glsx-combi-form
.el-tag.el-tag--info
{
.glsx-combi-form
.el-tag.el-tag--info
{
border-color
:
#5850ff
;
border-color
:
#5850ff
;
}
}
.el-tag--plain.el-tag--info
.el-tag__close
:hover
{
.
glsx-combi-form
.
el-tag--plain.el-tag--info
.el-tag__close
:hover
{
background-color
:
#E8E8EA
;
background-color
:
#E8E8EA
;
}
}
.el-tag.el-tag--info
.el-tag__close
:hover
{
.
glsx-combi-form
.
el-tag.el-tag--info
.el-tag__close
:hover
{
background-color
:
#E8E8EA
;
background-color
:
#E8E8EA
;
}
}
</
style
>
</
style
>
src/views/classifyList/editClassify.vue
View file @
1a10668
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
slot=
"selectProBtn"
slot-scope=
"scope"
class=
"select-pro"
>
<div
slot=
"selectProBtn"
slot-scope=
"scope"
class=
"select-pro"
>
<el-button
type=
"default"
@
click=
"handleMutiProClose(scope)"
>
{{
editForm
.
goodsRefList
.
length
?
'更换商品'
:
'+选择商品'
}}
</el-button>
<el-button
type=
"default"
@
click=
"handleMutiProClose(scope)"
>
{{
editForm
.
goodsRefList
.
length
?
'更换商品'
:
'+选择商品'
}}
</el-button>
</div>
</div>
<div
slot=
"proTable"
class=
"select-pro"
>
<div
slot=
"proTable"
class=
"select-pro"
style=
"padding-left: 20px;"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
...
...
src/views/couponManage/editCashCoupon.vue
View file @
1a10668
...
@@ -73,8 +73,8 @@
...
@@ -73,8 +73,8 @@
</
template
>
</
template
>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
>
<div
slot=
"proTable"
class=
"select-pro"
>
<
div
style=
"height:70px"
v-if=
"editForm.goodsRefList.length"
></div
>
<
!-- <div style="height:70px" v-if="editForm.goodsRefList.length"></div> --
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
style=
"padding-left:10px;
padding-right:10px
"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
style=
"padding-left:10px;
width:70vw;max-height:350px;overflow: auto;
"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</
template
>
</
template
>
...
@@ -199,17 +199,6 @@ export default {
...
@@ -199,17 +199,6 @@ export default {
addHtml
:
'useBarriersHtml'
addHtml
:
'useBarriersHtml'
},
},
{
{
label
:
'面值'
,
name
:
'denomination'
,
addHtml
:
'denominationHtml'
},
{
label
:
'库存'
,
name
:
'stock'
,
width
:
'150px'
,
type
:
'input'
},
{
label
:
'适用商品'
,
label
:
'适用商品'
,
name
:
'goods'
,
name
:
'goods'
,
addHtml
:
'goodsHtml'
,
addHtml
:
'goodsHtml'
,
...
@@ -222,6 +211,17 @@ export default {
...
@@ -222,6 +211,17 @@ export default {
isHide
:
true
isHide
:
true
},
},
{
{
label
:
'面值'
,
name
:
'denomination'
,
addHtml
:
'denominationHtml'
},
{
label
:
'库存'
,
name
:
'stock'
,
width
:
'150px'
,
type
:
'input'
},
{
label
:
'使用说明'
,
label
:
'使用说明'
,
name
:
'useDescription'
,
name
:
'useDescription'
,
addHtml
:
'useDescriptionHtml'
addHtml
:
'useDescriptionHtml'
...
@@ -282,27 +282,27 @@ export default {
...
@@ -282,27 +282,27 @@ export default {
},
},
'editForm.useChannel'
(
newValue
,
oldValue
)
{
'editForm.useChannel'
(
newValue
,
oldValue
)
{
if
(
newValue
==
1
)
{
if
(
newValue
==
1
)
{
this
.
editFormData
[
6
].
isHide
=
false
this
.
editFormData
[
4
].
isHide
=
false
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
this
.
editFormData
[
5
].
isHide
=
false
}
}
}
else
{
}
else
{
this
.
editForm
.
useBarriers
=
'1'
this
.
editForm
.
useBarriers
=
'1'
this
.
editForm
.
full
=
''
this
.
editForm
.
full
=
''
this
.
editFormData
[
6
].
isHide
=
true
this
.
editFormData
[
4
].
isHide
=
true
this
.
editFormData
[
7
].
isHide
=
true
this
.
editFormData
[
5
].
isHide
=
true
}
}
},
},
'editForm.goods'
(
newValue
,
oldValue
)
{
'editForm.goods'
(
newValue
,
oldValue
)
{
if
(
newValue
==
1
)
{
if
(
newValue
==
1
)
{
//全部商品
//全部商品
this
.
minPirce
=
this
.
minPirceForAll
this
.
minPirce
=
this
.
minPirceForAll
this
.
editFormData
[
7
].
isHide
=
true
this
.
editFormData
[
5
].
isHide
=
true
}
else
{
}
else
{
//指定商品
//指定商品
this
.
minPirce
=
this
.
minPirceForPart
this
.
minPirce
=
this
.
minPirceForPart
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
this
.
editFormData
[
5
].
isHide
=
false
}
}
}
}
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
)
{
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
)
{
...
@@ -314,9 +314,9 @@ export default {
...
@@ -314,9 +314,9 @@ export default {
'editForm.goodsRefList'
(
newValue
,
oldValue
)
{
'editForm.goodsRefList'
(
newValue
,
oldValue
)
{
if
(
newValue
.
length
)
{
if
(
newValue
.
length
)
{
this
.
editFormData
[
7
].
isHide
=
false
this
.
editFormData
[
5
].
isHide
=
false
}
else
{
}
else
{
this
.
editFormData
[
7
].
isHide
=
true
this
.
editFormData
[
5
].
isHide
=
true
}
}
},
},
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
1a10668
...
@@ -191,7 +191,7 @@ export default {
...
@@ -191,7 +191,7 @@ export default {
image
.
onload
=
()
=>
{
image
.
onload
=
()
=>
{
console
.
log
(
file
,
targetItem
)
console
.
log
(
file
,
targetItem
)
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
let
len
=
this
.
previewList
.
length
-
1
let
len
=
this
.
previewList
.
length
-
1
...
@@ -220,7 +220,7 @@ export default {
...
@@ -220,7 +220,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
...
...
src/views/homeSet/index.vue
View file @
1a10668
...
@@ -425,7 +425,7 @@ export default {
...
@@ -425,7 +425,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
.
bannerList
[
idx
].
bannerImg
=
res
this
.
editForm
.
bannerList
[
idx
].
bannerImg
=
res
})
})
...
@@ -465,7 +465,7 @@ export default {
...
@@ -465,7 +465,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
imgLinkUrl
=
res
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
imgLinkUrl
=
res
})
})
...
@@ -490,7 +490,7 @@ export default {
...
@@ -490,7 +490,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
videoLinkUrl
=
res
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
videoLinkUrl
=
res
})
})
...
...
src/views/memberCenter/center.vue
View file @
1a10668
...
@@ -306,15 +306,14 @@ mounted () {
...
@@ -306,15 +306,14 @@ mounted () {
},
},
getCardContentFun
()
{
getCardContentFun
()
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
if
(
!
(
res
&&
res
.
length
)
){
if
(
!
res
){
return
return
}
}
this
.
ruleForm
.
equityId
=
res
[
0
].
id
this
.
ruleForm
.
equityId
=
res
.
equityClassId
this
.
ruleForm
.
cardName
=
res
[
0
].
cardClassName
this
.
ruleForm
.
cardName
=
res
.
equityName
this
.
ruleForm
.
price
=
res
[
0
].
price
this
.
ruleForm
.
price
=
res
.
goodPrice
this
.
ruleForm
.
marketPrice
=
res
[
0
].
marketPrice
this
.
ruleForm
.
marketPrice
=
res
.
marketPrice
this
.
ruleForm
.
linkUrl
=
res
[
0
].
url
this
.
ruleForm
.
linkUrl
=
res
.
freeUrl
this
.
ruleForm
.
tryAble
=
res
[
0
].
tryAble
})
})
},
},
openEditWrap
()
{
openEditWrap
()
{
...
...
src/views/orderShare/editShare.vue
View file @
1a10668
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
maxPhotoNum
:
8
,
maxPhotoNum
:
8
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
].
push
(
res
)
this
.
editForm
[
targetItem
.
name
].
push
(
res
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
...
...
src/views/productGroup/editProduct.vue
View file @
1a10668
...
@@ -522,7 +522,7 @@ export default {
...
@@ -522,7 +522,7 @@ export default {
isDisabled
:
false
,
isDisabled
:
false
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
[
0
].
$refs
.
editProRef0
.
validateField
(
targetItem
.
name
)
this
.
$refs
.
editFormRef
[
0
].
$refs
.
editProRef0
.
validateField
(
targetItem
.
name
)
...
@@ -540,7 +540,7 @@ export default {
...
@@ -540,7 +540,7 @@ export default {
isDisabled
:
false
,
isDisabled
:
false
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
].
push
({
this
.
editForm
[
targetItem
.
name
].
push
({
content
:
res
,
content
:
res
,
...
@@ -563,7 +563,7 @@ export default {
...
@@ -563,7 +563,7 @@ export default {
isDisabled
:
false
,
isDisabled
:
false
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
getWechatImgList
()
this
.
getWechatImgList
()
...
@@ -1214,7 +1214,7 @@ export default {
...
@@ -1214,7 +1214,7 @@ export default {
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
.
descImgList
[
idx
].
content
=
res
this
.
editForm
.
descImgList
[
idx
].
content
=
res
})
})
...
...
src/views/seckillActivity/editActivity.vue
View file @
1a10668
...
@@ -175,9 +175,9 @@ export default {
...
@@ -175,9 +175,9 @@ export default {
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
console
.
log
(
res
)
//
console.log(res)
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
})
})
...
...
src/views/template/edit.vue
View file @
1a10668
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
...
...
src/views/zoneList/editZone.vue
View file @
1a10668
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment