|
|
@@ -445,7 +445,10 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState } from 'vuex';
|
|
|
+import superLink from '@/mixins/superLink';
|
|
|
export default {
|
|
|
+ name: 'domainName',
|
|
|
+ inject: ['bar', 'setKeeps', 'scrollWrapper', 'changeScroll', 'bodyScroll'],
|
|
|
data() {
|
|
|
return {
|
|
|
action: 1,
|
|
|
@@ -466,9 +469,11 @@ export default {
|
|
|
list: [],
|
|
|
unregistered: require('@assets/png-da-lv@3x.png'),
|
|
|
registered: require('@assets/png-da-zi@3x.png'),
|
|
|
- timeId: 0
|
|
|
+ timeId: 0,
|
|
|
+ scrollTop: 0
|
|
|
};
|
|
|
},
|
|
|
+ mixins: [superLink],
|
|
|
computed: {
|
|
|
...mapState(['userInfo'])
|
|
|
// endTime() {
|
|
|
@@ -617,8 +622,13 @@ export default {
|
|
|
domain: this.list[index].domain
|
|
|
}
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else if (!this.list[index].isOpenHyperLink) {
|
|
|
this.$toast('持有人超链暂未开启');
|
|
|
+ } else {
|
|
|
+ this.goReview({
|
|
|
+ hyperLinkType: this.list[index].HyperLinkType,
|
|
|
+ address: this.list[index].Address
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
consignment(index) {
|
|
|
@@ -640,6 +650,21 @@ export default {
|
|
|
this.moreHeight = 0;
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.changeScroll(this.scrollTop || 0);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ beforeRouteLeave(to, from, next) {
|
|
|
+ if (to.name === 'productDetail' || to.name === 'creatorDetail') {
|
|
|
+ this.scrollTop = this.scrollWrapper.scrollTop;
|
|
|
+ this.setKeeps(['domainName']);
|
|
|
+ } else {
|
|
|
+ this.scrollTop = 0;
|
|
|
+ this.setKeeps(['domainName'], false);
|
|
|
+ }
|
|
|
+ next();
|
|
|
}
|
|
|
};
|
|
|
</script>
|