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 d5060231
authored
Jan 19, 2022
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式及bug修复
1 parent
850bc544
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
124 additions
and
44 deletions
package-lock.json
package.json
src/api/modules/beforeSale.js
src/components/qr-code/index.vue
src/router/routes.js
src/views/addCards/index.vue
src/views/appointment/index.vue
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/views/config/addConfig.vue
src/views/config/index.vue
src/views/worryFree/index.vue
package-lock.json
View file @
d506023
...
@@ -6710,9 +6710,9 @@
...
@@ -6710,9 +6710,9 @@
}
}
},
},
"glsx-components"
:
{
"glsx-components"
:
{
"version"
:
"1.3.
5
"
,
"version"
:
"1.3.
7
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.
5
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.
7
.tgz"
,
"integrity"
:
"sha512-
4Xi6IaTqEGczZV2Z5BN7rxQKX9R5ZV33sRFMOd6l+wxRbfCvwJsvzW92AEDeVOqZsf0r/hZHu+pB0L2vsqaRG
Q=="
,
"integrity"
:
"sha512-
kSzNVShRlR/qd0XOvB7QrZIRNMF7oZCGYxKtFyhcWgzr2ICWiA3CnTDjxPGslJX8F5oljwowYxL9U8ljzeeES
Q=="
,
"requires"
:
{
"requires"
:
{
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
...
...
package.json
View file @
d506023
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.3.
5
"
,
"glsx-components"
:
"^1.3.
7
"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/api/modules/beforeSale.js
View file @
d506023
...
@@ -107,7 +107,8 @@ const getCarTypeListApi = params => {
...
@@ -107,7 +107,8 @@ const getCarTypeListApi = params => {
}
}
const
getHotlineApi
=
params
=>
{
const
getHotlineApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.hotline.get`
// params.method = `${defaultPath}merchant.hotline.get`
params
.
method
=
`scrm.api.equity.service.package.merchant.config.get`
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -348,6 +349,26 @@ const dateBycarNo = params => {
...
@@ -348,6 +349,26 @@ const dateBycarNo = params => {
sign
:
true
,
sign
:
true
,
})
})
}
}
// 获取活码列表-
const
activeCodeList
=
params
=>
{
params
.
method
=
'entmicro.api.code.getFreeChannelCode'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
})
}
// 更新活码
const
updateActiveCode
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.merchant.qrcode.update'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
})
}
export
default
{
getUserInfoApi
,
getCountNoDataApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
getDefaultCarbrandApi
,
updateHotlineApi
,
updateCarBrandApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getAllOrderValueApi
,
verifyOrderApi
,
checkOrderApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
,
aduitOrderApi
,
judgeSetting
,
spaAgressData
,
merchantInfo
,
dateBycarNo
}
\ No newline at end of file
\ No newline at end of file
export
default
{
getUserInfoApi
,
getCountNoDataApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
getDefaultCarbrandApi
,
updateHotlineApi
,
updateCarBrandApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getAllOrderValueApi
,
verifyOrderApi
,
checkOrderApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
,
aduitOrderApi
,
judgeSetting
,
spaAgressData
,
merchantInfo
,
dateBycarNo
,
activeCodeList
,
updateActiveCode
}
\ No newline at end of file
\ No newline at end of file
src/components/qr-code/index.vue
View file @
d506023
<
template
>
<
template
>
<div
class=
"qr-code-components"
>
<div
class=
"qr-code-components"
>
<div
:style=
"[
{
bottom:bottom+'px'}]
" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<div
:style=
"[
{
bottom: bottom + 'px' }]" @mousedown="move" @mouseup="moveEnd" ref="callCenter
" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<img
src=
"../../assets/contact_icon.png"
/>
<img
src=
"../../assets/contact_icon.png"
/>
<div
class=
"contact_text"
>
联系我们
</div>
<div
class=
"contact_text"
>
联系我们
</div>
</div
>
<div
v-if=
"show"
class=
"left_code flex_ccc"
>
<div
:style=
"[
{bottom:bottom+'px'}]" v-if="show" class="left_code flex_ccc"
>
<img
:src=
"codeUrl"
/
>
<img
:src=
"codeUrl"
/
>
<div
style=
"height: 16px"
></div
>
<div
style=
"height: 16px"
></div
>
<span
class=
"h18_title"
>
{{
phoneTitle
}}
</span
>
<span
class=
"h18_title"
>
服务热线
</span>
<span
class=
"h18_title"
>
{{
phone
}}
</span>
<
span
class=
"h18_title"
>
{{
phone
}}
</span
>
<
/div
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -21,13 +21,17 @@ export default {
...
@@ -21,13 +21,17 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
64
default
:
64
},
},
codeUrl
:{
codeUrl
:
{
type
:
String
,
type
:
String
,
default
:
'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
default
:
'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
},
},
phone
:{
phone
:
{
type
:
String
,
default
:
'189 0000 1234'
},
phoneTitle
:{
type
:
String
,
type
:
String
,
default
:
'
189 0000 1234
'
default
:
'
服务热线
'
}
}
},
},
data
()
{
data
()
{
...
@@ -35,15 +39,57 @@ export default {
...
@@ -35,15 +39,57 @@ export default {
show
:
false
show
:
false
}
}
},
},
methods
:
{}
methods
:
{
// 拖动窗口,鼠标按下
move
(
event
)
{
// 给对应div添加拖拽属性
let
callCenter
=
this
.
$refs
.
callCenter
callCenter
.
style
.
cursor
=
'move'
var
distanceX
=
event
.
clientX
-
callCenter
.
offsetLeft
var
distanceY
=
event
.
clientY
-
callCenter
.
offsetTop
// 获取按下时对应的坐标
this
.
startX
=
event
.
pageX
this
.
startY
=
event
.
pageY
document
.
onmousemove
=
function
(
ev
)
{
var
oevent
=
ev
||
event
// 加入判断,让浮窗在限定的页面内可拖动
if
(
ev
.
clientX
<
40
||
ev
.
clientX
>
document
.
body
.
clientWidth
-
30
)
{
return
}
if
(
ev
.
clientY
<
40
||
ev
.
clientY
>
document
.
body
.
clientHeight
-
30
)
{
return
}
callCenter
.
style
.
left
=
oevent
.
clientX
-
distanceX
+
'px'
callCenter
.
style
.
top
=
oevent
.
clientY
-
distanceY
+
'px'
}
document
.
onmouseup
=
function
()
{
document
.
onmousemove
=
null
document
.
onmouseup
=
null
callCenter
.
style
.
cursor
=
'default'
}
},
// 鼠标抬起触发
moveEnd
(
event
)
{
// 获取鼠标抬起时的坐标
this
.
endX
=
event
.
pageX
this
.
endY
=
event
.
pageY
// 计算按下与抬起位置差值
var
d
=
Math
.
sqrt
((
this
.
startX
-
this
.
endX
)
*
(
this
.
startX
-
this
.
endX
)
+
(
this
.
startY
-
this
.
endY
)
*
(
this
.
startY
-
this
.
endY
))
if
(
d
===
0
||
d
<
7
)
{
// console.log('执行了点击事件')
}
else
{
// console.log('执行了拖拽事件')
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.qr-code-components
{
.qr-code-components
{
.left_code
{
.left_code
{
position
:
fixed
;
position
:
absolute
;
right
:
7
7px
;
right
:
5
7px
;
bottom
:
64
px
;
bottom
:
0
px
;
width
:
144px
;
width
:
144px
;
height
:
201px
;
height
:
201px
;
background
:
#ffffff
;
background
:
#ffffff
;
...
...
src/router/routes.js
View file @
d506023
...
@@ -64,5 +64,11 @@ const staticRoutes = Object.freeze([{
...
@@ -64,5 +64,11 @@ const staticRoutes = Object.freeze([{
component
:
resolve
=>
require
([
`@/views/beforeSale/serviceSet.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/beforeSale/serviceSet.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
name
:
'editEquity'
,
path
:
'/beforeSale/editEquity'
,
component
:
resolve
=>
require
([
`@/views/beforeSale/editEquity.vue`
],
resolve
),
meta
:
{}
},
])
])
export
default
staticRoutes
export
default
staticRoutes
\ No newline at end of file
\ No newline at end of file
src/views/addCards/index.vue
View file @
d506023
...
@@ -198,19 +198,6 @@ export default {
...
@@ -198,19 +198,6 @@ export default {
download
(
e
)
{
download
(
e
)
{
console
.
log
(
e
,
'111111111111'
)
console
.
log
(
e
,
'111111111111'
)
this
.
$apis
.
addWorryFree
.
downLoads
({
id
:
e
.
id
}).
then
(
res
=>
{
this
.
$apis
.
addWorryFree
.
downLoads
({
id
:
e
.
id
}).
then
(
res
=>
{
// if (res) {
// var a = document.createElement('a')
// a.setAttribute('href', res)
// a.setAttribute('target', '_blank')
// a.setAttribute('id', 'd2admin-link-temp')
// a.setAttribute('download', '批量下载' + '.xlsx') // 设置下载文件名称
// window.open(a)
// document.body.appendChild(a)
// a.click()
// document.body.removeChild(document.getElementById('d2admin-link-temp'))
// } else {
// console.log('导出失败')
// }
let
tempaa
=
utils
.
getExplorer
()
let
tempaa
=
utils
.
getExplorer
()
if
(
tempaa
==
'QQ'
)
{
if
(
tempaa
==
'QQ'
)
{
window
.
open
(
res
)
window
.
open
(
res
)
...
...
src/views/appointment/index.vue
View file @
d506023
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</el-row>
</el-row>
<el-row>
<el-row>
<el-form-item
label=
"特约内容"
prop=
"spaContent"
style=
"margin-top: 24px"
>
<el-form-item
label=
"特约内容"
prop=
"spaContent"
style=
"margin-top: 24px"
>
<el-input
type=
"textarea"
v-model=
"modifyDialogForm.spaContent"
maxlength=
"200"
style=
"width: 320px; width: 320px; height: 80px"
placeholder=
"请输入"
></el-input>
<el-input
type=
"textarea"
v-model=
"modifyDialogForm.spaContent"
maxlength=
"200"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</div>
</div>
...
@@ -91,7 +91,9 @@ export default {
...
@@ -91,7 +91,9 @@ export default {
},
},
{
{
label
:
'特约内容'
,
label
:
'特约内容'
,
prop
:
'spaContent'
prop
:
'spaContent'
,
line
:
2
,
width
:
160
},
},
{
{
...
@@ -288,4 +290,21 @@ export default {
...
@@ -288,4 +290,21 @@ export default {
border-color
:
#5850ff
;
border-color
:
#5850ff
;
color
:
#5850ff
;
color
:
#5850ff
;
}
}
/
deep
/
.el-textarea__inner
{
display
:
block
;
resize
:
vertical
;
padding
:
5px
15px
;
line-height
:
1.5
;
box-sizing
:
border-box
;
width
:
100%
;
font-size
:
inherit
;
color
:
#606266
;
background-color
:
#fff
;
background-image
:
none
;
border
:
1px
solid
#dcdfe6
;
border-radius
:
4px
;
transition
:
border-color
.2s
cubic-bezier
(
.645
,
.045
,
.355
,
1
);
width
:
320px
;
height
:
80px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/beforeSale/editEquity.vue
View file @
d506023
This diff is collapsed.
Click to expand it.
src/views/beforeSale/equityList.vue
View file @
d506023
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<div
class=
"app"
>
<div
class=
"app"
>
<div
class=
"before-sale"
>
<div
class=
"before-sale"
>
<div
class=
"flex m-b-10"
>
<div
class=
"flex m-b-10"
>
<
!--
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增权益
</el-button>
--
>
<
el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增权益
</el-button
>
<
GLButton
:size=
"size"
fn=
"新增权益"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"handleEdit(1)"
>
新增权益
</GLButton
>
<
!--
<GLButton
:size=
"size"
fn=
"新增权益"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"handleEdit(1)"
>
新增权益
</GLButton>
--
>
<!--
<div
class=
"table-top-tips"
><span
class=
"el-icon-warning"
></span>
请注意:订单列表还有
{{
countNoData
}}
单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。
</div>
-->
<!--
<div
class=
"table-top-tips"
><span
class=
"el-icon-warning"
></span>
请注意:订单列表还有
{{
countNoData
}}
单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。
</div>
-->
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
...
...
src/views/config/addConfig.vue
View file @
d506023
...
@@ -265,10 +265,10 @@ export default {
...
@@ -265,10 +265,10 @@ export default {
console
.
log
(
arrs
[
i
].
templateFlag
,
'collisionRadio1'
)
console
.
log
(
arrs
[
i
].
templateFlag
,
'collisionRadio1'
)
}
}
if
(
arrs
[
i
].
packageCode
==
'PC0011'
)
{
if
(
arrs
[
i
].
packageCode
==
'PC0011'
)
{
this
.
honorabl
e
=
true
this
.
carefre
e
=
true
}
}
if
(
arrs
[
i
].
packageCode
==
'PC0009'
)
{
if
(
arrs
[
i
].
packageCode
==
'PC0009'
)
{
this
.
carefre
e
=
true
this
.
honorabl
e
=
true
}
}
if
(
arrs
[
i
].
packageCode
==
'PC0010'
)
{
if
(
arrs
[
i
].
packageCode
==
'PC0010'
)
{
this
.
first
=
true
this
.
first
=
true
...
...
src/views/config/index.vue
View file @
d506023
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:getListApi=
"getConfigList"
:beforeSearchFn=
"check"
>
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:getListApi=
"getConfigList"
:beforeSearchFn=
"check"
>
<span
slot=
"operate"
slot-scope=
"scope"
>
<span
slot=
"operate"
slot-scope=
"scope"
>
<GLButton
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</GLButton>
<GLButton
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</GLButton>
<!--
<el-button
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</el-button>
-->
</span>
</span>
<span
slot=
"openFlag"
slot-scope=
"scope"
>
<span
slot=
"openFlag"
slot-scope=
"scope"
>
<el-switch
:value=
"scope.scope.openFlag == 1"
active-color=
"#5850ff"
inactive-color=
"#eee"
@
change=
"changStatus(scope.scope.openFlag, scope.scope.id)"
></el-switch>
<el-switch
:value=
"scope.scope.openFlag == 1"
active-color=
"#5850ff"
inactive-color=
"#eee"
@
change=
"changStatus(scope.scope.openFlag, scope.scope.id)"
></el-switch>
...
...
src/views/worryFree/index.vue
View file @
d506023
...
@@ -222,15 +222,15 @@ export default {
...
@@ -222,15 +222,15 @@ export default {
},
},
{
{
value
:
'PC0006'
,
value
:
'PC0006'
,
label
:
'轮胎
保障服务权益
'
label
:
'轮胎
无忧
'
},
},
{
{
value
:
'PC0007'
,
value
:
'PC0007'
,
label
:
'整车全损无忧
权益
'
label
:
'整车全损无忧'
},
},
{
{
value
:
'PC0008'
,
value
:
'PC0008'
,
label
:
'碰撞无忧
权益
'
label
:
'碰撞无忧'
}
}
],
],
dialogYearOptions
:
[
dialogYearOptions
:
[
...
...
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