Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
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 ea41b4f3
authored
Nov 28, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
切换到生产mock
1 parent
3596a976
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
2 deletions
src/config/index.js
src/router/routes.js
src/views/common/auth.vue
src/config/index.js
View file @
ea41b4f
...
@@ -15,9 +15,9 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -15,9 +15,9 @@ export const fetchConfig = function (isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
config
)
return
Promise
.
resolve
(
config
)
}
}
//
return window.fetch('https://oss-config.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config', {}).then(res => res.json()) //生产
return
window
.
fetch
(
'https://oss-config.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config'
,
{}).
then
(
res
=>
res
.
json
())
//生产
return
window
.
fetch
(
'https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config'
,
{}).
then
(
res
=>
res
.
json
())
//测试
//
return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config', {}).then(res => res.json()) //测试
}
}
export
const
cfg
=
{
export
const
cfg
=
{
install
(
vue
,
config
)
{
install
(
vue
,
config
)
{
...
...
src/router/routes.js
View file @
ea41b4f
...
@@ -75,6 +75,15 @@ const pages = {
...
@@ -75,6 +75,15 @@ const pages = {
backgroundColor
:
'#101010'
backgroundColor
:
'#101010'
}
}
}
}
],
common
:[
{
name
:
'auth'
,
meta
:
{
keepAlive
:
true
,
backgroundColor
:
'#F7F7F7'
}
},
]
]
}
}
let
routes
=
[
let
routes
=
[
...
...
src/views/common/auth.vue
0 → 100644
View file @
ea41b4f
<
template
>
<div>
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
''
,
data
()
{
return
{
userInfo
:
null
}
},
mounted
()
{
this
.
showLoading
()
const
userInfo
=
this
.
getUserInfo
(),
data
=
{
nickName
:
userInfo
.
nickName
,
avatarUrl
:
userInfo
.
logo
}
this
.
userInfo
=
JSON
.
stringify
(
userInfo
)
wx
.
miniProgram
.
redirectTo
({
url
:
`/pages/crowdfunding/index/index?userProfile=
${
encodeURIComponent
(
JSON
.
stringify
(
data
))}
`
})
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
</
style
>
\ 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