Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 f3d12ea1
authored
Jun 29, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
06c11596
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
linkwe-mobile/env.js
linkwe-mobile/src/config.js
linkwe-mobile/src/utils/index.js
linkwe-mobile/src/views/authCallback.vue
linkwe-mobile/src/views/redPacket/receive.vue
linkwe-mobile/env.js
View file @
f3d12ea
...
...
@@ -9,7 +9,7 @@ const envs = {
},
production
:
{
BASE_URL
:
'/mobile/'
,
// 路由基础路径
BASE_API
:
'http://
saas
.linkwechat.cn/prod-api'
,
BASE_API
:
'http://
demo
.linkwechat.cn/prod-api'
,
},
}
let
env
=
envs
[
process
.
env
.
VUE_APP_ENV
]
...
...
linkwe-mobile/src/config.js
View file @
f3d12ea
...
...
@@ -15,9 +15,9 @@ const common = {
// QRCODE_CUSTOMER_SERVICE: env.BASE_URL + 'static/QRCODE_CUSTOMER_SERVICE.png',
// IS_PUBLISH_DIALOG: true, // 是否显示发布弹窗
IS_VCONSOLE
:
true
,
// 是否显示发布弹窗
APPID
:
'wx863c031a74f589a0'
,
// 微信公众号id
}
const
config
=
{
appId
:
'wx863c031a74f589a0'
,
// 微信公众号id
cookieExpires
:
1
,
//token在Cookie中存储的天数,默认1天
homeName
:
'home'
,
//默认打开的首页的路由name值,默认为home
services
:
{
...
...
linkwe-mobile/src/utils/index.js
View file @
f3d12ea
...
...
@@ -69,7 +69,7 @@ export async function getWxCode() {
}
//缓存中没有用户信息,进入授权流程
let
appid
=
window
.
CONFIG
.
appId
// 公众号appid
let
appid
=
window
.
lwConfig
.
APPID
// 公众号appid
// let appid = 'wx8bfe6bc2ca5c45ae' // 公众号appid
let
code
=
getQueryValue
(
'code'
)
//是否存在code
let
local
=
window
.
location
.
origin
.
includes
(
'localhost'
)
...
...
linkwe-mobile/src/views/authCallback.vue
View file @
f3d12ea
...
...
@@ -27,7 +27,7 @@ export default {
methods
:
{
getWxCode
()
{
try
{
let
appid
=
window
.
CONFIG
.
appId
// 公众号appid
let
appid
=
window
.
lwConfig
.
APPID
// 公众号appid
// let appid = 'wx8bfe6bc2ca5c45ae' // 公众号appid
alert
(
2
)
let
code
=
getQueryValue
(
'code'
)
//是否存在code
...
...
linkwe-mobile/src/views/redPacket/receive.vue
View file @
f3d12ea
...
...
@@ -115,7 +115,7 @@ export default {
let form = {
orderNo: this.redPacket.orderId, // 订单id
openId: this.openId, // 客户公众号id
appId: window.
CONFIG.appId
, // 微信公众号id
appId: window.
lwConfig.APPID
, // 微信公众号id
chatId: this.redPacket.chatId, // 客户企微id
externalUserid: this.redPacket.externalUserid, // 客户企微id
receiveName: this.receiveName,
...
...
@@ -135,7 +135,7 @@ export default {
let form = {
orderNo: this.redPacket.orderId, // 订单id
openId: this.openId, // 客户公众号id
appId: window.
CONFIG.appId
, // 微信公众号id
appId: window.
lwConfig.APPID
, // 微信公众号id
chatId: this.redPacket.chatId, // 客户群企微id
// externalUserid: this.redPacket.externalUserid, // 客户企微id
}
...
...
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