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
8b4ebc67
Commit
8b4ebc67
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 分享授权
parent
b5c21698
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
17 deletions
+12
-17
wxJsSdk.js
src/service/wxJsSdk.js
+2
-2
index.vue
src/views/Consultant/Buy/index.vue
+2
-3
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+2
-3
CIIDetail.vue
src/views/Goods/Detail/CIIDetail.vue
+2
-3
LIDetail.vue
src/views/Goods/Detail/LIDetail.vue
+2
-3
MIDetail.vue
src/views/Goods/Detail/MIDetail.vue
+2
-3
No files found.
src/service/wxJsSdk.js
View file @
8b4ebc67
...
@@ -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 19:
40:04
* @LastEditTime: 2020-09-01 19:
56:12
*/
*/
import
cfg
from
"
@/config/index
"
;
import
cfg
from
"
@/config/index
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
...
@@ -27,7 +27,7 @@ export async function setShare({
...
@@ -27,7 +27,7 @@ export async function setShare({
});
});
const
{
appId
,
timestamp
,
nonceStr
,
signature
}
=
res
;
const
{
appId
,
timestamp
,
nonceStr
,
signature
}
=
res
;
wx
.
config
({
wx
.
config
({
debug
:
fals
e
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
debug
:
tru
e
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId
,
// 必填,公众号的唯一标识,填自己的!
appId
,
// 必填,公众号的唯一标识,填自己的!
timestamp
,
// 必填,生成签名的时间戳,刚才接口拿到的数据
timestamp
,
// 必填,生成签名的时间戳,刚才接口拿到的数据
nonceStr
,
// 必填,生成签名的随机串
nonceStr
,
// 必填,生成签名的随机串
...
...
src/views/Consultant/Buy/index.vue
View file @
8b4ebc67
...
@@ -222,13 +222,12 @@ export default {
...
@@ -222,13 +222,12 @@ export default {
this
.
checkLogin
();
this
.
checkLogin
();
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
updateRemain
();
this
.
updateRemain
();
this
.
checkOpenId
();
},
},
methods
:
{
methods
:
{
...{
checkOpenId
},
...
mapActions
([
"
setIsShowLogin
"
]),
...
mapActions
([
"
setIsShowLogin
"
]),
checkLogin
()
{
checkLogin
()
{
if
(
!
this
.
isLogin
)
{
if
(
!
this
.
isLogin
)
{
...
...
src/views/Goods/Detail/AIDetail.vue
View file @
8b4ebc67
...
@@ -224,13 +224,12 @@ export default {
...
@@ -224,13 +224,12 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
this
.
checkOpenId
();
},
},
methods
:
{
methods
:
{
...{
checkOpenId
},
openIframePupop
(
index
)
{
openIframePupop
(
index
)
{
if
(
index
===
4
)
{
if
(
index
===
4
)
{
this
.
$router
.
push
({
path
:
"
/goods/plan
"
,
query
:
{
type
:
this
.
type
}
});
this
.
$router
.
push
({
path
:
"
/goods/plan
"
,
query
:
{
type
:
this
.
type
}
});
...
...
src/views/Goods/Detail/CIIDetail.vue
View file @
8b4ebc67
...
@@ -235,13 +235,12 @@ export default {
...
@@ -235,13 +235,12 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
this
.
checkOpenId
();
},
},
methods
:
{
methods
:
{
...{
checkOpenId
},
openIframePupop
(
index
)
{
openIframePupop
(
index
)
{
if
(
index
===
4
)
{
if
(
index
===
4
)
{
this
.
$router
.
push
({
path
:
"
/goods/plan
"
,
query
:
{
type
:
this
.
type
}
});
this
.
$router
.
push
({
path
:
"
/goods/plan
"
,
query
:
{
type
:
this
.
type
}
});
...
...
src/views/Goods/Detail/LIDetail.vue
View file @
8b4ebc67
...
@@ -210,13 +210,12 @@ export default {
...
@@ -210,13 +210,12 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
this
.
checkOpenId
();
},
},
methods
:
{
methods
:
{
...{
checkOpenId
},
showBirthPickerHandler
()
{
showBirthPickerHandler
()
{
this
.
showCalDate
=
true
;
this
.
showCalDate
=
true
;
},
},
...
...
src/views/Goods/Detail/MIDetail.vue
View file @
8b4ebc67
...
@@ -218,13 +218,12 @@ export default {
...
@@ -218,13 +218,12 @@ export default {
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
return
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
}
}
},
},
created
()
{
checkOpenId
();
},
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
this
.
checkOpenId
();
},
},
methods
:
{
methods
:
{
...{
checkOpenId
},
openIframePupop
(
index
)
{
openIframePupop
(
index
)
{
if
(
index
===
4
)
{
if
(
index
===
4
)
{
this
.
$router
.
push
({
path
:
"
/goods/plan
"
,
query
:
{
type
:
this
.
type
}
});
this
.
$router
.
push
({
path
:
"
/goods/plan
"
,
query
:
{
type
:
this
.
type
}
});
...
...
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