|
@@ -22,7 +22,7 @@
|
|
|
:ellipsis="false"
|
|
:ellipsis="false"
|
|
|
line-width="16"
|
|
line-width="16"
|
|
|
line-height="2"
|
|
line-height="2"
|
|
|
- @change="getData(true)"
|
|
|
|
|
|
|
+ @click-tab="getData(true)"
|
|
|
:class="{ trans: source == 'TRANSFER' }"
|
|
:class="{ trans: source == 'TRANSFER' }"
|
|
|
>
|
|
>
|
|
|
<van-tab
|
|
<van-tab
|
|
@@ -95,6 +95,7 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
list: [],
|
|
list: [],
|
|
|
|
|
+ beforeSort: '',
|
|
|
empty: false,
|
|
empty: false,
|
|
|
search: '',
|
|
search: '',
|
|
|
stiky: null,
|
|
stiky: null,
|
|
@@ -165,13 +166,19 @@ export default {
|
|
|
activated() {
|
|
activated() {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.changeScroll(this.scrollTop);
|
|
this.changeScroll(this.scrollTop);
|
|
|
|
|
+
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.sort = this.beforeSort;
|
|
|
|
|
+ }, 1000);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
beforeRouteLeave(to, from, next) {
|
|
|
if (to.path === '/productDetail') {
|
|
if (to.path === '/productDetail') {
|
|
|
|
|
+ this.beforeSort = this.sort;
|
|
|
this.scrollTop = this.scrollWrapper.value.scrollTop;
|
|
this.scrollTop = this.scrollWrapper.value.scrollTop;
|
|
|
this.setKeeps(['productSearch']);
|
|
this.setKeeps(['productSearch']);
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ this.beforeSort = '';
|
|
|
this.scrollTop = 0;
|
|
this.scrollTop = 0;
|
|
|
this.setKeeps(['productSearch'], false);
|
|
this.setKeeps(['productSearch'], false);
|
|
|
}
|
|
}
|