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 77d3949d
authored
Oct 20, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
86bb4bad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletions
src/components/glsx-combi-form/mapView.vue
src/views/seckillActivity/editCrowdFund.vue
src/components/glsx-combi-form/mapView.vue
View file @
77d3949
...
@@ -8,6 +8,12 @@
...
@@ -8,6 +8,12 @@
<div
class=
"map-address"
>
<div
class=
"map-address"
>
<img
class=
"icon-map"
src=
"./images/icon-map.png"
/>
<img
class=
"icon-map"
src=
"./images/icon-map.png"
/>
{{
address
}}
{{
address
}}
<!--
<el-input
placeholder=
"请输入内容"
v-model=
"inputAddress"
@
change=
"geoCode"
clearable
>
</el-input>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -31,7 +37,8 @@ export default {
...
@@ -31,7 +37,8 @@ export default {
address
:
''
,
address
:
''
,
adrList
:
[],
adrList
:
[],
lnglat
:
[],
lnglat
:
[],
geocoderAddress
:
{}
geocoderAddress
:
{},
inputAddress
:
''
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -129,6 +136,23 @@ export default {
...
@@ -129,6 +136,23 @@ export default {
marker
.
setMap
(
map
)
marker
.
setMap
(
map
)
// this.map.setFitView()
// this.map.setFitView()
},
},
// 输入地址获取得到经纬度
geoCode
()
{
var
geocoder
=
new
AMap
.
Geocoder
({
city
:
""
})
var
address
=
this
.
inputAddress
let
_this
=
this
geocoder
.
getLocation
(
address
,
function
(
status
,
result
)
{
if
(
status
===
'complete'
&&
result
.
geocodes
.
length
)
{
var
lnglat
=
result
.
geocodes
[
0
].
location
console
.
log
(
'lnglat'
,
lnglat
)
_this
.
addMarker
(
lnglat
)
}
else
{
console
.
log
(
'根据地址查询位置失败'
)
}
})
},
getAddress
(
e
)
{
getAddress
(
e
)
{
let
self
=
this
let
self
=
this
let
position
let
position
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
77d3949
...
@@ -1663,6 +1663,9 @@ export default {
...
@@ -1663,6 +1663,9 @@ export default {
let
idx
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'goodsCategory'
)
let
idx
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'goodsCategory'
)
this
.
editFormData
[
idx
].
isHide
=
false
this
.
editFormData
[
idx
].
isHide
=
false
}
}
},
'editForm.activityActionReport.noteTouchConversionRate'
(
newValue
,
oldValue
)
{
this
.
editForm
.
activityActionReport
.
noteTouchConversionRate
=
limitPrice
(
newValue
,
oldValue
,
99999
,
2
,
0
)
}
}
},
},
...
@@ -2162,6 +2165,10 @@ export default {
...
@@ -2162,6 +2165,10 @@ export default {
let
resetArr
=
[{
name
:
'id'
},
{
name
:
'activityTime'
,
type
:
'array'
},
{
name
:
'liveBroadcastRoomId'
},
{
name
:
'groupQrCode'
},
{
name
:
'floatingMaskDiagram'
},
{
name
:
'selectedProInfo'
,
type
:
'Object'
},
{
name
:
'goodsId'
},
{
name
:
'activityPrice'
},
{
name
:
'goodsStock'
}]
let
resetArr
=
[{
name
:
'id'
},
{
name
:
'activityTime'
,
type
:
'array'
},
{
name
:
'liveBroadcastRoomId'
},
{
name
:
'groupQrCode'
},
{
name
:
'floatingMaskDiagram'
},
{
name
:
'selectedProInfo'
,
type
:
'Object'
},
{
name
:
'goodsId'
},
{
name
:
'activityPrice'
},
{
name
:
'goodsStock'
}]
this
.
copyReset
(
resetArr
)
this
.
copyReset
(
resetArr
)
}
}
// 标杆门店总产值/元(已结束战报)
this
.
editForm
.
activityActionReport
.
signMerchantProduceCount
=
(
info
.
activityActionReport
.
signMerchantProduceCount
/
10000
).
toFixed
(
2
)
// 转化率(已结束战报)
this
.
editForm
.
activityActionReport
.
noteTouchConversionRate
=
(
info
.
activityActionReport
.
noteTouchConversionRate
/
100
).
toFixed
(
2
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
this
.
editStatus
=
false
})
})
...
@@ -2250,6 +2257,10 @@ export default {
...
@@ -2250,6 +2257,10 @@ export default {
param
.
groupQrCode
=
''
param
.
groupQrCode
=
''
param
.
floatingMaskDiagram
=
''
param
.
floatingMaskDiagram
=
''
}
}
// 标杆门店总产值/元(已结束战报)
param
.
activityActionReport
.
signMerchantProduceCount
=
(
this
.
editForm
.
activityActionReport
.
signMerchantProduceCount
*
10000
).
toFixed
(
0
)
// 转化率(已结束战报)
param
.
activityActionReport
.
noteTouchConversionRate
=
(
this
.
editForm
.
activityActionReport
.
noteTouchConversionRate
*
100
).
toFixed
(
0
)
delete
param
.
liveFlag
delete
param
.
liveFlag
return
param
return
param
},
},
...
...
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