Commit 4d8f896e by hank

bug

parent ab815d3d
...@@ -149,7 +149,7 @@ body { ...@@ -149,7 +149,7 @@ body {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
// display: flex; display: flex;
align-items: center; align-items: center;
img { img {
width: 45vw; width: 45vw;
......
...@@ -147,7 +147,7 @@ import { Swipe, SwipeItem } from 'mint-ui'; ...@@ -147,7 +147,7 @@ import { Swipe, SwipeItem } from 'mint-ui';
import ruwei from './ruwei.vue'; import ruwei from './ruwei.vue';
import api from '@/modules/js/api.js'; import api from '@/modules/js/api.js';
var _this
export default { export default {
data() { data() {
return { return {
...@@ -211,7 +211,13 @@ export default { ...@@ -211,7 +211,13 @@ export default {
} }
} }
}, },
watch:{
$route: (params) => {
_this.getUserInfo()
}
},
created() { created() {
_this = this
this.judgeShare(); this.judgeShare();
this.getIsAward(); this.getIsAward();
...@@ -880,9 +886,11 @@ export default { ...@@ -880,9 +886,11 @@ export default {
next(); next();
}, },
activated() { activated() {
this.getUserInfo()
console.log('active')
try { try {
this.lastContant.scrollTop = this.$store.state.lastBoxScroll; this.lastContant.scrollTop = this.$store.state.lastBoxScroll;
} catch (error) { } } catch (error) { }
try { try {
......
...@@ -225,7 +225,14 @@ export default { ...@@ -225,7 +225,14 @@ export default {
Toast({ message: '保存成功' }); Toast({ message: '保存成功' });
setTimeout(() => { setTimeout(() => {
if (location.href.includes('isIndex')) { if (location.href.includes('isIndex')) {
this.$router.push({ path: '/imgup' }); window.wx.miniProgram.getEnv(function (res) {
if (res.miniprogram) {
window.wx.miniProgram.navigateTo({url: '/pages/upload/upload'})
} else {
this.$router.push({ path: '/imgup' });
}
})
} else { } else {
this.$router.push({ path: '/' }); this.$router.push({ path: '/' });
} }
......
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 sign in to comment