Commit a2d0b469 by 闻闻闻

'update'

1 parent c9cbb960
...@@ -6,11 +6,7 @@ import config from './contant' ...@@ -6,11 +6,7 @@ import config from './contant'
$(function(){ $(function(){
const taskFissionId = getUrlParam('fissionId'); const taskFissionId = getUrlParam('fissionId');
const eid = null
//防止存入了错误的userinfo
if(localStorage.getItem('userinfo') == undefined || localStorage.getItem('userinfo') == 'undefined'){
localStorage.removeItem('userinfo')
}
$('.sharePic').click(function(){ $('.sharePic').click(function(){
alert('长按图片在弹出菜单中发送给朋友或者可保存图片分享至朋友圈') alert('长按图片在弹出菜单中发送给朋友或者可保存图片分享至朋友圈')
}); });
...@@ -44,7 +40,7 @@ $(function(){ ...@@ -44,7 +40,7 @@ $(function(){
}) })
} catch (error) { } catch (error) {
console.log(error) alert(error)
} }
...@@ -58,13 +54,13 @@ function getPosterFlow(params){ ...@@ -58,13 +54,13 @@ function getPosterFlow(params){
.then(resp=>{ .then(resp=>{
let userData = resp.data; let userData = resp.data;
let unionId = userData.unionId let unionId = userData.unionId
$('.myTaskDetail').click(function(){
window.location.href = `./taskProcess.html?eid=${unionId}&taskFissionId=${taskFissionId}`
});
getPoster({fissionTargetId,posterId,taskFissionId,unionId}) getPoster({fissionTargetId,posterId,taskFissionId,unionId})
.then(res=>{ .then(res=>{
$('.posterImg').attr('src',res.data.posterUrl) $('.posterImg').attr('src',res.data.posterUrl)
localStorage.setItem('postersUrl',res.data.posterUrl) localStorage.setItem('postersUrl',res.data.posterUrl)
}) })
$('.myTaskDetail').click(function(){
window.location.href = `./taskProcess.html?eid=${unionId}&taskFissionId=${taskFissionId}`
});
}) })
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!