|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view class="address-page">
|
|
<view class="address-page">
|
|
<view class="address-section">
|
|
<view class="address-section">
|
|
- <pub-list-scroll @next="onScrollTolower" :loaded="loaded" :text="loadText" :status="status">
|
|
|
|
|
|
+ <pub-list-scroll ref="pubListScrollRef" @next="onScrollTolower" :loaded="loaded" :text="loadText" :status="status">
|
|
<view class="no-data" v-if="(!list || list.length == 0)&&!loaded">
|
|
<view class="no-data" v-if="(!list || list.length == 0)&&!loaded">
|
|
<image mode="heightFix" src="/static/image/no-data.png" />
|
|
<image mode="heightFix" src="/static/image/no-data.png" />
|
|
暂无数据
|
|
暂无数据
|
|
@@ -32,6 +32,7 @@
|
|
</pub-list-scroll>
|
|
</pub-list-scroll>
|
|
</view>
|
|
</view>
|
|
<view class="pub-button is-bg large" @click="openDetails('add')">新增地址</view>
|
|
<view class="pub-button is-bg large" @click="openDetails('add')">新增地址</view>
|
|
|
|
+
|
|
<!-- 选择弹窗 -->
|
|
<!-- 选择弹窗 -->
|
|
<uni-popup ref="confirmPopup" type="dialog">
|
|
<uni-popup ref="confirmPopup" type="dialog">
|
|
<uni-popup-dialog type="info" cancelText="取消" confirmText="确定" content="确定使用快递配送?" @confirm="onApply"
|
|
<uni-popup-dialog type="info" cancelText="取消" confirmText="确定" content="确定使用快递配送?" @confirm="onApply"
|
|
@@ -54,7 +55,8 @@
|
|
import * as link from '@/lib/link'
|
|
import * as link from '@/lib/link'
|
|
import { BasicInfoVO } from '../../lib/type';
|
|
import { BasicInfoVO } from '../../lib/type';
|
|
|
|
|
|
-
|
|
|
|
|
|
+ const pubListScrollRef = ref(null)
|
|
|
|
+ const scrollTop = ref(0)
|
|
const loaded = ref(false)
|
|
const loaded = ref(false)
|
|
const loadText = ref('数据加载中...')
|
|
const loadText = ref('数据加载中...')
|
|
const status = ref('loading')
|
|
const status = ref('loading')
|
|
@@ -163,6 +165,7 @@
|
|
}
|
|
}
|
|
// 重置滚动位置
|
|
// 重置滚动位置
|
|
if (queryParams.value.pageNo === 1) {
|
|
if (queryParams.value.pageNo === 1) {
|
|
|
|
+ pubListScrollRef.value.goTop()
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|
|
dlg.error(e)
|
|
dlg.error(e)
|