Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
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 44fc6f62
authored
Oct 17, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复环境配置和跳转链接参数问题
修改环境配置从prod改为test 调整index值从3改为2 在跳转链接中添加usedCarFlag参数
1 parent
01fdd129
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
login/lib/index.js
pages/tab/output/output.js
utils/request/environment.js
utils/request/newRequest.js
login/lib/index.js
View file @
44fc6f6
...
@@ -117,7 +117,7 @@ const loginSuccess = () => {
...
@@ -117,7 +117,7 @@ const loginSuccess = () => {
if
(
_list
.
length
==
1
&&
type
!==
null
)
{
if
(
_list
.
length
==
1
&&
type
!==
null
)
{
wx
.
reLaunch
({
wx
.
reLaunch
({
url
:
`/pages/tab/output/output?merchantId=
${
_list
[
0
].
merchantId4s
}
&type=
${
type
}
&merchantName=
${
_list
[
0
].
merchantName4s
}
`
,
url
:
`/pages/tab/output/output?merchantId=
${
_list
[
0
].
merchantId4s
}
&type=
${
type
}
&merchantName=
${
_list
[
0
].
merchantName4s
}
&usedCarFlag=
${
_list
[
0
].
usedCarFlag
}
`
,
})
})
}
else
wx
.
reLaunch
({
url
:
"/pages/tab/output/output"
})
}
else
wx
.
reLaunch
({
url
:
"/pages/tab/output/output"
})
})
})
...
...
pages/tab/output/output.js
View file @
44fc6f6
...
@@ -168,11 +168,12 @@ Page({
...
@@ -168,11 +168,12 @@ Page({
const
{
const
{
merchantId
,
merchantId
,
type
,
type
,
merchantName
merchantName
,
usedCarFlag
}
=
options
}
=
options
if
(
merchantId
)
{
if
(
merchantId
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`/packagesList/outDetail/index?merchantId=
${
merchantId
}
&type=
${
type
}
&merchantName=
${
merchantName
}
`
,
url
:
`/packagesList/outDetail/index?merchantId=
${
merchantId
}
&type=
${
type
}
&merchantName=
${
merchantName
}
&usedCarFlag=
${
usedCarFlag
}
`
,
})
})
this
.
setData
({
this
.
setData
({
isShow
:
false
isShow
:
false
...
...
utils/request/environment.js
View file @
44fc6f6
...
@@ -23,7 +23,7 @@ const manual = false
...
@@ -23,7 +23,7 @@ const manual = false
const
release
=
false
const
release
=
false
// newRequest里面是新接口也要修改
// newRequest里面是新接口也要修改
let
index
=
3
let
index
=
2
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
...
utils/request/newRequest.js
View file @
44fc6f6
...
@@ -2,7 +2,7 @@ import { Request } from 'glsk-toolkit';
...
@@ -2,7 +2,7 @@ import { Request } from 'glsk-toolkit';
import
{
domain
}
from
'./http.js'
import
{
domain
}
from
'./http.js'
let
{
sessionId
}
=
wx
.
$storage
.
get
()
let
{
sessionId
}
=
wx
.
$storage
.
get
()
console
.
log
(
sessionId
,
'=-===='
)
console
.
log
(
sessionId
,
'=-===='
)
let
target
=
'
prod
'
let
target
=
'
test
'
const
requestObj
=
{
const
requestObj
=
{
dev
:
'http://gsc.dev.glsx.com.cn/gsc-vcp-miniapp-facade'
,
dev
:
'http://gsc.dev.glsx.com.cn/gsc-vcp-miniapp-facade'
,
test
:
'https://gsc.test.glsx.com.cn/gsc-vcp-miniapp-facade'
,
test
:
'https://gsc.test.glsx.com.cn/gsc-vcp-miniapp-facade'
,
...
...
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