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 207ebd2f
authored
Oct 27, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复第二轮bug
1 parent
dde49177
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
52 deletions
src/components/glsx-combi-form/mapView.vue
src/views/productGroup/components/crowdFundingShareDialog.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/components/glsx-combi-form/mapView.vue
View file @
207ebd2
...
@@ -6,19 +6,9 @@
...
@@ -6,19 +6,9 @@
</el-select>
</el-select>
</div>
</div>
<div
class=
"map-address"
>
<div
class=
"map-address"
>
<div
v-if=
"addressFlag"
>
<img
class=
"icon-map"
src=
"./images/icon-map.png"
/>
<img
class=
"icon-map"
src=
"./images/icon-map.png"
v-show=
"address"
/>
{{
address
}}
{{
address
}}
</div>
</div>
<div
v-else
>
<el-input
v-model=
"address"
placeholder=
"请输入活动地址"
clearable
></el-input>
</div>
<div
class=
"address-config"
v-show=
"addressFlag"
@
click=
"addressFlag = false"
>
配置
</div>
<div
class=
"address-config"
v-show=
"!addressFlag"
>
<span
@
click=
"geoCode"
>
保存
</span>
<span
@
click=
"addressFlag = true"
>
取消
</span>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -41,8 +31,7 @@ export default {
...
@@ -41,8 +31,7 @@ export default {
address
:
''
,
address
:
''
,
adrList
:
[],
adrList
:
[],
lnglat
:
[],
lnglat
:
[],
geocoderAddress
:
{},
geocoderAddress
:
{}
addressFlag
:
true
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -140,23 +129,6 @@ export default {
...
@@ -140,23 +129,6 @@ export default {
marker
.
setMap
(
map
)
marker
.
setMap
(
map
)
// this.map.setFitView()
// this.map.setFitView()
},
},
// 输入地址获取得到经纬度
geoCode
()
{
this
.
addressFlag
=
true
var
geocoder
=
new
AMap
.
Geocoder
({
city
:
""
})
var
address
=
this
.
address
let
_this
=
this
geocoder
.
getLocation
(
address
,
function
(
status
,
result
)
{
if
(
status
===
'complete'
&&
result
.
geocodes
.
length
)
{
var
lnglat
=
result
.
geocodes
[
0
].
location
_this
.
getAddress
(
lnglat
)
}
else
{
console
.
log
(
'根据地址查询位置失败'
)
}
})
},
getAddress
(
e
)
{
getAddress
(
e
)
{
let
self
=
this
let
self
=
this
let
position
let
position
...
@@ -220,7 +192,7 @@ export default {
...
@@ -220,7 +192,7 @@ export default {
width
:
280px
;
width
:
280px
;
}
}
.map-address
{
.map-address
{
//
display
:
flex
;
display
:
flex
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
284px
;
width
:
284px
;
height
:
100%
;
height
:
100%
;
...
@@ -231,20 +203,7 @@ export default {
...
@@ -231,20 +203,7 @@ export default {
.icon-map
{
.icon-map
{
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
}
margin-right
:
6px
;
}
.address-config
{
font-size
:
14px
;
color
:
#5850ff
;
letter-spacing
:
0
;
line-height
:
14px
;
font-weight
:
400
;
cursor
:
pointer
;
span
{
&:last-child
{
color
:
#666
;
margin-left
:
10px
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/productGroup/components/crowdFundingShareDialog.vue
View file @
207ebd2
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<div>
<div>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.linkUrl)"
>
复制
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.linkUrl)"
>
复制
</span>
<span
class=
"copy"
style=
"margin-left: 10px;width: 75px;"
@
click=
"handleSaveTxt(shareForm.originallinkUrl)"
>
复制
长
链接
</span>
<span
class=
"copy"
style=
"margin-left: 10px;width: 75px;"
@
click=
"handleSaveTxt(shareForm.originallinkUrl)"
>
复制
群发
链接
</span>
</div>
</div>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
linkUrl
}}
</p>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
linkUrl
}}
</p>
<div>
<div>
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
207ebd2
...
@@ -408,6 +408,9 @@ export default {
...
@@ -408,6 +408,9 @@ export default {
fn
&&
fn
()
fn
&&
fn
()
this
.
handleSearch
()
this
.
handleSearch
()
}
}
if
(
res
.
code
==
'21'
)
{
this
.
handleSearch
()
}
})
})
}
}
}
}
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
207ebd2
...
@@ -644,7 +644,7 @@
...
@@ -644,7 +644,7 @@
<
template
slot=
"appointmentContacts"
>
<
template
slot=
"appointmentContacts"
>
<div
class=
"appointmentContactsClass"
>
<div
class=
"appointmentContactsClass"
>
<el-form-item
label=
"姓名:"
prop=
"reservationInstallContactsName"
labelWidth=
"60px"
>
<el-form-item
label=
"姓名:"
prop=
"reservationInstallContactsName"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.reservationInstallContactsName"
style=
"width: 432px;display: block;"
placeholder=
"请输入姓名"
></el-input>
<el-input
v-model=
"editForm.reservationInstallContactsName"
style=
"width: 432px;display: block;"
maxlength=
"10"
placeholder=
"请输入姓名"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"电话:"
prop=
"reservationInstallContactsPhone"
labelWidth=
"60px"
class=
"phoneClass"
>
<el-form-item
label=
"电话:"
prop=
"reservationInstallContactsPhone"
labelWidth=
"60px"
class=
"phoneClass"
>
<el-input
v-model=
"editForm.reservationInstallContactsPhone"
style=
"width: 432px"
maxlength=
"11"
placeholder=
"请输入电话"
></el-input>
<el-input
v-model=
"editForm.reservationInstallContactsPhone"
style=
"width: 432px"
maxlength=
"11"
placeholder=
"请输入电话"
></el-input>
...
@@ -696,7 +696,7 @@
...
@@ -696,7 +696,7 @@
<el-form-item
label=
"订单数(单)"
prop=
"noteTouchOrderCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"订单数(单)"
prop=
"noteTouchOrderCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.noteTouchOrderCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"editForm.activityActionReport.noteTouchOrderCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"转化率
"
prop=
"noteTouchConversionRate"
labelWidth=
"5
0px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"转化率
(%)"
prop=
"noteTouchConversionRate"
labelWidth=
"7
0px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.noteTouchConversionRate"
style=
"width: 136px;height:32px;"
readonly
></el-input>
<el-input
v-model=
"editForm.activityActionReport.noteTouchConversionRate"
style=
"width: 136px;height:32px;"
readonly
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -1328,7 +1328,7 @@ export default {
...
@@ -1328,7 +1328,7 @@ export default {
label
:
'活动地址'
,
label
:
'活动地址'
,
name
:
'activityAddressDetailName'
,
name
:
'activityAddressDetailName'
,
type
:
'map'
,
type
:
'map'
,
isReadonly
:
tru
e
,
isReadonly
:
fals
e
,
provinceView
:
false
,
provinceView
:
false
,
attrObj
:
{
attrObj
:
{
provinceName
:
'activityAddressProvinceName'
,
provinceName
:
'activityAddressProvinceName'
,
...
@@ -2308,7 +2308,7 @@ export default {
...
@@ -2308,7 +2308,7 @@ export default {
}
}
// 判断目标客户数与访客数
// 判断目标客户数与访客数
if
(
param
.
activityActionReport
.
noteTouchCustomerCount
&&
param
.
activityActionReport
.
noteTouchVisitorCount
)
{
if
(
param
.
activityActionReport
.
noteTouchCustomerCount
&&
param
.
activityActionReport
.
noteTouchVisitorCount
)
{
if
(
param
.
activityActionReport
.
noteTouchCustomerCount
<
param
.
activityActionReport
.
noteTouchVisitorCount
)
{
if
(
Number
(
param
.
activityActionReport
.
noteTouchCustomerCount
)
<
Number
(
param
.
activityActionReport
.
noteTouchVisitorCount
)
)
{
this
.
loading
=
false
this
.
loading
=
false
this
.
$message
({
this
.
$message
({
message
:
'目标客户数应大于等于访客数'
,
message
:
'目标客户数应大于等于访客数'
,
...
@@ -2320,7 +2320,7 @@ export default {
...
@@ -2320,7 +2320,7 @@ export default {
}
}
// 判断访客数与浏览数
// 判断访客数与浏览数
if
(
param
.
activityActionReport
.
signMerchantVisitorCount
&&
param
.
activityActionReport
.
signMerchantBrowseCount
)
{
if
(
param
.
activityActionReport
.
signMerchantVisitorCount
&&
param
.
activityActionReport
.
signMerchantBrowseCount
)
{
if
(
param
.
activityActionReport
.
signMerchantBrowseCount
<
param
.
activityActionReport
.
signMerchantVisitorCount
)
{
if
(
Number
(
param
.
activityActionReport
.
signMerchantBrowseCount
)
<
Number
(
param
.
activityActionReport
.
signMerchantVisitorCount
)
)
{
this
.
loading
=
false
this
.
loading
=
false
this
.
$message
({
this
.
$message
({
message
:
'浏览数应大于等于访客数'
,
message
:
'浏览数应大于等于访客数'
,
...
@@ -2334,7 +2334,7 @@ export default {
...
@@ -2334,7 +2334,7 @@ export default {
param
.
activityActionReport
.
noteTouchConversionRate
=
""
param
.
activityActionReport
.
noteTouchConversionRate
=
""
if
(
param
.
activityActionReport
.
noteTouchVisitorCount
&&
param
.
activityActionReport
.
noteTouchOrderCount
)
{
if
(
param
.
activityActionReport
.
noteTouchVisitorCount
&&
param
.
activityActionReport
.
noteTouchOrderCount
)
{
let
val
=
param
.
activityActionReport
.
noteTouchOrderCount
/
param
.
activityActionReport
.
noteTouchVisitorCount
let
val
=
param
.
activityActionReport
.
noteTouchOrderCount
/
param
.
activityActionReport
.
noteTouchVisitorCount
param
.
activityActionReport
.
noteTouchConversionRate
=
(
val
*
100
).
toFixed
(
0
)
param
.
activityActionReport
.
noteTouchConversionRate
=
(
val
*
100
00
).
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