Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 db856f3b
authored
Aug 28, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
8de36131
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
10 deletions
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/PhoneView.vue
src/views/activityLink/components/Process.vue
src/views/activityLink/components/MarketingGift.vue
View file @
db856f3
...
@@ -9,7 +9,9 @@
...
@@ -9,7 +9,9 @@
<el-radio
:label=
"item.id"
v-for=
"item in giftList"
:key=
"item.id"
>
{{
item
.
name
}}
(成本:
{{
item
.
totalEquityPrice
||
0
}}
)
</el-radio>
<el-radio
:label=
"item.id"
v-for=
"item in giftList"
:key=
"item.id"
>
{{
item
.
name
}}
(成本:
{{
item
.
totalEquityPrice
||
0
}}
)
</el-radio>
</el-radio-group>
</el-radio-group>
<div
class=
"choseRow"
>
<div
class=
"choseRow"
>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">
{{
item
.
label
}}
</div>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">
{{
item
.
label
}}
</div>
</div>
</div>
<div
class=
"gift-table"
>
<div
class=
"gift-table"
>
<div
class=
"goods-panel"
>
<div
class=
"goods-panel"
>
...
@@ -26,10 +28,12 @@
...
@@ -26,10 +28,12 @@
</div>
</div>
<div
v-show=
"currentIndex == 2"
>
<div
v-show=
"currentIndex == 2"
>
<div
class=
"select-tab"
>
<div
class=
"select-tab"
>
<div
class=
"tab-item"
:class=
"{ active: goodsIndex == item.type }"
v-for=
"(item, index) in goodsTabList"
:key=
"index"
@
click=
"goodsIndex = item.type"
>
{{ item.label }}
</div>
<div
class=
"tab-item"
:class=
"{ active: goodsIndex == item.type }"
v-for=
"(item, index) in goodsTabList"
:key=
"index"
@
click=
"goodsIndex = item.type"
>
{{ item.label }}
</div>
<div
class=
"tab-border"
:style=
"{ left: (goodsIndex - 1) * 61 + 2 + 'px' }"
></div>
<div
class=
"tab-border"
:style=
"{ left: (goodsIndex - 1) * 61 + 2 + 'px' }"
></div>
</div>
</div>
<glsx-combi-form
:isEdit=
"false"
labelWidth=
"70px"
class=
"p-16"
style=
"padding-bottom: 0px
;
"
ref=
"showSearch"
:formObj=
"searchForm[goodsIndex - 1]"
:formData=
"searchFormData"
>
<glsx-combi-form
:isEdit=
"false"
labelWidth=
"70px"
class=
"p-16"
style=
"padding-bottom: 0px"
ref=
"showSearch"
:formObj=
"searchForm[goodsIndex - 1]"
:formData=
"searchFormData"
>
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
...
@@ -41,8 +45,15 @@
...
@@ -41,8 +45,15 @@
</div>
</div>
<div
v-show=
"currentIndex == 3"
>
<div
v-show=
"currentIndex == 3"
>
<div
class=
"service-tab"
>
<div
class=
"service-tab"
>
<div
class=
"tab-item"
:class=
"{ active: serviceIndex == item.type }"
v-for=
"(item, index) in serviceTabList"
:key=
"index"
@
click=
"serviceIndex = item.type"
>
{{ item.label }}
</div>
<div
class=
"tab-item"
:class=
"{ active: serviceIndex == item.type }"
v-for=
"(item, index) in serviceTabList"
:key=
"index"
@
click=
"serviceIndex = item.type"
>
<div
class=
"tab-border"
:style=
"{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"
></div>
{{ item.label }}
</div>
<div
class=
"tab-border"
:style=
"{
left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px'
}"
></div>
<div
class=
"service-tip"
>
(仅支持引用无限库存券)
</div>
<div
class=
"service-tip"
>
(仅支持引用无限库存券)
</div>
<div
class=
"tab-right"
>
<div
class=
"tab-right"
>
<div
class=
"refresh-btn"
@
click=
"getList"
>
<div
class=
"refresh-btn"
@
click=
"getList"
>
...
@@ -319,7 +330,16 @@ export default {
...
@@ -319,7 +330,16 @@ export default {
for
(
let
i
=
0
;
i
<
selectedCarList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
selectedCarList
.
length
;
i
++
)
{
this
.
totalPrice
=
this
.
totalPrice
+
parseFloat
(
selectedCarList
[
i
].
packageAmount
||
0
)
this
.
totalPrice
=
this
.
totalPrice
+
parseFloat
(
selectedCarList
[
i
].
packageAmount
||
0
)
}
}
this
.
setPackage
(
Object
.
assign
({},
{
selectedServiceList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedServiceList
),
selectedCarList
:
this
.
$common
.
utils
.
deepClone
(
selectedCarList
),
selectedGoodsList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedGoodsList
)
}))
this
.
setPackage
(
Object
.
assign
(
{},
{
selectedServiceList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedServiceList
),
selectedCarList
:
this
.
$common
.
utils
.
deepClone
(
selectedCarList
),
selectedGoodsList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedGoodsList
)
}
)
)
const
selectedGoodsList
=
[...
this
.
selectedGoodsList
,
...
this
.
selectedServiceList
].
map
(
item
=>
{
const
selectedGoodsList
=
[...
this
.
selectedGoodsList
,
...
this
.
selectedServiceList
].
map
(
item
=>
{
console
.
log
(
item
)
console
.
log
(
item
)
return
{
return
{
...
@@ -528,7 +548,10 @@ export default {
...
@@ -528,7 +548,10 @@ export default {
async
getCarList
()
{
async
getCarList
()
{
let
equities
=
{}
let
equities
=
{}
if
(
this
.
isInit
)
{
if
(
this
.
isInit
)
{
let
res
=
await
this
.
$apis
.
giftBag
.
packageDefault
({
merchantId
:
this
.
merchantId
,
activitySubscribe
:
this
.
subscribe
})
let
res
=
await
this
.
$apis
.
giftBag
.
packageDefault
({
merchantId
:
this
.
merchantId
,
activitySubscribe
:
this
.
subscribe
})
equities
=
JSON
.
parse
(
res
.
equities
)
equities
=
JSON
.
parse
(
res
.
equities
)
}
}
var
params
=
{
var
params
=
{
...
...
src/views/activityLink/components/PhoneView.vue
View file @
db856f3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-08-
09 15:34:15
* @LastEditTime: 2023-08-
28 14:56:02
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -464,7 +464,7 @@ export default {
...
@@ -464,7 +464,7 @@ export default {
for
(
const
style
of
styles
)
{
for
(
const
style
of
styles
)
{
style
.
x
=
parseInt
(
style
.
x
*
RATIO
)
style
.
x
=
parseInt
(
style
.
x
*
RATIO
)
style
.
y
=
parseInt
(
style
.
y
*
RATIO
)
style
.
y
=
parseInt
(
style
.
y
*
RATIO
)
style
.
size
=
parseInt
(
style
.
size
*
RATIO
)
style
.
size
=
+
(
style
.
size
*
RATIO
.
toFixed
(
2
)
)
style
.
width
=
parseInt
(
style
.
width
*
RATIO
)
style
.
width
=
parseInt
(
style
.
width
*
RATIO
)
}
}
Object
.
assign
(
this
.
draggableList
[
0
],
{
content
:
this
.
detail
.
marketingTitle
,
...
style1
,
width
:
this
.
detail
.
marketingTitle
.
length
*
(
style1
.
size
+
0.5
),
color
:
style1
.
style
.
color
,
font
:
style1
.
font
,
height
:
'auto'
})
Object
.
assign
(
this
.
draggableList
[
0
],
{
content
:
this
.
detail
.
marketingTitle
,
...
style1
,
width
:
this
.
detail
.
marketingTitle
.
length
*
(
style1
.
size
+
0.5
),
color
:
style1
.
style
.
color
,
font
:
style1
.
font
,
height
:
'auto'
})
...
...
src/views/activityLink/components/Process.vue
View file @
db856f3
...
@@ -150,7 +150,7 @@ export default {
...
@@ -150,7 +150,7 @@ export default {
for
(
const
style
of
styles
)
{
for
(
const
style
of
styles
)
{
style
.
x
=
parseInt
(
style
.
x
*
RATIO
)
style
.
x
=
parseInt
(
style
.
x
*
RATIO
)
style
.
y
=
parseInt
(
style
.
y
*
RATIO
)
style
.
y
=
parseInt
(
style
.
y
*
RATIO
)
style
.
size
=
parseInt
(
style
.
size
*
RATIO
)
style
.
size
=
+
(
style
.
size
*
RATIO
.
toFixed
(
2
)
)
style
.
width
=
parseInt
(
style
.
width
*
RATIO
)
style
.
width
=
parseInt
(
style
.
width
*
RATIO
)
}
}
params
.
titleStyle
=
JSON
.
stringify
(
Object
.
assign
(
titleStyle
,
{
x
:
style1
.
x
,
y
:
style1
.
y
,
size
:
style1
.
size
,
width
:
style1
.
width
}))
params
.
titleStyle
=
JSON
.
stringify
(
Object
.
assign
(
titleStyle
,
{
x
:
style1
.
x
,
y
:
style1
.
y
,
size
:
style1
.
size
,
width
:
style1
.
width
}))
...
...
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