提交 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,19 +101,24 @@ export default { ...@@ -100,19 +101,24 @@ export default {
} }
}, },
share() { share() {
let shareUrl = ''; if(!getCookie('token')) {
const { NUXT_ENV_APP } = process.env; this.$rocNative.gotoLogin();
const { tempId, taskId, userName, encryptId, avatarl, token, shareTitle1, shareTitle2, shareIconUrl } = this; }else {
shareUrl = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + `/campaign_ssr/login-point?activityId=${tempId}&taskId=${taskId}&id=${encryptId}&name=${userName}&avatar=${avatarl}`; let shareUrl = '';
//shareUrl = `http://10.177.10.217:3000/campaign_ssr/login-point?activityId=${tempId}&taskId=${taskId}&id=${encryptId}&name=${userName}&avatar=${avatarl}`; const { NUXT_ENV_APP } = process.env;
this.$rocNative.shareWechat({ const { tempId, taskId, userName, encryptId, avatarl, token, shareTitle1, shareTitle2, shareIconUrl } = this;
type: 6, shareUrl = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + `/campaign_ssr/login-point?activityId=${tempId}&taskId=${taskId}&id=${encryptId}&name=${userName}&avatar=${avatarl}`;
shareId: 0, //shareUrl = `http://10.177.10.217:3000/campaign_ssr/login-point?activityId=${tempId}&taskId=${taskId}&id=${encryptId}&name=${userName}&avatar=${avatarl}`;
shareUrl: shareUrl, this.$rocNative.shareWechat({
title1: shareTitle1, type: 6,
title2: shareTitle2, shareId: 0,
shareImageUrl: shareIconUrl || 'https://file.yunqueyi.com/logo.png?version=' + new Date().getTime() shareUrl: shareUrl,
}); title1: shareTitle1,
title2: shareTitle2,
shareImageUrl: shareIconUrl || 'https://file.yunqueyi.com/logo.png?version=' + new Date().getTime()
});
}
} }
}, },
} }
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册