提交 4a037ac2 编写于 作者: huangwensu's avatar huangwensu

分享登录和进度条bug修复

上级 422b05ae
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
</template> </template>
<script> <script>
import { setCookie, getCookie, delCookie } from '@/utils/index';
import { getShareUrl } from '@/utils'; import { getShareUrl } from '@/utils';
import { ENV_CONFIG } from '@/utils/enumerate'; import { ENV_CONFIG } from '@/utils/enumerate';
...@@ -100,6 +101,9 @@ export default { ...@@ -100,6 +101,9 @@ export default {
} }
}, },
share() { share() {
if(!getCookie('token')) {
this.$rocNative.gotoLogin();
}else {
let shareUrl = ''; let shareUrl = '';
const { NUXT_ENV_APP } = process.env; const { NUXT_ENV_APP } = process.env;
const { tempId, taskId, userName, encryptId, avatarl, token, shareTitle1, shareTitle2, shareIconUrl } = this; const { tempId, taskId, userName, encryptId, avatarl, token, shareTitle1, shareTitle2, shareIconUrl } = this;
...@@ -114,6 +118,8 @@ export default { ...@@ -114,6 +118,8 @@ export default {
shareImageUrl: shareIconUrl || 'https://file.yunqueyi.com/logo.png?version=' + new Date().getTime() shareImageUrl: shareIconUrl || 'https://file.yunqueyi.com/logo.png?version=' + new Date().getTime()
}); });
} }
}
}, },
} }
</script> </script>
......
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
numText3: 3, numText3: 3,
stepText3: '公布排名获奖名单', stepText3: '公布排名获奖名单',
stepTime3:'4月7日17:00-4月11日24:00', stepTime3:'4月7日17:00-4月11日24:00',
maxValue: 200, maxValue: 300,
myAvatarl: '', myAvatarl: '',
myScore: 0, myScore: 0,
showCarveUp: false, //是否展示瓜分弹框 showCarveUp: false, //是否展示瓜分弹框
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册