Commit 31130cb9 by 张立顺

sentry bug修复

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