diff --git a/commons/js/config.js b/commons/js/config.js index 783a387..3b99ad4 100644 --- a/commons/js/config.js +++ b/commons/js/config.js @@ -27,7 +27,6 @@ api = { appUser: "app/user", //用户信息 appSms: "app/sms", //获取验证码 appUserTel: "app/user/tel", //获取用户手机号 - appSeriesCars: "app/series/cars", //获取车型库 appSeriesAttrs: "app/series/attrs", //获取车型属性 appCustomersTabs: "app/customers/tabs", //获取tab appCustomers: "app/customers", //获取客户列表 /新建客户 /修改状态和到店次数、试驾次数 /获取客户详情 @@ -52,6 +51,7 @@ api = { appSeriesBrands: "app/series/brands", //获取车型品牌 appSeries: "app/series", //获取车系车型 + appSeriesCars: "app/series/cars", //获取车型库 appUserTel: "app/user/tel", //编辑拨打电话 @@ -144,7 +144,7 @@ api = { appCityOncard: 'app/city/oncard', //获取上牌城市 appFinanceNums: 'app/finance/nums', //获取金融分期期数 - appCusorderV2Customer: 'app/cusorderV2/customer', //获取客户订单 + appCusorderCustomer: 'app/cusorder/customer', //获取客户订单 appCustomersVisit_tabs: 'app/customers/visit_tabs', //回访待跟进tab diff --git a/commons/js/utils/apiQuery.js b/commons/js/utils/apiQuery.js index b128031..c6c0d2d 100644 --- a/commons/js/utils/apiQuery.js +++ b/commons/js/utils/apiQuery.js @@ -840,9 +840,9 @@ apiQuery.getAppFinanceNums = function (params) { } //获取客户订单 -apiQuery.getAppCusorderV2Customer = function (params) { +apiQuery.getAppCusorderCustomer = function (params) { return new Promise(function (resolve, reject) { - HttpRequest(false, Config.api.appCusorderV2Customer, 2, params, "GET", resolve, reject) + HttpRequest(false, Config.api.appCusorderCustomer, 2, params, "GET", resolve, reject) }) } diff --git a/pages/customer/detail/index.js b/pages/customer/detail/index.js index 5051b0d..3dc3e13 100644 --- a/pages/customer/detail/index.js +++ b/pages/customer/detail/index.js @@ -218,7 +218,7 @@ Page({ } if(res.data.status==2){ - this.getAppCusorderV2Customer() + this.getAppCusorderCustomer() } @@ -256,10 +256,10 @@ Page({ }, //获取客户订单 - getAppCusorderV2Customer(){ + getAppCusorderCustomer(){ let params = {}; params['customer_id'] = this.data.id; - _.apiQuery.getAppCusorderV2Customer(params).then(res=>{ + _.apiQuery.getAppCusorderCustomer(params).then(res=>{ this.setData({ order:res.data.list, }) diff --git a/pages/mine/index.js b/pages/mine/index.js index 190b5dd..b73ece4 100644 --- a/pages/mine/index.js +++ b/pages/mine/index.js @@ -43,16 +43,6 @@ Page({ title:'签到码', url:'/pages/signup/code', }, - { - icon:'https://qs.haodian.cn/wechat_app/lichebao/mine/icon-sucai2.png', - title:'status', - url:'/pages/signup/status', - }, - { - icon:'https://qs.haodian.cn/wechat_app/lichebao/mine/icon-sucai2.png', - title:'index', - url:'/pages/signup/index', - }, { icon:'https://qs.haodian.cn/wechat_app/lichebao/mine/icon-sezhi2.png', title:'账户设置', diff --git a/pages/order/detail/index2.js b/pages/order/detail/index2.js index 2f65e48..ee88cbd 100644 --- a/pages/order/detail/index2.js +++ b/pages/order/detail/index2.js @@ -70,7 +70,7 @@ Page({ getAppCusorderV2(){ let params = {}; params['id'] = this.data.id; - _.apiQuery.getAppCusorderV2(params).then(res=>{ + _.apiQuery.getAppCusorderDetails(params).then(res=>{ this.setData({ info:res.data, }) @@ -769,22 +769,6 @@ Page({ urls:[this.data.imgInfo.imgs.accident_img.img], }) } - // else if(e.currentTarget.dataset.type=='ins_img'){ - // let img = [] - // if(this.data.imgInfo.imgs.insurance_img.img){ - // img.push(this.data.imgInfo.imgs.insurance_img.img) - // } - // if(this.data.imgInfo.imgs.business_img.img){ - // img.push(this.data.imgInfo.imgs.business_img.img) - // } - // this.data.imgInfo.imgs.ins_img.forEach(item => { - // img.push(item.img) - // }) - // wx.previewImage({ - // current:this.data.imgInfo.imgs.insurance_img.img, - // urls:img, - // }) - // } else if(e.currentTarget.dataset.type=='other_img'){ let img = [] this.data.imgInfo.imgs.other_img.forEach(item => { @@ -845,93 +829,6 @@ Page({ } }, - //随车资料 - changeMaterial(e) { - let carInfoList = this.data.carInfoList - let values = e.detail.value - carInfoList.forEach(item1 => { - item1.checked = false - values.forEach(item2 => { - if(item1.title == item2){ - item1.checked = true - } - }) - }) - - this.setData({ - ckcarInfo:e.detail.value, - carInfoList, - }) - }, - - //随车工具 - changeTool(e) { - let carToolList = this.data.carToolList - let values = e.detail.value - carToolList.forEach(item1 => { - item1.checked = false - values.forEach(item2 => { - if(item1.title == item2){ - item1.checked = true - } - }) - }) - - this.setData({ - ckcarTool:e.detail.value, - carToolList, - }) - }, - - //显示隐藏合格证 - optShowCK(){ - this.setData({ - isShowCK:!this.data.isShowCK, - }) - }, - - //显示隐藏合格证 - optShowBill(){ - this.setData({ - isShowBill:!this.data.isShowBill, - }) - }, - - //删除订单 - putAppCusorderV2Status(){ - let that = this - wx.showModal({ - title: '确定删除订单?', - content: '', - confirmColor: "#36afa2", - success(resW) { - if (resW.confirm) { - let params = {}; - params['id'] = that.data.id; - _.apiQuery.putAppCusorderV2Status(params).then(res => { - //刷新列表页 - let pages = getCurrentPages(); - pages.forEach(item => { - if(item.route == 'pages/order/index2'){ - item.onPullDownRefresh() - } - }) - wx.showToast({ - title: '删除成功', - icon: 'success', - duration: 2000 - }) - setTimeout(function () { - wx.navigateBack({ - delta: 1 - }) - }, 500) - }) - } - } - }) - }, - //20240526 确认弹窗 bindShowConfirm(){ this.setData({ diff --git a/pages/order/detail/index2.wxml b/pages/order/detail/index2.wxml index fccedd5..912097b 100644 --- a/pages/order/detail/index2.wxml +++ b/pages/order/detail/index2.wxml @@ -10,56 +10,19 @@ - - 客户姓名 - {{info.name}} - 客户手机号 {{info.mobile}} + + {{info.main_type==0?"客户姓名":"企业名称"}} + {{info.name}} + - 客户身份证 + {{info.main_type==0?"客户身份证":"企业信用代码"}} {{info.cardid}} - - {{info.main_type==0?'车主信息':'企业信息'}} - - - - - - - 车主姓名 - {{info.owner_name}} - - - 车主手机号 - {{info.owner_mobile}} - - - 车主身份证 - {{info.owner_cardid}} - - - 车主地址 - {{info.address}} - - - - - 企业名称 - {{info.company}} - - - 企业信用代号 - {{info.credit}} - - - - 上牌城市 - {{c_city_name}} - + 订单信息 @@ -98,7 +61,7 @@ {{key}} - {{value}} + {{value}} @@ -111,10 +74,6 @@ - - 特别约定 - {{info.sa}} - 已付意向金{{info.inten_money}} @@ -128,7 +87,9 @@ @@ -136,9 +97,9 @@ 发票 - {{info.bill_img?'更新':'上传'}} - - + {{info.bill_img?'更新':'上传'}} + + @@ -367,7 +328,7 @@ 身份证 - + @@ -392,7 +353,7 @@ 行驶证 - + @@ -439,7 +400,7 @@ 添加企微 - + @@ -472,86 +433,18 @@ - - - - - - - 随车资料 - - - - - - - - - - 随车工具 - - - - - - - - - - 补充说明 -