Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
137ddeb5
Commit
137ddeb5
authored
Mar 05, 2021
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉注释掉的href.split("#/"
parent
f9f98ba0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
59 deletions
+12
-59
miniShareCmpt.vue
src/components/miniShareCmpt.vue
+1
-1
shareActCmpt.vue
src/components/shareActCmpt.vue
+1
-1
main.js
src/main.js
+1
-11
pcauth.vue
src/views/index/pages/pcauth.vue
+2
-14
detail.vue
src/views/mobile/activityApply/detail.vue
+1
-1
detail1.vue
src/views/mobile/activityApply/detail1.vue
+1
-1
live.vue
src/views/mobile/live.vue
+1
-1
authPage.vue
src/views/mobile/loginregister/authPage.vue
+1
-9
exchangeAuthPage.vue
src/views/mobile/loginregister/exchangeAuthPage.vue
+1
-9
newPage.vue
src/views/mobile/loginregister/newPage.vue
+1
-10
mineOrOther1.vue
src/views/mobile/mineOrOther1.vue
+1
-1
No files found.
src/components/miniShareCmpt.vue
View file @
137ddeb5
...
...
@@ -45,7 +45,7 @@
shareFunc
(){
let
params
=
{
appUrl
:
window
.
location
.
href
//document.location.href.split("#")[0]+"/?#"+document.location.href.split("#")[1]
appUrl
:
window
.
location
.
href
};
api
.
getConfigAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
...
...
src/components/shareActCmpt.vue
View file @
137ddeb5
...
...
@@ -250,7 +250,7 @@
configFunc
(){
let
params
=
{
appUrl
:
window
.
location
.
href
//document.location.href.split("#")[0]+"/?#"+document.location.href.split("#")[1]
appUrl
:
window
.
location
.
href
},
that
=
this
;
api
.
getConfigAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
...
...
src/main.js
View file @
137ddeb5
...
...
@@ -86,7 +86,7 @@ Vue.prototype.publicFun= publicFun;
var
type
=
navigator
.
appName
,
language
;
var
ismobile
=
publicFun
.
getCookie
(
'ismobile'
);
if
(
typeof
window
.
entryUrl
===
'undefined'
||
window
.
entryUrl
===
''
)
{
window
.
entryUrl
=
location
.
href
.
split
(
'#'
)[
0
]
;
window
.
entryUrl
=
location
.
origin
;
}
if
(
ismobile
==
null
){
ismobile
=
flag
||
ucFlag
?
1
:
0
...
...
@@ -291,16 +291,6 @@ router.beforeEach((to, from, next) => {
if
(
to
.
name
==
"mineIndex"
&&!
publicFun
.
getUserInfoCookieType
()
&&
publicFun
.
judgeBrandIsWechatOrHtml
()
==
1
)
router
.
replace
({
path
:
'/circleList'
})
next
();
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
// // 强制给index.html 加上时间戳
// if (document.URL.indexOf('t=') < 0) {
// let timestamp = (new Date()).valueOf(),hrefVal;
// if(to.path=="/"){
// hrefVal = document.location.href.split("#/")[0] + '#' + to.fullPath+'t=' + timestamp;
// }else{
// hrefVal = document.location.href.split("#/")[0]+'index.html?t=' + timestamp + '#' + to.fullPath;
// }
// window.location.href =hrefVal;
// }
if
(
to
.
path
!=
from
.
path
){
cancelRequest
.
cancelRequest
()
...
...
src/views/index/pages/pcauth.vue
View file @
137ddeb5
...
...
@@ -17,11 +17,6 @@
val
.
forEach
((
item
)
=>
{
arr
.
push
(
item
.
split
(
"="
)[
1
]);
})
// if(document.location.href.split("#")[0].indexOf("index.html")>-1){
// window.location.href = document.location.href.split("#")[0].split("?")[0]+"#/newPage?code="+arr[0]+"&state="+arr[1];
// }else{
// window.location.href = document.location.href.split("/#")[0].split("?")[0]+"/#/newPage?code="+arr[0]+"&state="+arr[1];
// }
var
_this
=
this
;
setTimeout
(
function
(){
if
(
arr
[
0
]
!=
null
||
arr
[
0
]
!=
undefined
){
...
...
@@ -59,11 +54,7 @@
}
globalMsg
.
$emit
(
'islogin'
,
3
);
}
else
{
// if(res.msg!=null){
// that.$router.push({path:"/bindAccount",query:{id:res.msg}});
// }else{
// window.location.href = document.location.href.split("#")[0].split("?")[0]+"#/loginByPhone";
// }
}
}
else
{
that
.
$toast
(
res
.
msg
);
...
...
@@ -71,10 +62,7 @@
}).
catch
((
err
)
=>
{
that
.
$toast
(
err
);
})
}
else
{
// var dataUrl = document.location.href.split("#/")[0]+"#/newPage";
// window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx725d0e129f703106&redirect_uri="+encodeURIComponent(dataUrl)+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
}
}
else
{}
},
2000
)
}
...
...
src/views/mobile/activityApply/detail.vue
View file @
137ddeb5
...
...
@@ -763,7 +763,7 @@
configFunc
()
{
let
params
=
{
appUrl
:
window
.
location
.
href
//document.location.href.split("#")[0]+"/?#"+document.location.href.split("#")[1]
appUrl
:
window
.
location
.
href
},
that
=
this
;
api
.
getConfigAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
...
...
src/views/mobile/activityApply/detail1.vue
View file @
137ddeb5
...
...
@@ -397,7 +397,7 @@
configFunc
(){
let
params
=
{
appUrl
:
window
.
location
.
href
//document.location.href.split("#")[0]+"/?#"+document.location.href.split("#")[1]
appUrl
:
window
.
location
.
href
},
that
=
this
;
api
.
getConfigAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
...
...
src/views/mobile/live.vue
View file @
137ddeb5
...
...
@@ -291,7 +291,7 @@
configFunc
(
data
)
{
let
params
=
{
appUrl
:
window
.
location
.
href
//document.location.href.split("#")[0]+"/?#"+document.location.href.split("#")[1]
appUrl
:
window
.
location
.
href
},
that
=
this
;
commonApi
.
getConfigAxios
(
params
,
true
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
...
...
src/views/mobile/loginregister/authPage.vue
View file @
137ddeb5
...
...
@@ -22,11 +22,6 @@
val
.
forEach
((
item
)
=>
{
arr
.
push
(
item
.
split
(
"="
)[
1
]);
})
// if(document.location.href.split("#")[0].indexOf("index.html")>-1){
// window.location.href = document.location.origin+"/authPage?code="+arr[0]+"&state="+arr[1];
// }else{
// window.location.href = document.location.href.split("/#")[0].split("?")[0]+"/#/authPage?code="+arr[0]+"&state="+arr[1];
// }
var
_this
=
this
;
setTimeout
(
function
(){
if
(
arr
[
0
]
!=
null
||
arr
[
0
]
!=
undefined
){
...
...
@@ -62,10 +57,7 @@
}).
catch
((
err
)
=>
{
that
.
$toast
(
err
);
})
}
else
{
// var dataUrl = document.location.href.split("#/")[0]+"#/newPage";
// window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx725d0e129f703106&redirect_uri="+encodeURIComponent(dataUrl)+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
}
}
else
{}
},
2000
)
}
...
...
src/views/mobile/loginregister/exchangeAuthPage.vue
View file @
137ddeb5
...
...
@@ -22,11 +22,6 @@
val
.
forEach
((
item
)
=>
{
arr
.
push
(
item
.
split
(
"="
)[
1
]);
})
// if(document.location.href.split("#")[0].indexOf("index.html")>-1){
// window.location.href = document.location.origin+"/exchangeAuthPage?code="+arr[0]+"&state="+arr[1];
// }else{
// window.location.href = document.location.origin+"/exchangeAuthPage?code="+arr[0]+"&state="+arr[1];
// }
var
_this
=
this
;
setTimeout
(
function
(){
if
(
arr
[
0
]
!=
null
||
arr
[
0
]
!=
undefined
){
...
...
@@ -62,10 +57,7 @@
}).
catch
((
err
)
=>
{
that
.
$toast
(
err
);
})
}
else
{
// var dataUrl = document.location.href.split("#/")[0]+"#/newPage";
// window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx725d0e129f703106&redirect_uri="+encodeURIComponent(dataUrl)+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
}
}
else
{}
},
2000
)
}
...
...
src/views/mobile/loginregister/newPage.vue
View file @
137ddeb5
...
...
@@ -17,12 +17,6 @@
val
.
forEach
((
item
)
=>
{
arr
.
push
(
item
.
split
(
"="
)[
1
]);
})
// window.location.href = document.location.origin+"/newPage?code="+arr[0]+"&state="+arr[1];
// if(document.location.href.split("#")[0].indexOf("index.html")>-1){
// window.location.href = document.location.href.split("#")[0].split("?")[0]+"#/newPage?code="+arr[0]+"&state="+arr[1];
// }else{
// window.location.href = document.location.href.split("/#")[0].split("?")[0]+"/#/newPage?code="+arr[0]+"&state="+arr[1];
// }
var
_this
=
this
;
setTimeout
(
function
(){
if
(
arr
[
0
]
!=
null
||
arr
[
0
]
!=
undefined
){
...
...
@@ -54,10 +48,7 @@
}).
catch
((
err
)
=>
{
that
.
$toast
(
err
);
})
}
else
{
// var dataUrl = document.location.href.split("#/")[0]+"#/newPage";
// window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx725d0e129f703106&redirect_uri="+encodeURIComponent(dataUrl)+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
}
}
else
{}
},
2000
)
}
...
...
src/views/mobile/mineOrOther1.vue
View file @
137ddeb5
...
...
@@ -768,7 +768,7 @@
configFunc
(
data
)
{
let
params
=
{
appUrl
:
window
.
location
.
href
//document.location.href.split("#")[0]+"/?#"+document.location.href.split("#")[1]
appUrl
:
window
.
location
.
href
},
that
=
this
;
commonApi
.
getConfigAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment