提交 1600bdb3 编写于 作者: guangjun.yang's avatar guangjun.yang

打点日志出来

上级 5754109b
...@@ -32,6 +32,7 @@ import loading from '../../components/bussiness/common-loading'; ...@@ -32,6 +32,7 @@ import loading from '../../components/bussiness/common-loading';
import { getCaptchaGet, getAuthCode, pointResult, getPublicKey } from '@/service'; import { getCaptchaGet, getAuthCode, pointResult, getPublicKey } from '@/service';
import { CryptoJS } from '../../utils/aes'; import { CryptoJS } from '../../utils/aes';
import { ENV_CONFIG } from '@/utils/enumerate'; import { ENV_CONFIG } from '@/utils/enumerate';
const { NUXT_ENV_APP } = process.env;
const TIMEALL = 60000; // 倒计时常量 60 秒 const TIMEALL = 60000; // 倒计时常量 60 秒
export default { export default {
components: { components: {
...@@ -68,6 +69,11 @@ export default { ...@@ -68,6 +69,11 @@ export default {
this.avatarl = this.$route.query.avatar; this.avatarl = this.$route.query.avatar;
this.getCaptchaGet(); this.getCaptchaGet();
this.getPublicKey(); this.getPublicKey();
let routeData = this.$router.resolve({path: "/point-result",query: {code: res.data}});
let url = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + routeData.href;
alert(url);
window.open(url, '_blank');
}, },
methods: { methods: {
// 获取公钥 // 获取公钥
...@@ -185,7 +191,6 @@ export default { ...@@ -185,7 +191,6 @@ export default {
if(res.data == '900001') { if(res.data == '900001') {
this.$toast('不能给自己点赞哦'); this.$toast('不能给自己点赞哦');
}else { }else {
const { NUXT_ENV_APP } = process.env;
//this.$router.push({path: "/point-result",query: {code: res.data}}); //this.$router.push({path: "/point-result",query: {code: res.data}});
let routeData = this.$router.resolve({path: "/point-result",query: {code: res.data}}); let routeData = this.$router.resolve({path: "/point-result",query: {code: res.data}});
let url = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + routeData.href let url = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + routeData.href
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册