Commit 9692baf1 authored by linxin's avatar linxin

fixed

parent 037b54a0
...@@ -23,7 +23,7 @@ module.exports = { ...@@ -23,7 +23,7 @@ module.exports = {
proxyTable: {}, proxyTable: {},
// Various Dev Server settings // Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST host: '192.168.137.1', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false, autoOpenBrowser: false,
errorOverlay: true, errorOverlay: true,
......
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
</h-header> </h-header>
<Tab @getTabNum="getTabNum" /> <Tab @getTabNum="getTabNum" />
<div class="search"> <div class="search">
<input placeholder="请输入合同号/产品线/承租人名称" > <input v-model="keyWord" placeholder="请输入合同号/产品线/承租人名称" >
</div> </div>
<h-content class="my-content"> <h-content class="my-content">
<scroll <scroll
ref="scroll" ref="scroll"
:updateData="[showList]" :updateData="[showList]"
:pullUp="true" :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">
...@@ -58,6 +59,8 @@ export default { ...@@ -58,6 +59,8 @@ export default {
data () { data () {
return { return {
tabNum: 0, tabNum: 0,
keyWord: '',
pagenum: 1,
lists: [], lists: [],
showList: [], showList: [],
undo: [], undo: [],
...@@ -115,16 +118,31 @@ export default { ...@@ -115,16 +118,31 @@ export default {
let url = process.env.basePath + 'car_confirm_list_query' let url = process.env.basePath + 'car_confirm_list_query'
let param = { let param = {
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
pagesize: 10,
pagenum: vm.pagenum,
searchInput: vm.keyWord,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { 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)
// }
vm.lists = res.lists vm.lists = res.lists
vm.selectShowList() vm.selectShowList()
if (res.lists.length >= 0 && res.lists.length < 10) {
vm.$refs.scroll.update(true)
}
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
</h-header> </h-header>
<Tab :fatherTabNum = "tabNum" @getTabNum="getTabNum" /> <Tab :fatherTabNum = "tabNum" @getTabNum="getTabNum" />
<div class="search"> <div class="search">
<input placeholder="请输入合同号/产品线/承租人名称" > <input v-model="keyWord" placeholder="请输入合同号/产品线/承租人名称" >
</div> </div>
<h-content class="my-content"> <h-content class="my-content">
<scroll ref="scroll" :updateData="[showList]" :pullUp="true"> <scroll ref="scroll" :updateData="[lists]" :pullUp="true">
<div <div
v-for="(item,index) in showList" v-for="(item,index) in showList"
:key="index" :key="index"
...@@ -62,6 +62,8 @@ export default { ...@@ -62,6 +62,8 @@ export default {
data () { data () {
return { return {
tabNum: 0, tabNum: 0,
keyWord: '',
pagenum: 1,
lists: [], lists: [],
showList: [], showList: [],
undo: [], undo: [],
...@@ -127,16 +129,32 @@ export default { ...@@ -127,16 +129,32 @@ export default {
let url = process.env.basePath + 'car_apply_list_query' let url = process.env.basePath + 'car_apply_list_query'
let param = { let param = {
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
pagesize: 10,
pagenum: vm.pagenum,
searchInput: vm.keyWord,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
// vm.pagenum += 1
// 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)
// }
vm.lists = res.lists vm.lists = res.lists
vm.selectShowList() vm.selectShowList()
if (res.lists.length >= 0 && res.lists.length < 10) {
vm.$refs.scroll.update(true)
}
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -94,10 +94,10 @@ ...@@ -94,10 +94,10 @@
<span>¥{{ money |currency }}</span> <span>¥{{ money |currency }}</span>
</div> </div>
<div class="interest"> <div class="interest">
<span>本次交易收取{{ rate }}%服务</span> <span>本次交易收取{{ rate }}%手续</span>
</div> </div>
<div class="info-item"> <div class="info-item">
<span>服务</span> <span>手续</span>
<span>{{ serviceCharge |currency }}</span> <span>{{ serviceCharge |currency }}</span>
</div> </div>
<div class="info-item" @click="show=true"> <div class="info-item" @click="show=true">
......
...@@ -94,10 +94,10 @@ ...@@ -94,10 +94,10 @@
<span>¥{{ money |currency }}</span> <span>¥{{ money |currency }}</span>
</div> </div>
<div class="interest"> <div class="interest">
<span>本次交易收取{{ rate }}%服务</span> <span>本次交易收取{{ rate }}%手续</span>
</div> </div>
<div class="info-item"> <div class="info-item">
<span>服务</span> <span>手续</span>
<span>{{ serviceCharge |currency }}</span> <span>{{ serviceCharge |currency }}</span>
</div> </div>
<div class="info-item" @click="show=true"> <div class="info-item" @click="show=true">
......
...@@ -213,4 +213,12 @@ export default { ...@@ -213,4 +213,12 @@ export default {
input::placeholder{ input::placeholder{
color: #B4B4B5; color: #B4B4B5;
} }
textarea::placeholder {
color: #b4b4b5;
}
textarea {
text-align: right;
color:#666;
}
</style> </style>
...@@ -1468,6 +1468,7 @@ export default { ...@@ -1468,6 +1468,7 @@ export default {
} }
textarea { textarea {
text-align: right; text-align: right;
color:#666;
} }
// .compute{ // .compute{
// display:block; // display:block;
......
...@@ -1894,6 +1894,7 @@ export default { ...@@ -1894,6 +1894,7 @@ export default {
textarea { textarea {
// height: 28px; // height: 28px;
text-align: right; text-align: right;
color: #666;
// padding-top:16px; // padding-top:16px;
} }
.tax{ .tax{
......
...@@ -219,4 +219,11 @@ input::placeholder{ ...@@ -219,4 +219,11 @@ input::placeholder{
.font-color { .font-color {
color: #656464; color: #656464;
} }
textarea::placeholder {
color: #b4b4b5;
}
textarea {
text-align: right;
color:#666;
}
</style> </style>
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