Commit 6bf871b8 authored by chuan.liu's avatar chuan.liu

账票查询 滚动性能优化

parent 312c8c87
{
"name": "五粮液APP",
"appid": "__UNI__343534B",
"description": "订货系统",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
"app-plus": {
/* 5+App特有相关 */
"usingComponents": true,
"nvueCompiler": "uni-app",
"nvueStyleCompiler": "uni-app",
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
"nvue": {
"flex-direction": "row"
},
"modules": {},
/* 模块配置 */
"distribute": {
/* 应用发布信息 */
"android": {
/* android打包配置 */
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters": ["armeabi-v7a"]
},
"ios": {},
/* ios打包配置 */
"sdkConfigs": {
"ad": {}
},
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
},
"ios": {
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
}
}
}
}
},
/* SDK配置 */
"quickapp": {},
/* 快应用特有相关 */
"mp-weixin": {
/* 小程序特有相关 */
"appid": "",
"setting": {
"urlCheck": false
},
"usingComponents": true
},
"h5": {
"devServer": {
"https": false,
"port": "8080",
"disableHostCheck": true,
"proxy": {
"/sap": {
"target": "http://10.0.134.45:8000",
"changeOrigin": true
},
"/crm-app": {
"target": "http://10.0.135.139",
// "target" : "http://10.2.4.2",
"changeOrigin": true
}
}
}
}
{
"name" : "五粮液APP",
"appid" : "__UNI__343534B",
"description" : "订货系统",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"app-plus" : {
/* 5+App特有相关 */
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"nvueStyleCompiler" : "uni-app",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
"nvue" : {
"flex-direction" : "row"
},
"modules" : {},
/* 模块配置 */
"distribute" : {
/* 应用发布信息 */
"android" : {
/* android打包配置 */
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a" ]
},
"ios" : {},
/* ios打包配置 */
"sdkConfigs" : {
"ad" : {}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
}
}
},
/* SDK配置 */
"quickapp" : {},
/* 快应用特有相关 */
"mp-weixin" : {
/* 小程序特有相关 */
"appid" : "",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
},
"h5" : {
"devServer" : {
"https" : false,
"port" : "8080",
"disableHostCheck" : true,
"proxy" : {
"/sap" : {
"target" : "http://10.0.134.45:8000",
"changeOrigin" : true
},
"/crm-app" : {
"target" : "http://10.0.135.139",
// "target" : "http://10.2.4.2",
"changeOrigin" : true
}
}
}
}
}
......@@ -669,6 +669,7 @@
},
"bounce": "none"
}
// "enablePullDownRefresh": true
}
}
],
......
......@@ -42,6 +42,11 @@
<view class="empty-block">
</view>
</cell>
<cell>
<view class="loading-more" v-if='lists.length>2'>
<text class="loading-more-text">-- 到底了 --</text>
</view>
</cell>
</list>
</view>
</view>
......@@ -61,7 +66,13 @@
data() {
return {
itemHead: {},
lists: []
lists: [{
BILLTO_BP: '--',
BILLTO_NAME: '',
GOODS_AMOUNT: '',
FORWARD_AMOUNT: '',
DEALING_AMOUNT: '',
}]
}
},
computed: {
......@@ -306,4 +317,18 @@
color: #333;
font-size: 28rpx;
}
.loading-more {
flex: 1;
align-items: center;
justify-content: center;
padding-top: 14px;
padding-bottom: 14px;
text-align: center;
}
.loading-more-text {
font-size: 12px;
color: #999;
}
</style>
......@@ -321,7 +321,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
This diff is collapsed.
......@@ -45,6 +45,8 @@
<view class="planout-block-lists" :style="scrollHeight">
<list class="lists-wrapper" scrollable loadmoreoffset='1' show-scrollbar='false'>
<cell class="list-cell" v-for="(item,index) in lists" :key='index'>
<!-- <scroll-view class="scroll-area" :style='scrollHeight' scroll-y="true" lower-threshold='150'
@scrolltolower='scrolltolower'> -->
<view class="middle view planout-block-item">
<view class="text-block">
<text class="middle-date middle-date-select">客户编码</text>
......@@ -64,8 +66,8 @@
</view>
</view>
<view class="empty-block"></view>
<!-- </scroll-view> -->
</cell>
</list>
</view>
......@@ -93,6 +95,16 @@
end: ''
},
lists: [],
page: {
"PAGE": "1",
"PAGESIZE": "10",
},
toPageParams: {
page: '',
mode: '',
index: 0,
head: {}
}
}
},
computed: {
......@@ -109,19 +121,25 @@
},
scrollHeight() {
return {
'height': `${this.sysinfo.safeArea.height - 237}px`,
'height': `${this.sysinfo.safeArea.height - 237- 44 - 20}px`
}
}
},
onPullDownRefresh() {
console.log('refresh');
this.reset()
this.getMarketSupportFee(true)
setTimeout(function() {
uni.stopPullDownRefresh();
}, 600);
},
created() {
this.condition.start = timeFormat(new Date(), 'yyyy-mm-dd')
this.condition.end = timeFormat(new Date(), 'yyyy-mm-dd')
this.getMarketSupportFee();
this.reset()
this.getMarketSupportFee(true);
},
methods: {
search() {
this.getMarketSupportFee()
},
async getMarketSupportFee() {
let CUSTOMER = []
let POSTING_DATE = []
......@@ -130,13 +148,16 @@
SIGN: 'I',
OPTION: 'BT',
LOW: '20220401' || this.condition.start.replaceAll('-', ''),
// LOW: '20220401' || this.condition.start.replaceAll('-', ''),
HIGH: '20220530' || this.condition.end.replaceAll('-', '')
// HIGH: '20220530' || this.condition.end.replaceAll('-', '')
}]
}
if (this.userInfo.role !== 'WLY001') {
CUSTOMER = [{
SIGN: 'I',
OPTION: 'EQ',
// LOW: '4000000105' || this.userInfo.code,
LOW: this.userInfo.code,
HIGH: ''
}]
......@@ -149,7 +170,22 @@
}
const res = await apiGetMarketSupportFee(params)
this.lists = res.DATA
this.lists = res.DATA.concat(res.DATA).concat(res.DATA)
},
reset() {
this.loadParams = {
total: 0,
totalPage: 1,
isDone: false,
isRefresh: false
}
this.page.PAGE = 1
this.lists = []
this.loadingText = '加载中'
},
search() {
this.reset()
this.getMarketSupportFee(true)
},
bindPickerYearStartChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
......@@ -182,9 +218,11 @@
position: relative;
flex-direction: column;
background: #f0f4f5;
// height: 100vh;
}
.main {
position: relative;
flex-direction: column;
margin-top: -164rpx;
padding: 0 16rpx;
......@@ -270,7 +308,6 @@
.planout-block-lists {
display: flex;
flex-direction: column;
overflow: scroll;
background: #f0f4f5;
}
......@@ -294,6 +331,8 @@
.planout-block-item {
flex: 1;
// width: 750rpx;
// margin-bottom: 26rpx;
}
.btn {
......
......@@ -244,7 +244,7 @@
left: 0;
top: 0;
right: 0;
bottom: 0;
bottom: 0;
background: #f0f4f5;
/* #ifndef APP-NVUE */
display: flex;
......@@ -306,7 +306,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
......@@ -402,7 +402,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
This diff is collapsed.
......@@ -477,7 +477,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
......@@ -473,7 +473,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
......@@ -478,7 +478,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
......@@ -480,7 +480,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
......@@ -481,7 +481,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
......@@ -478,7 +478,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
......@@ -514,7 +514,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
This diff is collapsed.
......@@ -369,7 +369,7 @@
}
.loading-more-text {
font-size: 28upx;
font-size: 12px;
color: #999;
}
</style>
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
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