From ed0a1c57d6cb0be6e9cc4aaf2ab83f7a167b88e3 Mon Sep 17 00:00:00 2001 From: RockYang Date: Sat, 11 Nov 2023 22:11:04 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20=E4=BC=98=E5=8C=96=20ItemList=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/update-v3.1.8.sql | 4 +- docker/dockerfile-vue | 4 +- web/src/components/ItemList.vue | 2 +- web/src/views/Member.vue | 136 +++++++++++++++++--------------- 4 files changed, 77 insertions(+), 69 deletions(-) diff --git a/database/update-v3.1.8.sql b/database/update-v3.1.8.sql index 57fe685b..1d121f1f 100644 --- a/database/update-v3.1.8.sql +++ b/database/update-v3.1.8.sql @@ -43,4 +43,6 @@ INSERT INTO `chatgpt_products` (`id`, `name`, `price`, `discount`, `days`, `call (5, '100次点卡', '10.03', '10.00', 0, 100, 1, 0, 0, '2023-08-28 10:55:08', '2023-08-31 17:34:43'); ALTER TABLE `chatgpt_products` ADD PRIMARY KEY (`id`); -ALTER TABLE `chatgpt_products` MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; \ No newline at end of file +ALTER TABLE `chatgpt_products` MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; + +ALTER TABLE `chatgpt_orders` ADD `pay_way` VARCHAR(20) DEFAULT '0' NOT NULL COMMENT '支付方式' AFTER `pay_time`; \ No newline at end of file diff --git a/docker/dockerfile-vue b/docker/dockerfile-vue index 217a327a..086c7331 100644 --- a/docker/dockerfile-vue +++ b/docker/dockerfile-vue @@ -1,5 +1,5 @@ # 前端 Vue 项目构建 -FROM nginx:1.20 +FROM nginx:1.20.2 MAINTAINER yangjian @@ -8,4 +8,4 @@ COPY ./web/dist /var/www/app/dist EXPOSE 80 EXPOSE 443 -EXPOSE 8080 \ No newline at end of file +EXPOSE 8080 diff --git a/web/src/components/ItemList.vue b/web/src/components/ItemList.vue index c6b2ab85..ef9d9ca6 100644 --- a/web/src/components/ItemList.vue +++ b/web/src/components/ItemList.vue @@ -47,7 +47,7 @@ onMounted(() => { const computeSize = () => { const w = container.value.offsetWidth - 8 // 减去滚动条的宽度 let cols = Math.floor(w / props.width) - itemWidth.value = Math.ceil(w / cols) - 1 + itemWidth.value = Math.ceil(w / cols) } window.onresize = () => { diff --git a/web/src/views/Member.vue b/web/src/views/Member.vue index 8a121a92..d0b4be23 100644 --- a/web/src/views/Member.vue +++ b/web/src/views/Member.vue @@ -4,71 +4,79 @@ 会员充值中心
- + -
-
- - 说明: 成为本站会员后每月有500次对话额度,50次 AI 绘画额度,限制下月1号解除,若在期间超过次数后可单独购买点卡。 - 当月充值的点卡有效期可以延期到下个月底。 - -
- - - - -

消费账单

+ + + + +

消费账单

+ +
+ +
+
+ + -
- -
-
@@ -203,6 +211,7 @@ const orderPay = (row) => { curPayProduct.value = row } loading.value = true + text.value = "" httpPost("/api/payment/alipay/qrcode", {product_id: curPayProduct.value.id, user_id: user.value.id}).then(res => { showPayDialog.value = true qrcode.value = res.data['image'] @@ -336,15 +345,12 @@ const logout = function () { .product-box { - width 100% - padding-left 20px - .info { .el-alert__description { font-size 14px !important margin 0 } - padding 10px 20px + padding 10px 20px 20px 0 } .list-box { @@ -421,11 +427,11 @@ const logout = function () { } .headline { - padding 0 20px + padding 0 20px 20px 0 } .user-order { - padding 0 20px 20px 20px + padding 0 20px 20px 0 } } }