Commit 31130cb9 by 张立顺

sentry bug修复

1 parent 9beb6b05
...@@ -130,7 +130,7 @@ Page({ ...@@ -130,7 +130,7 @@ Page({
}) })
this.getInviteDetail(options.id) this.getInviteDetail(options.id)
} }
this.checkPhoneShow(app.globalData.YQorderSetting.yqPhoneConfig) this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig)
}, },
checkPhoneShow(config) { checkPhoneShow(config) {
console.log('config', config) console.log('config', config)
......
...@@ -302,7 +302,7 @@ Page({ ...@@ -302,7 +302,7 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
this.setData({ this.setData({
phoneShow: app.globalData.YQorderSetting.yqPhoneConfig phoneShow: app.globalData.YQorderSetting?.yqPhoneConfig
}) })
this.getStatByPeriod() this.getStatByPeriod()
this.getiIviteRecord() this.getiIviteRecord()
......
...@@ -67,7 +67,7 @@ const giftProduct = [ ...@@ -67,7 +67,7 @@ const giftProduct = [
}, },
{ {
confId: '6', confId: '6',
confName: '单机车机' confName: '联网车机'
} }
] ]
......
...@@ -82,12 +82,14 @@ if (code!= 0 ) return ...@@ -82,12 +82,14 @@ if (code!= 0 ) return
formData.forEach(item => { formData.forEach(item => {
// console.log(item?.optionList,'item?.optionList'); // console.log(item?.optionList,'item?.optionList');
// if(item.isMult) params[item.name] = [] // if(item.isMult) params[item.name] = []
item?.optionList?.forEach(subItem => { if (item.name!='customerSex') {
if (item!='customerSex') { item?.optionList?.forEach(subItem => {
subItem.active = false subItem.active = false
} })
}) }
}) })
console.log(formData,'formData');
this.setData({ this.setData({
formData formData
}) })
......
...@@ -219,7 +219,7 @@ Page({ ...@@ -219,7 +219,7 @@ Page({
// this.getDetail(options.orderCode) // this.getDetail(options.orderCode)
// } // }
if (time) clearInterval(time) if (time) clearInterval(time)
this.checkPhoneShow(app.globalData.YQorderSetting.yqPhoneConfig) this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig)
// wx.$util.setWebSocket() // wx.$util.setWebSocket()
setWebSocket() setWebSocket()
}, },
...@@ -283,7 +283,7 @@ Page({ ...@@ -283,7 +283,7 @@ Page({
// 校验是否显示二级流量方 // 校验是否显示二级流量方
if (data.subShopMerchantName) { if (data.subShopMerchantName) {
let { customerObj } = this.data let { customerObj } = this.data
if(customerObj.findIndex(val => val.key == 'subShopMerchantName') < 0) { if(customerObj.findIndex(val =>val?.key && val.key == 'subShopMerchantName') < 0) {
customerObj[customerObj.length - 2] = { customerObj[customerObj.length - 2] = {
label: '二级流量方:', label: '二级流量方:',
key: 'subShopMerchantName' key: 'subShopMerchantName'
...@@ -317,7 +317,7 @@ Page({ ...@@ -317,7 +317,7 @@ Page({
isArtificer(data) { isArtificer(data) {
let { customerObj, orderInfo } = this.data let { customerObj, orderInfo } = this.data
orderInfo.isOpenArtificer = true orderInfo.isOpenArtificer = true
if(customerObj.findIndex(val => val.key == 'technicianName') < 0) { if(customerObj.findIndex(val =>val?.key && val.key == 'technicianName') < 0) {
customerObj[customerObj.length] = { customerObj[customerObj.length] = {
label: '选择技师:', label: '选择技师:',
key: 'technicianName', key: 'technicianName',
......
...@@ -136,7 +136,7 @@ Page({ ...@@ -136,7 +136,7 @@ Page({
this.getOrderDetail(options.orderCode) this.getOrderDetail(options.orderCode)
} }
let o = wx.$util.getStorageSync('dj_boutique_user_info') let o = wx.$util.getStorageSync('dj_boutique_user_info')
this.checkPhoneShow(app.globalData.YQorderSetting.yqPhoneConfig) this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig)
this.setData({ this.setData({
userInfo: o, userInfo: o,
isYqdSuper: app.globalData.isYqdSuper, isYqdSuper: app.globalData.isYqdSuper,
...@@ -220,7 +220,7 @@ Page({ ...@@ -220,7 +220,7 @@ Page({
// 校验是否显示二级流量方 // 校验是否显示二级流量方
if (data.subShopMerchantName) { if (data.subShopMerchantName) {
let { customerObj } = this.data let { customerObj } = this.data
if (customerObj.findIndex(val => val.key == 'subShopMerchantName') < 0) { if (customerObj.findIndex(val =>val?.key && val.key == 'subShopMerchantName') < 0) {
customerObj[customerObj.length - 2] = { customerObj[customerObj.length - 2] = {
label: '二级流量方:', label: '二级流量方:',
key: 'subShopMerchantName' key: 'subShopMerchantName'
...@@ -254,7 +254,7 @@ Page({ ...@@ -254,7 +254,7 @@ Page({
isArtificer(data) { isArtificer(data) {
let { customerObj, orderInfo } = this.data let { customerObj, orderInfo } = this.data
orderInfo.isOpenArtificer = true orderInfo.isOpenArtificer = true
if (customerObj.findIndex(val => val.key == 'technicianName') < 0) { if (customerObj.findIndex(val => val?.key && val.key == 'technicianName') < 0) {
customerObj[customerObj.length] = { customerObj[customerObj.length] = {
label: '选择技师:', label: '选择技师:',
key: 'technicianName' key: 'technicianName'
......
...@@ -495,7 +495,7 @@ Page({ ...@@ -495,7 +495,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting.yqPhoneConfig') // console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig')
console.log(options) console.log(options)
if (options.scene) { if (options.scene) {
this.setData(options) this.setData(options)
......
...@@ -11,7 +11,7 @@ Page({ ...@@ -11,7 +11,7 @@ Page({
showTips: true, showTips: true,
isYqdSuper: app.globalData.isYqdSuper, isYqdSuper: app.globalData.isYqdSuper,
isStaff: app.globalData.isStaff, isStaff: app.globalData.isStaff,
isShowPhone: app.globalData.YQorderSetting.yqPhoneConfig, isShowPhone: app.globalData.YQorderSetting?.yqPhoneConfig,
customerService: '', customerService: '',
defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png', defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png',
failCustomerService: '../images/kfrefresh.png', failCustomerService: '../images/kfrefresh.png',
...@@ -107,7 +107,7 @@ Page({ ...@@ -107,7 +107,7 @@ Page({
let o = wx.$util.getStorageSync('dj_boutique_user_info') let o = wx.$util.getStorageSync('dj_boutique_user_info')
this.checkPhoneShow(app.globalData.YQorderSetting.yqPhoneConfig) this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig)
this.setData({ this.setData({
isYqdSuper: app.globalData.isYqdSuper, isYqdSuper: app.globalData.isYqdSuper,
...@@ -187,7 +187,7 @@ Page({ ...@@ -187,7 +187,7 @@ Page({
// 校验是否显示二级流量方 // 校验是否显示二级流量方
if (data.subShopMerchantName) { if (data.subShopMerchantName) {
let { customerObj } = this.data let { customerObj } = this.data
if (customerObj.findIndex(val => val.key == 'subShopMerchantName') < 0) { if (customerObj.findIndex(val => val?.key &&val.key == 'subShopMerchantName') < 0) {
customerObj[customerObj.length - 2] = { customerObj[customerObj.length - 2] = {
label: '二级流量方:', label: '二级流量方:',
key: 'subShopMerchantName' key: 'subShopMerchantName'
...@@ -221,7 +221,7 @@ Page({ ...@@ -221,7 +221,7 @@ Page({
isArtificer(data) { isArtificer(data) {
let { customerObj, orderInfo } = this.data let { customerObj, orderInfo } = this.data
orderInfo.isOpenArtificer = true orderInfo.isOpenArtificer = true
if (customerObj.findIndex(val => val.key == 'technicianName') < 0) { if (customerObj.findIndex(val =>val?.key && val.key == 'technicianName') < 0) {
customerObj[customerObj.length] = { customerObj[customerObj.length] = {
label: '选择技师:', label: '选择技师:',
key: 'technicianName' key: 'technicianName'
......
...@@ -14,7 +14,7 @@ Page({ ...@@ -14,7 +14,7 @@ Page({
showTips: true, showTips: true,
isYqdSuper: app.globalData.isYqdSuper, isYqdSuper: app.globalData.isYqdSuper,
isStaff: app.globalData.isStaff, isStaff: app.globalData.isStaff,
isShowPhone: app.globalData.YQorderSetting.yqPhoneConfig, isShowPhone: app.globalData.YQorderSetting?.yqPhoneConfig,
ctx: '', ctx: '',
hasDraw: false, hasDraw: false,
canvasWidth: 0, canvasWidth: 0,
...@@ -557,7 +557,7 @@ Page({ ...@@ -557,7 +557,7 @@ Page({
} }
let o = wx.$util.getStorageSync('dj_boutique_user_info') let o = wx.$util.getStorageSync('dj_boutique_user_info')
this.checkPhoneShow(app.globalData.YQorderSetting.yqPhoneConfig) this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig)
this.setData({ this.setData({
isYqdSuper: app.globalData.isYqdSuper, isYqdSuper: app.globalData.isYqdSuper,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!