Commit d5060231 by zhouzy

样式及bug修复

1 parent 850bc544
......@@ -6710,9 +6710,9 @@
}
},
"glsx-components": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.5.tgz",
"integrity": "sha512-4Xi6IaTqEGczZV2Z5BN7rxQKX9R5ZV33sRFMOd6l+wxRbfCvwJsvzW92AEDeVOqZsf0r/hZHu+pB0L2vsqaRGQ==",
"version": "1.3.7",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.7.tgz",
"integrity": "sha512-kSzNVShRlR/qd0XOvB7QrZIRNMF7oZCGYxKtFyhcWgzr2ICWiA3CnTDjxPGslJX8F5oljwowYxL9U8ljzeeESQ==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.5",
"glsx-components": "^1.3.7",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -107,7 +107,8 @@ const getCarTypeListApi = 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({
url: 'rop-scrm-equity/router',
method: 'POST',
......@@ -348,6 +349,26 @@ const dateBycarNo = params => {
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
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
<template>
<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" />
<div class="contact_text">联系我们</div>
</div>
<div :style="[{bottom:bottom+'px'}]" v-if="show" class="left_code flex_ccc">
<img :src="codeUrl" />
<div style="height: 16px"></div>
<span class="h18_title">服务热线</span>
<span class="h18_title">{{phone}}</span>
<div v-if="show" class="left_code flex_ccc">
<img :src="codeUrl" />
<div style="height: 16px"></div>
<span class="h18_title">{{phoneTitle}}</span>
<span class="h18_title">{{ phone }}</span>
</div>
</div>
</div>
</template>
......@@ -21,13 +21,17 @@ export default {
type: Number,
default: 64
},
codeUrl:{
type:String,
default:'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
codeUrl: {
type: String,
default: 'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
},
phone:{
phone: {
type: String,
default: '189 0000 1234'
},
phoneTitle:{
type:String,
default:'189 0000 1234'
default:'服务热线'
}
},
data() {
......@@ -35,15 +39,57 @@ export default {
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>
<style lang="scss" scoped>
.qr-code-components {
.left_code {
position: fixed;
right: 77px;
bottom: 64px;
position: absolute;
right: 57px;
bottom: 0px;
width: 144px;
height: 201px;
background: #ffffff;
......
......@@ -64,5 +64,11 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/beforeSale/serviceSet.vue`], resolve),
meta: {}
},
{
name: 'editEquity',
path: '/beforeSale/editEquity',
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {}
},
])
export default staticRoutes
\ No newline at end of file
......@@ -198,19 +198,6 @@ export default {
download(e) {
console.log(e, '111111111111')
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()
if (tempaa == 'QQ') {
window.open(res)
......
......@@ -35,7 +35,7 @@
</el-row>
<el-row>
<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-row>
</div>
......@@ -91,7 +91,9 @@ export default {
},
{
label: '特约内容',
prop: 'spaContent'
prop: 'spaContent',
line:2,
width:160
},
{
......@@ -288,4 +290,21 @@ export default {
border-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>
\ No newline at end of file
......@@ -3,8 +3,8 @@
<div class="app">
<div class="before-sale">
<div class="flex m-b-10">
<!-- <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>
<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> -->
<!-- <div class="table-top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div> -->
</div>
<div class="container">
......
......@@ -265,10 +265,10 @@ export default {
console.log(arrs[i].templateFlag, 'collisionRadio1')
}
if (arrs[i].packageCode == 'PC0011') {
this.honorable = true
this.carefree = true
}
if (arrs[i].packageCode == 'PC0009') {
this.carefree = true
this.honorable = true
}
if (arrs[i].packageCode == 'PC0010') {
this.first = true
......
......@@ -35,6 +35,7 @@
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
<span slot="operate" slot-scope="scope">
<GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton>
<!-- <el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button> -->
</span>
<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>
......
......@@ -222,15 +222,15 @@ export default {
},
{
value: 'PC0006',
label: '轮胎保障服务权益'
label: '轮胎无忧'
},
{
value: 'PC0007',
label: '整车全损无忧权益'
label: '整车全损无忧'
},
{
value: 'PC0008',
label: '碰撞无忧权益'
label: '碰撞无忧'
}
],
dialogYearOptions: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!