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 }}元
-									
-								
-							
-						
-					
-				
-			
+			
+			
+				
+				
+					战斗世界 (ID: 50523541)
+					世界达人,小说控
+					手机号:19898474531
+				
+				
+					
+				
+			
 			
-			
-				
-					
-					
-						{{ 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 @@
 
 	
-		
 		
 		
-		
-			章节编辑器
+		
+			
+			
+				
+			
+			
+			
+			
+				
+					
+				
+				
+					2025年2月平台福利活动截稿作品公示
+				
+				
+					
+				
+			
+			
+				
+			
+			
+				
+				
+					
+						
+						{{item.title}}
+					
+				
+			
 		
+
+	
+		
+				
+				
+					
+						
+						
+							{{novelTitles[index]}}
+							{{novelDescs[index]}}
+						
+					
+				
+			
+			
 		
 		
 		
@@ -30,7 +77,7 @@
 		data() {
 			return {
 				area: '长沙',
-				text : '长沙市刘师傅在服务过程中客户投诉“服务过程中有不文明的行为”.....',
+				text : '长沙市刘师傅在服务过程中客户投诉"服务过程中有不文明的行为".....',
 				queryParams: {
 					pageNo: 1,
 					pageSize: 10,
@@ -48,6 +95,45 @@
 					},
 				],
 				productList: [],
+				// 精品推荐
+				novelCovers: [
+					'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain',
+					'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain',
+				    'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain',
+			        'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain',
+					'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+				],
+				// 小说标题数据
+				novelTitles: [
+					'我是半妖',
+					'兽王进化',
+					'魔法少女纯爷们',
+					'我是一条小青龙',
+					'女帝归来'
+				],
+				// 小说描述数据
+				novelDescs: [
+					'都市玄幻小说,主角获得半妖化能力,通过吸收妖气不断变强...',
+					'一场意外让主角获得兽王血脉,开始了进化之路...',
+					'一个普通男孩意外获得魔法少女的力量,开始了奇妙冒险...',
+					'重生为一条小青龙,主角在修仙世界中成长的故事...',
+					'曾经的女帝重生归来,开始了复仇之路...'
+				],
+				// 最近更新
+				recommendList: [
+					{
+						title: '重生后,我给妹妹假装动漫女主角',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+					},
+					{
+						title: '我在亮剑提前帮助',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+					},
+					{
+						title: '斗罗:开局魂师测试99级',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+					}
+				]
 			}
 		},
 		computed : {
@@ -98,215 +184,241 @@
 
 
 
diff --git a/pages/index/order.vue b/pages/index/order.vue
index 24bdbb6..110fef4 100644
--- a/pages/index/order.vue
+++ b/pages/index/order.vue
@@ -1,82 +1,80 @@
 
 	
 		
-		
-		
-		
+		
 		
-		
-			
-	
-				
-					
-						{{item.projectId_dictText}}
-						{{item.type_dictText}}
-					
-					
-						 {{item.state_dictText}}
-					
+		
+			
+			
+				
+				
+					
+					我是半妖
 				
-	
-				
-	
-					
-						
-					
-	
-					
-						
-							客户姓名:{{item.name}}
-						
-						
-							产品规格:{{item.unit}}
-						
-						
-							租赁地址:{{item.address}}
-						
-						
-						
-					
-	
+				
+				
+				
+					
+					兽王进化:从被小萝莉召唤开始
 				
-	
-				
-					
-						总价格:{{item.money}}元
-					
-					
-						查看物流
-					
-					
+				
+				
+				
+					
+					魔法少女纯爷们
+				
+			
+			
+			
+			
+				
+				
+					
+					我是一条小青龙
+				
+				
+				
+				
+					
+					女帝:别闹,朕怀孕了!
+				
+				
+				
+				
+					
+					中国式应酬——应酬是门技术活
+				
+			
+			
+			
+			
+				
+				
+					
+					苏世民:我的经验与教训
+				
+				
+				
+				
+					
+					认知觉醒:开启自我改变的原动力
+				
+				
+				
+				
+					
+					纳瓦尔宝典
 				
-	
 			
 		
 		
-		
+		
 	
 
 
@@ -92,170 +90,137 @@
 		},
 		data() {
 			return {
-				tabs: [{
-						name: '全部'
+				novels: [
+					{
+						id: '1',
+						title: '我是半妖',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+					},
+					{
+						id: '2',
+						title: '兽王进化:从被小萝莉召唤开始',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
 					},
 					{
-						name: '租赁押金'
+						id: '3',
+						title: '魔法少女纯爷们',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
 					},
 					{
-						name: '水洗租赁'
+						id: '4',
+						title: '我是一条小青龙',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
 					},
 					{
-						name: '破损换货'
+						id: '5',
+						title: '女帝:别闹,朕怀孕了!',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
 					},
 					{
-						name: '退货退款'
+						id: '6',
+						title: '中国式应酬——应酬是门技术活',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+					},
+					{
+						id: '7',
+						title: '苏世民:我的经验与教训',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+					},
+					{
+						id: '8',
+						title: '认知觉醒:开启自我改变的原动力',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
+					},
+					{
+						id: '9',
+						title: '纳瓦尔宝典',
+						cover: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain'
 					}
-				],
-				queryParams: {
-					pageNo: 1,
-					pageSize: 10
-				},
-				// orderList: [
-				// 	{
-				// 		money : 99.99,
-				// 		address : '广东省广州市越秀区城南故事C3栋2802',
-				// 		name : '李**',
-				// 		phone : '150*****091',
-				// 		unit : '120*40*75【桌子尺寸】',
-				// 		image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
-				// 		state_dictText : '已完成',
-				// 	}
-				// ], //订单列表数据
-				orderList : {
-					records : [],
-					total : 0,
-				},
-				state : -1,
+				]
 			}
 		},
 		onShow() {
-			this.orderPage()
-		},
-		//滚动到屏幕底部
-		onReachBottom() {
-			if(this.queryParams.pageSize < this.orderList.total){
-				this.queryParams.pageSize += 10
-				this.orderPage()
-			}
+			// 页面显示时的逻辑
 		},
 		methods: {
-			orderPage(){
-				let queryParams = {
-					...this.queryParams,
-				}
-				if(this.state != -1){
-					queryParams.state = this.state
-				}
-				this.$api('orderPage', queryParams, res => {
-					if(res.code == 200){
-						this.orderList = res.result
-					}
-				})
-			},
-			//点击tab栏
-			clickTabs(index) {
-				if (index == 0) {
-					this.state = -1;
-				} else {
-					this.state = index - 1;
-				}
-				this.queryParams.pageSize = 10
-				this.orderPage()
-			},
-			//跳转订单详情页面
-			toOrderDetail(id) {
+			// 跳转到小说详情页
+			toNovelDetail(id) {
 				uni.navigateTo({
-					url: '/pages_order/order/orderDetail?id=' + id
+					url: '/pages_order/novel/novelDetail?id=' + id
 				})
 			},
-			getOrderList(){
-				
-			},
 		}
 	}