constantData.js 1.81 KB
export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/sales-assistant/'
// 缓存get方法为空的默认指定值
export const DEFAULT_GET_STORAGEKEY = ['sessionId', 'merchantId', 'userInfo']

// 缓存get方法key的对应才映射值
export const STORAGE_OBJECTkEY = {
  DEFAULT_GET_STORAGEKEY,
  sessionId: 'sessionId',
  userInfo: 'userInfo',
  system_info: 'systemInfo',
  app_title: 'appTitle',
  auto_login_object: 'auto_login_object',
  wx_user_info: 'wx_user_info',
  userPhone: 'userPhone',
  firstLogin: 'firstLogin',
  authphone: 'authphone',
  disLikeRecordFlag: 'disLikeRecordFlag',
  fileList: 'fileList',
  posterId: 'posterId',
  mock_data: 'mock_data',
  car_brand_list: 'car_brand_list',
  recordList:'recordList'
}

export const IMG_VERSION = () => {
  const accountInfo = wx.getAccountInfoSync()
  return accountInfo.miniProgram.version || '1.0.0'
}

export const COOPERATIONMODELIST = [{
  name: '直营',
  value: 1
}, {
  name: '服务商',
  value: 2
}]

export const SCENELIST = [{
  name: '1.1 精品升级',
  value: 1
}, {
  name: '2.1权益升级',
  value: 2
}, {
  name: '2.2续保积分',
  value: 3
}, {
  name: '2.3延保升级',
  value: 4
}, {
  name: '6.1二手车',
  value: 5
}]

export const TRSFFICSTATUSLIST = [{
  name: '30 以下',
  value: 1
}, {
  name: '30-50',
  value: 2
}, {
  name: '50-80',
  value: 3
}, {
  name: '80-120',
  value: 4
}, {
  name: '120 以上',
  value: 5
}]

export const MERCHANTMENUS = [
  {
    title: '延保',
    index: 0
  },
  {
    title: '权益',
    index: 1
  },
  {
    title: '轻改',
    index: 2
  }
]

export const ROLELIST = [{
  label: '店总',
  value: 1,
  checked: true
}, {
  label: '销售经理',
  value: 2
}, {
  label: '交付经理',
  value: 3
}, {
  label: '装饰经理',
  value: 4
}, {
  label: '保险经理',
  value: 5
}]