Commit d4831045 authored by Hello's avatar Hello

三期需求修改

parent a08a43b1
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.0.3"'
currentVersion: '"3.0.6"'
}
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.0.3"'
currentVersion: '"3.0.6"'
}
......@@ -6,37 +6,38 @@
* @Description: In User Settings Edit
-->
<template>
<h-view id="contract-create-list">
<h-view id="my-contract">
<h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>我的合同</span>
</div>
</h-header>
<div class="my-contractlist">
<div class="contract-item" @click="goSign()">
<h-content class="my-contractlist">
<div v-if="user_bp_type == 'AGENT' || user_bp_type == 'OFFICE'" class="contract-item" @click="goCreate()">
<img src="@/assets/myInfo/contractCreate.png" >
<span>融租方案创建</span>
</div>
<div v-if="user_bp_type !== 'MANAGER'" class="contract-item" @click="goSign()">
<p v-if="signCount > 0" :class="{'content-wrap-class-width':signCount > 99, 'content-wrap-class':signCount < 99}">{{ signCount > 99 ? '99+' : signCount }}</p>
<img src="@/assets/myInfo/unSign.png" >
<span>融租方案确认</span>
</div>
<div v-if="multipleRole == 'TENANT' || multipleRole == 'GUTA'|| user_bp_type == 'AGENT'" class="contract-item" @click="goCarConfirm()">
<div v-if="user_bp_type == 'GUTA'|| user_bp_type == 'TENANT' || user_bp_type == 'AGENT'" class="contract-item" @click="goCarConfirm()">
<p v-if="carCount > 0" :class="{'content-wrap-class-width':carCount > 99, 'content-wrap-class':carCount < 99}">{{ carCount > 99 ? '99+' : carCount }}</p>
<img src="@/assets/myInfo/carConfirm.png" >
<span>合同签订</span>
</div>
<div v-if="multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')" class="contract-item" @click="goCreate()">
<img src="@/assets/myInfo/contractCreate.png" >
<span>融租方案创建</span>
</div>
<div v-if="multipleRole == 'GUTA'" class="contract-item" @click="changeContract('GUTA')">
<div v-if="user_bp_type == 'GUTA'" class="contract-item" @click="changeContract('GUTA')">
<img src="@/assets/myInfo/under.png" >
<span>我担保的合同</span>
</div>
<div v-if="multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')" class="contract-item" @click="goContract()">
<div v-if="user_bp_type == 'AGENT' || user_bp_type == 'OFFICE' || user_bp_type == 'MANAGER'" class="contract-item" @click="goContract()">
<img src="@/assets/myInfo/agent.png" >
<span>我办理的合同</span>
</div>
</div>
</h-content>
</h-view>
</template>
......@@ -134,18 +135,14 @@ export default {
})
},
goContract () {
if (this.user_bp_type === 'OFFICE') {
this.changeContract('OFFICE')
} else {
this.changeContract('AGENT')
}
this.changeContract(this.user_bp_type)
},
},
}
</script>
<style lang="less" type="text/less">
#contract-create-list{
#my-contract{
.my-contractlist {
display: flex;
flex-wrap: wrap;
......
......@@ -576,7 +576,7 @@ export default {
// margin-top:50px;
// }
.scroll-content{
top:100px;
//top:100px;
}
.date-pic {
height: 17px;
......
......@@ -288,7 +288,7 @@ export default {
let name = ''
if (vm.bp_type === 'TENANT') {
name = 'con_contract_list_tenant'
} else if (vm.bp_type === 'AGENT' || vm.bp_type === 'OFFICE') {
} else if (vm.bp_type === 'AGENT' || vm.bp_type === 'OFFICE' || vm.bp_type === 'MANAGER') {
name = 'con_contract_list_saleman'
} else if (vm.bp_type === 'GUTA') {
name = 'con_contract_list_guta'
......
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime : 2019-12-23 14:11:26
* @LastEditors : Please set LastEditors
* @Description: 合同查询--明细
* @FilePath:
-->
<template>
<h-view id="repay-detail" class="public-style">
<h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>合同明细</span>
</div>
</h-header>
<h-content ref="content" class="repay-content">
<div class="header">
合同单据
<div class="download" @click="downLoad">电子版下载 <img src="@/assets/contractInquire/download.png" alt=""></div>
</div>
<list-item :item-height="44" class="invoice">
<item>
<div slot="name">合同号</div>
<div slot="content">{{ detailInfo.project_number }}</div>
</item>
<item>
<div slot="name">{{ detailInfo.bp_agent_name?'经销商':'办事处' }}</div>
<div slot="content">{{ detailInfo.bp_agent_name?detailInfo.bp_agent_name:detailInfo.office_name }}</div>
</item>
<item>
<div slot="name">承租人</div>
<div slot="content">{{ detailInfo.bp_name }}</div>
</item>
<item>
<div slot="name">产品名称</div>
<div slot="content">{{ detailInfo.division_n }}</div>
</item>
<item>
<div slot="name">产品型号</div>
<div slot="content">{{ detailInfo.product_code }}</div>
</item>
<item>
<div slot="name">合同金额</div>
<div slot="content">{{ detailInfo.total_price | currency }}</div>
</item>
<item>
<div slot="name">商务政策</div>
<div slot="content">{{ detailInfo.product_plan_id_n }}</div>
</item>
<item>
<div slot="name">租赁物数量</div>
<div slot="content">{{ detailInfo.product_num }}</div>
</item>
</list-item>
<div class="header">设备清单</div>
<scroll
ref="scroll"
:updateData="[lists]"
:pullUp="true"
@pullingUp="loadMore">
<list-item :item-height="104" class="equipment-list">
<item v-for="(item,index) in lists" :proportion="[2,1]" :key="index">
<div slot="name" class="parameters">
<div class="list">
<p>设备识别号</p>
<span class="bold">{{ item.product_code }}-{{ index+1|lengthCheck }}</span>
</div>
<div class="list">
<p>发动机号</p>
<span>{{ item.lease_item_engine_num }}</span>
</div>
<div class="list">
<p>车辆型号</p>
<span>{{ item.vehicle_model }}</span>
</div>
<div class="list">
<p>合格证编号</p>
<span>{{ item.certificate_number }}</span>
</div>
</div>
<div slot="content">
<span v-if="item.overdue_times != 0" :class="['status','red']">逾期{{ item.overdue_times }}</span>
<div class="plan" @click="toRepayPlans(item.contract_id)">
<img src="@/assets/contractRepayment/plan.png" alt="">
<span>还款计划</span>
</div>
</div>
</item>
</list-item>
</scroll>
</h-content>
</h-view>
</template>
<script>
export default {
name: 'RepayDetail',
filters: {
lengthCheck: function (value) {
if ((value.toString()).length === 1) {
return `0${value}`
} else {
return value
}
},
},
data () {
return {
lists: [],
pagenum: 1,
hidden: false,
detailInfo: {},
fileArray: [],
}
},
computed: {
},
watch: {},
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'ContractRecords') {
vm.pagenum = 1
vm.detailQuery()
vm.equipQuery()
}
})
},
methods: {
// val: contract_id
toRepayPlans (val) {
this.$router.push({
name: 'RepayPlans',
params: {
contract_id: val,
lease_num: this.detailInfo.lease_num,
},
})
},
downLoad () {
let vm = this
let url = $config.basePath + 'get_download_app'
let param = {
project_id: vm.$route.params.project_id,
phone: window.localStorage.user_phone,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.fileArray = res.info
vm.fileArray.forEach(i => {
cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
})
// vm.pdfDownload()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
pdfDownload () {
// 下载pdf文件
let vm = this
vm.fileArray.forEach(element => {
if (element.fileUrl) {
console.log('vm.$refs.pdf' + vm.$refs.pdf)
// debugger
vm.$refs.pdf.downloadPDF(element.fileUrl, element.fileName)
}
})
},
// 合同明细
detailQuery () {
let vm = this
let url = $config.basePath + 'con_contract_detial'
let param = {
project_id: vm.$route.params.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.detailInfo = res.info
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 设备清单
equipQuery () {
let vm = this
let url = $config.basePath + 'con_equip_list'
let param = {
pagesize: 10,
pagenum: vm.pagenum,
project_id: vm.$route.params.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.lists = res.lists
if (res.lists.length >= 0 && res.lists.length < 10) {
vm.$refs.scroll.update(true)
} else if (res.lists.length === 10) {
vm.$refs.scroll.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
loadMore () {
let vm = this
let url = $config.basePath + 'con_equip_list'
vm.pagenum++
let param = {
pagesize: 10,
pagenum: vm.pagenum,
project_id: vm.$route.params.project_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
let returnData = []
returnData = res.lists
if (returnData.length === 0) {
vm.$refs.scroll.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
vum.forEach(returnData, function (data, index, array) {
vm.lists.push(array[index])
})
vm.$refs.scroll.update(true)
} else if (returnData.length === 10) {
vum.forEach(returnData, function (data, index, array) {
vm.lists.push(array[index])
})
vm.$refs.scroll.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
},
}
</script>
<style lang='less' >
#repay-detail {
.status{
margin-bottom:20px;
display: inline-block;
}
.red{
color: red;
border-bottom: 1px solid red;
}
.repay-content {
overflow: hidden;
.header {
position: relative;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #1D3FFF;
text-indent: 1em;
border-bottom: 1px solid #F1F0F5;
.download {
position: absolute;
padding-left: 12px;
right: 12px;
top: 8px;
background: #FFFFFF;
border-radius: 5px;
height: 24px;
line-height: 24px;
// width: 93px;
font-family: PingFangSC-Regular;
font-size: 11px;
color: #1D3FFF;
letter-spacing: 0.34px;
img {
position: absolute;
height: 15px;
left: 6px;
top: 6px;
}
}
&:before {
content: "";
position: absolute;
top: 12px;
left: 0;
width: 4px;
height: 16px;
background: #1D3FFF;
}
}
.invoice {
margin-bottom: 0px;
.hls-item{
.contents{
.add-name {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
}
.add-content {
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56,63,69,0.60);
}
}
}
}
.equipment-list {
border-top: none;
background-color: transparent;
.hls-item {
border-top: 1px solid #D9DBDF;
border-bottom: 1px solid #D9DBDF;
background-color: #fff;
margin-bottom: 10px;
.contents {
padding-top: 8px;
.add-name{
display: flex;
flex-direction: column;
.parameters {
width: 100%;
margin-left: -40px;
.list {
display: flex;
margin-bottom:0;
p {
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56,63,69,0.60);
letter-spacing: 0.4px;
text-align: right;
flex: 1;
}
span {
flex:1;
margin-left: 15px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #383F45;
letter-spacing: 0.4px;
}
span.bold {
font-family: PingFangSC-Semibold;
font-weight: 700;
}
}
}
}
.add-content {
.plan {
position: relative;
width: 100px;
height: 30px;
background: rgba(29, 63, 255,.2);
border-radius: 4px;
img {
height: 14px;
position: absolute;
top: 8px;
left: 12px;
}
span {
font-family: PingFangSC-Regular;
font-size: 13px;
color: #1D3FFF;
letter-spacing: 0.4px;
position: absolute;
top: 5px;
left: 32px;
}
}
}
}
}
}
}
.scrollContent {
padding-bottom: 400px;
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.32rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#repay-detail{
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#repay-detail{
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
</style>
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime : 2019-12-23 14:11:26
* @LastEditors : Please set LastEditors
* @Description: 合同查询--明细
* @FilePath:
-->
<template>
<h-view id="repay-detail" class="public-style">
<h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>合同明细</span>
</div>
</h-header>
<div ref="content" class="repay-content">
<div class="header">
合同单据
<div class="download" @click="downLoad">电子版下载 <img src="@/assets/contractInquire/download.png" alt=""></div>
</div>
<list-item :item-height="44" class="invoice">
<item>
<div slot="name">合同号</div>
<div slot="content">{{ detailInfo.project_number }}</div>
</item>
<item>
<div slot="name">{{ detailInfo.bp_agent_name?'经销商':'办事处' }}</div>
<div slot="content">{{ detailInfo.bp_agent_name?detailInfo.bp_agent_name:detailInfo.office_name }}</div>
</item>
<item>
<div slot="name">承租人</div>
<div slot="content">{{ detailInfo.bp_name }}</div>
</item>
<item>
<div slot="name">产品名称</div>
<div slot="content">{{ detailInfo.division_n }}</div>
</item>
<item>
<div slot="name">产品型号</div>
<div slot="content">{{ detailInfo.product_code }}</div>
</item>
<item>
<div slot="name">合同金额</div>
<div slot="content">{{ detailInfo.total_price | currency }}</div>
</item>
<item>
<div slot="name">商务政策</div>
<div slot="content">{{ detailInfo.product_plan_id_n }}</div>
</item>
<item>
<div slot="name">租赁物数量</div>
<div slot="content">{{ detailInfo.product_num }}</div>
</item>
</list-item>
</div>
<scroll
ref="scroll"
:updateData="[lists]"
:pullUp="true"
@pullingUp="loadMore">
<div class="header">设备清单</div>
<list-item :item-height="104" class="equipment-list">
<item v-for="(item,index) in lists" :proportion="[2,1]" :key="index">
<div slot="name" class="parameters">
<div class="list">
<p>设备识别号</p>
<span class="bold">{{ item.product_code }}-{{ index+1|lengthCheck }}</span>
</div>
<div class="list">
<p>发动机号</p>
<span>{{ item.lease_item_engine_num }}</span>
</div>
<div class="list">
<p>车辆型号</p>
<span>{{ item.vehicle_model }}</span>
</div>
<div class="list">
<p>合格证编号</p>
<span>{{ item.certificate_number }}</span>
</div>
</div>
<div slot="content">
<span v-if="item.overdue_times != 0" :class="['status','red']">逾期{{ item.overdue_times }}</span>
<div class="plan" @click="toRepayPlans(item.contract_id)">
<img src="@/assets/contractRepayment/plan.png" alt="">
<span>还款计划</span>
</div>
</div>
</item>
</list-item>
</scroll>
</h-view>
</template>
<script>
export default {
name: 'RepayDetail',
filters: {
lengthCheck: function (value) {
if ((value.toString()).length === 1) {
return `0${value}`
} else {
return value
}
},
},
data () {
return {
lists: [],
pagenum: 1,
hidden: false,
detailInfo: {},
fileArray: [],
}
},
computed: {},
watch: {},
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'ContractRecords') {
vm.pagenum = 1
vm.detailQuery()
vm.equipQuery()
}
})
},
methods: {
// val: contract_id
toRepayPlans (val) {
this.$router.push({
name: 'RepayPlans',
params: {
contract_id: val,
lease_num: this.detailInfo.lease_num,
},
})
},
downLoad () {
let vm = this
let url = $config.basePath + 'get_download_app'
let param = {
project_id: vm.$route.params.project_id,
phone: window.localStorage.user_phone,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.fileArray = res.info
vm.fileArray.forEach(i => {
cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
})
// vm.pdfDownload()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
pdfDownload () {
// 下载pdf文件
let vm = this
vm.fileArray.forEach(element => {
if (element.fileUrl) {
console.log('vm.$refs.pdf' + vm.$refs.pdf)
// debugger
vm.$refs.pdf.downloadPDF(element.fileUrl, element.fileName)
}
})
},
// 合同明细
detailQuery () {
let vm = this
let url = $config.basePath + 'con_contract_detial'
let param = {
project_id: vm.$route.params.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.detailInfo = res.info
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 设备清单
equipQuery () {
let vm = this
let url = $config.basePath + 'con_equip_list'
let param = {
pagesize: 10,
pagenum: vm.pagenum,
project_id: vm.$route.params.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.lists = res.lists
if (res.lists.length >= 0 && res.lists.length < 10) {
vm.$refs.scroll.update(true)
} else if (res.lists.length === 10) {
vm.$refs.scroll.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
loadMore () {
let vm = this
let url = $config.basePath + 'con_equip_list'
vm.pagenum++
let param = {
pagesize: 10,
pagenum: vm.pagenum,
project_id: vm.$route.params.project_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
let returnData = []
returnData = res.lists
if (returnData.length === 0) {
vm.$refs.scroll.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
vum.forEach(returnData, function (data, index, array) {
vm.lists.push(array[index])
})
vm.$refs.scroll.update(true)
} else if (returnData.length === 10) {
vum.forEach(returnData, function (data, index, array) {
vm.lists.push(array[index])
})
vm.$refs.scroll.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
},
}
</script>
<style lang='less'>
#repay-detail {
.status {
margin-bottom: 20px;
display: inline-block;
}
.red {
color: red;
border-bottom: 1px solid red;
}
.repay-content {
overflow: hidden;
position: absolute;
z-index: 10;
width: 100%;
.header {
//position: relative;
background-color: #fafafa;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #1D3FFF;
text-indent: 1em;
border-bottom: 1px solid #F1F0F5;
.download {
position: absolute;
padding-left: 12px;
right: 12px;
top: 8px;
background: #FFFFFF;
border-radius: 5px;
height: 24px;
line-height: 24px;
// width: 93px;
font-family: PingFangSC-Regular;
font-size: 11px;
color: #1D3FFF;
letter-spacing: 0.34px;
img {
position: absolute;
height: 15px;
left: 6px;
top: 6px;
}
}
&:before {
content: "";
position: absolute;
top: 12px;
left: 0;
width: 4px;
height: 16px;
background: #1D3FFF;
}
}
.invoice {
margin-bottom: 0px;
.hls-item {
.contents {
.add-name {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
}
.add-content {
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56, 63, 69, 0.60);
}
}
}
}
}
.scrollContent {
//padding-bottom: 400px;
.header {
//position: relative;
background-color: #fafafa;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #1D3FFF;
text-indent: 1em;
border-bottom: 1px solid #F1F0F5;
.download {
position: absolute;
padding-left: 12px;
right: 12px;
top: 8px;
background: #FFFFFF;
border-radius: 5px;
height: 24px;
line-height: 24px;
// width: 93px;
font-family: PingFangSC-Regular;
font-size: 11px;
color: #1D3FFF;
letter-spacing: 0.34px;
img {
position: absolute;
height: 15px;
left: 6px;
top: 6px;
}
}
&:before {
content: "";
position: absolute;
top: 12px;
left: 0;
width: 4px;
height: 16px;
background: #1D3FFF;
}
}
.equipment-list {
border-top: none;
background-color: transparent;
.hls-item {
border-top: 1px solid #D9DBDF;
border-bottom: 1px solid #D9DBDF;
background-color: #fff;
margin-bottom: 10px;
.contents {
padding-top: 8px;
.add-name {
display: flex;
flex-direction: column;
.parameters {
width: 100%;
margin-left: -40px;
.list {
display: flex;
margin-bottom: 0;
p {
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56, 63, 69, 0.60);
letter-spacing: 0.4px;
text-align: right;
flex: 1;
}
span {
flex: 1;
margin-left: 15px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #383F45;
letter-spacing: 0.4px;
}
span.bold {
font-family: PingFangSC-Semibold;
font-weight: 700;
}
}
}
}
.add-content {
.plan {
position: relative;
width: 100px;
height: 30px;
background: rgba(29, 63, 255, .2);
border-radius: 4px;
img {
height: 14px;
position: absolute;
top: 8px;
left: 12px;
}
span {
font-family: PingFangSC-Regular;
font-size: 13px;
color: #1D3FFF;
letter-spacing: 0.4px;
position: absolute;
top: 5px;
left: 32px;
}
}
}
}
}
}
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.32rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
</style>
......@@ -606,7 +606,7 @@ export default {
let vm = this
hlsPopup.showActionSheet({
titleText: '请选择证件类型',
buttonArray: ['徐工重型合格证', '车辆登记证', '出厂合格证'],
buttonArray: ['标准车辆合格证(徐工重型、施维英)', '车辆登记证', '出厂合格证'],
callback: (index) => {
if (index === 0) {
vm.certificationType = 'NORMAL'
......
......@@ -192,10 +192,15 @@ export default {
window.localStorage.setItem('bp_name', res.info.user_bp_name)
window.localStorage.setItem('bp_identity', res.info.bp_identity)
window.localStorage.setItem('bp_class', res.info.user_bp_class)
window.localStorage.setItem('bp_type', res.info.user_bp_type)
window.localStorage.setItem('multipleRole', res.info.user_bp_type)
vm.user_bp_type = res.info.user_bp_type
vm.bp_type_n = res.info.user_bp_type_n
// 有角色信息就不设置缓存,可能在角色切换时做了处理,此处不设置角色
if (localStorage.bp_type || localStorage.multipleRole) {
vm.user_bp_type = localStorage.bp_type
} else {
window.localStorage.setItem('bp_type', res.info.user_bp_type)
window.localStorage.setItem('multipleRole', res.info.user_bp_type)
vm.user_bp_type = res.info.user_bp_type
}
// vm.bp_type_n = res.info.user_bp_type_n
vm.user_bp_name = res.info.user_bp_name
vm.user_phone = res.info.user_phone
if (vm.user_bp_type === 'TENANT') {
......@@ -364,7 +369,7 @@ export default {
userBind () {
// .首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!”
if (this.user_bp_type === 'MANAGER') {
hlsPopup.showLongCenter('当前角色非承租人或担保人,无法使用该功能!')
hlsPopup.showLongCenter('业务经理无需进行用户绑定!')
return
}
window.localStorage.setItem('from', true)
......
......@@ -103,20 +103,22 @@ export default {
let twoHeight = 40
this.textHeight = `${twoHeight}px`
let txtDom = this.$refs.textContainer
for (let i = 0; i < txtDom.length; i++) {
let curHeight = txtDom[i].offsetHeight
if (curHeight > twoHeight) {
this.$set(
this.list,
i,
Object.assign({}, this.list[i], { status: true })
)
} else {
this.$set(
this.list,
i,
Object.assign({}, this.list[i], { status: null })
)
if (txtDom) {
for (let i = 0; i < txtDom.length; i++) {
let curHeight = txtDom[i].offsetHeight
if (curHeight > twoHeight) {
this.$set(
this.list,
i,
Object.assign({}, this.list[i], { status: true })
)
} else {
this.$set(
this.list,
i,
Object.assign({}, this.list[i], { status: null })
)
}
}
}
},
......
......@@ -29,39 +29,8 @@
</div>
</div>
</div>
<!-- <div v-if="multipleRole!=='GUTA'&&user_bp_type!=='GUTA'" class="card"> -->
<!-- <div class="card">
<div class="card-info">
<div class="card-bottom">
<div v-if="((user_bp_type!=='TENANT')&&(user_bp_type!=='GUTA')&&(multipleRole!=='GUTA')&&(multipleRole!=='TENANT'))||multipleRole==='AGENT'" @click="goStart">
<img src="@/assets/myInfo/car.png" >
<p>融租合同创建</p>
</div>
<div v-if="((user_bp_type==='TENANT')&&(multipleRole==='TENANT'))||(multipleRole==='TENANT')||((user_bp_type==='TENANT')&&(!multipleRole))" @click="changePay">
<img src="@/assets/myInfo/pay.png" >
<p>首付还款</p>
</div>
<div v-if="((user_bp_type==='TENANT')&&(multipleRole==='TENANT'))||(multipleRole==='TENANT')||((user_bp_type==='TENANT')&&(!multipleRole))" @click="changeRent">
<img src="@/assets/myInfo/refund.png" >
<p>租金还款</p>
</div>
<div v-if="(user_bp_type==='AGENT')&&(user_bp_class==='ORG')&&(user_bp_status === 'APPROVED')" @click="changeCash">
<img src="@/assets/myInfo/promise.png" >
<p>缴纳保证金</p>
</div>
<div v-if="((user_bp_type==='GUTA')&&(multipleRole==='GUTA'))||(multipleRole==='GUTA')||((user_bp_type==='GUTA')&&(!multipleRole))" @click="changeContract('GUTA')">
<img src="@/assets/myInfo/under.png" >
<p>我担保的合同</p>
</div>
<div v-if="((user_bp_type==='AGENT')&&(multipleRole==='AGENT'))||(multipleRole==='AGENT')||((user_bp_type==='AGENT')&&(!multipleRole))||(user_bp_type==='OFFICE')" @click="goContract">
<img src="@/assets/myInfo/agent.png" >
<p>我办理的合同</p>
</div>
</div>
</div>
</div> -->
</div>
<h-content class="my-content">
<h-content class="my-content has-footer">
<div class="content-top">
<list-item :item-height="44" class="list">
<item @click.native="goContract">
......@@ -375,17 +344,10 @@ export default {
// 选择角色后确定
roleConfirm (role) {
this.roleSwitchFlag = false
if (role.bp_type === 'TENANT') {
window.localStorage.setItem('multipleRole', 'TENANT')
this.multipleRole = 'TENANT'
} else if (role.bp_type === 'GUTA') {
window.localStorage.setItem('multipleRole', 'GUTA')
this.multipleRole = 'GUTA'
} else if (role.bp_type === 'AGENT') {
window.localStorage.setItem('multipleRole', 'AGENT')
this.multipleRole = 'AGENT'
}
window.localStorage.setItem('multipleRole', role.bp_type)
this.multipleRole = role.bp_type
console.log('选择后的角色为:' + role)
window.localStorage.setItem('bp_type', role.bp_type)
},
typeConfirm (e) {
// 选择操作方式后
......@@ -957,28 +919,20 @@ export default {
vm.app_user_id = res.info.app_user_id
window.localStorage.removeItem('bp_id')
window.localStorage.setItem('bp_id', res.info.user_bp_id)
window.localStorage.setItem(
'user_bp_status',
res.info.user_bp_status
)
window.localStorage.setItem('user_bp_status', res.info.user_bp_status)
window.localStorage.setItem('bp_name', res.info.user_bp_name)
window.localStorage.setItem('bp_identity', res.info.bp_identity)
window.localStorage.setItem('bp_class', res.info.user_bp_class)
window.localStorage.setItem('bp_type', res.info.user_bp_type)
if (localStorage.bp_type || localStorage.multipleRole) {
} else {
window.localStorage.setItem('bp_type', res.info.user_bp_type)
window.localStorage.setItem('multipleRole', res.info.user_bp_type)
}
vm.user_bp_name = res.info.user_bp_name
vm.user_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone
vm.bp_type_n = res.info.user_bp_type_n
if (window.localStorage.multipleRole) {
} else {
if (res.info.user_bp_type === 'TENANT') {
window.localStorage.setItem('multipleRole', 'TENANT')
} else if (res.info.user_bp_type === 'GUTA') {
window.localStorage.setItem('multipleRole', 'GUTA')
} else if (res.info.user_bp_type === 'AGENT') {
window.localStorage.setItem('multipleRole', 'AGENT')
}
}
vm.watchBpStatus()
vm.getHead()
vm.getMultipleRole()
......
......@@ -15,7 +15,7 @@
</item>
</list-item>
<list-item :item-height="50" class="list">
<item v-if="bpId!=='undefined'" @click.native="changePageHead()">
<item v-if="bpId!=='undefined'" v-show="user_bp_type!='MANAGER'" @click.native="changePageHead()">
<div slot="name" style="color:#656464;">修改信息</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item>
......@@ -23,7 +23,7 @@
<div slot="name" style="color:#656464;">角色切换</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item>
<item @click.native="resetPwd()">
<item v-if="user_bp_type!='MANAGER'" @click.native="resetPwd()">
<div slot="name" style="color:red;">修改密码</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item>
......@@ -33,7 +33,7 @@
</div>
<div slot="right-icon" style="float:right;color:#383F45;opacity:0.4;">当前版本&nbsp;&nbsp;{{ currentVersion }}</div>
</item>
<item @click.native="unBind()">
<item v-if="user_bp_type!='MANAGER'" @click.native="unBind()">
<div slot="name" style="color:#656464;">解除绑定</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item>
......@@ -81,7 +81,7 @@ export default {
},
computed: {
roleList () {
let roleObj = {'TENANT': '主承租人', 'GUTA': '担保人', 'FACTORY': '主机厂', 'AGENT': '经销商', 'OFFICE': '办事处'}
let roleObj = {'TENANT': '主承租人', 'GUTA': '担保人', 'FACTORY': '主机厂', 'AGENT': '经销商', 'OFFICE': '办事处', 'MANAGER': '业务经理'}
let obj = {
bp_type: this.user_bp_type,
bp_type_n: roleObj[this.user_bp_type],
......
......@@ -164,19 +164,20 @@ export default {
</script>
<style lang='less'>
@import "../../styles/vue-1px";
.display {
position: fixed;
top: 0;
img {
width: 100%;
height: 100%;
// margin-top: -70px;
}
}
#newList {
.display {
position: fixed;
top: 0;
img {
width: 100%;
height: 100%;
// margin-top: -70px;
}
}
background: #efefef;
.scroll-content {
top: 50px;
//top: 50px;
}
.pay-content {
width: 96%;
......
<template>
<h-view id="prolist" class="public-style" title="产品查询">
<h-view id="entity-list" class="public-style" title="产品查询">
<h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()">
......@@ -45,7 +45,7 @@
<script>
import noImg from '../../assets/productQuery/none.png'
export default {
name: 'ProductList',
name: 'EntityList',
data () {
return {
lists: [],
......@@ -198,9 +198,12 @@ export default {
}
</script>
<style lang='less' scoped>
#prolist {
#entity-list {
.content{
background-color: #f5f5f5;
}
.scroll-content{
margin-top: 100px;
//margin-top: 100px;
}
.display {
position: fixed;
......
......@@ -126,6 +126,7 @@ export default {
config: config,
unConfig: unConfig,
height: 0,
src: '',
}
},
computed: {},
......@@ -161,7 +162,7 @@ export default {
this.src = require('@/assets/productQuery/collect.png')
}
},
methods:{
methods: {
startScroll () {
this.slide = true
},
......
......@@ -227,7 +227,7 @@ export default {
#prolist {
background: rgba(239, 239, 239, 0.55);
.scroll-content {
top: 50px;
//top: 50px;
}
.display {
position: fixed;
......
......@@ -6,7 +6,7 @@
* @LastEditors: Please set LastEditors
-->
<template>
<h-view id="query" class="public-style" title="产品查询">
<h-view id="query-home" class="public-style" title="产品查询">
<h-header v-if="$route.path=='/query-home'" :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()">
......@@ -35,7 +35,7 @@
<div class="first">
<p class="product">{{ item.factory_bp_name }}</p>
</div>
<img class="arrow" src="@/assets/productQuery/getIn.png" alt="" >
<img class="arrow" src="@/assets/productQuery/getIn.png" alt="">
</div>
</div>
</div>
......@@ -45,6 +45,7 @@
<script>
import noImg from '../../assets/productQuery/none.png'
export default {
name: 'QueryHome',
data () {
......@@ -70,164 +71,159 @@ export default {
},
},
beforeRouteEnter (to, from, next) {
if (from.name === 'HomePage' ||from.name === 'FunctionCenter') {
next(vm => {
vm.searchInput = ''
vm.pagenum = 1
vm.proQuery()
})
}
next()
next(vm => {
vm.searchInput = ''
vm.pagenum = 1
vm.proQuery()
})
},
methods:
{
// 初始产品查询
proQuery () {
let vm = this
let url = $config.basePath + 'prd_product_type_list'
let param = {
searchInput: vm.searchInput,
pagenum: vm.pagenum,
pagesize: 10,
}
vm.hlsPopup.showLoading('数据加载中')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.prolists = res.lists
if (vm.prolists.length === 0) {
vm.$refs.scrollLists.update(true)
} else if (vm.prolists.length > 0 && vm.prolists.length < 10) {
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(true)
} else if (vm.prolists.length === 10) {
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(false)
}
console.log(vm.prolists)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 跳列表 val = 产品线
goLists (val) {
this.$router.push({
name: 'ProductList',
params: {
factory_bp_id: val,
},
})
},
methods: {
// 初始产品查询
proQuery () {
let vm = this
let url = $config.basePath + 'prd_product_type_list'
let param = {
searchInput: vm.searchInput,
pagenum: vm.pagenum,
pagesize: 10,
}
vm.hlsPopup.showLoading('数据加载中')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.prolists = res.lists
if (vm.prolists.length === 0) {
vm.$refs.scrollLists.update(true)
} else if (vm.prolists.length > 0 && vm.prolists.length < 10) {
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(true)
} else if (vm.prolists.length === 10) {
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(false)
}
console.log(vm.prolists)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 跳列表 val = 产品线
goLists (val) {
this.$router.push({
name: 'ProductList',
params: {
factory_bp_id: val,
},
})
},
loadMore () {
let vm = this
vm.pagenum = vm.pagenum + 1
let url = $config.basePath + 'prd_product_type_list'
let param = {
searchInput: vm.searchInput,
pagenum: vm.pagenum,
pagesize: 10,
}
vm.hlsPopup.showLoading('数据加载中')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
let returnData = []
if (res.result === 'S') {
returnData = res.lists
if (returnData.length === 0) {
vm.$refs.scrollLists.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
returnData.forEach((data, index, array) => {
vm.prolists.push(array[index])
})
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(true)
} else if (returnData.length === 10) {
returnData.forEach((data, index, array) => {
vm.prolists.push(array[index])
})
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 搜索
search () {
let vm = this
vm.pagenum = 1
let url = $config.basePath + 'prd_product_type_list'
let param = {
pagesize: 10,
pagenum: vm.pagenum,
searchInput: vm.searchInput,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
vm.prolists = res.lists
if (vm.prolists.length >= 0 && vm.prolists.length < 10) {
vm.prolists.forEach(item => {
loadMore () {
let vm = this
vm.pagenum = vm.pagenum + 1
let url = $config.basePath + 'prd_product_type_list'
let param = {
searchInput: vm.searchInput,
pagenum: vm.pagenum,
pagesize: 10,
}
vm.hlsPopup.showLoading('数据加载中')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
let returnData = []
if (res.result === 'S') {
returnData = res.lists
if (returnData.length === 0) {
vm.$refs.scrollLists.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
returnData.forEach((data, index, array) => {
vm.prolists.push(array[index])
})
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(true)
} else if (returnData.length === 10) {
returnData.forEach((data, index, array) => {
vm.prolists.push(array[index])
})
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 搜索
search () {
let vm = this
vm.pagenum = 1
let url = $config.basePath + 'prd_product_type_list'
let param = {
pagesize: 10,
pagenum: vm.pagenum,
searchInput: vm.searchInput,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
vm.prolists = res.lists
if (vm.prolists.length >= 0 && vm.prolists.length < 10) {
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(true)
} else if (vm.lists.length === 10) {
vm.prolists.forEach(item => {
})
vm.$refs.scrollLists.update(true)
} else if (vm.lists.length === 10) {
vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
})
vm.$refs.scrollLists.update(false)
}
})
},
// 产品线查询val=主机厂id,ind=产品列表索引
queryDivision (val, ind) {
let vm = this
let url = $config.basePath + 'prd_product_division_list'
let param = {
factory_bp_id: val,
}
vm.$post(url, param).then(function (res) {
console.log(res)
if (res.result === 'S') {
vm.divisionList = res.lists.map(item => {
return {
code: item.division,
code_name: item.product_line,
}
})
// vm.divisionList = res.lists
vm.hlsPopup.selectList({
list: vm.divisionList, // 下拉列表
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
// 更改产品线(division)和 产品线描述(division_n)
vm.prolists[ind].division_n = obj.bp_type_n
vm.prolists[ind].division = obj.bp_type
},
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
},
})
vm.$refs.scrollLists.update(false)
}
})
},
// 产品线查询val=主机厂id,ind=产品列表索引
queryDivision (val, ind) {
let vm = this
let url = $config.basePath + 'prd_product_division_list'
let param = {
factory_bp_id: val,
}
vm.$post(url, param).then(function (res) {
console.log(res)
if (res.result === 'S') {
vm.divisionList = res.lists.map(item => {
return {
code: item.division,
code_name: item.product_line,
}
})
// vm.divisionList = res.lists
vm.hlsPopup.selectList({
list: vm.divisionList, // 下拉列表
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
// 更改产品线(division)和 产品线描述(division_n)
vm.prolists[ind].division_n = obj.bp_type_n
vm.prolists[ind].division = obj.bp_type
},
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
},
}
</script>
<style lang='less'>
#query {
#query-home {
.search {
background-color: #fff;
padding: 8px 12px;
......@@ -235,6 +231,7 @@ export default {
width: 100%;
z-index: 100;
margin-bottom: 8px;
input {
padding-left: 12px;
height: 36px;
......@@ -248,12 +245,14 @@ export default {
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
}
input::placeholder {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888C8F;
letter-spacing: 0;
}
input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat;
background-size: 16px 16px;
......@@ -261,9 +260,11 @@ export default {
border: 2px solid #bcc6ff;
}
}
.scroll-box {
padding: 8px;
}
.box {
width: 100%;
height: 80px;
......@@ -274,20 +275,24 @@ export default {
justify-content: center;
align-items: center;
padding: 20px;
.leftPic {
height: 40px;
width: 40px;
border-radius: 8px;
img {
height: 40px;
width: 40px;
}
}
.first {
flex-grow: 1;
height: 84px;
line-height: 84px;
text-indent: 20px;
.product {
font-family: PingFangSC-Regular;
font-size: 14px;
......@@ -295,27 +300,32 @@ export default {
text-align: left;
}
}
.arrow {
height: 16px;
width: 16px;
}
}
.content {
position: absolute;
top:0;
top: 0;
}
.scrollContent {
padding-top: 1.92rem;
//padding-top: 1.92rem;
padding-bottom: 20px;
}
}
.platform-ios {
}
.platform-ios {
#query {
.scrollContent {
padding-top: 2.32rem;
}
}
}
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
......@@ -326,6 +336,7 @@ export default {
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
......@@ -333,21 +344,21 @@ export default {
.scrollContent {
padding-top: 2.72rem;
}
.search {
input {
background: url("../../assets/contractStart/search1.png") 320px
no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding: 8px 12px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
input {
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding: 8px 12px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
}
}
}
}
}
</style>
......@@ -314,7 +314,7 @@ export default new Router({
{path: '/np-bank-info', component: NPBankInfo, name: 'NPBankInfo', meta: {keepAlive: false}},
{path: '/accessory-info', component: AccessoryInfo, name: 'AccessoryInfo', meta: {keepAlive: true}},
// 我的合同
{path: '/my-contract', component: MyContract, name: 'MyContract', meta: {keepAlive: true}},
{path: '/my-contract', component: MyContract, name: 'MyContract', meta: {keepAlive: false}},
// 合同创建
{path: '/contract-create-list', component: ContractCreateList, name: 'ContractCreateList', meta: {keepAlive: true}},
{path: '/sales-info', component: SalesInfo, name: 'SalesInfo', meta: {keepAlive: true}},
......
......@@ -94,6 +94,18 @@ axios.interceptors.response.use(response => {
hlsPopup.showPopup({
title: '登录失效,重新登录',
onConfirm: () => {
let width = window.localStorage.getItem('width')
let height = window.localStorage.getItem('height')
if (window.localStorage.isReadPolicy === 'false') {
window.localStorage.clear()
} else if (window.localStorage.isReadPolicy === 'true') {
window.localStorage.clear()
window.localStorage.setItem('isReadPolicy', true)
} else {
window.localStorage.clear()
}
window.localStorage.setItem('width', width)
window.localStorage.setItem('height', height)
router.push({name: 'Login'})
},
})
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=./cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.639b6df732adf63dae328f1593b59570.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.218b13cb8652090c3877.js></script><script type=text/javascript src=./static/js/vendor.cf2df294c770beff4ed8.js></script><script type=text/javascript src=./static/js/app.65c453c4bb4f8e7f93fe.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=./cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.639b6df732adf63dae328f1593b59570.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.56e966ab03c8841ad724.js></script><script type=text/javascript src=./static/js/vendor.cf2df294c770beff4ed8.js></script><script type=text/javascript src=./static/js/app.c0fdd7ccc95590344674.js></script></body></html>
\ No newline at end of file
......@@ -3995,7 +3995,7 @@ hex-color-regex@^1.1.0:
"hls-easy-ui@https://hel.hand-china.com/easyUI/hls-easy-ui.git#keyboard":
version "0.0.5"
resolved "https://hel.hand-china.com/easyUI/hls-easy-ui.git#63c1508ec00db07f6e3c1de556ece91da2559c0a"
resolved "https://hel.hand-china.com/easyUI/hls-easy-ui.git#70307428700b184a43334bab764e38d7bdf40d35"
dependencies:
autosize "^3.0.20"
better-scroll "^1.10.3"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment