From ead124d8a4d69e97805c1e573e451bab179a7d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Thu, 11 Aug 2022 17:29:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=AF=81,=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/detail/index2.js | 24 +++++++++++++++++++++++- pages/order/detail/index2.wxml | 29 ++++++++++++++++++++++------- 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/pages/order/detail/index2.js b/pages/order/detail/index2.js index 2b1cd97..a985308 100644 --- a/pages/order/detail/index2.js +++ b/pages/order/detail/index2.js @@ -18,6 +18,8 @@ Page({ register_img:{},//登记证照片 ins_img:[],//保险照片 other_img:[],//交车合照 + isShowCK:false, + isShowBill:false, }, onLoad: function (options) { for (let key in options) { @@ -693,7 +695,13 @@ Page({ previewImage: function (e) { if(e.currentTarget.dataset.type=='bill_img'){ let urls = [this.data.info.bill_img] - urls = urls.concat(this.data.imgInfo.imgs.bill_ck_img), + wx.previewImage({ + current:e.currentTarget.dataset.img, + urls, + }) + } + else if(e.currentTarget.dataset.type=='bill_ck_img'){ + let urls = this.data.imgInfo.imgs.bill_ck_img wx.previewImage({ current:e.currentTarget.dataset.img, urls, @@ -802,6 +810,20 @@ Page({ }) }, + //显示隐藏合格证 + optShowCK(){ + this.setData({ + isShowCK:!this.data.isShowCK, + }) + }, + + //显示隐藏合格证 + optShowBill(){ + this.setData({ + isShowBill:!this.data.isShowBill, + }) + }, + //删除订单 putAppCusorderV2Status(){ let that = this diff --git a/pages/order/detail/index2.wxml b/pages/order/detail/index2.wxml index 7aa5f82..da133e6 100644 --- a/pages/order/detail/index2.wxml +++ b/pages/order/detail/index2.wxml @@ -114,13 +114,28 @@ 已付意向金{{info.inten_money}} - - - 开票信息 - - - - + + + + + 合格证 + + + + + + + 发票 + + + +