Commit fb4171fd authored by linxin's avatar linxin

修改scroll样式

parent 26563110
<template> <template>
<h-view id="startList"> <h-view id="confirmList">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" > <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
...@@ -7,16 +7,10 @@ ...@@ -7,16 +7,10 @@
</div> </div>
</h-header> </h-header>
<Tab @getTabNum="getTabNum" /> <Tab @getTabNum="getTabNum" />
<div class="search"> <div class="search has-header">
<input v-model="keyWord" placeholder="请输入合同号/产品线/承租人名称" > <input v-model="keyWord" placeholder="请输入合同号/产品线/承租人名称" >
</div> </div>
<h-content class="my-content"> <scroll ref="scroll" :updateData="[showList]" :pullUp="true" @pullingUp="getList">
<scroll
ref="scroll"
:updateData="[showList]"
:pullUp="true"
@pullingUp="getList"
>
<div v-for="(item,index) in showList" :key="index" class="item" @click="changePage(item)"> <div v-for="(item,index) in showList" :key="index" class="item" @click="changePage(item)">
<div class="left"> <div class="left">
<span> <span>
...@@ -47,7 +41,6 @@ ...@@ -47,7 +41,6 @@
</div> </div>
</div> </div>
</scroll> </scroll>
</h-content>
</h-view> </h-view>
</template> </template>
<script> <script>
...@@ -68,7 +61,7 @@ export default { ...@@ -68,7 +61,7 @@ export default {
} }
}, },
watch: { watch: {
'tabNum': { tabNum: {
handler (newVal, oldVal) { handler (newVal, oldVal) {
if (newVal === 0) { if (newVal === 0) {
this.showList = this.undo this.showList = this.undo
...@@ -82,8 +75,7 @@ export default { ...@@ -82,8 +75,7 @@ export default {
this.search() this.search()
}, },
}, },
created () { created () {},
},
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
vm.pagenum = 1 vm.pagenum = 1
...@@ -95,7 +87,11 @@ export default { ...@@ -95,7 +87,11 @@ export default {
search () { search () {
let vm = this let vm = this
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = process.env.basePath + 'car_confirm_list_query' + '&index' + `'${randomString}'` let url =
process.env.basePath +
'car_confirm_list_query' +
'&index' +
`'${randomString}'`
let param = { let param = {
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
searchInput: vm.keyWord, searchInput: vm.keyWord,
...@@ -138,7 +134,11 @@ export default { ...@@ -138,7 +134,11 @@ export default {
getList () { getList () {
let vm = this let vm = this
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = process.env.basePath + 'car_confirm_list_query' + '&index' + `'${randomString}'` let url =
process.env.basePath +
'car_confirm_list_query' +
'&index' +
`'${randomString}'`
let param = { let param = {
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
pagesize: 10, pagesize: 10,
...@@ -175,14 +175,16 @@ export default { ...@@ -175,14 +175,16 @@ export default {
}, },
} }
</script> </script>
<style lang="less" scoped> <style lang="less">
#startList { #confirmList {
.search { .search {
height: 52px;
background-color: #fff; background-color: #fff;
display: flex; padding: 8px 12px;
align-items: center; position: absolute;
justify-content: center; width: 100%;
z-index: 100;
margin-top: 52px;
margin-bottom: 8px;
input { input {
width: 351px; width: 351px;
height: 36px; height: 36px;
...@@ -210,7 +212,6 @@ export default { ...@@ -210,7 +212,6 @@ export default {
border: 2px solid #bcc6ff; border: 2px solid #bcc6ff;
} }
} }
.my-content {
.item { .item {
width: 359px; width: 359px;
height: 148px; height: 148px;
...@@ -264,7 +265,7 @@ export default { ...@@ -264,7 +265,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #4b4a4b; color: #4b4a4b;
letter-spacing: 0; letter-spacing: 0;
font-weight:bold; font-weight: bold;
} }
li { li {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
...@@ -280,6 +281,44 @@ export default { ...@@ -280,6 +281,44 @@ export default {
} }
} }
} }
.content {
position: absolute;
top: 0;
}
.scrollContent {
padding-top: 2.92rem;
padding-bottom: 20px;
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#confirmList {
.scrollContent {
padding-top: 3.32rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#confirmList {
.scrollContent {
padding-top: 3.72rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#confirmList {
.scrollContent {
padding-top: 3.72rem;
}
}
} }
} }
</style> </style>
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
<span>合同还款</span> <span>合同还款</span>
</div> </div>
</h-header> </h-header>
<scroll
<h-content v-if="data!==null" class="pay-content"> v-if="data!==null"
<scroll ref="scroll" :updateData="[lists]" :pullUp="true" @pullingUp="getList"> ref="scroll" :updateData="[lists]" :pullUp="true" class="pay-content has-header"
@pullingUp="getList">
<div v-for="(item,index) in lists" :key="index" class="contract-item"> <div v-for="(item,index) in lists" :key="index" class="contract-item">
<div class="header"> <div class="header">
<img src="@/assets/contractRepayment/contract.png" alt=""> <img src="@/assets/contractRepayment/contract.png" alt="">
...@@ -26,7 +27,7 @@ ...@@ -26,7 +27,7 @@
</section> </section>
</div> </div>
</div> </div>
</scroll></h-content> </scroll>
<h-content v-if="data===null" class="null"> <h-content v-if="data===null" class="null">
<div class="display"> <div class="display">
<img src="@/assets/contractRepayment/null.png" alt=""> <img src="@/assets/contractRepayment/null.png" alt="">
...@@ -325,6 +326,41 @@ export default { ...@@ -325,6 +326,41 @@ export default {
} }
} }
.content {
position: absolute;
top: 0;
}
.scrollContent {
padding-top: 0.8rem;
padding-bottom: 20px;
}
}
.platform-ios {
#contract-repayment {
.scrollContent {
padding-top: 1.2rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#contract-repayment {
.scrollContent {
padding-top: 1.6rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#contract-repayment {
.scrollContent {
padding-top: 1.6rem;
}
}
}
} }
</style> </style>
...@@ -6,18 +6,12 @@ ...@@ -6,18 +6,12 @@
<span>合同发车</span> <span>合同发车</span>
</div> </div>
</h-header> </h-header>
<Tab :fatherTabNum = "tabNum" @getTabNum="getTabNum" /> <Tab :fatherTabNum="tabNum" @getTabNum="getTabNum" />
<div class="search"> <div class="search has-header">
<input v-model="keyWord" placeholder="请输入合同号/产品线/承租人名称" > <input v-model="keyWord" placeholder="请输入合同号/产品线/承租人名称" >
</div> </div>
<h-content class="my-content">
<scroll ref="scroll" :updateData="[lists]" :pullUp="true" @pullingUp="getList"> <scroll ref="scroll" :updateData="[lists]" :pullUp="true" @pullingUp="getList">
<div <div v-for="(item,index) in showList" :key="index" class="item" @click="changePage(item)">
v-for="(item,index) in showList"
:key="index"
class="item"
@click="changePage(item)"
>
<div class="left"> <div class="left">
<span> <span>
<img src="@/assets/contractStart/icon.png" > <img src="@/assets/contractStart/icon.png" >
...@@ -47,7 +41,6 @@ ...@@ -47,7 +41,6 @@
</div> </div>
</div> </div>
</scroll> </scroll>
</h-content>
<bottom-tab> <bottom-tab>
<tab-button class="add" @click.native="goAdd">新增发车</tab-button> <tab-button class="add" @click.native="goAdd">新增发车</tab-button>
</bottom-tab> </bottom-tab>
...@@ -94,13 +87,16 @@ export default { ...@@ -94,13 +87,16 @@ export default {
this.search() this.search()
}, },
}, },
created () { created () {},
},
methods: { methods: {
search () { search () {
let vm = this let vm = this
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = process.env.basePath + 'car_apply_list_query' + '&index' + `'${randomString}'` let url =
process.env.basePath +
'car_apply_list_query' +
'&index' +
`'${randomString}'`
let param = { let param = {
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
searchInput: vm.keyWord, searchInput: vm.keyWord,
...@@ -120,7 +116,9 @@ export default { ...@@ -120,7 +116,9 @@ export default {
vm.done = [] vm.done = []
vm.tabNum = 0 vm.tabNum = 0
vm.undo = vm.lists.filter(i => { vm.undo = vm.lists.filter(i => {
return i.car_start_status === 'REJECTED' || i.car_start_status === 'NEW' return (
i.car_start_status === 'REJECTED' || i.car_start_status === 'NEW'
)
}) })
vm.done = vm.lists.filter(i => { vm.done = vm.lists.filter(i => {
return i.car_start_status === 'APPROVED' return i.car_start_status === 'APPROVED'
...@@ -149,7 +147,11 @@ export default { ...@@ -149,7 +147,11 @@ export default {
getList () { getList () {
let vm = this let vm = this
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = process.env.basePath + 'car_apply_list_query' + '&index' + `'${randomString}'` let url =
process.env.basePath +
'car_apply_list_query' +
'&index' +
`'${randomString}'`
let param = { let param = {
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
pagesize: 10, pagesize: 10,
...@@ -186,14 +188,16 @@ export default { ...@@ -186,14 +188,16 @@ export default {
}, },
} }
</script> </script>
<style lang="less" scoped> <style lang="less">
#startList { #startList {
.search { .search {
height: 52px;
background-color: #fff; background-color: #fff;
display: flex; padding: 8px 12px;
align-items: center; position: absolute;
justify-content: center; width: 100%;
z-index: 100;
margin-top: 52px;
margin-bottom: 8px;
input { input {
width: 351px; width: 351px;
height: 36px; height: 36px;
...@@ -221,7 +225,6 @@ export default { ...@@ -221,7 +225,6 @@ export default {
border: 2px solid #bcc6ff; border: 2px solid #bcc6ff;
} }
} }
.my-content {
.item { .item {
width: 359px; width: 359px;
height: 148px; height: 148px;
...@@ -291,10 +294,49 @@ export default { ...@@ -291,10 +294,49 @@ export default {
} }
} }
} }
}
.add { .add {
color: #fff; color: #fff;
background-color: #0041c4; background-color: #0041c4;
} }
.content {
position: absolute;
top: 0;
}
.scrollContent {
padding-top: 2.92rem;
padding-bottom: 20px;
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#startList {
.scrollContent {
padding-top: 3.32rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#startList {
.scrollContent {
padding-top: 3.72rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#startList {
.scrollContent {
padding-top: 3.72rem;
}
}
}
} }
</style> </style>
...@@ -59,9 +59,9 @@ ...@@ -59,9 +59,9 @@
</template> </template>
<script> <script>
export default { export default {
name: 'FinancingTrial', name: 'FinancingTrial',
data() { data () {
return { return {
lists: [], lists: [],
plan_price: '', plan_price: '',
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
}, },
computed: {}, computed: {},
watch: {}, watch: {},
beforeRouteEnter(to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (from.name === 'ProDetailed') { if (from.name === 'ProDetailed') {
vm.price_date_to = vm.$route.params.price_date_to // 有效日期 vm.price_date_to = vm.$route.params.price_date_to // 有效日期
...@@ -84,15 +84,15 @@ ...@@ -84,15 +84,15 @@
}) })
next() next()
}, },
activated() { activated () {
}, },
created() { created () {
}, },
methods: methods:
{ {
goDetails(val) { goDetails (val) {
this.$router.push({ this.$router.push({
name: 'FinancingDetails', name: 'FinancingDetails',
params: { params: {
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
}) })
}, },
// 试算查询 // 试算查询
calculationQuery(val) { calculationQuery (val) {
let vm = this let vm = this
if (val) { if (val) {
let url = $config.basePath + 'prd_product_calculation_query' let url = $config.basePath + 'prd_product_calculation_query'
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
} }
}, },
}, },
} }
</script> </script>
<style lang='less'> <style lang='less'>
#trial { #trial {
......
<template> <template>
<h-view id="startList"> <h-view id="videoList">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" > <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
#startList { #videoList {
.search { .search {
height: 52px; height: 52px;
background-color: #fff; background-color: #fff;
......
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