Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 7db86ad9
authored
Jan 24, 2022
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
d5060231
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
17 deletions
src/router/routes.js
src/views/beforeSale/editEquity.vue
src/views/beforeSale/introduct.vue
src/views/config/addConfig.vue
src/views/config/index.vue
src/router/routes.js
View file @
7db86ad
...
@@ -70,5 +70,11 @@ const staticRoutes = Object.freeze([{
...
@@ -70,5 +70,11 @@ const staticRoutes = Object.freeze([{
component
:
resolve
=>
require
([
`@/views/beforeSale/editEquity.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/beforeSale/editEquity.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
name
:
'checkSet'
,
path
:
'/beforeSale/introduct'
,
component
:
resolve
=>
require
([
`@/views/beforeSale/introduct.vue`
],
resolve
),
meta
:
{}
},
])
])
export
default
staticRoutes
export
default
staticRoutes
\ No newline at end of file
\ No newline at end of file
src/views/beforeSale/editEquity.vue
View file @
7db86ad
<!-- 编辑权益 -->
<!-- 编辑权益 -->
<
template
>
<
template
>
<div
class=
"app"
>
<div
class=
"before-sale edit-equity"
>
<div
class=
"before-sale edit-equity"
>
<!-- 车辆信息 -->
<!-- 车辆信息 -->
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -212,6 +213,7 @@
...
@@ -212,6 +213,7 @@
<!-- 二维码 -->
<!-- 二维码 -->
<qrCode
:bottom=
"320"
phone=
"400 6123 886"
phoneTitle=
"提单及服务咨询"
:codeUrl=
"qrcodUrl"
></qrCode>
<qrCode
:bottom=
"320"
phone=
"400 6123 886"
phoneTitle=
"提单及服务咨询"
:codeUrl=
"qrcodUrl"
></qrCode>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -1160,7 +1162,7 @@ export default {
...
@@ -1160,7 +1162,7 @@ export default {
}
}
this
.
editForm
.
packageCode
&&
this
.
packageAttr
(
true
,
productArrData
,
res
)
this
.
editForm
.
packageCode
&&
this
.
packageAttr
(
true
,
productArrData
,
res
)
const
spaItem
=
this
.
baseData
.
agreeList
.
find
(
item
=>
item
.
id
==
this
.
editForm
.
specialAppointId
)
const
spaItem
=
this
.
baseData
.
agreeList
.
find
(
item
=>
item
.
id
==
this
.
editForm
.
specialAppointId
)
if
(
spaItem
)
{
if
(
spaItem
)
{
this
.
editForm
.
specialAppoint
=
spaItem
.
spaContent
this
.
editForm
.
specialAppoint
=
spaItem
.
spaContent
}
}
})
})
...
@@ -1194,7 +1196,7 @@ export default {
...
@@ -1194,7 +1196,7 @@ export default {
if
(
item
.
attributeName
.
includes
(
'price'
))
{
if
(
item
.
attributeName
.
includes
(
'price'
))
{
item
.
attributeValue
=
item
.
attributeValue
/
100
item
.
attributeValue
=
item
.
attributeValue
/
100
}
}
if
(
item
.
attributeName
==
"buy_car_type"
&&
item
.
attributeValue
==
1
)
{
if
(
item
.
attributeName
==
'buy_car_type'
&&
item
.
attributeValue
==
1
)
{
this
.
compensationNameDisable
=
true
this
.
compensationNameDisable
=
true
}
}
this
.
productModal
.
vip
[
item
.
attributeName
]
=
item
.
attributeValue
this
.
productModal
.
vip
[
item
.
attributeName
]
=
item
.
attributeValue
...
@@ -1226,7 +1228,7 @@ export default {
...
@@ -1226,7 +1228,7 @@ export default {
}
else
if
(
item
.
attributeName
==
'planId'
)
{
}
else
if
(
item
.
attributeName
==
'planId'
)
{
this
.
getCase
(
parseInt
(
item
.
attributeValue
))
this
.
getCase
(
parseInt
(
item
.
attributeValue
))
}
}
if
(
item
.
attributeName
==
"buy_car_type"
&&
item
.
attributeValue
==
1
)
{
if
(
item
.
attributeName
==
'buy_car_type'
&&
item
.
attributeValue
==
1
)
{
this
.
compensationNameDisable
=
true
this
.
compensationNameDisable
=
true
}
}
this
.
productModal
[
targetItem
.
idName
][
item
.
attributeName
]
=
item
.
attributeValue
this
.
productModal
[
targetItem
.
idName
][
item
.
attributeName
]
=
item
.
attributeValue
...
@@ -1246,7 +1248,7 @@ export default {
...
@@ -1246,7 +1248,7 @@ export default {
if
(
ele
.
attributeName
==
'effective_date'
)
{
if
(
ele
.
attributeName
==
'effective_date'
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
}
}
if
(
ele
.
attributeName
==
'buy_car_type'
&&
ele
.
attributeValue
==
1
)
{
if
(
ele
.
attributeName
==
'buy_car_type'
&&
ele
.
attributeValue
==
1
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
}
}
})
})
...
@@ -2024,4 +2026,15 @@ export default {
...
@@ -2024,4 +2026,15 @@ export default {
}
}
}
}
}
}
.app
{
background
:
#f4f5fa
;
padding
:
0px
20px
20px
40px
;
position
:
absolute
;
box-sizing
:
border-box
;
width
:
100%
;
top
:
0px
;
left
:
0px
;
overflow-y
:
auto
;
height
:
100%
;
}
</
style
>
</
style
>
src/views/beforeSale/introduct.vue
View file @
7db86ad
<
template
>
<
template
>
<div
class=
"app"
>
<div
class=
"introduct_container"
>
<div
class=
"introduct_container"
>
<div
class=
"top_play_wrap flex_scb"
>
<div
class=
"top_play_wrap flex_scb"
>
<div
class=
"text_wrap"
>
<div
class=
"text_wrap"
>
...
@@ -65,6 +66,7 @@
...
@@ -65,6 +66,7 @@
<video
v-if=
"videoShow"
width=
"100%"
height=
"100%"
autoplay
controls
src=
"https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"
></video>
<video
v-if=
"videoShow"
width=
"100%"
height=
"100%"
autoplay
controls
src=
"https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"
></video>
</el-dialog>
</el-dialog>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
qrCode
from
'../../components/qr-code/index.vue'
import
qrCode
from
'../../components/qr-code/index.vue'
...
@@ -76,7 +78,7 @@ export default {
...
@@ -76,7 +78,7 @@ export default {
return
{
return
{
videoShow
:
false
,
videoShow
:
false
,
code
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png'
,
code
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png'
,
phone
:
'134 8079 2980'
,
phone
:
'134 8079 2980'
,
localList
:
[
localList
:
[
{
{
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png'
,
icon
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png'
,
...
@@ -118,7 +120,7 @@ export default {
...
@@ -118,7 +120,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
// let [href] = window.location.href.split('/#/')
// let [href] = window.location.href.split('/#/')
let
href
=
window
.
location
.
host
;
let
href
=
window
.
location
.
host
// 从域名判断是不是广汇的
// 从域名判断是不是广汇的
let
gxurl1
=
'http://scrm.cgacar.com'
let
gxurl1
=
'http://scrm.cgacar.com'
let
gxurl2
=
'https://scrm.cgacar.com'
let
gxurl2
=
'https://scrm.cgacar.com'
...
@@ -135,6 +137,17 @@ export default {
...
@@ -135,6 +137,17 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.app
{
background
:
#f4f5fa
;
padding
:
0px
20px
20px
40px
;
position
:
absolute
;
box-sizing
:
border-box
;
width
:
100%
;
top
:
0px
;
left
:
0px
;
overflow-y
:
auto
;
height
:
100%
;
}
.introduct_container
{
.introduct_container
{
margin-top
:
17px
;
margin-top
:
17px
;
}
}
...
...
src/views/config/addConfig.vue
View file @
7db86ad
<
template
>
<
template
>
<div
class=
"equity-wrap container"
>
<div
class=
"equity-wrap container"
>
<div
class=
"equity-wrap contain"
style=
"padding: 0; margin-bottom: 0"
>
<div
class=
"equity-wrap contain"
style=
"padding: 0; margin-bottom: 0"
>
<div
class=
"top"
>
开通
配置
</div>
<div
class=
"top"
>
{{
configTitle
}}
配置
</div>
</div>
</div>
<div
class=
"equity-wrap contain"
style=
"padding-left: 72px"
>
<div
class=
"equity-wrap contain"
style=
"padding-left: 72px"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-position=
"left"
size=
"medium"
class=
"detailForm"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-position=
"left"
size=
"medium"
class=
"detailForm"
>
...
@@ -103,6 +103,7 @@ export default {
...
@@ -103,6 +103,7 @@ export default {
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
configTitle
:
''
,
selectedTable
:
false
,
selectedTable
:
false
,
tableData
:
[],
tableData
:
[],
merchantIds
:
[],
merchantIds
:
[],
...
@@ -163,7 +164,9 @@ export default {
...
@@ -163,7 +164,9 @@ export default {
if
(
merchantId
)
{
if
(
merchantId
)
{
this
.
getConfig
(
merchantId
)
this
.
getConfig
(
merchantId
)
console
.
log
(
'11111'
)
console
.
log
(
'11111'
)
this
.
configTitle
=
'修改'
}
else
{
}
else
{
this
.
configTitle
=
'开通'
this
.
add
=
true
this
.
add
=
true
this
.
theftAll
=
true
this
.
theftAll
=
true
this
.
vehicleAll
=
true
this
.
vehicleAll
=
true
...
...
src/views/config/index.vue
View file @
7db86ad
<
template
>
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<GLButton
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</GLButton>
<GLButton
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</GLButton>
<!--
<el-button
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</el-button>
-->
<div
class=
"equity-wrap contain merchant-select"
>
<div
class=
"equity-wrap contain merchant-select"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<el-row>
<el-row>
...
@@ -24,7 +25,7 @@
...
@@ -24,7 +25,7 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<div
class=
"row-btns"
style=
"margin-top:20px"
>
<div
class=
"row-btns"
style=
"margin-top:
20px"
>
<!--
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
-->
<!--
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
-->
<!--
<el-checkbox
v-model=
"checkbox"
@
change=
"toggleAll"
style=
"margin-left:20px"
>
全选
</el-checkbox>
-->
<!--
<el-checkbox
v-model=
"checkbox"
@
change=
"toggleAll"
style=
"margin-left:20px"
>
全选
</el-checkbox>
-->
<div
style=
"float: right"
>
<div
style=
"float: right"
>
...
@@ -63,7 +64,7 @@ export default {
...
@@ -63,7 +64,7 @@ export default {
// mixins: [searchMixin],
// mixins: [searchMixin],
data
()
{
data
()
{
return
{
return
{
checkbox
:
false
,
checkbox
:
false
,
date_format
,
date_format
,
openFlag
:
''
,
openFlag
:
''
,
getConfigList
:
this
.
$apis
.
openconfig
.
getConfigList
,
getConfigList
:
this
.
$apis
.
openconfig
.
getConfigList
,
...
@@ -177,9 +178,9 @@ export default {
...
@@ -177,9 +178,9 @@ export default {
},
},
jump
(
e
)
{
jump
(
e
)
{
if
(
e
==
'add'
)
{
if
(
e
==
'add'
)
{
this
.
$router
.
push
({
path
:
'/config/addConfig'
})
this
.
$router
.
push
({
path
:
'/config/addConfig'
,
query
:
{
$title
:
encodeURI
(
'开通配置'
)
}
})
}
else
{
}
else
{
let
query
=
{
}
let
query
=
{
$title
:
encodeURI
(
'修改配置'
)
}
query
.
merchantId
=
e
query
.
merchantId
=
e
console
.
log
(
query
,
'query'
)
console
.
log
(
query
,
'query'
)
this
.
$router
.
push
({
path
:
'/config/addConfig'
,
query
})
this
.
$router
.
push
({
path
:
'/config/addConfig'
,
query
})
...
@@ -330,10 +331,10 @@ export default {
...
@@ -330,10 +331,10 @@ export default {
//
margin-bottom
:
20px
;
//
margin-bottom
:
20px
;
}
}
.merchant-select
{
.merchant-select
{
margin-bottom
:
10px
!important
;
margin-bottom
:
10px
!important
;
}
}
/
deep
/
.equity-wrap
{
/
deep
/
.equity-wrap
{
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.el-form--inline
.el-form-item
{
.el-form--inline
.el-form-item
{
...
@@ -350,19 +351,23 @@ export default {
...
@@ -350,19 +351,23 @@ export default {
padding-right
:
15px
;
padding-right
:
15px
;
}
}
}
}
.el-input-group--prepend
.el-select
.el-input__inner
,
.el-input-group__append
{
.el-input-group--prepend
.el-select
.el-input__inner
,
.el-input-group__append
{
width
:
120px
;
width
:
120px
;
color
:
#333333
;
color
:
#333333
;
}
}
.el-input-group--prepend
.el-input__inner
,
.el-input-group__append
:last-child
{
.el-input-group--prepend
.el-input__inner
,
.el-input-group__append
:last-child
{
width
:
166px
;
width
:
166px
;
color
:
#999
;
color
:
#999
;
}
}
.el-form-item__content
.el-button--small
:first-child
,
.row-btns
>
div
.el-button--small
:first-child
{
.el-form-item__content
.el-button--small
:first-child
,
.row-btns
>
div
.el-button--small
:first-child
{
border-color
:
#5850ff
;
border-color
:
#5850ff
;
color
:
#5850ff
;
color
:
#5850ff
;
}
}
.el-form-item__content
.el-button--small
:last-child
,
.row-btns
>
div
.el-button--small
:last-child
{
.el-form-item__content
.el-button--small
:last-child
,
.row-btns
>
div
.el-button--small
:last-child
{
border-color
:
#999
;
border-color
:
#999
;
color
:
#666666
;
color
:
#666666
;
}
}
...
...
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