Commit 44fc6f62 by 胡悦

fix: 修复环境配置和跳转链接参数问题

修改环境配置从prod改为test
调整index值从3改为2
在跳转链接中添加usedCarFlag参数
1 parent 01fdd129
...@@ -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" })
}) })
......
...@@ -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
......
...@@ -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:开发版(正常开发工具,测试时)
......
...@@ -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',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!