Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
eaf6f86a
Commit
eaf6f86a
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 微信静默授权
parent
86d7e7db
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
15 deletions
+19
-15
shareInfo.js
src/api/shareInfo.js
+1
-1
wxJsSdk.js
src/service/wxJsSdk.js
+2
-2
index.vue
src/views/Consultant/Buy/index.vue
+3
-3
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+4
-0
CIIDetail.vue
src/views/Goods/Detail/CIIDetail.vue
+3
-3
LIDetail.vue
src/views/Goods/Detail/LIDetail.vue
+3
-3
MIDetail.vue
src/views/Goods/Detail/MIDetail.vue
+3
-3
No files found.
src/api/shareInfo.js
View file @
eaf6f86a
import
{
setShare
}
from
"
@/service/wxJsSdk
"
;
import
{
setShare
}
from
"
@/service/wxJsSdk
"
;
const
currentOrigin
=
window
.
location
.
origin
+
"
/share.html
?path=
"
;
const
currentOrigin
=
window
.
location
.
origin
+
"
/share.html
#
"
;
const
logo
=
currentOrigin
+
"
/shareImg/index.png
"
;
const
logo
=
currentOrigin
+
"
/shareImg/index.png
"
;
const
shareList
=
{
const
shareList
=
{
home
:
{
home
:
{
...
...
src/service/wxJsSdk.js
View file @
eaf6f86a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Description: weixin-js-sdk
* @Description: weixin-js-sdk
* @LastEditors: gzw
* @LastEditors: gzw
* @Date: 20120-08-30 18:40:11
* @Date: 20120-08-30 18:40:11
* @LastEditTime: 2020-09-01 1
7:23:2
2
* @LastEditTime: 2020-09-01 1
8:00:5
2
*/
*/
import
cfg
from
"
@/config/index
"
;
import
cfg
from
"
@/config/index
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
...
@@ -75,7 +75,7 @@ export function checkOpenId() {
...
@@ -75,7 +75,7 @@ export function checkOpenId() {
cfg
.
wxAppId
+
cfg
.
wxAppId
+
"
&redirect_uri=
"
+
"
&redirect_uri=
"
+
encodeURIComponent
(
local
)
+
encodeURIComponent
(
local
)
+
"
&response_type=code&scope=snsapi_
userinfo
&state=1#wechat_redirect
"
;
"
&response_type=code&scope=snsapi_
base
&state=1#wechat_redirect
"
;
return
false
;
return
false
;
}
else
{
}
else
{
return
true
;
return
true
;
...
...
src/views/Consultant/Buy/index.vue
View file @
eaf6f86a
...
@@ -222,15 +222,15 @@ export default {
...
@@ -222,15 +222,15 @@ export default {
this
.
checkLogin
();
this
.
checkLogin
();
}
}
},
},
created
()
{
!
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
updateRemain
();
this
.
updateRemain
();
},
},
methods
:
{
methods
:
{
...
mapActions
([
"
setIsShowLogin
"
]),
...
mapActions
([
"
setIsShowLogin
"
]),
checkLogin
()
{
checkLogin
()
{
if
(
!
checkOpenId
())
{
return
;
}
if
(
!
this
.
isLogin
)
{
if
(
!
this
.
isLogin
)
{
this
.
setIsShowLogin
(
true
);
this
.
setIsShowLogin
(
true
);
return
;
return
;
...
...
src/views/Goods/Detail/AIDetail.vue
View file @
eaf6f86a
...
@@ -106,6 +106,7 @@ import Detail from "@/api/detail.zhongan.yiwai";
...
@@ -106,6 +106,7 @@ import Detail from "@/api/detail.zhongan.yiwai";
import
{
trail
,
list
}
from
"
@/api/product
"
;
import
{
trail
,
list
}
from
"
@/api/product
"
;
import
{
isIdNo
}
from
"
@/service/validation
"
;
import
{
isIdNo
}
from
"
@/service/validation
"
;
import
{
getRealAge
,
getBirthDate
}
from
"
@/service/utils
"
;
import
{
getRealAge
,
getBirthDate
}
from
"
@/service/utils
"
;
import
{
checkOpenId
}
from
"
@/service/wxJsSdk
"
;
export
default
{
export
default
{
name
:
"
GoodsDetail-AI
"
,
name
:
"
GoodsDetail-AI
"
,
...
@@ -223,6 +224,9 @@ export default {
...
@@ -223,6 +224,9 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
},
},
...
...
src/views/Goods/Detail/CIIDetail.vue
View file @
eaf6f86a
...
@@ -235,6 +235,9 @@ export default {
...
@@ -235,6 +235,9 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
},
},
...
@@ -252,9 +255,6 @@ export default {
...
@@ -252,9 +255,6 @@ export default {
this
.
$notify
({
type
:
"
warn
"
,
message
:
"
被保人年龄不在可投保范围,请仔细核对
"
});
this
.
$notify
({
type
:
"
warn
"
,
message
:
"
被保人年龄不在可投保范围,请仔细核对
"
});
return
;
return
;
}
}
if
(
!
checkOpenId
())
{
return
;
}
if
(
localStorage
.
get
(
"
mongoToken
"
))
{
if
(
localStorage
.
get
(
"
mongoToken
"
))
{
this
.
$refs
.
insureForm
.
getFamilyList
(
true
).
then
(()
=>
{
this
.
$refs
.
insureForm
.
getFamilyList
(
true
).
then
(()
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
src/views/Goods/Detail/LIDetail.vue
View file @
eaf6f86a
...
@@ -210,6 +210,9 @@ export default {
...
@@ -210,6 +210,9 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
},
},
...
@@ -237,9 +240,6 @@ export default {
...
@@ -237,9 +240,6 @@ export default {
// this.currentPupopIndex = 6;
// this.currentPupopIndex = 6;
// return;
// return;
// }
// }
if
(
!
checkOpenId
())
{
return
;
}
this
.
showLoginPopup
();
this
.
showLoginPopup
();
this
.
popupShow
=
false
;
this
.
popupShow
=
false
;
},
},
...
...
src/views/Goods/Detail/MIDetail.vue
View file @
eaf6f86a
...
@@ -218,6 +218,9 @@ export default {
...
@@ -218,6 +218,9 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
},
},
...
@@ -235,9 +238,6 @@ export default {
...
@@ -235,9 +238,6 @@ export default {
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
被保人年龄不在可投保范围,请仔细核对
"
});
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
被保人年龄不在可投保范围,请仔细核对
"
});
return
;
return
;
}
}
if
(
!
checkOpenId
())
{
return
;
}
if
(
localStorage
.
get
(
"
mongoToken
"
))
{
if
(
localStorage
.
get
(
"
mongoToken
"
))
{
socialSecurityCache
=
this
.
formData
.
socialSecurity
;
socialSecurityCache
=
this
.
formData
.
socialSecurity
;
this
.
$refs
.
insureForm
.
getFamilyList
(
true
).
then
(()
=>
{
this
.
$refs
.
insureForm
.
getFamilyList
(
true
).
then
(()
=>
{
...
...
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