diff --git a/App.vue b/App.vue
index 6b92edd..e5483db 100644
--- a/App.vue
+++ b/App.vue
@@ -20,6 +20,30 @@ export default {
}
})
+ // 取出初始播放信息
+ uni.getStorage({
+ key: 'playingInfo',
+ success: function (res) {
+ console.log(res,'playingInfo本地初始化')
+ store.commit('setUserInfo',{'playingInfo': res.data})
+ store.commit('setUserInfo',{
+ 'playTitle':res.data.chapterName,
+ 'fengImg':res.data.images
+ })
+ console.log(store.state.userInfo,'初始化')
+ },
+ fail:function(e){
+ console.log(e,'playingInfo本地初始化失败')
+ store.commit('setUserInfo',{'playingInfo': {
+ 'images':'../../static/icon/fengziIcon.jpg',
+ 'chapterName':'暂无播放信息',
+ }})
+ store.commit('setUserInfo',{
+ 'playTitle': '暂无播放信息',
+ 'fengImg': '../../static/icon/fengziIcon.jpg'
+ })
+ },
+ })
// 取出播放列表
uni.getStorage({
key: 'playData',
@@ -39,7 +63,7 @@ export default {
fail:function(e){ // 如果没有,就查询一下线上的播放记录
console.log('本地无数据');
music.setList([])
- store.commit('setUserInfo',{'playingInfo': {'bookid':0,'chapterId':0}});
+ //store.commit('setUserInfo',{'playingInfo': {'bookid':0,'chapterId':0}});
store.commit('setUserInfo',{'playVisible': false})
// music.setCoverImg('../../static/icon/x1.jpg')
store.commit('setUserInfo',{
diff --git a/components/clockDate.vue b/components/clockDate.vue
new file mode 100644
index 0000000..9addcce
--- /dev/null
+++ b/components/clockDate.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+ {{swiperIndex}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/cx-audio-play/cx-audio-play.vue b/components/cx-audio-play/cx-audio-play.vue
index 194da3c..552b33e 100644
--- a/components/cx-audio-play/cx-audio-play.vue
+++ b/components/cx-audio-play/cx-audio-play.vue
@@ -127,11 +127,9 @@
},
created() {
this.libLIst = this.$bgm.musicList
- this.fengImg = this.userInfo.fengImg
+ this.fengImg = this.userInfo.fengImg
this.userInfo.playTimes ? this.setUserInfo({'currentTime': this.userInfo.playTimes}) : ''
- console.log(this.userInfo.currentTime,'组件读到的历史记录')
-
},
computed: {
@@ -143,11 +141,7 @@
overTimer() {
this.duration = this.userInfo.duration
return calcTimer(this.userInfo.duration)
- },
- // fengImg(){
- // console.log(this.userInfo.fengImg,'-------------')
- // return this.userInfo.fengImg
- // }
+ },
},
watch: {
diff --git a/components/music.vue b/components/music.vue
index 0808565..88d1934 100644
--- a/components/music.vue
+++ b/components/music.vue
@@ -6,7 +6,8 @@
-
+
+
@@ -77,9 +78,7 @@
created() {
// this.fengImg = this.$music.getCoverImg()
this.fengImg = this.userInfo.fengImg
- // this.libLIst = this.$music.getLibList()
this.libLIst = this.userInfo.myList
- // console.log(this.userInfo.playIndex,'this.userInfo.playIndex')
},
mounted() {
@@ -246,7 +245,7 @@
.nextMusic{width:50rpx;height:50rpx; display: none;}
}
- .fuchuang{position: fixed; padding-right: 10px; padding-left: 0; bottom:120rpx; right:0; z-index: 888; background-color:rgba(255, 255, 255, 1); }
+ .fuchuang{position: fixed; padding-right: 10px; padding-left: 0; bottom:180rpx; right:0; z-index: 888; background-color:rgba(255, 255, 255, 1); }
.playAnimate{
-webkit-transform: rotate(360deg);
animation: rotation 6s linear infinite;
diff --git a/components/z-navigation/z-navigation.vue b/components/z-navigation/z-navigation.vue
index fb51b66..d1abde8 100644
--- a/components/z-navigation/z-navigation.vue
+++ b/components/z-navigation/z-navigation.vue
@@ -28,14 +28,14 @@
path: '',
navigationList: [{
pagePath: 'pages/peanut/home',
- iconPath: 'static/tab/icon1_n.png',
- selectedIconPath: 'static/tab/icon1_y.png',
+ iconPath: 'static/tab/tab1.png',
+ selectedIconPath: 'static/tab/tab1-1.png',
text: '首页'
},
{
"pagePath": "pages/library/library",
- "iconPath": "static/tab/icon3_n.png",
- "selectedIconPath": "static/tab/icon3_y.png",
+ "iconPath": "static/tab/tab2.png",
+ "selectedIconPath": "static/tab/tab2-1.png",
"text": "我的图书"
},
// {
@@ -46,15 +46,15 @@
// },
{
pagePath: 'pages/bookShop/orderList',
- iconPath: 'static/tab/icon2_n.png',
- selectedIconPath: 'static/tab/icon2_y.png',
+ iconPath: 'static/tab/tab3.png',
+ selectedIconPath: 'static/tab/tab3-1.png',
text: '我的订单'
},
{
pagePath: 'pages/peanut/mine',
- iconPath: 'static/tab/icon4_n.png',
- selectedIconPath: 'static/tab/icon4_y.png',
+ iconPath: 'static/tab/tab4.png',
+ selectedIconPath: 'static/tab/tab4.png',
text: '我的'
}
],
diff --git a/components/zsy-calendar/dateBox.vue b/components/zsy-calendar/dateBox.vue
new file mode 100644
index 0000000..7bda82e
--- /dev/null
+++ b/components/zsy-calendar/dateBox.vue
@@ -0,0 +1,113 @@
+
+
+
+
+
+ {{ dateInfo.date }}
+
+
+
+
+
+
+
+
+
+
diff --git a/components/zsy-calendar/js/utils.js b/components/zsy-calendar/js/utils.js
new file mode 100644
index 0000000..2c2ae4d
--- /dev/null
+++ b/components/zsy-calendar/js/utils.js
@@ -0,0 +1,68 @@
+/**
+ * 时间格式化
+ * @param {String} time
+ * @param {String} cFormat
+ */
+export function parseTime(time, cFormat) {
+ if (arguments.length === 0) {
+ return null
+ }
+ if (!time) return ''
+ /* 修复IOS系统上面的时间不兼容*/
+ if (time.toString().indexOf('-') > 0) {
+ time = time.replace(/-/g, '/')
+ }
+ const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
+ let date
+ if (typeof time === 'object') {
+ date = time
+ } else {
+ if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
+ time = parseInt(time)
+ }
+ if ((typeof time === 'number') && (time.toString().length === 10)) {
+ time = time * 1000
+ }
+ date = new Date(time)
+ }
+ const formatObj = {
+ y: date.getFullYear(),
+ m: date.getMonth() + 1,
+ d: date.getDate(),
+ h: date.getHours(),
+ i: date.getMinutes(),
+ s: date.getSeconds(),
+ a: date.getDay()
+ }
+ const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => {
+ const value = formatObj[key]
+ // Note: getDay() returns 0 on Sunday
+ if (key === 'a') {
+ return ['日', '一', '二', '三', '四', '五', '六'][value]
+ }
+ return value.toString().padStart(2, '0')
+ })
+ return time_str
+}
+
+/**
+ * This is just a simple version of deep copy
+ * Has a lot of edge cases bug
+ * If you want to use a perfect deep copy, use lodash's _.cloneDeep
+ * @param {Object} source
+ * @returns {Object}
+ */
+export function deepClone(source) {
+ if (!source && typeof source !== 'object') {
+ throw new Error('error arguments', 'deepClone')
+ }
+ const targetObj = Object.prototype.toString.call(source) === "[object Array]" ? [] : {}
+ Object.keys(source).forEach(keys => {
+ if (source[keys] && typeof source[keys] === 'object') {
+ targetObj[keys] = deepClone(source[keys])
+ } else {
+ targetObj[keys] = source[keys]
+ }
+ })
+ return targetObj
+}
\ No newline at end of file
diff --git a/components/zsy-calendar/zsy-calendar v1.0.vue b/components/zsy-calendar/zsy-calendar v1.0.vue
new file mode 100644
index 0000000..54d8878
--- /dev/null
+++ b/components/zsy-calendar/zsy-calendar v1.0.vue
@@ -0,0 +1,641 @@
+
+
+
+
+
+ 每日记录
+
+ ({{ getAssignDateInfo(false, 0) === getAssignDateInfo(true, 0) ? '' : getAssignDateInfo(false, 0) + '年' }}{{ getAssignDateInfo(false, 1) }}月)
+
+ 回到今天
+
+
+
+
+ {{ item }}
+
+
+
+
+
+ current = e.detail.current"
+ >
+
+
+
+
+
+
+ shrinkCurrent = e.detail.current"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/zsy-calendar/zsy-calendar.vue b/components/zsy-calendar/zsy-calendar.vue
new file mode 100644
index 0000000..07183d3
--- /dev/null
+++ b/components/zsy-calendar/zsy-calendar.vue
@@ -0,0 +1,536 @@
+
+
+
+
+
+
+ 读书打卡
+
+ ({{ getAssignDateInfo(false, 0) === getAssignDateInfo(true, 0) ? '' : getAssignDateInfo(false, 0) + '年' }}{{ getAssignDateInfo(false, 1) }}月)
+
+
+
+
+ 打卡
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+ current = e.detail.current"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/bookShop/classify.vue b/pages/bookShop/classify.vue
index 956e6ff..9a39600 100644
--- a/pages/bookShop/classify.vue
+++ b/pages/bookShop/classify.vue
@@ -86,7 +86,7 @@
bgiStyle: {
background: '#2ab58833'
},
- iconStyle: {
+ iconStyle: {
fontSize: '40rpx',
fontWeight: 'bold',
color: '#54a966',
diff --git a/pages/bookShop/commodityDetail.vue b/pages/bookShop/commodityDetail.vue
index 1a8d952..ee206b2 100644
--- a/pages/bookShop/commodityDetail.vue
+++ b/pages/bookShop/commodityDetail.vue
@@ -29,8 +29,10 @@
赠送听书权益
-
- {{item.name}}立即试听
+
+ {{item.name}}
+
+
@@ -294,6 +296,12 @@
this.goPurse()
}
},
+ goToListenNone(){
+ uni.showToast({
+ title:'该书暂未生成音频内容,敬请期待!',
+ icon:'none'
+ })
+ },
// 加入购物车
addCart() {
if (this.productInfo.productStock == 0) {
@@ -466,7 +474,7 @@ formatRichText (html) { //控制小程序中图片大小
.tingshuList{margin-top: 20rpx; background-color: #fff; padding: 20rpx;
border-radius: 20rpx; margin-bottom: 20rpx; padding-top: 40rpx;
background-image: linear-gradient(0deg, #f7fffc 0%, #def0ea 100%);
- .item{margin-bottom: 20rpx;}
+ .item{margin-bottom: 20rpx; vertical-align: middle; }
h4{color: #5fb386; font-size: 40rpx; margin-bottom: 20rpx;}
text{color: #444; font-size: 32rpx; padding-left: 20rpx;}
}
diff --git a/pages/bookShop/orderLCont.vue b/pages/bookShop/orderLCont.vue
index 89dc66c..e20d85b 100644
--- a/pages/bookShop/orderLCont.vue
+++ b/pages/bookShop/orderLCont.vue
@@ -49,14 +49,13 @@
+
- 评价
- 追评
+ 评价
+ 追评
-
-
@@ -183,6 +182,7 @@
export default {
data() {
return {
+ userRecordid:null, // 用户的评价状态
playData:{},
title: 'Hello',
isShowEmj: false,
@@ -197,6 +197,7 @@
img:[],
html:''
},
+ pingID:null,
productID:null, // 订单商品id
imageStyles:{
width:64,
@@ -267,11 +268,12 @@
this.pjType = 'zhuiping'
this.pingjiaShow = true
this.productID = val
+ this.pingID = pingid
},
// 追加评论
zhuiping(){
let data = {
- //'oid':'',
+ 'oid': this.userRecordid,
'userId': this.userInfo.id,
'bookid': this.productID,
'conTent': this.Pform.comment
@@ -287,15 +289,21 @@
}).then(res => {
if (res.code == 0) {
uni.showToast({
- title:'成功!',
+ title:'追评成功!',
icon:'success'
})
this.pingjiaShow = false
this.pjType = ''
this.productID = null,
+ this.userRecordid = null
this.Pform.comment = ''
this.Pform.html = ''
this.emoji = []
+ setTimeout(()=>{
+ uni.navigateBack({
+ delta:1
+ })
+ },2000)
}
})
},
@@ -429,6 +437,11 @@
this.Pform.comment = ''
this.Pform.html = ''
this.emoji = []
+ setTimeout(()=>{
+ uni.navigateBack({
+ delta:1
+ })
+ },2000)
}
})
}else{
@@ -505,11 +518,13 @@
},
// 获取订单列表
getOrderList() {
+ console.log('this.orderType',this.orderType)
this.$http
.post(`book/buyorder/appGetOrderInfo/${this.orderType}?orderId=${this.orderID}`)
.then(res => {
- console.log(res,'res')
+ console.log('res+++',res)
this.orderContet = res.buyOrder
+ this.userRecordid = res.userRecordid
this.productIDs = res.buyOrder.products.map(item => {
return item.productId
})
diff --git a/pages/bookShop/settlementBook.vue b/pages/bookShop/settlementBook.vue
index 1e5e825..4e13ff4 100644
--- a/pages/bookShop/settlementBook.vue
+++ b/pages/bookShop/settlementBook.vue
@@ -292,7 +292,8 @@
// this.getYunFei()
},
- onShow() {
+ onShow() {
+ console.log('进来了这个页面')
this.getProid()
// return false
// if (this.typeId == 1) {
diff --git a/pages/clock/clock.vue b/pages/clock/clock.vue
index 522c6b5..144061b 100644
--- a/pages/clock/clock.vue
+++ b/pages/clock/clock.vue
@@ -1,5 +1,5 @@
-
+
@@ -15,24 +15,40 @@
今天已签到
-
-
+
+
+
+
+
+ 第 {{item1}} 天
+
+ 未签
+ 未开始
+ 签到
+
+
+
-
-
+
+
{{taskInfo.heading}}
@@ -46,49 +62,36 @@
-
-
+
-
+
+
+
+
-- 我的签到 --
-
-
-
-
- #第三课:专业变现:你的专业 = 超级杠杆! 第一笔只是财富#
-
- 借我一个暮年,借我碎片,
- 借我瞻前与顾后,借我执拗如少年。
- 借我后天长成的先天,借我变如不曾改变。
- 借我素淡的世故和明白的愚,借我可预知的险。
- 借我悲怆的磊落,借我温软的鲁莽和玩笑的庄严。
- 借我最初与最终的不敢,借我不言而喻的不见。
- 借我一场秋啊,可你说这已是冬天。
+
+
+ #{{item.TaskHeading}}#
+
+
-
-
-
+
+
+
+
2023-08-23 14:01
-
+
-
-
+