diff --git a/api/api.js b/api/api.js
index b293594..8ce5cd6 100644
--- a/api/api.js
+++ b/api/api.js
@@ -5,7 +5,8 @@ import utils from '../utils/utils.js'
let limit = {}
let debounce = {}
-const models = ['login', 'index', 'bookshelf']
+const models = ['login', 'index', 'bookshelf', 'my_book', 'comment', 'task'
+, 'order', 'writer']
const config = {
// 示例
@@ -52,8 +53,13 @@ export function api(key, data, callback, loadingTitle) {
//必须登录
if (req.auth) {
if (!uni.getStorageSync('token')) {
+ // utils.toLogin()
+ // console.error('需要登录', req.url)
+
+ // store.commit('logout', '登录过期了,你可以停留在此页面或去重新登录')
+ console.error('登录过期');
utils.toLogin()
- console.error('需要登录', req.url)
+
return Promise.reject()
}
}
diff --git a/api/model/bookshelf.js b/api/model/bookshelf.js
index 5c5615b..723240f 100644
--- a/api/model/bookshelf.js
+++ b/api/model/bookshelf.js
@@ -1,44 +1,29 @@
// 书架相关接口
const api = {
- // 批量移除我阅读过的数据根据书籍标识
+ // 批量移除我书架过的数据根据书籍标识
batchRemoveReadBook: {
url: '/all_book/batchRemoveReadBook',
method: 'GET',
auth: true,
},
- // 获取我的作品带分页
- getMyBookPage: {
- url: '/all_book/getMyBookPage',
- method: 'GET',
- auth: true,
- },
- // 获取我阅读过的书籍列表带分页
+ // 获取我书架过的书籍列表带分页
getReadBookPage: {
url: '/all_book/getReadBookPage',
method: 'GET',
auth: true,
},
- // 移除我阅读过的书籍根据书籍标识
+ // 移除我书架过的书籍根据书籍标识
removeReadBook: {
url: '/all_book/removeReadBook',
method: 'GET',
auth: true,
},
- // 添加作品或者修改作品
- saveOrUpdateBook: {
- url: '/all_book/saveOrUpdateBook',
- method: 'POST',
- auth: true,
- limit: 800,
- showLoading: true,
- },
- // 增加或修改作品章节
- saveOrUpdateCatalog: {
- url: '/all_book/saveOrUpdateCatalog',
+ // 增加书架记录
+ addReadBook: {
+ url: '/all_book/addReadBook',
method: 'POST',
auth: true,
- limit: 800,
},
}
diff --git a/api/model/comment.js b/api/model/comment.js
new file mode 100644
index 0000000..75e7b05
--- /dev/null
+++ b/api/model/comment.js
@@ -0,0 +1,46 @@
+
+
+ const api = {
+ // 根据书本标识获取书本评论列表
+ getBookCommentList: {
+ url: '/my_comment/getCommentList',
+ method: 'GET',
+ },
+ // 删除评论信息
+ deleteComment: {
+ url: '/my_comment/deleteComment',
+ method: 'GET',
+ },
+ // 获取我的评论列表
+ getMyCommentList: {
+ url: '/my_comment/getMyCommentList',
+ method: 'GET',
+ },
+ // 获取我的评论数
+ getMyCommentNum: {
+ url: '/my_comment/getMyCommentNum',
+ method: 'GET',
+ },
+ // 回复评论信息
+ replyComment: {
+ url: '/my_comment/replyComment',
+ method: 'POST',
+ },
+ // 保存评论信息
+ saveComment: {
+ url: '/my_comment/saveComment',
+ method: 'POST',
+ },
+ // 更新评论已读状态
+ updateCommentRead: {
+ url: '/my_comment/updateCommentRead',
+ method: 'POST',
+ },
+ // 获取评论详情
+ getCommentDetail: {
+ url: '/my_comment/getCommentDetail',
+ method: 'POST',
+ },
+ }
+
+ export default api
\ No newline at end of file
diff --git a/api/model/index.js b/api/model/index.js
index 3df5fb7..d7d9ea1 100644
--- a/api/model/index.js
+++ b/api/model/index.js
@@ -38,11 +38,6 @@ const api = {
url: '/all_index/getBookCatalogList',
method: 'GET',
},
- // 根据书本标识获取书本评论列表
- getBookCommentList: {
- url: '/all_index/getBookCommentList',
- method: 'GET',
- },
// 根据书本标识获取书本详细信息
getBookDetail: {
url: '/all_index/getBookDetail',
diff --git a/api/model/my_book.js b/api/model/my_book.js
new file mode 100644
index 0000000..d46fae7
--- /dev/null
+++ b/api/model/my_book.js
@@ -0,0 +1,33 @@
+// 书架相关接口
+
+const api = {
+ // 获取我的作品带分页
+ getMyBookPage: {
+ url: '/my_book/getMyShopPage',
+ method: 'GET',
+ auth: true,
+ },
+ // 添加作品或者修改作品
+ saveOrUpdateBook: {
+ url: '/my_book/saveOrUpdateShop',
+ method: 'POST',
+ auth: true,
+ limit: 800,
+ showLoading: true,
+ },
+ // 增加或修改作品章节
+ saveOrUpdateCatalog: {
+ url: '/my_book/saveOrUpdateShopNovel',
+ method: 'POST',
+ auth: true,
+ limit: 800,
+ },
+ // 获取我的小说章节列表带分页
+ getMyShopNovelPage : {
+ url: '/my_book/getMyShopNovelPage',
+ method: 'POST',
+ auth: true,
+ },
+}
+
+export default api
\ No newline at end of file
diff --git a/api/model/order.js b/api/model/order.js
new file mode 100644
index 0000000..efd3c59
--- /dev/null
+++ b/api/model/order.js
@@ -0,0 +1,42 @@
+
+const api = {
+ // 创建订单
+ createOrder : {
+ url: '/my_order/createOrder',
+ method: 'POST',
+ auth: true,
+ limit: 800,
+ },
+ // 查询礼物详情
+ getGiftDetail : {
+ url: '/my_order/getGiftDetail',
+ method: 'GET',
+ auth: true,
+ },
+ // 查询互动打赏礼物信息列表
+ getInteractionGiftList : {
+ url: '/my_order/getInteractionGiftList',
+ method: 'GET',
+ auth: true,
+ },
+ // 查询我的礼物包订单列表
+ getMyGiftList : {
+ url: '/my_order/getMyGiftList',
+ method: 'GET',
+ auth: true,
+ },
+ // 支付订单
+ payOrder : {
+ url: '/my_order/payOrder',
+ method: 'POST',
+ auth: true,
+ },
+ // 支付成功
+ paySuccess : {
+ url: '/my_order/paySuccess',
+ method: 'POST',
+ auth: true,
+ },
+}
+
+export default api
\ No newline at end of file
diff --git a/api/model/task.js b/api/model/task.js
new file mode 100644
index 0000000..36a31a7
--- /dev/null
+++ b/api/model/task.js
@@ -0,0 +1,52 @@
+
+
+const api = {
+ // 点击更多任务
+ clickMoreTask: {
+ url: '/my_task/clickMoreTask',
+ method: 'POST',
+ auth: true,
+ limit : 1000,
+ showLoading: true,
+ },
+ // 点击签到任务
+ clickSignTask: {
+ url: '/my_task/clickSignTask',
+ method: 'GET',
+ auth: true,
+ limit : 1000,
+ showLoading: true,
+ },
+ // 获取更多任务列表
+ getMoreTaskList: {
+ url: '/my_task/getMoreTaskList',
+ method: 'GET',
+ auth: true,
+ },
+ // 获取更多任务记录列表
+ getMoreTaskRecordPage: {
+ url: '/my_task/getMoreTaskRecordPage',
+ method: 'GET',
+ auth: true,
+ },
+ // 获取我的推荐票数
+ getMyRecommendTicketNum: {
+ url: '/my_task/getMyRecommendTicketNum',
+ method: 'GET',
+ auth: true,
+ },
+ // 获取我的推荐任务列表
+ getSignTaskList: {
+ url: '/my_task/getSignTaskList',
+ method: 'GET',
+ auth: true,
+ },
+ // 获取我的推荐任务记录列表
+ getSignTaskRecordPage: {
+ url: '/my_task/getSignTaskRecordPage',
+ method: 'GET',
+ auth: true,
+ },
+}
+
+export default api
\ No newline at end of file
diff --git a/api/model/writer.js b/api/model/writer.js
new file mode 100644
index 0000000..ae05ddb
--- /dev/null
+++ b/api/model/writer.js
@@ -0,0 +1,18 @@
+
+const api = {
+ // 填写或修改笔名以及简介成为作家
+ saveOrUpdateWriter : {
+ url: '/my_writer/saveOrUpdateWriter',
+ method: 'POST',
+ auth: true,
+ limit: 800,
+ },
+ // 查询我的笔名以及简介
+ getMyWriter : {
+ url: '/my_writer/getMyWriter',
+ method: 'GET',
+ auth: true,
+ },
+}
+
+export default api
\ No newline at end of file
diff --git a/components/novel/RankListItem.vue b/components/novel/RankListItem.vue
deleted file mode 100644
index cceec94..0000000
--- a/components/novel/RankListItem.vue
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
-
-
-
- {{ name }}
-
-
- {{ score }} 亲密值
- {{ level }}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/novel/newWorkItem.vue b/components/novel/newWorkItem.vue
index aca5070..76d0990 100644
--- a/components/novel/newWorkItem.vue
+++ b/components/novel/newWorkItem.vue
@@ -20,7 +20,7 @@
methods: {
handleClick() {
uni.navigateTo({
- url: '/pages_order/novel/createNovel'
+ url: '/pages_order/author/createNovel'
})
},
handleSettingClick() {
diff --git a/components/novel/novelItem.vue b/components/novel/novelItem.vue
index deb64a3..527c756 100644
--- a/components/novel/novelItem.vue
+++ b/components/novel/novelItem.vue
@@ -16,7 +16,7 @@
- {{book.status}}
+ {{ statusText }}
{{ item.service || '大家都在读' }}
@@ -39,6 +39,24 @@
default: false
}
},
+ computed: {
+ statusClass() {
+ const statusMap = {
+ 'draft': 'new',
+ '0': 'ongoing',
+ '1': 'completed'
+ };
+ return statusMap[this.book.status] || 'ongoing';
+ },
+ statusText() {
+ const textMap = {
+ // '0': '新建',
+ '0': '连载中',
+ '1': '已完结'
+ };
+ return textMap[this.book.status] || '连载中';
+ },
+ },
data() {
return {}
},
@@ -58,8 +76,8 @@
}
.book-cover {
- width: 170rpx;
- height: 230rpx;
+ width: 160rpx;
+ height: 210rpx;
border-radius: 8rpx;
margin-right: 20rpx;
box-shadow: 0 4rpx 8rpx rgba(0,0,0,0.1);
@@ -139,13 +157,13 @@
/* 水平布局样式 - 用于网格展示 */
.book-item.horizontal {
flex-direction: column;
- width: 200rpx;
+ width: 160rpx;
padding: 10rpx;
border: none;
.book-cover {
width: 100%;
- height: 260rpx;
+ height: 200rpx;
margin-right: 0;
margin-bottom: 10rpx;
}
diff --git a/components/novel/workItem.vue b/components/novel/workItem.vue
index 59fbc4d..18f4698 100644
--- a/components/novel/workItem.vue
+++ b/components/novel/workItem.vue
@@ -19,8 +19,17 @@
-
- {{work.publishStatus || '发布审核中'}}
+
+ {{bookStatusText}}
+
+
+
+
+ {{toolStatusText}}
@@ -41,7 +50,7 @@
isManaging: {
type: Boolean,
default: false
- }
+ },
},
computed: {
statusClass() {
@@ -59,7 +68,39 @@
'1': '已完结'
};
return textMap[this.work.status] || '连载中';
- }
+ },
+ toolStatusClass() {
+ const toolStatusMap = {
+ '0': 'ongoing',
+ '1': 'completed',
+ '2': 'error',
+ };
+ return toolStatusMap[this.work.toolStatus] || '';
+ },
+ toolStatusText() {
+ const textMap = {
+ '0': '设置审核中',
+ '1': '设置审核通过',
+ '2': '设置审核不通过'
+ };
+ return textMap[this.work.toolStatus] || '连载中';
+ },
+ bookStatusClass() {
+ const bookStatusMap = {
+ '0': 'ongoing',
+ '1': 'completed',
+ '2': 'error',
+ };
+ return bookStatusMap[this.work.bookStatus] || '';
+ },
+ bookStatusText() {
+ const textMap = {
+ '0': '发布审核中',
+ '1': '发布审核通过',
+ '2': '发布审核不通过'
+ };
+ return textMap[this.work.bookStatus] || '连载中';
+ },
},
methods: {
handleClick() {
@@ -69,7 +110,7 @@
}
// 跳转到章节列表页面
uni.navigateTo({
- url: '/pages_order/novel/chapterList?id=' + this.work.id
+ url: '/pages_order/author/chapterList?id=' + this.work.id
});
},
handleDelete() {
@@ -148,6 +189,7 @@
display: flex;
align-items: center;
margin-top: 20rpx;
+ gap: 10rpx;
.status-tag {
font-size: 22rpx;
@@ -173,14 +215,20 @@
}
.publish-status {
- text {
- font-size: 22rpx;
- color: #666;
- background-color: #f5f5f5;
- padding: 4rpx 16rpx;
- border-radius: 20rpx;
- white-space: nowrap;
+ &.error{
+ color: #666;
+ background-color: #f5f5f5;
+ }
+ &.completed {
+ background-color: #67c23a;
+ color: #fff;
}
+ font-size: 22rpx;
+ color: #666;
+ background-color: #f5f5f5;
+ padding: 4rpx 16rpx;
+ border-radius: 20rpx;
+ white-space: nowrap;
}
}
}
diff --git a/config.js b/config.js
index b7ab4a5..605ed19 100644
--- a/config.js
+++ b/config.js
@@ -8,7 +8,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
-const type = 'dev'
+const type = 'prod'
// 环境配置
diff --git a/pages.json b/pages.json
index dc08b97..824dfcf 100644
--- a/pages.json
+++ b/pages.json
@@ -62,10 +62,10 @@
"path": "announcement/announcements"
},
{
- "path": "novel/createNovel"
+ "path": "author/createNovel"
},
{
- "path": "novel/chapterList"
+ "path": "author/chapterList"
},
{
"path": "novel/ReaderAchievement"
@@ -77,22 +77,25 @@
"path": "novel/SubscriptionInformation"
},
{
- "path": "novel/Tipping"
+ "path": "novel/Tipping",
+ "style": {
+ "navigationBarTextStyle": "white"
+ }
},
{
- "path": "novel/Review"
+ "path": "comment/review"
},
{
- "path": "novel/comments"
+ "path": "comment/comments"
},
{
- "path": "novel/Respondcomments"
+ "path": "comment/respondComments"
},
{
"path": "novel/Walletflow"
},
{
- "path": "novel/creator"
+ "path": "author/creator"
},
{
"path": "novel/Giftbox"
diff --git a/pages/index/bookshelf.vue b/pages/index/bookshelf.vue
index cbd8142..747fee4 100644
--- a/pages/index/bookshelf.vue
+++ b/pages/index/bookshelf.vue
@@ -31,6 +31,11 @@
+
+
+ 你书架还没有书籍呢
+ 去首页看看吧
+
@@ -178,16 +183,16 @@
// 检查是否需要切换到作品标签
const activeTab = uni.getStorageSync('activeBookshelfTab')
- if (activeTab === 'work') {
- this.activeTab = 'work'
- this.mixinsListApi = this.apiMap[tab]
- uni.removeStorageSync('activeBookshelfTab')
- }
+ // if (activeTab === 'work') {
+ // this.activeTab = 'work'
+ // this.mixinsListApi = this.apiMap[tab]
+ // uni.removeStorageSync('activeBookshelfTab')
+ // }
// 监听切换到作品标签的事件
- uni.$on('switchToWork', () => {
- this.activeTab = 'work'
- })
+ // uni.$on('switchToWork', () => {
+ // this.activeTab = 'work'
+ // })
},
onShow() {
@@ -315,15 +320,22 @@
uni.showModal({
title: '提示',
content: content,
- success: (res) => {
+ success: async (res) => {
if (res.confirm) {
if (this.activeTab === 'read') {
// 移除选中的小说
- this.novels = this.novels.filter(novel => !this.selectedItems.includes(novel.id));
+ // this.novels = this.novels.filter(novel => !this.selectedItems.includes(novel.id));
+
+ await this.$fetch('batchRemoveReadBook', {
+ bookIds : this.selectedItems.join(',')
+ })
+
uni.showToast({
title: '移除成功',
icon: 'success'
});
+
+ this.getData()
} else {
// 删除选中的作品
this.list = this.list.filter(work => !this.selectedItems.includes(work.id));
@@ -338,7 +350,7 @@
this.selectedItems = [];
// 如果没有数据了,退出编辑模式
- if ((this.activeTab === 'read' && this.novels.length === 0) ||
+ if ((this.activeTab === 'read' && this.list.length === 0) ||
(this.activeTab === 'work' && this.list.length === 0)) {
this.exitEditMode();
}
@@ -346,11 +358,6 @@
}
});
},
- // 加载作品列表
- loadWorksList() {
- const savedWorks = uni.getStorageSync('list') || []
- this.list = savedWorks
- }
}
}
@@ -436,6 +443,26 @@
}
}
+ .empty-works {
+ width: 100%;
+ padding: 100rpx 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+
+ .empty-text {
+ font-size: 32rpx;
+ color: #666;
+ margin-bottom: 20rpx;
+ }
+
+ .empty-tips {
+ font-size: 28rpx;
+ color: #999;
+ }
+ }
+
.novel-grid {
padding: 20rpx;
padding-top: 30rpx;
@@ -444,7 +471,6 @@
.novel-row {
display: flex;
- justify-content: space-between;
margin-bottom: 40rpx;
.novel-item {
@@ -494,26 +520,6 @@
position: relative;
margin-bottom: 20rpx;
}
-
- .empty-works {
- width: 100%;
- padding: 100rpx 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
-
- .empty-text {
- font-size: 32rpx;
- color: #666;
- margin-bottom: 20rpx;
- }
-
- .empty-tips {
- font-size: 28rpx;
- color: #999;
- }
- }
}
}
diff --git a/pages/index/center.vue b/pages/index/center.vue
index 43e91c4..22bf6ec 100644
--- a/pages/index/center.vue
+++ b/pages/index/center.vue
@@ -51,7 +51,7 @@
我的评论
- 294
+ {{ commentNum }}
@@ -59,7 +59,7 @@
任务中心
- 5
+
@@ -69,7 +69,7 @@
设置
-
+
申请成为作者
@@ -107,15 +107,15 @@
-
+
@@ -133,14 +133,19 @@
},
data() {
return {
+ commentNum : 0,
}
},
- onLoad() {
+ onShow() {
if(this.isLogin){
this.$store.commit('getUserInfo')
+ this.getMyCommentNum()
}
},
methods: {
+ async getMyCommentNum(){
+ this.commentNum = await this.$fetch('getMyCommentNum')
+ },
}
}
@@ -243,7 +248,8 @@
font-size: 22rpx;
padding: 2rpx 12rpx;
border-radius: 20rpx;
- margin-right: 10rpx;
+ margin-right: auto;
+ margin-left: 20rpx;
}
}
}
diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue
index 0cc5df2..851cda2 100644
--- a/pages_order/auth/wxLogin.vue
+++ b/pages_order/auth/wxLogin.vue
@@ -14,7 +14,7 @@
-->
- 手机号授权登录
+ 授权登录
diff --git a/pages_order/author/chapterList.vue b/pages_order/author/chapterList.vue
new file mode 100644
index 0000000..fc293eb
--- /dev/null
+++ b/pages_order/author/chapterList.vue
@@ -0,0 +1,231 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 章节名
+ {{ chapter.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/novel/createNovel.vue b/pages_order/author/createNovel.vue
similarity index 94%
rename from pages_order/novel/createNovel.vue
rename to pages_order/author/createNovel.vue
index 1b0bd8e..7156ef4 100644
--- a/pages_order/novel/createNovel.vue
+++ b/pages_order/author/createNovel.vue
@@ -100,10 +100,26 @@
type: '1',
details: '',
status: '0' // 默认连载
- }
+ },
+ id: 0
}
},
+ onLoad(options) {
+ if (options.id) {
+ this.id = options.id
+ this.getBookInfo()
+ }
+ },
methods: {
+
+ getBookInfo() {
+ this.$fetch('getBookDetail', {
+ id : this.id
+ }).then(res => {
+ this.formData = res
+ })
+ },
+
// 选择封面
chooseCover() {
uni.chooseImage({
@@ -149,7 +165,7 @@
Image: this.formData.Image,
type: this.formData.type,
details: this.formData.details,
- status: this.formData.status,
+ status: this.formData.status || 0,
}
await this.$fetch('saveOrUpdateBook', workData)
diff --git a/pages_order/novel/creator.vue b/pages_order/author/creator.vue
similarity index 68%
rename from pages_order/novel/creator.vue
rename to pages_order/author/creator.vue
index 1a61783..934fd78 100644
--- a/pages_order/novel/creator.vue
+++ b/pages_order/author/creator.vue
@@ -5,14 +5,12 @@
- *
笔名
-
+
- *
简介
-
+
-->
-
+
-
- {{novelData.status}}
-
-
- {{ novelData.service }}
-
+
+ {{novelData.status}}
+
+
+ {{ novelData.service }}
+
-
+
{{ novelData.qmNum || 0}}
作者累计亲密度值
@@ -39,12 +39,12 @@
- {{ novelData.tuiNum }}
+ {{ novelData.tuiNum || 0 }}
推荐票数
-
-
-
+
+
-
+ src="https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain"
+ mode="aspectFill">
+
周海
-
+
6785452
@@ -90,7 +88,7 @@
-
+
点击查看
@@ -115,7 +113,9 @@
目录
- 第九集 - 高去与归来
+
+ {{ catalog ? catalog.title : '暂无章节' }}
+
>
@@ -134,7 +134,8 @@
@@ -143,11 +144,7 @@
-
+
加入书架
@@ -155,26 +152,21 @@
🎁
礼物盒
-->
-
+
-
+
互动打赏
- 立即阅读
+ 立即阅读
-
-
-
+
+
+
@@ -183,9 +175,9 @@
import chapterPopup from '../components/novel/chapterPopup.vue'
import commentItem from '../components/comment/commentItem.vue'
import novelVotePopup from '../components/novel/novelVotePopup.vue'
- import mixinsList from '@/mixins/list.js'
+ import mixinsList from '@/mixins/list.js'
export default {
- mixins: [mixinsList],
+ mixins: [mixinsList],
components: {
catalogpopup,
chapterPopup,
@@ -198,76 +190,128 @@
isCollected: false,
comments: [],
currentIndex: 0,
- id : 0,
- bookLevel : {},
- mixinsListApi : 'getBookCommentList',
+ id: 0,
+ bookLevel: {},
+ mixinsListApi: 'getBookCommentList',
+ catalog: {}, //最后一个章节
+ fastCatalog: {}, //第一章节
+ chapterList : [],//章节列表
}
},
- computed: {
- userInfo() {
- return {
- avatar: '/static/images/avatar.jpg',
- level: '67级达人'
- }
- }
- },
- onLoad({id}) {
+ computed: {},
+ onLoad({
+ id
+ }) {
this.id = id
- this.queryParams.id = id
+ this.queryParams.bookId = id
this.getDateil()
this.getAchievement()
+ this.getBookCatalogList()
},
methods: {
- getDateil(){
- this.$fetch('getBookDetail', {
- id : this.id
- }).then(res => {
+ updateVote() {
+ this.getDateil()
+ this.getAchievement()
+ },
+ getDateil() {
+ let data = {
+ id: this.id
+ }
+ if(uni.getStorageSync('data')){
+ data.token = uni.getStorageSync('token')
+ }
+ this.$fetch('getBookDetail', data).then(res => {
this.novelData = res
})
},
- getAchievement(){
+ getAchievement() {
this.$fetch('getAchievement', {
- id : this.id
+ id: this.id
}).then(res => {
this.bookLevel = res
})
},
- getBookCatalogList(){
+ getBookCatalogList() {
+
this.$fetch('getBookCatalogList', {
- id : this.id
+ bookId : this.id,
+ pageNo : 1,
+ pageSize : 9999999,
+ reverse : 0,
}).then(res => {
+ this.chapterList = res.records
+ this.catalog = res.records[res.records.length - 1]
+ this.fastCatalog = res.records[0]
})
+
+ // 获取最后章节
+ // this.$fetch('getBookCatalogList', {
+ // bookId: this.id,
+ // pageNo: 1,
+ // pageSize: 1,
+ // reverse: 1,
+ // }).then(res => {
+ // this.catalog = res.records[0]
+ // })
+
+ // // 获取第一章节
+ // this.$fetch('getBookCatalogList', {
+ // bookId: this.id,
+ // pageNo: 1,
+ // pageSize: 1,
+ // reverse: 0,
+ // }).then(res => {
+ // this.fastCatalog = res.records[0]
+ // })
},
toggleCollect() {
this.isCollected = !this.isCollected
},
goToWriteReview() {
uni.navigateTo({
- url: `/pages_order/novel/Review?title=${encodeURIComponent(this.novelData.title)}`
+ url: `/pages_order/comment/review?id=${this.id}`
})
},
addToBookshelf() {
- // TODO: 实现加入书架功能
- uni.showToast({
- title: '已加入书架',
- icon: 'success'
+ this.$fetch('addReadBook', {
+ shopId: this.id,
+ name: this.novelData.name,
+ image: this.novelData.image,
+ }).then(res => {
+ uni.showToast({
+ title: '已加入书架',
+ icon: 'success'
+ })
})
},
toggleInteractive() {
uni.navigateTo({
- url: `/pages_order/novel/Tipping?id=${this.novelData.id}`
+ url: `/pages_order/novel/Tipping?id=${this.id}`
})
},
goToGiftbox() {
uni.navigateTo({
- url: `/pages_order/novel/Giftbox?id=${this.novelData.id}`
+ url: `/pages_order/novel/Giftbox?id=${this.id}`
})
},
- goToCommentReply() {
+ toRead() {
+ if (!this.fastCatalog) {
+ uni.showToast({
+ title: '暂无章节',
+ icon: 'none'
+ })
+ return
+ }
+
uni.navigateTo({
- url: '/pages_order/novel/comments'
+ url: `/pages_order/novel/readnovels?cid=${this.fastCatalog.id}&id=${this.id}`
})
- }
+ },
+ selectChapter({item, index}){
+ uni.navigateTo({
+ url: `/pages_order/novel/readnovels?cid=${item.id}&id=${this.id}`
+ })
+ },
}
}
@@ -277,7 +321,7 @@
min-height: 100vh;
background-color: #f5f5f5;
padding-bottom: calc(env(safe-area-inset-bottom) + 30rpx);
-
+
.nav-header {
display: flex;
justify-content: space-between;
@@ -290,36 +334,36 @@
right: 0;
z-index: 100;
}
-
+
.novel-info {
padding: 20rpx;
display: flex;
background: #fff;
-
+
.novel-cover {
width: 200rpx;
height: 280rpx;
margin-right: 20rpx;
-
+
image {
width: 100%;
height: 100%;
border-radius: 8rpx;
}
}
-
+
.novel-basic {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
-
+
.title {
font-size: 36rpx;
font-weight: bold;
margin-bottom: 16rpx;
}
-
+
.author-line,
.status-line {
display: flex;
@@ -328,14 +372,15 @@
font-size: 28rpx;
color: #666;
}
-
+
.content-row {
display: flex;
align-items: center;
margin-bottom: 10rpx;
+
.book-status {
flex-shrink: 0;
-
+
text {
font-size: 20rpx;
color: #67C23A;
@@ -344,25 +389,26 @@
padding: 4rpx 12rpx;
}
}
- .book-text{
- font-size: 20rpx;
+
+ .book-text {
+ font-size: 20rpx;
}
}
-
+
.label {
color: #999;
margin-right: 8rpx;
}
-
+
.score-line {
margin-top: 16rpx;
-
+
.score {
font-size: 32rpx;
color: #333;
font-weight: bold;
}
-
+
.score-label {
font-size: 24rpx;
color: #999;
@@ -371,7 +417,7 @@
}
}
}
-
+
.recommendation-section {
padding: 24rpx 32rpx;
background: #fff;
@@ -379,27 +425,27 @@
justify-content: space-between;
align-items: center;
position: relative;
-
+
.rec-left {
display: flex;
flex-direction: column;
align-items: flex-start;
margin-left: 70rpx;
-
+
.rec-count {
font-size: 44rpx;
font-weight: 500;
color: #333;
line-height: 1.2;
}
-
+
.rec-label {
font-size: 26rpx;
color: #999;
margin-top: 4rpx;
}
}
-
+
.rec-divider {
position: absolute;
right: 160rpx;
@@ -408,10 +454,10 @@
width: 2rpx;
background: #eee;
}
-
+
.rec-right {
flex-shrink: 0;
-
+
.recommend-btn {
background: #fff;
color: #4a90e2;
@@ -423,7 +469,7 @@
align-items: center;
line-height: 1;
height: 64rpx;
-
+
.btn-icon {
margin-right: 8rpx;
font-size: 32rpx;
@@ -431,12 +477,12 @@
}
}
}
-
+
.action-buttons {
display: flex;
padding: 30rpx;
gap: 20rpx;
-
+
button {
flex: 1;
height: 80rpx;
@@ -446,18 +492,18 @@
align-items: center;
justify-content: center;
}
-
+
.read-btn {
background-color: #4a90e2;
color: #fff;
}
-
+
.collect-btn {
background-color: #f0f0f0;
color: #666;
}
}
-
+
.user-level {
margin: 20rpx 30rpx;
background-color: #fff;
@@ -466,74 +512,74 @@
display: flex;
justify-content: space-between;
align-items: stretch;
-
+
.level-left {
flex: 1;
-
+
.level-title {
display: flex;
align-items: center;
gap: 8rpx;
margin-bottom: 20rpx;
margin-left: 20rpx;
-
+
.title-icon {
font-size: 36rpx;
color: #FFB800;
}
-
+
text {
font-size: 32rpx;
font-weight: 500;
color: #333;
}
}
-
+
.level-info {
display: flex;
align-items: flex-start;
gap: 20rpx;
-
+
.user-avatar {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
border: 2rpx solid #f0f0f0;
}
-
+
.user-details {
display: flex;
flex-direction: column;
gap: 8rpx;
-
+
.username {
display: flex;
font-size: 28rpx;
color: #333;
font-weight: 500;
-
+
image {
width: 60rpx;
height: 60rpx;
}
}
-
+
.user-score {
display: flex;
align-items: center;
gap: 8rpx;
-
+
.score-value {
font-size: 28rpx;
color: #333;
}
-
+
.score-label {
font-size: 24rpx;
color: #999;
}
}
-
+
.user-role {
font-size: 24rpx;
color: #666;
@@ -545,30 +591,30 @@
}
}
}
-
+
.level-right {
display: flex;
align-items: center;
-
+
.rank-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 20rpx;
-
+
.rank-icon {
width: 200rpx;
height: 60rpx;
margin-bottom: 8rpx;
}
-
+
text {
font-size: 26rpx;
color: #333;
line-height: 1.4;
}
-
+
.check-text {
font-size: 22rpx;
color: #999;
@@ -576,20 +622,20 @@
}
}
}
-
+
.novel-intro {
margin: 20rpx 30rpx;
background-color: #fff;
border-radius: 12rpx;
padding: 24rpx;
-
+
.intro-title {
font-size: 32rpx;
font-weight: 500;
color: #333;
margin-bottom: 16rpx;
}
-
+
.intro-content {
font-size: 28rpx;
color: #666;
@@ -597,19 +643,19 @@
display: flex;
flex-direction: column;
gap: 16rpx;
-
+
text {
display: block;
}
}
}
-
+
.comments-section {
margin: 20rpx 30rpx;
background-color: #fff;
border-radius: 12rpx;
padding: 24rpx;
-
+
.comments-header {
display: flex;
align-items: center;
@@ -617,16 +663,16 @@
border-bottom: 2rpx solid #f5f5f5;
padding-bottom: 24rpx;
justify-content: flex-start;
-
+
.header-left {
display: flex;
align-items: center;
gap: 8rpx;
-
+
.title-icon {
font-size: 32rpx;
}
-
+
text {
display: flex;
align-items: center;
@@ -636,67 +682,67 @@
white-space: nowrap;
}
}
-
+
.header-right {
margin-left: auto;
}
}
-
+
.comment-list {
display: flex;
flex-direction: column;
gap: 32rpx;
}
-
+
.like-icon {
font-size: 24rpx;
color: #999;
}
-
+
.like-count {
font-size: 24rpx;
color: #999;
}
}
-
+
.novel-catalog {
margin: 20rpx 30rpx;
background-color: #fff;
border-radius: 12rpx;
padding: 24rpx;
-
+
.catalog-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2rpx solid #f5f5f5;
-
+
.catalog-title {
display: flex;
align-items: center;
gap: 8rpx;
-
+
.title-icon {
font-size: 32rpx;
}
-
+
text {
font-size: 32rpx;
font-weight: 500;
color: #333;
}
}
-
+
.chapter-nav {
display: flex;
align-items: center;
gap: 8rpx;
-
+
.current-chapter {
font-size: 28rpx;
color: #666;
}
-
+
.nav-arrow {
font-size: 28rpx;
color: #999;
@@ -704,7 +750,7 @@
}
}
}
-
+
.novel-bottom {
position: fixed;
bottom: 0;
@@ -719,31 +765,33 @@
padding-bottom: env(safe-area-inset-bottom);
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
gap: 40rpx;
+
.bottom-left {
display: flex;
gap: 40rpx;
-
+
.action-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 4rpx;
-
+
.btn-icon {
font-size: 40rpx;
line-height: 1;
}
-
+
text {
font-size: 24rpx;
color: #666;
}
}
}
-
+
.bottom-right {
flex: 1;
display: flex;
+
.read-now-btn {
flex: 1;
background: #1a237e;
diff --git a/pages_order/novel/readnovels - 副本.vue b/pages_order/novel/readnovels - 副本.vue
new file mode 100644
index 0000000..8890556
--- /dev/null
+++ b/pages_order/novel/readnovels - 副本.vue
@@ -0,0 +1,463 @@
+
+
+
+
+
+
+
+
+
+ {{ novelTitle }}
+ {{ currentChapter }}
+
+
+
+
+
+
+
+
+
+
+
+ 第1章 重回2004
+
+
+ {{ paragraph }}
+
+
+
+
+
+
+
+
+
+
+ 加入书架
+
+
+
+
+
+ {{ isDarkMode ? '白天' : '夜间' }}
+
+
+
+ 上一章
+ 目录
+ 下一章
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/novel/readnovels.vue b/pages_order/novel/readnovels.vue
index 8890556..9e6890f 100644
--- a/pages_order/novel/readnovels.vue
+++ b/pages_order/novel/readnovels.vue
@@ -3,36 +3,36 @@
-
-
+
+
- {{ novelTitle }}
+ {{ novelData.name }}
{{ currentChapter }}
-
+
-
-
-
+
+
+
- 第1章 重回2004
-
-
- {{ paragraph }}
-
-
+ {{ currentChapter }}
+
+
+ {{ paragraph }}
+
+
-
+
@@ -40,25 +40,34 @@
加入书架
-
-
+
+
{{ isDarkMode ? '白天' : '夜间' }}
- 上一章
- 目录
- 下一章
+
+ 上一章
+
+
+ 目录
+
+
+ 下一章
+
-
+
-
-
-
-
-
+
+
+
+
+
@@ -67,7 +76,7 @@
import novelVotePopup from '../components/novel/novelVotePopup.vue'
import subscriptionPopup from '../components/novel/subscriptionPopup.vue'
import themeMixin from '@/mixins/themeMode.js' // 导入主题混合器
-
+
export default {
components: {
chapterPopup,
@@ -79,42 +88,69 @@
return {
isFullScreen: false,
popupShown: false, // 只弹一次
- novelTitle: "这游戏也太真实了",
- currentChapter: "第1章 重回2004",
+ currentChapter: "",
readProgress: 15, // 阅读进度百分比
- paragraphs: [
- "华东地区某个不知名街区,2004年冬。",
- "天还没有亮,王明就起床了。他要去赶早市,今天是进货的日子,错过了就要等下周。他轻轻地穿好衣服,不想吵醒还在熟睡的妻子。",
- "天气比想象中冷,他裹紧了身上那件略显破旧的棉袄。出门前,他看了眼床头那个旧闹钟,四点半,还算准时。",
- "街上几乎没有人,只有零星的几辆三轮车和面包车正往市场方向驶去。王明加快了脚步,他知道好位置都是先到先得。",
- "这一年,互联网刚刚开始在中国普及,但对于像王明这样的小摊贩来说,生活并没有什么变化。每天起早贪黑,挣扎在温饱线上。",
- "然而就在今天,他的生活将迎来一场他从未预料到的变化。",
- "市场入口处,一个陌生人递给他一张名片,上面写着:\"电子产品批发,价格优惠\"。王明随手接过,塞进了口袋,继续往里走。",
- "他不知道的是,这张小小的名片,将成为改变他命运的第一步。",
- "几个小时后,当他收摊准备回家时,他偶然摸到了那张名片。出于好奇,他决定去看看。",
- "名片上的地址在城市的另一边,是一个他从未去过的工业区。坐了将近一个小时的公交车,他终于找到了那个地方。",
- "那是一个不起眼的仓库,门口停着几辆货车。王明犹豫了一下,还是推门走了进去。",
- "里面的景象让他震惊。货架上整齐地摆放着各种电子产品:MP3播放器、数码相机、U盘……这些在当时都是新奇而昂贵的物品。",
- "\"您是新顾客吧?\"一个中年男人走过来,热情地招呼道。",
- "\"是的,我看到了你的名片。\"王明有些拘谨地回答。",
- "\"那您来得正是时候,我们刚收到一批新货,价格特别优惠。\"",
- "王明被带到一个展示台前,上面摆着几个小巧的设备。\"这是最新款的MP3,容量大,音质好,在市场上很受欢迎。\"",
- "王明拿起一个仔细端详。他虽然没什么文化,但做生意的直觉告诉他,这东西可能有市场。",
- "\"多少钱一个?\"他问道。",
- "\"批发价150元,零售价可以卖到300元以上。\"",
- "王明心里快速计算着。他今天的存款只有3000元,如果全买这个,可以拿20个。要是真能卖出去,就是3000元的利润。",
- "但风险也很大。万一卖不出去,这可是他半年的积蓄啊。",
- "就在他犹豫的时候,旁边传来一个熟悉的声音:\"老王,你也来这进货啊?\"",
- "是他在市场上认识的李东。李东比他年轻,做生意也比他精明。",
- "\"你觉得这东西怎么样?\"王明问道。",
- "\"那必须相当不错啊。我上周进了一批,三天就卖光了。现在是过节嘛,年轻人喜欢这些新鲜玩意儿。\"李东拍了拍他的肩膀,\"要我说,你应该赶紧进一批,过了这个村可就没这个店了。\"",
- "看到李东的信心,王明心里的天平开始倾斜。",
- "\"那...好吧,给我来20个。\"他终于下定决心,从口袋里掏出了钱。",
- "这一决定,将彻底改变他的人生轨迹...",
- ]
+ paragraphs: [],
+ id: 0,
+ cid: 0,
+ novelData: {},
+ chapterList: [],
}
},
+ computed: {
+ currentIndex() {
+ for (var index = 0; index < this.chapterList.length; index++) {
+ var element = this.chapterList[index];
+ if (element.id == this.cid) return index
+ }
+
+ return -1
+ },
+ },
+ onLoad({
+ id,
+ cid
+ }) {
+ this.id = id
+ this.cid = cid
+ this.getDateil()
+ this.getBookCatalogDetail()
+ },
+ onShow() {
+ this.getBookCatalogList()
+ },
+ mounted() {
+ // 初始设置为全屏模式
+ this.isFullScreen = true;
+ },
methods: {
+ getDateil() {
+ this.$fetch('getBookDetail', {
+ id: this.id
+ }).then(res => {
+ this.novelData = res
+ })
+ },
+ getBookCatalogDetail() {
+ this.$fetch('getBookCatalogDetail', {
+ id: this.cid
+ }).then(res => {
+ this.paragraphs = res.details && res.details.split('\n')
+ this.currentChapter = res.title
+ })
+ },
+ getBookCatalogList() {
+ this.$fetch('getBookCatalogList', {
+ bookId: this.id,
+ pageNo: 1,
+ pageSize: 9999999,
+ reverse: 0,
+ }).then(res => {
+ this.chapterList = res.records
+ this.catalog = res.records[res.records.length - 1]
+ this.fastCatalog = res.records[0]
+ })
+ },
handleContentClick() {
this.toggleFullScreen();
},
@@ -136,33 +172,28 @@
url: '/pages_order/novel/SubscriptionInformation'
})
},
+ selectChapter({
+ item,
+ index
+ }) {
+ this.cid = item.id
+ this.isFullScreen = true
+ this.getBookCatalogDetail()
+ },
+ nextChapter(next) {
+ let index = this.currentIndex + next
+ if(index < 0 || index >= this.chapterList.length){
+ uni.showToast({
+ title: '到底了',
+ icon: 'none'
+ })
+ return
+ }
+ this.cid = this.chapterList[index].id
+ this.isFullScreen = true
+ this.getBookCatalogDetail()
+ },
},
- mounted() {
- // 初始设置为全屏模式
- this.isFullScreen = true;
-
- // #ifdef H5
- if (typeof window !== 'undefined') {
- window.onscroll = () => {
- const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
- if (scrollTop > 50 && !this.popupShown) {
- this.$refs.subscriptionPopup.open();
- this.popupShown = true;
- }
- };
- }
- // #endif
- },
- beforeDestroy() {
- // #ifdef H5
- if (typeof window !== 'undefined') {
- window.onscroll = null;
- }
- // #endif
- },
- onLoad() {
- // 可接收小说id、章节id等参数
- }
}
@@ -174,43 +205,43 @@
flex-direction: column;
position: relative;
overflow: hidden;
-
+
&.dark-mode {
background: #1a1a1a;
-
+
.top-controls {
background: rgba(34, 34, 34, 0.98);
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.2);
-
+
.controls-inner {
.center {
.title {
color: #eee;
}
-
+
.chapter {
color: #bbb;
}
}
}
-
+
.progress-bar {
background: #333;
-
+
.progress-inner {
background: #4a90e2;
}
}
}
-
+
.chapter-content {
color: #ccc;
-
+
.chapter-content-item {
.chapter-title {
color: #eee;
}
-
+
.paragraph-content {
.paragraph {
color: #bbb;
@@ -218,11 +249,11 @@
}
}
}
-
+
.bottom-bar {
background: #222;
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.2);
-
+
.bottom-left {
.bar-item {
.bar-label {
@@ -230,13 +261,13 @@
}
}
}
-
+
.bottom-right {
.outline-btn {
background: #222;
color: #4a90e2;
border: 2rpx solid #4a90e2;
-
+
.btn-text {
color: #4a90e2;
border-bottom: 2rpx solid #4a90e2;
@@ -245,7 +276,7 @@
}
}
}
-
+
.top-controls {
position: fixed;
top: 0;
@@ -257,28 +288,28 @@
transform: translateY(0);
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
-
+
.controls-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 32rpx;
position: relative;
-
+
.left {
width: 100rpx;
display: flex;
justify-content: flex-start;
align-items: center;
}
-
+
.center {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
-
+
.title {
font-size: 32rpx;
font-weight: 500;
@@ -289,7 +320,7 @@
text-overflow: ellipsis;
max-width: 320rpx;
}
-
+
.chapter {
font-size: 24rpx;
color: #666;
@@ -299,7 +330,7 @@
max-width: 320rpx;
}
}
-
+
.right {
width: 100rpx;
display: flex;
@@ -307,42 +338,43 @@
align-items: center;
}
}
-
+
.progress-bar {
height: 4rpx;
background: #f0f0f0;
width: 100%;
position: relative;
-
+
.progress-inner {
height: 100%;
background: #4a90e2;
transition: width 0.3s;
}
}
-
+
&.top-controls-hidden {
transform: translateY(-100%);
opacity: 0;
}
}
-
+
.chapter-content {
flex: 1;
padding: 0 32rpx;
font-size: 28rpx;
color: #222;
line-height: 2.2;
- padding-top: 160rpx; /* 为导航栏预留空间,不随状态变化 */
+ padding-top: 160rpx;
+ /* 为导航栏预留空间,不随状态变化 */
padding-bottom: 180rpx;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
transition: color 0.3s ease, background-color 0.3s ease;
-
+
.chapter-content-item {
width: 100%;
-
+
.chapter-title {
font-size: 36rpx;
font-weight: bold;
@@ -352,10 +384,10 @@
white-space: normal;
transition: color 0.3s ease;
}
-
+
.paragraph-content {
width: 100%;
-
+
.paragraph {
text-indent: 2em;
margin-bottom: 30rpx;
@@ -369,12 +401,12 @@
}
}
}
-
+
&.full-content {
/* 不再修改顶部padding,保持内容位置不变 */
}
}
-
+
.bottom-bar {
position: fixed;
left: 0;
@@ -390,32 +422,32 @@
padding: 0 40rpx 10rpx 40rpx;
transform: translateY(0);
transition: transform 0.3s ease-in-out, background-color 0.3s ease;
-
+
&.bottom-bar-hidden {
transform: translateY(100%);
}
-
+
.bottom-left {
display: flex;
align-items: flex-end;
gap: 48rpx;
-
+
.bar-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
-
+
.bar-icon {
width: 48rpx;
height: 48rpx;
margin-bottom: 4rpx;
margin-right: 1rpx;
- display: flex;
- align-items: center;
- justify-content: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
-
+
.bar-label {
font-size: 22rpx;
color: #b3b3b3;
@@ -424,13 +456,13 @@
}
}
}
-
+
.bottom-right {
display: flex;
align-items: flex-end;
gap: 32rpx;
margin-left: 40rpx;
-
+
.outline-btn {
min-width: 110rpx;
padding: 0 28rpx;
@@ -447,7 +479,7 @@
align-items: center;
justify-content: center;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
-
+
.btn-text {
font-weight: bold;
color: #223a7a;
diff --git a/pages_order/static/top/4.png b/pages_order/static/top/4.png
new file mode 100644
index 0000000..5d02a33
Binary files /dev/null and b/pages_order/static/top/4.png differ
diff --git a/pages_order/static/top/top1.png b/pages_order/static/top/top1.png
new file mode 100644
index 0000000..e2e24e1
Binary files /dev/null and b/pages_order/static/top/top1.png differ
diff --git a/store/store.js b/store/store.js
index 5561767..5709b01 100644
--- a/store/store.js
+++ b/store/store.js
@@ -11,7 +11,7 @@ const store = new Vuex.Store({
configList: {}, //配置列表
userInfo: {}, //用户信息
themeMode: uni.getStorageSync('themeMode') || 'light', // 主题模式:light(白天)或dark(黑夜)
- isLogin : !!uni.getStorageSync('token')
+ isLogin : !!uni.getStorageSync('token'),
},
getters: {
// 当前主题模式
diff --git a/uni_modules/uv-empty/components/uv-empty/props.js b/uni_modules/uv-empty/components/uv-empty/props.js
index 26c282d..27a21a8 100644
--- a/uni_modules/uv-empty/components/uv-empty/props.js
+++ b/uni_modules/uv-empty/components/uv-empty/props.js
@@ -18,7 +18,7 @@ export default {
// 文字大小
textSize: {
type: [String, Number],
- default: 14
+ default: 28
},
// 图标的颜色
iconColor: {
@@ -28,7 +28,7 @@ export default {
// 图标的大小
iconSize: {
type: [String, Number],
- default: 90
+ default: 180
},
// 选择预置的图标类型
mode: {
@@ -38,12 +38,12 @@ export default {
// 图标宽度,单位px
width: {
type: [String, Number],
- default: 160
+ default: 320
},
// 图标高度,单位px
height: {
type: [String, Number],
- default: 160
+ default: 320
},
// 是否显示组件
show: {