From 1ea2b60e04ae4e0ec5fc3c014715bca8f2760bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?= =?UTF-8?q?=E7=A8=80?= <2675540038@qq.com> Date: Wed, 10 Jul 2024 18:13:57 +0800 Subject: [PATCH] 123 --- App.vue | 4 +- pages.json | 5 + pages/index/directory.vue | 272 +++--- pages/index/home.vue | 16 +- pages/index/index.vue | 12 +- pages/index/pizz.vue | 115 +-- pages/index/pizz_info.vue | 4 +- pages/index/service.vue | 5 +- pages/packageA/user/my_invoice.vue | 183 ++-- pages/packageB/event/event_info.vue | 133 ++- pages/packageB/news/new_list.vue | 166 ++++ tuniao-ui/components/tn-popup/tn-popup.vue | 931 ++++++++++----------- 12 files changed, 1009 insertions(+), 837 deletions(-) create mode 100644 pages/packageB/news/new_list.vue diff --git a/App.vue b/App.vue index ce76edb..1ec3616 100644 --- a/App.vue +++ b/App.vue @@ -144,13 +144,13 @@ // 匹配并更新已有 style 属性的 img 标签 html = html.replace(/(]*\bstyle\s*=\s*['"])([^'"]*)(['"][^>]*>)/g, function(match, p1, p2, p3) { - return p1 + ';width: 100%;margin:0 auto;' + p3; + return p1 + ';width: 100%;border-radius: 10px;margin:0 auto;' + p3; }); // 匹配并添加 style 属性到没有 style 属性的 img 标签 html = html.replace(/(]*\bstyle\s*=)[^>]*>)/g, function(match, p1) { - return p1.replace(/\/?>$/, ' style="width: 100%;margin:0 auto;" />'); + return p1.replace(/\/?>$/, ' style="width: 100%;border-radius: 10px;margin:0 auto;" />'); }); return html; diff --git a/pages.json b/pages.json index 1daf720..385609c 100644 --- a/pages.json +++ b/pages.json @@ -216,6 +216,11 @@ "style": { "navigationBarTitleText": "河南省青年企业家协会" } + }, { + "path": "news/new_list", + "style": { + "navigationBarTitleText": "河南省青年企业家协会" + } }] }], "globalStyle": { diff --git a/pages/index/directory.vue b/pages/index/directory.vue index b05fd15..6aa62a4 100644 --- a/pages/index/directory.vue +++ b/pages/index/directory.vue @@ -1,109 +1,114 @@ diff --git a/pages/index/pizz_info.vue b/pages/index/pizz_info.vue index 5b61d6b..19d5146 100644 --- a/pages/index/pizz_info.vue +++ b/pages/index/pizz_info.vue @@ -182,7 +182,7 @@ inactiveIcon: '/static/02.png' }, { - title: '发现', + title: '青企圈', activeIcon: '/static/03_3.png', inactiveIcon: '/static/03.png' }, @@ -374,4 +374,4 @@ + \ No newline at end of file diff --git a/pages/index/service.vue b/pages/index/service.vue index 33b2980..a189a1d 100644 --- a/pages/index/service.vue +++ b/pages/index/service.vue @@ -38,8 +38,7 @@ - + @@ -94,7 +93,7 @@ inactiveIcon: '/static/02.png' }, { - title: '发现', + title: '青企圈', activeIcon: '/static/03_3.png', inactiveIcon: '/static/03.png' }, diff --git a/pages/packageA/user/my_invoice.vue b/pages/packageA/user/my_invoice.vue index 1987ff9..fd19a8e 100644 --- a/pages/packageA/user/my_invoice.vue +++ b/pages/packageA/user/my_invoice.vue @@ -65,54 +65,30 @@ - - - {{header_id_name}} + + + 请选择开票信息 + + + 申请人:{{header_id_name.name}} + 公司名称:{{header_id_name.unit}} + 纳税人识别号:{{header_id_name.taxpayer_identification_number}} + 单位地址:{{header_id_name.unit_address}} + 单位电话:{{header_id_name.telephone}} + 银行基本户账号:{{header_id_name.bank_basic_account_number}} + 开户行:{{header_id_name.bank}} + + - 添加开票信息 + - + - - 添加开票信息 - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - 提交 - - - + 申请发票 @@ -211,6 +187,81 @@ + + + + + + + + + + + + + + + 添加开票信息 + + + + + + 申请人:{{item.name}} + 公司名称:{{item.unit}} + 纳税人识别号:{{item.taxpayer_identification_number}} + 单位地址:{{item.unit_address}} + 单位电话:{{item.telephone}} + 银行基本户账号:{{item.bank_basic_account_number}} + 开户行:{{item.bank}} + + + + + + + 确定 + + + 添加开票信息 + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 提交 + + + + @@ -229,6 +280,7 @@ apiImgUrl: this.$store.state.imgUrl, addMod: false, infoMod: false, + tt_add_show_add: false, addForm: { name: '', taxpayer_identification_number: '', @@ -250,8 +302,8 @@ id: 2 } ], - header_id: 0, - header_id_name: '请选择开票信息', + header_id: -1, + header_id_name: '', invoice_type_name: '普票', invoice_type: 1, tt_add_show: false, @@ -276,6 +328,11 @@ this.getList(); }, methods: { + radioGroupChange(d) { + const item = this.tt_list.find(item => item.id == d); + console.log(item); + this.header_id_name = item; + }, openImg() { uni.previewImage({ current: 0, @@ -304,16 +361,17 @@ this.invoice_type = this.actionSheetList[index].id; }, tt_show_do() { - if (this.tt_list.length == 0) { - uni.showToast({ - title: '请先添加开票信息', - icon: 'none', - duration: 2000 - }); - this.tt_add_show = true; - } else { - this.tt_show = true; - } + this.tt_add_show = true; + // if (this.tt_list.length == 0) { + // uni.showToast({ + // title: '请先添加开票信息', + // icon: 'none', + // duration: 2000 + // }); + // this.tt_add_show = true; + // } else { + // this.tt_show = true; + // } }, kp_add_do() { @@ -353,6 +411,9 @@ this.invoice_type_name = '普票'; this.invoice_type = 1; this.money = ''; + this.allList = []; + this.page = 1; + this.getList(); } else { uni.showModal({ title: '提示', @@ -400,12 +461,12 @@ if (res.data == null) { this.tt_list = []; } else { - var key = res.data; - const transformedSelectList = key.map(item => ({ - value: item.id, - label: item.unit - })); - this.tt_list = transformedSelectList; + // var key = res.data; + // const transformedSelectList = key.map(item => ({ + // value: item.id, + // label: item.unit + // })); + this.tt_list = res.data; } }) .catch(error => { @@ -424,7 +485,7 @@ .then(res => { console.log(res); this.allList.push(...res.data.data); - this.count = res.data.total; + this.count = res.data.count; }) .catch(error => { uni.showToast({ diff --git a/pages/packageB/event/event_info.vue b/pages/packageB/event/event_info.vue index e83ac31..286db76 100644 --- a/pages/packageB/event/event_info.vue +++ b/pages/packageB/event/event_info.vue @@ -1,22 +1,75 @@