|
@@ -30,9 +30,7 @@ var dataBaseShare = {
|
|
|
localStorage.setItem('userInfo', JSON.stringify(userData))
|
|
|
}
|
|
|
if (res.code === 0) {
|
|
|
- setTimeout(() => {
|
|
|
- window.location.href = `${dataBaseLink}/preview?t=${params.t}&id=${params.id}&uid=${res.data.userId}&suid=${params.suid}`
|
|
|
- }, 1000)
|
|
|
+ window.location.href = `${dataBaseLink}/preview?t=${params.t}&id=${params.id}&uid=${res.data.userId}&suid=${params.suid}`
|
|
|
}
|
|
|
},
|
|
|
routeParams() {
|
|
@@ -50,9 +48,7 @@ var dataBaseShare = {
|
|
|
updateStatus() {
|
|
|
const params = JSON.parse(window.sessionStorage.getItem('saveParams'))
|
|
|
const userInfo = JSON.parse(window.localStorage.getItem('userInfo'))
|
|
|
- setTimeout(() => {
|
|
|
- window.location.href = `${dataBaseLink}/preview?t=${params.t}&id=${params.id}&uid=${userInfo.userId}&spId=${params.spId}`
|
|
|
- }, 1000)
|
|
|
+ window.location.href = `${dataBaseLink}/preview?t=${params.t}&id=${params.id}&uid=${userInfo.userId}&spId=${params.spId}`
|
|
|
},
|
|
|
isShowWeChat() {
|
|
|
if (sessionStorage.getItem('saveParams')) return false
|
|
@@ -77,9 +73,7 @@ var dataBaseShare = {
|
|
|
}
|
|
|
PublicApi.userRecordStatisticsApp(cmSysParams,function(response){
|
|
|
if(response.code === 0){
|
|
|
- setTimeout(() => {
|
|
|
- window.location.href = `${dataBaseLink}/preview?t=${params.t}&id=${params.id}&uid=${res.data.userId}&suid=${params.suid}`
|
|
|
- }, 1000)
|
|
|
+ window.location.href = `${dataBaseLink}/preview?t=${params.t}&id=${params.id}&uid=${res.data.userId}&suid=${params.suid}`
|
|
|
}else{
|
|
|
console.log('上送浏览记录统计失败~')
|
|
|
}
|