Commit ea811ba6 by 张立顺

Merge branch 'dev_V4.25.01' into 'develop'

Dev v4.25.01

See merge request !145
2 parents 424d69a2 b9e0a6a2
......@@ -45,7 +45,7 @@ App({
getUpdateManager()
if (options) {
// console.log('options', options)
console.log('options', options)
let res = checkScene(options)
// console.log(res, 'res')
// 如果需要重新登录
......
......@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 3
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = true
const manual = false
const release = false
// 判断小程序环境
......
......@@ -114,6 +114,7 @@ Component({
// },
onChangeInsurance(e) {
console.log(e)
// vdQuotationGoodsList
let { detail } = e
let { id } = e.currentTarget.dataset
console.log(detail, 'detail')
......@@ -156,6 +157,7 @@ Component({
// if (params?.quotedPriceUpdate) {
// }
params.insureList = []
console.log(params, 'params')
wx.$util.showLoading()
priceCounter(params)
......@@ -164,7 +166,7 @@ Component({
console.log('result', result)
let { data, code, message } = result
if (code) {
if (code == 0) {
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
......
......@@ -198,6 +198,10 @@ Page({
insurance.forEach(item => {
delete orderInfo[item]
})
if (!orderInfo.vdQuotationGoodsList) {
//修复为null或则空时,后台报错
orderInfo.vdQuotationGoodsList = []
}
// delete orderInfo.quotedPriceUpdate
return orderInfo
},
......
......@@ -287,7 +287,9 @@ Page({
// 只开通一个场景直接跳转页面
if (openSceneArr.length === 1) {
wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), selectedSceneType: openSceneArr.includes(1) ? 1 : 0 })
wx.$router.reLaunch(openSceneArr.includes(1) ? 'tabIndex.index' : 'packageEquity.equityPage')
let pageUrl = ['packageEquity.equityPage', 'tabIndex.index', 'subvehicleConversion.index', 'packageCrowdFunding.paidOrder']
wx.$router.reLaunch(pageUrl[openSceneArr[0]])
// wx.$router.reLaunch(openSceneArr.includes(1) ? 'tabIndex.index' : 'packageEquity.equityPage')
} else if (openSceneArr.length > 1) {
wx.$router.reLaunch('pages.sceneIndex')
}
......
......@@ -213,6 +213,9 @@ export const checkScene = options => {
console.log(options, 'options')
wx.$SCENE = options
if (!userInfo && options.path != 'pages/accountItems/accountItems') {
// if (!userInfo) {
// console.log(userInfo);
console.log('未登录,请登录。');
return '未登录,请登录。'
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!