diff --git a/src/components/customHeader.vue b/src/components/customHeader.vue index 702d7da..f07f1a2 100644 --- a/src/components/customHeader.vue +++ b/src/components/customHeader.vue @@ -25,6 +25,7 @@ const props = defineProps({ title: String, leftFlag:true,//默认左侧显示 false-不显示 rightFlag:false,//默认右侧不显示 + searchType:{default:0}//搜索返回为1,其他暂时不处理 }) const emit = defineEmits(['back']) @@ -35,7 +36,7 @@ let navbarHeight = ref(0) let navHeight = ref(0) onMounted(() => { - navBarPaddingTop.value = getNavBarPaddingTop();console.log(navBarPaddingTop.value) + navBarPaddingTop.value = getNavBarPaddingTop(); statusBarHeight.value = getStatusBarHeight(); navbarHeight.value = getNavBarHeight(); navHeight.value = navbarHeight.value - statusBarHeight.value @@ -43,7 +44,8 @@ onMounted(() => { const handleBack = () => { emit('back') - uni.navigateBack() + if(!props.searchType) + uni.navigateBack() } @@ -56,15 +58,15 @@ const handleBack = () => { margin-left:-375rpx; z-index: 999; /* #ifdef APP-PLUS */ - background: url('@/static/images/bg-Blue-header.png') no-repeat; + /* background: url('@/static/images/bg-Blue-header.png') no-repeat; background-size:750rpx 160rpx; - height:160rpx; + height:160rpx; */ /* #endif */ /* #ifndef APP-PLUS */ - background: url('@/static/images/bg-Blue-header2.png') no-repeat; + /* background: url('@/static/images/bg-Blue-header2.png') no-repeat; background-size:750rpx 116rpx; - height:116rpx; + height:116rpx; */ /* #endif */ } diff --git a/src/components/customSearch.vue b/src/components/customSearch.vue index c3ab321..28ad531 100644 --- a/src/components/customSearch.vue +++ b/src/components/customSearch.vue @@ -1,84 +1,307 @@ \ No newline at end of file + +// 点击搜索结果 +const handleResultClick = (item) => { + uni.showToast({ + title: `点击了 ${item.name}`, + icon: 'none' + }) + // 实际项目中这里可以跳转到详情页 + // uni.navigateTo({ url: `/pages/detail/detail?id=${item.id}` }) +} + + \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 07cd9ee..721d3be 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1,531 +1,536 @@ { - "easycom": { - "autoscan": true, - "custom": { - "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" - } - }, - "pages": [ - { - "path": "pages/loading/loading", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/home/home", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/business", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReport", - //市场信息管理 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReportAdd", - //走访报告添加 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReportDetail", - //走访报告详情 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReportEnter", - //走访报告内容录入 - "style": { - "navigationBarTitleText": "" - } - }, - //市场信息管理(已更新) - { - "path": "pages/business/CRM/marketInformation/marketInformation", - "style": { - "navigationBarTitleText": "市场信息管理" - } - }, - //市场机会录入(已更新) - { - "path": "pages/business/CRM/marketInformation/marketOpportunities", - "style": { - "navigationBarTitleText": "市场机会录入" - } - }, - //市场机会修改(已更新) - { - "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail", - "style": { - "navigationBarTitleText": "市场机会修改" - } - }, - //重大事项录入(已更新) - { - "path": "pages/business/CRM/marketInformation/majorMatter", - "style": { - "navigationBarTitleText": "重大事项录入" - } - }, - //重大事项更改(已更新) - { - "path": "pages/business/CRM/marketInformation/majorMatterDetail", - "style": { - "navigationBarTitleText": "重大事项更改" - } - }, - //竞争对手信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/competitor", - "style": { - "navigationBarTitleText": "竞争对手信息录入" - } - }, - //竞争对手信息更改(已更新) - { - "path": "pages/business/CRM/marketInformation/competitorDetail", - "style": { - "navigationBarTitleText": "竞争对手信息更改" - } - }, - //人员变化信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/personnelChanges", - "style": { - "navigationBarTitleText": "人员变化信息录入" - } - }, - //人员变化信息更改(已更新) - { - "path": "pages/business/CRM/marketInformation/personnelChangesDetail", - "style": { - "navigationBarTitleText": "人员变化信息更改" - } - }, - //重点型号任务信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/keyModelTasks", - "style": { - "navigationBarTitleText": "重点型号任务信息录入" - } - }, - //重点型号任务信息更新(已更新) - { - "path": "pages/business/CRM/marketInformation/keyModelTasksDetail", - "style": { - "navigationBarTitleText": "重点型号任务信息更新" - } - }, - //通用信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/beCurrent", - "style": { - "navigationBarTitleText": "通用信息录入" - } - }, - //通用信息更新(已更新) - { - "path": "pages/business/CRM/marketInformation/beCurrentDetail", - "style": { - "navigationBarTitleText": "通用信息更新" - } - }, - //选择客户(已更新) - { - "path": "pages/business/CRM/chooseCus", - "style": { - "navigationBarTitleText": "客户选择" - } - }, - //选择客户人员(已更新) - { - "path": "pages/business/CRM/customerUserList", - "style": { - "navigationBarTitleText": "客户人员选择" - } - }, - //市场信息查看(已更新) - { - "path": "pages/business/CRM/marketInformation/infomationView", - "style": { - "navigationBarTitleText": "市场信息查看" - } - }, - //市场信息详情(已更新) - { - "path": "pages/business/CRM/marketInformation/informationDetail", - "style": { - "navigationBarTitleText": "市场信息详情" - } - }, - //市场信息审核(已更新) - { - "path": "pages/business/CRM/marketInformation/marketInformationReview", - "style": { - "navigationBarTitleText": "市场信息审核" - } - }, - //市场信息审核详情(已更新) - { - "path": "pages/business/CRM/marketInformation/marketInformationReviewDetail", - "style": { - "navigationBarTitleText": "市场信息审核" - } - }, - //回款首页查看(已更新) - { - "path": "pages/business/CRM/paymentCollection/index", - "style": { - "navigationBarTitleText": "回款首页查看" - } - }, - //回款新增(已更新) - { - "path": "pages/business/CRM/paymentCollection/addPaymentCollection", - "style": { - "navigationBarTitleText": "回款新增" - } - }, - //回款更新(已更新) - { - "path": "pages/business/CRM/paymentCollection/paymentDetail", - "style": { - "navigationBarTitleText": "回款新增" - } - }, - //回款查看公用页面(已更新) - { - "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck", - "style": { - "navigationBarTitleText": "回款查看" - } - }, - //回款查看全员统计查看(已更新) - { - "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable", - "style": { - "navigationBarTitleText": "全员统计查看" - } - }, - //回款查看个人详情查看(已更新) - { - "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable", - "style": { - "navigationBarTitleText": "个人详情查看" - } - }, - { - "path": "pages/business/CRM/weekPlanUpdate", - //修改周计划 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/index", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/myPlan", - //我的计划列表 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/planEdit", - //计划修改 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/planView", - //周计划查看 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/customerAdd", - //客户人员新增 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/customerAudit", - //客户人员审核 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/customerUserBelong", - //客户人员归属 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/components/confirmForm", - //客户人员主归属人变更审核提交 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/changeCustomerOwner", - //客户人员主归属人变更 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit", - //客户人员主归属人变更审核 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/mainOwner/audit/confirmForm", - //客户人员主归属人变更审核提交 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/components/customerUserEdit", - //客户人员详情编辑 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/selectCustomer", - //选择客户 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/vistorCheckin", - //签到打卡 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/checkinStatistics", - //打卡统计 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/paymentCollection", - //回款查看 - "style": { - "navigationBarTitleText": "" - } - }, - //===================================活动报告==================== - { - "path": "pages/business/CRM/marketActivity/visitReport", - //市场信息管理 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitorReportAdd", - //走访报告添加 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitReportView", - //走访报告查看 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitReportDetail", - //走访报告查看具体明细 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/auditReport", - //走访报告审批列表查看 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/detailForApproval", - //走访报告明细审批 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitorReportEnter", - //走访报告内容录入 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/auditReject", - //走访报告驳回输入原因 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/customerUserList", - //客户公司人员信息 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/myUserList", - //我公司人员信息 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/activityTypeList", - //活动类型 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/chooseCus", - //选择客户单位 - "style": { - "navigationBarTitleText": "" - } - }, - //====================地图====== - { - "path": "pages/business/CRM/map/vistorCheckin", - //签到打卡 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/map/addRearkSignIn", - //签到备注 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/map/checkInView", - //打卡信息(考勤查看) - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/map/checkinStatistics", - //打卡统计 - "style": { - "navigationBarTitleText": "" - } - }, - //===================================活动报告==================== - { - "path": "pages/notice/notice", - "style": { - "navigationBarTitleText": "", - "app-plus": { - "bounce": "none" - // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') - }, - "mp-alipay": { - "allowsBounceVertical": "NO" - } - // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') - } - }, - { - "path": "pages/userinfo/userinfo", - "style": { - "navigationBarTitleText": "" - } - } - ], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "718友晟", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8", - "navigationStyle": "custom" - }, - "tabBar": { - "color": "#919191", - "selectedColor": "#ffffff", - "borderStyle": "#ffffff", - "backgroundColor": "#000000", - "fontSize": "12px", - "iconWidth": "24px", - "list": [ - { - "pagePath": "pages/home/home", - "iconPath": "static/images/tabs/menu-home.png", - "selectedIconPath": "static/images/tabs/menu-home-on.png", - "text": "首页" - }, - { - "pagePath": "pages/business/business", - "iconPath": "static/images/tabs/menu-business.png", - "selectedIconPath": "static/images/tabs/menu-business-on.png", - "text": "业务中心" - }, - { - "pagePath": "pages/notice/notice", - "iconPath": "static/images/tabs/menu-info.png", - "selectedIconPath": "static/images/tabs/menu-info-on.png", - "text": "消息" - }, - { - "pagePath": "pages/userinfo/userinfo", - "iconPath": "static/images/tabs/menu-me.png", - "selectedIconPath": "static/images/tabs/menu-me-on.png", - "text": "我的" - } - ] - } -} + "easycom": { + "autoscan": true, + "custom": { + "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" + } + }, + "pages": [{ + "path": "pages/loading/loading", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/home/home", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/business", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReport", + //市场信息管理 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReportAdd", + //走访报告添加 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReportDetail", + //走访报告详情 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReportEnter", + //走访报告内容录入 + "style": { + "navigationBarTitleText": "" + } + }, + //市场信息管理(已更新) + { + "path": "pages/business/CRM/marketInformation/marketInformation", + "style": { + "navigationBarTitleText": "市场信息管理" + } + }, + //市场机会录入(已更新) + { + "path": "pages/business/CRM/marketInformation/marketOpportunities", + "style": { + "navigationBarTitleText": "市场机会录入" + } + }, + //市场机会修改(已更新) + { + "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail", + "style": { + "navigationBarTitleText": "市场机会修改" + } + }, + //重大事项录入(已更新) + { + "path": "pages/business/CRM/marketInformation/majorMatter", + "style": { + "navigationBarTitleText": "重大事项录入" + } + }, + //重大事项更改(已更新) + { + "path": "pages/business/CRM/marketInformation/majorMatterDetail", + "style": { + "navigationBarTitleText": "重大事项更改" + } + }, + //竞争对手信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/competitor", + "style": { + "navigationBarTitleText": "竞争对手信息录入" + } + }, + //竞争对手信息更改(已更新) + { + "path": "pages/business/CRM/marketInformation/competitorDetail", + "style": { + "navigationBarTitleText": "竞争对手信息更改" + } + }, + //人员变化信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/personnelChanges", + "style": { + "navigationBarTitleText": "人员变化信息录入" + } + }, + //人员变化信息更改(已更新) + { + "path": "pages/business/CRM/marketInformation/personnelChangesDetail", + "style": { + "navigationBarTitleText": "人员变化信息更改" + } + }, + //重点型号任务信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/keyModelTasks", + "style": { + "navigationBarTitleText": "重点型号任务信息录入" + } + }, + //重点型号任务信息更新(已更新) + { + "path": "pages/business/CRM/marketInformation/keyModelTasksDetail", + "style": { + "navigationBarTitleText": "重点型号任务信息更新" + } + }, + //通用信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/beCurrent", + "style": { + "navigationBarTitleText": "通用信息录入" + } + }, + //通用信息更新(已更新) + { + "path": "pages/business/CRM/marketInformation/beCurrentDetail", + "style": { + "navigationBarTitleText": "通用信息更新" + } + }, + //选择客户(已更新) + { + "path": "pages/business/CRM/chooseCus", + "style": { + "navigationBarTitleText": "客户选择" + } + }, + //选择客户人员(已更新) + { + "path": "pages/business/CRM/customerUserList", + "style": { + "navigationBarTitleText": "客户人员选择" + } + }, + //市场信息查看(已更新) + { + "path": "pages/business/CRM/marketInformation/infomationView", + "style": { + "navigationBarTitleText": "市场信息查看" + } + }, + //市场信息详情(已更新) + { + "path": "pages/business/CRM/marketInformation/informationDetail", + "style": { + "navigationBarTitleText": "市场信息详情" + } + }, + //市场信息审核(已更新) + { + "path": "pages/business/CRM/marketInformation/marketInformationReview", + "style": { + "navigationBarTitleText": "市场信息审核" + } + }, + //市场信息审核详情(已更新) + { + "path": "pages/business/CRM/marketInformation/marketInformationReviewDetail", + "style": { + "navigationBarTitleText": "市场信息审核" + } + }, + //回款首页查看(已更新) + { + "path": "pages/business/CRM/paymentCollection/index", + "style": { + "navigationBarTitleText": "回款首页查看" + } + }, + //回款新增(已更新) + { + "path": "pages/business/CRM/paymentCollection/addPaymentCollection", + "style": { + "navigationBarTitleText": "回款新增" + } + }, + //回款更新(已更新) + { + "path": "pages/business/CRM/paymentCollection/paymentDetail", + "style": { + "navigationBarTitleText": "回款新增" + } + }, + //回款查看公用页面(已更新) + { + "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck", + "style": { + "navigationBarTitleText": "回款查看" + } + }, + //回款查看全员统计查看(已更新) + { + "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable", + "style": { + "navigationBarTitleText": "全员统计查看" + } + }, + //回款查看个人详情查看(已更新) + { + "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable", + "style": { + "navigationBarTitleText": "个人详情查看" + } + }, + { + "path": "pages/business/CRM/weekPlanUpdate", + //修改周计划 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/index", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/myPlan", + //我的计划列表 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/planEdit", + //计划修改 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/planView", + //周计划查看 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/customerAdd", + //客户人员新增 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/customerAudit", + //客户人员审核 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/customerUserBelong", + //客户人员归属 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/components/confirmForm", + //客户人员主归属人变更审核提交 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/changeCustomerOwner", + //客户人员主归属人变更 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit", + //客户人员主归属人变更审核 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/mainOwner/audit/confirmForm", + //客户人员主归属人变更审核提交 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/components/customerUserEdit", + //客户人员详情编辑 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/selectCustomer", + //选择客户 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/vistorCheckin", + //签到打卡 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/checkinStatistics", + //打卡统计 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/paymentCollection", + //回款查看 + "style": { + "navigationBarTitleText": "" + } + }, + //===================================活动报告==================== + { + "path": "pages/business/CRM/mainOwner/view/viewMainOwner", //查看主归属人变更信息 + "style": { + "navigationBarTitleText": "" + } + }, + { + + "path": "pages/business/CRM/marketActivity/visitReport", + //市场信息管理 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitorReportAdd", + //走访报告添加 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitReportView", + //走访报告查看 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitReportDetail", + //走访报告查看具体明细 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/auditReport", + //走访报告审批列表查看 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/detailForApproval", + //走访报告明细审批 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitorReportEnter", + //走访报告内容录入 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/auditReject", + //走访报告驳回输入原因 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/customerUserList", + //客户公司人员信息 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/myUserList", + //我公司人员信息 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/activityTypeList", + //活动类型 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/chooseCus", + //选择客户单位 + "style": { + "navigationBarTitleText": "" + } + }, + //====================地图====== + { + "path": "pages/business/CRM/map/vistorCheckin", + //签到打卡 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/map/addRearkSignIn", + //签到备注 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/map/checkInView", + //打卡信息(考勤查看) + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/map/checkinStatistics", + //打卡统计 + "style": { + "navigationBarTitleText": "" + } + }, + //===================================活动报告==================== + { + "path": "pages/notice/notice", + "style": { + "navigationBarTitleText": "", + "app-plus": { + "bounce": "none" + // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') + }, + "mp-alipay": { + "allowsBounceVertical": "NO" + } + // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') + } + }, + { + "path": "pages/userinfo/userinfo", + "style": { + "navigationBarTitleText": "" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "718友晟", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8", + "navigationStyle": "custom" + }, + "tabBar": { + "color": "#919191", + "selectedColor": "#ffffff", + "borderStyle": "#ffffff", + "backgroundColor": "#000000", + "fontSize": "12px", + "iconWidth": "24px", + "list": [{ + "pagePath": "pages/home/home", + "iconPath": "static/images/tabs/menu-home.png", + "selectedIconPath": "static/images/tabs/menu-home-on.png", + "text": "首页" + }, + { + "pagePath": "pages/business/business", + "iconPath": "static/images/tabs/menu-business.png", + "selectedIconPath": "static/images/tabs/menu-business-on.png", + "text": "业务中心" + }, + { + "pagePath": "pages/notice/notice", + "iconPath": "static/images/tabs/menu-info.png", + "selectedIconPath": "static/images/tabs/menu-info-on.png", + "text": "消息" + }, + { + "pagePath": "pages/userinfo/userinfo", + "iconPath": "static/images/tabs/menu-me.png", + "selectedIconPath": "static/images/tabs/menu-me-on.png", + "text": "我的" + } + ] + } +} \ No newline at end of file diff --git a/src/pages/business/CRM/customer/changeCustomerOwner.vue b/src/pages/business/CRM/customer/changeCustomerOwner.vue index 1f5d820..5df8146 100644 --- a/src/pages/business/CRM/customer/changeCustomerOwner.vue +++ b/src/pages/business/CRM/customer/changeCustomerOwner.vue @@ -23,55 +23,59 @@ /> - - + - - - - {{ item.cusName }} - - - - 客户人员名称 - {{ item.userName }} - - + + + + + {{ item.cusName }} + + + + 客户人员名称 + {{ item.userName }} + + + + + 性别 + {{ item.sex }} + + + + + 手机号 + {{ item.mobilePhone || item.iphone }} + + + + + 部门 + {{ item.userDept }} + + + + + 业务员认定等级 + {{ item.salesmanThinkLevel }} + + + - - 性别 - {{ item.sex }} - - - - 手机号 - {{ item.mobilePhone || item.iphone }} - - - - - 部门 - {{ item.userDept }} - - - - - 业务员认定等级 - {{ item.salesmanThinkLevel }} - - - - - + @@ -113,7 +117,7 @@ let handleSearch = () => { watch(searchValue, (newValue, oldValue) => { handleSearch() }) -let clearSearchValue = ()=>{ +let clearSearchValue = () => { searchValue.value = ''; } // 查询列表 @@ -151,7 +155,7 @@ const downCallback = async (mescroll) => { list.value = res.list; cssFlag.value = false; // 正确传递 total 参数 - mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size)); + mescroll.endSuccess(res.list.length, res.total >= mescroll.size); uni.hideLoading(); }, 500); @@ -173,7 +177,7 @@ const upCallback = async (mescroll) => { list.value.push(...res.list); } // 正确判断是否还有更多数据 - mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size); + mescroll.endSuccess(res.list.length, res.total >= mescroll.size); uni.hideLoading(); }, 500); } catch (error) { @@ -203,10 +207,8 @@ const getList = (pageIndex, pageSize) => { let handleDetail = (item) => { uni.navigateTo({ url: "/pages/business/CRM/customer/components/customerUserEdit", - events: { - - }, - success(res){ + events: {}, + success(res) { res.eventChannel.emit('editCusData', {param: item, isAdd: false}) } }) @@ -216,8 +218,8 @@ let handleDetail = (item) => { let touchTimerId = null; // 开始触摸 -let handleTouchStart = (item)=>{ - touchTimerId = setTimeout(()=>{ +let handleTouchStart = (item) => { + touchTimerId = setTimeout(() => { // console.log(item, "长按客户人员项") handleChange(item) @@ -226,39 +228,39 @@ let handleTouchStart = (item)=>{ } // 结束触摸 -let handleTouchEnd = ()=>{ - if(touchTimerId !== null){ +let handleTouchEnd = () => { + if (touchTimerId !== null) { clearTimeout(touchTimerId); } } // 变更主归属人 -let handleChange = (item)=>{ +let handleChange = (item) => { uni.showModal({ title: '是否将该客户人员主的归属人变更为自己?', editable: true, placeholderText: '请输入变更理由', - success(res){ - if(res.confirm){ - if(res.content){ + success(res) { + if (res.confirm) { + if (res.content) { submissionOfChangeOfMainOwner({ userId: item.userId, userName: item.userName, reasonForChange: res.content - }).then(res=>{ - if(res.code===200){ + }).then(res => { + if (res.code === 200) { uni.showToast({ title: '操作成功' }) - }else{ + } else { uni.showToast({ title: '操作失败', icon: 'error' }) } }) - }else{ + } else { uni.showToast({ title: '操作失败!变更原因不能为空', icon: 'none' @@ -270,21 +272,21 @@ let handleChange = (item)=>{ } // 复制信息 -let handleCopyInfo=(item)=>{ +let handleCopyInfo = (item) => { const {cusName, userName, sex, iphone, mobilePhone, jobTelphone, userDept, salesmanThinkLevel} = item; -/* item = JSON.stringify({ - '客户名称':item.cusName, - '客户人员名称': item.userName, - '性别': item.sex, - '手机号': item.iphone || item.mobilePhone || item.jobTelphone, - '部门': item.userDept, - '业务员认定等级': item.salesmanThinkLevel} - ); - console.log(item, '复制信息');*/ + /* item = JSON.stringify({ + '客户名称':item.cusName, + '客户人员名称': item.userName, + '性别': item.sex, + '手机号': item.iphone || item.mobilePhone || item.jobTelphone, + '部门': item.userDept, + '业务员认定等级': item.salesmanThinkLevel} + ); + console.log(item, '复制信息');*/ uni.setClipboardData({ data: `客户名称:${cusName} 客户人员名称:${userName} -性别:${iphone||mobilePhone||jobTelphone} +性别:${iphone || mobilePhone || jobTelphone} 部门:${userDept} 业务员认定等级:${salesmanThinkLevel}`, success: function () { @@ -298,7 +300,7 @@ let handleCopyInfo=(item)=>{ } - \ No newline at end of file diff --git a/src/pages/business/CRM/customer/customerAdd.vue b/src/pages/business/CRM/customer/customerAdd.vue index f6f3a7a..4e07bde 100644 --- a/src/pages/business/CRM/customer/customerAdd.vue +++ b/src/pages/business/CRM/customer/customerAdd.vue @@ -179,7 +179,7 @@ @@ -435,6 +435,7 @@ let handleFunctionChange = (e) => { console.log(e.detail.value, '职能索引'); const {name} = functionalRequirementList[e.detail.value]; formData.value.functionalRequirements = name; + formData.value.function = name; getRecommendLevel(); } diff --git a/src/pages/business/CRM/customer/customerAudit.vue b/src/pages/business/CRM/customer/customerAudit.vue index 2fa806a..31f23eb 100644 --- a/src/pages/business/CRM/customer/customerAudit.vue +++ b/src/pages/business/CRM/customer/customerAudit.vue @@ -16,13 +16,13 @@ - + - - + + { // 防抖搜索 console.log(searchValue.value) if (timerId) clearTimeout(timerId); - uni.showLoading() timerId = setTimeout(async () => { - - cssFlag.value = true; - // let res = await getList(1, upOption.value.page.size) await downCallback(mescrollRef.value.mescroll); - - cssFlag.value = false; - uni.hideLoading(); clearTimeout(timerId); timerId = null; }, 500) @@ -138,6 +131,8 @@ const mescrollInit = (mescroll) => { // 下拉刷新 const downCallback = async (mescroll) => { try { + uni.showLoading(); + cssFlag.value = true; setTimeout(async () => { // 重置页码为第一页 const res = await getList(1, mescroll.size || upOption.page.size); @@ -145,6 +140,8 @@ const downCallback = async (mescroll) => { list.value = res.list; // 正确传递 total 参数 mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size)); + uni.hideLoading(); + cssFlag.value = false; }, 500); } catch (error) { console.log(error) @@ -162,6 +159,7 @@ const upCallback = async (mescroll) => { } else { list.value.push(...res.list); } + mescroll.endBySize(res.list.length, res.total); // 正确判断是否还有更多数据 mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size); }, 500); @@ -218,7 +216,6 @@ let handleDetail = (item) => { /* #endif */ } - .scroll-h { /* #ifdef APP-PLUS */ height: calc(100vh - 120px); diff --git a/src/pages/business/CRM/customer/customerUserBelong.vue b/src/pages/business/CRM/customer/customerUserBelong.vue index 179491b..a4a5cbd 100644 --- a/src/pages/business/CRM/customer/customerUserBelong.vue +++ b/src/pages/business/CRM/customer/customerUserBelong.vue @@ -32,8 +32,8 @@ - + {{ item.cusName }} {{ item.nodeCode }} @@ -181,7 +181,8 @@ const upCallback = async (mescroll) => { list.value.push(...res.list); } // 正确判断是否还有更多数据 - mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size); + mescroll.endBySize(res.list.length, res.total) + // mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size); }, 500); } catch (error) { console.log(error) diff --git a/src/pages/business/CRM/customer/selectCustomer.vue b/src/pages/business/CRM/customer/selectCustomer.vue index 88deb74..7126d19 100644 --- a/src/pages/business/CRM/customer/selectCustomer.vue +++ b/src/pages/business/CRM/customer/selectCustomer.vue @@ -33,10 +33,9 @@ + :class="index === selectIndex ? 'checked' : ''" + :checked="index === selectIndex" + :value="index+''"> @@ -118,7 +117,6 @@ let timerId = null; watch(searchValue, (newValue, oldValue) => { // console.log(`新值: ${newValue}, 旧值: ${oldValue}`); if(timerId) clearTimeout(timerId); - cssFlag.value = true; timerId = setTimeout(async ()=>{ handleSearch(); clearTimeout(timerId); @@ -130,7 +128,6 @@ watch(searchValue, (newValue, oldValue) => { const downCallback = async (mescroll) => { try { const res = await getList(1, upOption.value.page.size); - cssFlag.value = false; list.value = res.list; // 正确结束下拉刷新状态 mescroll.endSuccess(res.list.length, res.total >= upOption.value.page.size); @@ -163,9 +160,11 @@ const upCallback = async (mescroll) => { let handleSearch = async () => { // 触发下拉刷新以重新加载数据 if (mescrollRef.value) { + cssFlag.value = true; uni.showLoading() await downCallback(mescrollRef.value.mescroll); uni.hideLoading() + cssFlag.value = false; } } // 获取数据列表 @@ -181,12 +180,10 @@ const getList = async (pageIndex, pageSize) => { // 选中项的索引号 const selectIndex = ref(null); const radioChange = (e) => { - let {value} = e.detail; - let {index} = e.target.dataset; + let {value} = e.detail; // index // console.log(value); - // console.log(e.target.dataset); const eventChannel = instance.getOpenerEventChannel(); - eventChannel.emit('cuSelected', value); + eventChannel.emit('cuSelected', list.value[value]); uni.navigateBack() } diff --git a/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue b/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue index 694a87f..9574355 100644 --- a/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue +++ b/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue @@ -135,55 +135,7 @@ function getCrmCusUserNewChangeOwnerList() { \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable.vue b/src/pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable.vue new file mode 100644 index 0000000..2719ab9 --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable.vue @@ -0,0 +1,262 @@ + + + + + \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/index.vue b/src/pages/business/CRM/paymentCollection/index.vue new file mode 100644 index 0000000..f1490ba --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/index.vue @@ -0,0 +1,254 @@ + + + + + diff --git a/src/pages/business/CRM/paymentCollection/paymentCollectionCheck.vue b/src/pages/business/CRM/paymentCollection/paymentCollectionCheck.vue new file mode 100644 index 0000000..c38266a --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/paymentCollectionCheck.vue @@ -0,0 +1,106 @@ + + + + + \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/paymentDetail.vue b/src/pages/business/CRM/paymentCollection/paymentDetail.vue new file mode 100644 index 0000000..4b46007 --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/paymentDetail.vue @@ -0,0 +1,213 @@ + + + + + \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/personalPaymentCollectionTable.vue b/src/pages/business/CRM/paymentCollection/personalPaymentCollectionTable.vue new file mode 100644 index 0000000..a52c7e5 --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/personalPaymentCollectionTable.vue @@ -0,0 +1,294 @@ + + + + + \ No newline at end of file diff --git a/src/pages/business/CRM/plan/planView.vue b/src/pages/business/CRM/plan/planView.vue index cfa8580..f265deb 100644 --- a/src/pages/business/CRM/plan/planView.vue +++ b/src/pages/business/CRM/plan/planView.vue @@ -366,6 +366,13 @@ let handleDetail = (rowIndex, colIndex) => { width: 690rpx; margin: 20rpx 0 0 0; border-radius: 8px 8px 0 0; + /* #ifdef APP-PLUS */ + min-height: calc(100vh - 160rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx/*.white-bg padding-bottom*/); + /* #endif */ + /* #ifndef APP-PLUS */ + min-height: calc(100vh - 116rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx/*.white-bg padding-bottom*/); + /* #endif */ + //overflow-y: auto; } .white-bg.white-bg-2 { diff --git a/src/static/common.css b/src/static/common.css index c9c2e31..18154c7 100644 --- a/src/static/common.css +++ b/src/static/common.css @@ -87,6 +87,8 @@ page { /* 弹出提示框修改样式 begin */ +/* #ifdef H5 */ + .uni-modal { border-radius: 24rpx !important; width: 70% !important; @@ -136,7 +138,7 @@ page { background-color: #05A3F4 !important; color: #fff !important; } - +/* #endif */ /* 弹出提示框修改样式 end */ /* 搜索框修改样式 begin */ @@ -169,13 +171,51 @@ page { } .custom-search .uni-searchbar__box-icon-clear { - display: none !important; + /* display: none !important; */ + margin-right:10rpx; } -/* .custom-search .uni-searchbar__box-icon-clear .uniui-clear{ +.custom-search .uni-searchbar__box-icon-clear .uniui-clear{ color:#fff !important; font-size: 40rpx !important; -} */ +} + +/* 自定义搜索框 */ +.search-bg{ + background-color: #6FA2F8; + border-radius: 28rpx; + /* width:690rpx; */ + width:630rpx; + height:56rpx; + margin:0 auto 30rpx; + padding:0 30rpx; + display: flex; + color:#fff; + font-size:28rpx; + flex: auto; +} +.search-bg .search-left{ + border-right:1px solid #4687F2; + margin-top:10rpx; + margin-bottom:10rpx; + padding-right:30rpx; + /* width:10%; */ +} +.search-bg .search-right{ + margin-top:10rpx; + padding-left:30rpx; + /* width:60%; */ +} +.search-bg .search-right .uni-input{ + color:#fff; + font-size:28rpx; +} +.search-bg .search-right .uni-input .uni-input-input{ + width: 380rpx; +} +.search-bg .search-right .uni-input .search-color{ + color:#fff !important; +} /* 搜索框修改样式 end */ .head-right {