Commit ea41b4f3 by 李伟康

切换到生产mock

1 parent 3596a976
......@@ -15,9 +15,9 @@ export const fetchConfig = function (isEnv = true) {
Object.assign(request, { timeout })
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 = {
install(vue, config) {
......
......@@ -75,6 +75,15 @@ const pages = {
backgroundColor: '#101010'
}
}
],
common:[
{
name: 'auth',
meta: {
keepAlive: true,
backgroundColor: '#F7F7F7'
}
},
]
}
let routes = [
......
<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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!