From c6f49f161e96a47d8ab626d952a4d1da7ea0cc8b Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 23 May 2024 09:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 87 ++- manifest.json | 3 +- package.json | 3 +- pages/hindex/index.vue | 785 +++++++++++++++------------- pages/index/orderinfo.vue | 437 ++++++++-------- unpackage/dist/build/web/index.html | 8 +- 6 files changed, 719 insertions(+), 604 deletions(-) diff --git a/index.html b/index.html index c3ff205..ab648d3 100644 --- a/index.html +++ b/index.html @@ -1,20 +1,69 @@ - - - - - - - - - -
- - - + + + + + + <%= htmlWebpackPlugin.options.title %> + + + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/manifest.json b/manifest.json index c218c3d..fe7f4bc 100644 --- a/manifest.json +++ b/manifest.json @@ -84,7 +84,8 @@ "title" : "发票", "sdkConfigs" : { "maps" : {} - } + }, + "template" : "index.html" }, "mp-alipay" : { "usingComponents" : true diff --git a/package.json b/package.json index 3044083..e83ed7f 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "dependencies": { "dayjs": "^1.11.11", "html2canvas": "^1.4.1", - "uview-ui": "^2.0.36" + "uview-ui": "^2.0.36", + "weixin-js-sdk": "^1.6.5" } } diff --git a/pages/hindex/index.vue b/pages/hindex/index.vue index cfe7e94..499bd33 100644 --- a/pages/hindex/index.vue +++ b/pages/hindex/index.vue @@ -1,12 +1,8 @@ \ No newline at end of file + + .content_bottom { + margin: 100rpx auto; + width: 80%; + height: 84rpx; + background: #288efb; + border-radius: 50rpx 50rpx 50rpx 50rpx; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 36rpx; + color: #ffffff; + line-height: 84rpx; + text-align: center; + } +} + diff --git a/pages/index/orderinfo.vue b/pages/index/orderinfo.vue index 77891f9..8d9c2c9 100644 --- a/pages/index/orderinfo.vue +++ b/pages/index/orderinfo.vue @@ -2,272 +2,259 @@ - {{datalsit.type}} - - - 客户未扫码 - - - 开票中 - - - 开票失败 - - - 开票成功 - - - 已作废 + {{ datalsit.type }} + 客户未扫码 + 开票中 + 开票失败 + 开票成功 + 已作废 - - {{datalsit.string2}} + + {{ datalsit.string2 }} - {{datalsit.user_type == 2 ? '公司名称':'发票抬头'}}: - {{datalsit.user_name}} + {{ datalsit.user_type == 2 ? '公司名称' : '发票抬头' }}: + {{ datalsit.user_name }} - + 公司税号: - {{datalsit.user_duty}} + {{ datalsit.user_duty }} 发票金额: - ¥{{datalsit.price}} + ¥{{ datalsit.price }} - + 发票类型: - {{datalsit.type}} + {{ datalsit.type }} 项目名称: - {{datalsit.article}} + {{ datalsit.article }} 开票时间: - {{datalsit.createtime}} + {{ datalsit.createtime }} - \ No newline at end of file + + .content_boxt_tow { + margin: 32rpx 0; + width: 100%; + background: #ffffff; + border-radius: 18rpx 18rpx 18rpx 18rpx; + padding-bottom: 50rpx; + + .content_boxt_towtext { + padding-top: 32rpx; + text-align: center; + width: 100%; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 28rpx; + color: #999999; + } + + .content_boxt_towtexts { + margin: 50rpx auto 0 auto; + width: 558rpx; + height: 84rpx; + background: #288efb; + border-radius: 50rpx 50rpx 50rpx 50rpx; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 36rpx; + color: #ffffff; + line-height: 84rpx; + text-align: center; + font-style: normal; + } + + .content_boxt_towrelative { + position: relative; + width: 484rpx; + height: 484rpx; + margin: 32rpx auto; + + .content_boxt_towabsolute { + position: absolute; + top: 50%; + left: 50%; + margin-top: -50rpx; + margin-left: -50rpx; + border-radius: 16rpx; + // transform: translate(-50% -50%); + width: 100rpx; + height: 100rpx; + } + } + } +} + diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index b03a765..c37cc05 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,6 @@ -发票
\ No newline at end of file +发票
\ No newline at end of file