Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-miniprogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b24bfb9b
authored
Aug 22, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改公众号appid
1 parent
c1aadbfa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
app.js
pages/wxPublicPage/wxPublicPage.js
project.private.config.json
app.js
View file @
b24bfb9
...
@@ -8,7 +8,7 @@ App({
...
@@ -8,7 +8,7 @@ App({
var
logs
=
wx
.
getStorageSync
(
'logs'
)
||
[]
var
logs
=
wx
.
getStorageSync
(
'logs'
)
||
[]
logs
.
unshift
(
Date
.
now
())
logs
.
unshift
(
Date
.
now
())
wx
.
setStorageSync
(
'logs'
,
logs
)
wx
.
setStorageSync
(
'logs'
,
logs
)
var
that
=
this
;
var
that
=
this
;
// 获取用户信息
// 获取用户信息
...
...
pages/wxPublicPage/wxPublicPage.js
View file @
b24bfb9
...
@@ -13,8 +13,9 @@ Page({
...
@@ -13,8 +13,9 @@ Page({
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
let
domain
=
WXRequest
.
domain
.
split
(
'//'
)[
1
]
let
domain
=
WXRequest
.
domain
.
split
(
'//'
)[
1
]
console
.
log
(
domain
)
//let _appid = 'wxcad686d44f4c8c4d'; // 旧公众号
let
url
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxcad686d44f4c8c4d&redirect_uri=https%3a%2f%2f
${
domain
}
%2fopenid.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
let
_appid
=
'wxb75708fc3ebb3605'
;
//新公众号
let
url
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=
${
_appid
}
&redirect_uri=https%3a%2f%2f
${
domain
}
%2fopenid.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
console
.
log
(
url
)
console
.
log
(
url
)
this
.
setData
({
this
.
setData
({
jumpLink
:
url
jumpLink
:
url
...
...
project.private.config.json
View file @
b24bfb9
{
{
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"libVersion"
:
"2.3
0.3
"
"libVersion"
:
"2.3
3.0
"
}
}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment