|
@@ -1,13 +1,37 @@
|
|
|
<template>
|
|
|
- <div>sign</div>
|
|
|
+ <Main :numPositionY="numPositionY"
|
|
|
+ ref="myOrder"></Main>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import Main from '../all/components/main'
|
|
|
+
|
|
|
export default {
|
|
|
- name: 'sign'
|
|
|
+ name: 'all',
|
|
|
+ components: {
|
|
|
+ Main
|
|
|
+ },
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ numPositionY: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ activated () {
|
|
|
+ if (!this.$route.meta.isUseCache) {
|
|
|
+ this.numPositionY = 0
|
|
|
+ }
|
|
|
+ this.$route.meta.isUseCache = false
|
|
|
+ },
|
|
|
+ beforeRouteLeave (to, from, next) {
|
|
|
+ if (['partnerAll', 'partnerUnsigned'].includes(to.name)) {
|
|
|
+ from.meta.isUseCache = true
|
|
|
+ }
|
|
|
+ this.numPositionY = this.$refs.myOrder.scroll ? this.$refs.myOrder.scroll.y : 0
|
|
|
+ next()
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
|
</style>
|