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