diff --git a/App.vue b/App.vue index a4337a3..8bab8f2 100644 --- a/App.vue +++ b/App.vue @@ -19,24 +19,32 @@ export default { Vue.prototype.winHeight=res.screenHeight } }) + // 取出播放列表 uni.getStorage({ key: 'playData', success: function (res) { console.log(res.data,'取出的本地数据'); - music.setList(res.data.myList) + if(res.data.myList.length<=0){ + store.commit('setUserInfo',{'playVisible': false}) + }else{ + music.setList(res.data.myList,'',store.state.userInfo.playIndex) // music.setCoverImg(res.data.fengImg) - store.commit('setUserInfo',res.data) - store.commit('setUserInfo',{'playFlag': false}); // 设置播放按钮状态为暂停 + store.commit('setUserInfo',res.data) + } + store.commit('setUserInfo',{'playFlag': false}); // 设置播放按钮状态为暂停 store.commit('setUserInfo',{'currentTime': 0}); + }, fail:function(e){ console.log('本地无数据'); music.setList([]) + store.commit('setUserInfo',{'playingInfo': {'bookid':0,'chapterId':0}}); + store.commit('setUserInfo',{'playVisible': false}) // music.setCoverImg('../../static/icon/x1.jpg') store.commit('setUserInfo',{ 'myList':[], - 'fengImg':'../../static/icon/x1.jpg' + 'fengImg':'../../static/icon/fengziIcon.jpg' }) store.commit('setUserInfo',{'playFlag': false}); store.commit('setUserInfo',{'currentTime': 0}); diff --git a/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue b/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue index 4ca345e..77b5768 100644 --- a/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue +++ b/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue @@ -80,7 +80,8 @@ const list = Array.from({length:100}, (v,k) => k) let index = list.indexOf(res) // return `` - return `` + // return `` + return "https://www.nuttyreading.com/emojis/emojis/qq/"+res } diff --git a/components/z-navigation/z-navigation.vue b/components/z-navigation/z-navigation.vue index 07737f9..fb51b66 100644 --- a/components/z-navigation/z-navigation.vue +++ b/components/z-navigation/z-navigation.vue @@ -33,10 +33,10 @@ text: '首页' }, { - pagePath: 'pages/peanut/shopping', - iconPath: 'static/tab/icon2_n.png', - selectedIconPath: 'static/tab/icon2_y.png', - text: '购物车' + "pagePath": "pages/library/library", + "iconPath": "static/tab/icon3_n.png", + "selectedIconPath": "static/tab/icon3_y.png", + "text": "我的图书" }, // { // pagePath: 'pages/peanut/bookshelf', @@ -46,8 +46,8 @@ // }, { pagePath: 'pages/bookShop/orderList', - iconPath: 'static/tab/icon3_n.png', - selectedIconPath: 'static/tab/icon3_y.png', + iconPath: 'static/tab/icon2_n.png', + selectedIconPath: 'static/tab/icon2_y.png', text: '我的订单' }, diff --git a/pages.json b/pages.json index b87344d..747a131 100644 --- a/pages.json +++ b/pages.json @@ -352,6 +352,60 @@ } } + ,{ + "path" : "pages/listen/listenNotBuy", + "style" : + { + "navigationBarTitleText": "未购买的详情", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/comments/comments", + "style" : + { + "navigationBarTitleText": "书评1", + "enablePullDownRefresh": true + } + + } + ,{ + "path" : "pages/comments/commentsDetail", + "style" : + { + "navigationBarTitleText": "书评详情1", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/bookShop/settlementBook", + "style" : + { + "navigationBarTitleText": "book购买1", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/library/library", + "style" : + { + "navigationBarTitleText": "我的图书", + "enablePullDownRefresh": true + } + + } + ,{ + "path" : "pages/clock/clock", + "style" : + { + "navigationBarTitleText": "读书打卡", + "enablePullDownRefresh": false + } + + } ], "globalStyle": { "navigationBarTextStyle": "black", @@ -373,11 +427,17 @@ "selectedIconPath": "static/tab/icon1_y.png", "text": "首页" }, + // { + // "pagePath": "pages/peanut/shopping", + // "iconPath": "static/tab/icon2_n.png", + // "selectedIconPath": "static/tab/icon2_y.png", + // "text": "购物车" + // }, { - "pagePath": "pages/peanut/shopping", - "iconPath": "static/tab/icon2_n.png", - "selectedIconPath": "static/tab/icon2_y.png", - "text": "购物车" + "pagePath": "pages/library/library", + "iconPath": "static/tab/icon3_n.png", + "selectedIconPath": "static/tab/icon3_y.png", + "text": "我的图书" }, // { // "pagePath": "pages/peanut/bookshelf", @@ -387,15 +447,15 @@ // }, { "pagePath": "pages/bookShop/orderList", - "iconPath": "static/tab/icon3_n.png", - "selectedIconPath": "static/tab/icon3_y.png", + "iconPath": "static/tab/icon2_n.png", + "selectedIconPath": "static/tab/icon2_y.png", "text": "我的订单" }, { "pagePath": "pages/peanut/mine", "iconPath": "static/tab/icon4_n.png", "selectedIconPath": "static/tab/icon4_y.png", - "text": "我的" + "text": "我" } ] }, diff --git a/pages/bookShop/bookShopType.vue b/pages/bookShop/bookShopType.vue index bb7396a..8048a0d 100644 --- a/pages/bookShop/bookShopType.vue +++ b/pages/bookShop/bookShopType.vue @@ -41,10 +41,12 @@ + diff --git a/pages/clock/clock.vue b/pages/clock/clock.vue new file mode 100644 index 0000000..7118a4e --- /dev/null +++ b/pages/clock/clock.vue @@ -0,0 +1,126 @@ + + + + + + diff --git a/pages/comments/comments.vue b/pages/comments/comments.vue new file mode 100644 index 0000000..03c9702 --- /dev/null +++ b/pages/comments/comments.vue @@ -0,0 +1,438 @@ + + + + + diff --git a/pages/comments/commentsDetail.vue b/pages/comments/commentsDetail.vue new file mode 100644 index 0000000..e6d99e5 --- /dev/null +++ b/pages/comments/commentsDetail.vue @@ -0,0 +1,444 @@ + + + + + diff --git a/pages/library/library.vue b/pages/library/library.vue new file mode 100644 index 0000000..1704f02 --- /dev/null +++ b/pages/library/library.vue @@ -0,0 +1,438 @@ + + + + + diff --git a/pages/listen/home.vue b/pages/listen/home.vue index b55dda7..b81551f 100644 --- a/pages/listen/home.vue +++ b/pages/listen/home.vue @@ -1,25 +1,72 @@