获客功能开发

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-02-26 16:58:23 +08:00
parent 07dc5fa96e
commit 76a7e379b7
4 changed files with 1642 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="search_box" ref="search_box"> <div class="search_box" ref="search_box">
<van-field :label="label" required> <van-field :label="label" :class="{ 'van-cell--required': required }">
<template #input> <template #input>
<input <input
style="width: 100%; border: none" style="width: 100%; border: none"
@@ -40,6 +40,10 @@ export default {
value: { value: {
type: String type: String
}, },
required: {
type: Boolean,
default: true
},
isAsync: { isAsync: {
type: Boolean, type: Boolean,
default: false default: false

View File

@@ -29,29 +29,29 @@ function getSearchString (key) {
} }
return obj[key] return obj[key]
} }
let apiVersion = 'v2' let apiVersion = 'v1'
var ua = window.navigator.userAgent.toLowerCase() // var ua = window.navigator.userAgent.toLowerCase()
//通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信 // //通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
if (localStorage.getItem('apiVersion')) { // if (localStorage.getItem('apiVersion')) {
apiVersion = localStorage.getItem('apiVersion') // apiVersion = localStorage.getItem('apiVersion')
} else { // } else {
if (ua.match(/MicroMessenger/i) == 'micromessenger') { // if (ua.match(/MicroMessenger/i) == 'micromessenger') {
//report/reportList数据报表页面在浏览器可以打开了但在微信或企业微信中打开不了,接口请求不需要token // //report/reportList数据报表页面在浏览器可以打开了但在微信或企业微信中打开不了,接口请求不需要token
if (window.location.href.indexOf('apiVersion') > 0) { // if (window.location.href.indexOf('apiVersion') > 0) {
apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时为v2 // apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时为v2
} else { // } else {
apiVersion = 'v3' // apiVersion = 'v3'
} // }
} else { // } else {
// 在app // // 在app
if (navigator.userAgent.indexOf('JZG_') > 0) { // if (navigator.userAgent.indexOf('JZG_') > 0) {
apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2' // apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
} // }
} // }
window.localStorage.setItem('apiVersion', apiVersion) // window.localStorage.setItem('apiVersion', apiVersion)
} // }
// 可以多个接口域名,按需添加 // // 可以多个接口域名,按需添加
console.log('环境:', process.env.VUE_APP_FLAG) // console.log('环境:', process.env.VUE_APP_FLAG)
switch (process.env.VUE_APP_FLAG) { switch (process.env.VUE_APP_FLAG) {
case 'dev': case 'dev':
apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion // 国富api ///api/v1 apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion // 国富api ///api/v1

View File

@@ -3,6 +3,7 @@ const GBC_home = () => import('@/views/GBC/home')
const GBC_projectList = () => import('@/views/GBC/projectList') const GBC_projectList = () => import('@/views/GBC/projectList')
const GBC_projectDetail = () => import('@/views/GBC/projectDetail') const GBC_projectDetail = () => import('@/views/GBC/projectDetail')
const GBC_customerDetail = () => import('@/views/GBC/customerDetail') const GBC_customerDetail = () => import('@/views/GBC/customerDetail')
const GBC_InsuredInfo = () => import('@/views/GBC/InsuredInfo')
export default [ export default [
{ {
@@ -41,4 +42,13 @@ export default [
index: 1 index: 1
} }
}, },
{
path: '/GBC/InsuredInfo',
name: 'GBC_InsuredInfo',
component: GBC_InsuredInfo,
meta: {
title: '信息录入',
index: 1
}
},
] ]

File diff suppressed because it is too large Load Diff