From b662c24449e5c5c20cb551dcc413a0e64d282718 Mon Sep 17 00:00:00 2001 From: Bobi <2166145077@qq.com> Date: Wed, 23 Apr 2025 18:04:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=95=E9=83=A8=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/base/tabbar.vue | 22 +- pages/index/cart.vue | 380 ++++++++++++++++----------------- pages/index/category.vue | 389 ++++++++++++++++++++++------------ pages/index/index.vue | 476 ++++++++++++++++++++++++++---------------- pages/index/order.vue | 373 +++++++++++++++------------------ static/image/novel/cover1.jpg | 0 static/image/novel/cover2.jpg | 0 static/image/novel/cover3.jpg | 0 static/image/novel/cover4.jpg | 0 static/image/novel/cover5.jpg | 0 10 files changed, 907 insertions(+), 733 deletions(-) create mode 100644 static/image/novel/cover1.jpg create mode 100644 static/image/novel/cover2.jpg create mode 100644 static/image/novel/cover3.jpg create mode 100644 static/image/novel/cover4.jpg create mode 100644 static/image/novel/cover5.jpg diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index e86c4b1..13bf587 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -32,37 +32,37 @@ "selectedIconPath": "/static/image/tabbar/home-a.png", "iconPath": "/static/image/tabbar/home.png", "pagePath": "/pages/index/index", - "title": "首页", + "title": "精品推荐", key: 'home', }, { "selectedIconPath": "/static/image/tabbar/category-a.png", "iconPath": "/static/image/tabbar/category.png", "pagePath": "/pages/index/category", - "title": "商品列表", + "title": "书城", key: 'category', }, { "selectedIconPath": "/static/image/tabbar/order-a.png", "iconPath": "/static/image/tabbar/order.png", "pagePath": "/pages/index/order", - "title": "订单", + "title": "书架", key: 'order', }, { "selectedIconPath": "/static/image/tabbar/cart-a.png", "iconPath": "/static/image/tabbar/cart.png", "pagePath": "/pages/index/cart", - "title": "购物车", + "title": "我的", key: 'cart', }, - { - "selectedIconPath": "/static/image/tabbar/center-a.png", - "iconPath": "/static/image/tabbar/center.png", - "pagePath": "/pages/index/center", - "title": "我的", - key: 'center', - } + // { + // "selectedIconPath": "/static/image/tabbar/center-a.png", + // "iconPath": "/static/image/tabbar/center.png", + // "pagePath": "/pages/index/center", + // "title": "我的", + // key: 'center', + // } ] }; }, diff --git a/pages/index/cart.vue b/pages/index/cart.vue index 381c5b0..06f0336 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -3,76 +3,95 @@ - - - - - - - - - - - - - - - - - {{ item.title }} - - - - - - - 规格:{{ item.unit }} - - - - ¥{{ item.price }}元 - - - - - - - + + - - - - - {{ checkboxValue.length }} + + + 图片 + + + + + 钱包提现 + + + + + + + 礼物盒 + + - - - 合计 - - ¥{{ totalPrice }} + + + + + 日常 + + + + + 我的评论 + 294 + - - 共{{ checkboxValue.length }}件,已享受更低优惠 + + + + 任务中心 + + 5 + - - 去结算 + + + + + 设置 + + + + + 申请成为作者 + + + + + + + 联系客服 + + + + + + + 修改信息 + + + + + + + 退出登录 + + + @@ -89,52 +108,30 @@ }, data() { return { - value : 0, - checkboxValue : [], - options: [ - { - text: '删除', - style: { - backgroundColor: '#FA5A0A' - } - }, - ], - list : [ - { - id : 1, - title : '桌布租赁', - num : 1, - price : 299, - unit : '120*40*75【桌子尺寸】', - }, - { - id : 2, - title : '桌布租赁', - num : 1, - price : 299, - unit : '120*40*75【桌子尺寸】', - }, - ], + } }, - computed: { - totalPrice(){ - if (!this.checkboxValue.length) { - return 0 - } - let price = 0 - this.list.forEach(n => { - if(this.checkboxValue.includes(n.id)){ - price += n.price * n.num - } - }) - return price - }, - }, methods: { - valChange(){ - + navigateToPage(url) { + uni.navigateTo({ + url + }) }, + logout() { + // 退出登录逻辑 + uni.showModal({ + title: '提示', + content: '确定要退出登录吗?', + success: (res) => { + if (res.confirm) { + // 执行退出登录 + uni.showToast({ + title: '已退出登录' + }) + } + } + }) + } } } @@ -142,118 +139,103 @@ \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index d8cd9b3..cc4b6ed 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,12 +1,59 @@