部分微调
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000"
|
<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000"
|
||||||
style="width: 100%;height: 100%;">
|
style="width: 100%;height: 100%;">
|
||||||
<swiper-item v-for="(item,index) in swiperlist" :key="index" style="width: 100%;height: 100%;">
|
<swiper-item v-for="(item,index) in swiperlist" :key="index" style="width: 100%;height: 100%;">
|
||||||
<image :src="item" mode="aspectFit" style="width: 100%;height: 100%;"></image>
|
<image :src="item" mode="aspectFit" style="width: 100%;height: 100%;" @click="previewImage(item)"></image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
@@ -319,7 +319,13 @@
|
|||||||
previewImage(url) {
|
previewImage(url) {
|
||||||
console.log(url)
|
console.log(url)
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: [url]
|
urls: [url],
|
||||||
|
longPressActions:{
|
||||||
|
itemList:['很抱歉,暂不支持保存图片到本地'],
|
||||||
|
success:function(res){
|
||||||
|
console.log(res,'+++++')
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 获取html格式的评论1
|
// 获取html格式的评论1
|
||||||
|
|||||||
@@ -287,15 +287,20 @@
|
|||||||
this.shangIDNum = e.list
|
this.shangIDNum = e.list
|
||||||
}
|
}
|
||||||
// this.getYunFei()
|
// this.getYunFei()
|
||||||
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
if (this.typeId == 1) {
|
if (this.typeId == 1) {
|
||||||
this.getCartList()
|
this.getCartList()
|
||||||
|
|
||||||
} else if (this.typeId == 0) {
|
} else if (this.typeId == 0) {
|
||||||
this.getShangList(this.shangIDNum);
|
this.getShangList(this.shangIDNum);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
// if (this.typeId == 1) {
|
||||||
|
// this.getCartList()
|
||||||
|
|
||||||
|
// } else if (this.typeId == 0) {
|
||||||
|
// this.getShangList(this.shangIDNum);
|
||||||
|
// }
|
||||||
this.getData()
|
this.getData()
|
||||||
this.getOS()
|
this.getOS()
|
||||||
},
|
},
|
||||||
@@ -433,7 +438,7 @@
|
|||||||
for (let i = 0; i < this.cartIDNum.length; i++) {
|
for (let i = 0; i < this.cartIDNum.length; i++) {
|
||||||
this.cartList.push(res.cartList[this.cartIDNum[i]])
|
this.cartList.push(res.cartList[this.cartIDNum[i]])
|
||||||
}
|
}
|
||||||
// console.log(this.cartList, '购物车列表')
|
console.log(this.cartList, '购物车列表')
|
||||||
this.getCourpe()
|
this.getCourpe()
|
||||||
this.getUserAddress()
|
this.getUserAddress()
|
||||||
|
|
||||||
|
|||||||
@@ -129,33 +129,37 @@
|
|||||||
<view class="zhuiping item" v-if="item.subCommentList.length > 0" style="padding-left: 50px;">
|
<view class="zhuiping item" v-if="item.subCommentList.length > 0" style="padding-left: 50px;">
|
||||||
<view class="subPItem" v-for="item2 in item.subCommentList" :key="item2.key">
|
<view class="subPItem" v-for="item2 in item.subCommentList" :key="item2.key">
|
||||||
<view class="touxiang zhuipingTX flexbox">
|
<view class="touxiang zhuipingTX flexbox">
|
||||||
<image v-if="!item2.avatar || item2.avatar == ''" src="../../static/icon/morenAvavter.png"
|
<view class="left">
|
||||||
mode="aspectFit"></image>
|
<image v-if="!item2.avatar || item2.avatar == ''" src="../../static/icon/morenAvavter.png"
|
||||||
<image v-else :src="item2.avatar" mode="aspectFit"></image>
|
mode="aspectFit"></image>
|
||||||
<text class="username nowrap subPName">{{item2.nickName?item2.nickName:'匿名用户'}}</text>
|
<image v-else :src="item2.avatar" mode="aspectFit"></image>
|
||||||
<text class="username nowrap" style="padding: 0 10rpx; color: #c7c7c7;">回复了</text>
|
|
||||||
<text class="username nowrap">{{item2.puserNickName?item2.puserNickName:'匿名用户'}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="contentBox" style="width: 100% !important;">
|
|
||||||
<!-- <div class="pjimgs flexbox">
|
|
||||||
<view class="item" v-for="(item1,index) in item2.imageList">
|
|
||||||
<image v-if="item1.length > 10" @click="previewImage(item1)" :src="item1"
|
|
||||||
mode="aspectFill" style="width:100%; height: 50px;"></image>
|
|
||||||
</view>
|
|
||||||
</div> -->
|
|
||||||
<view class="content" style="width: 100%;" @click="showPingLun(item2)">
|
|
||||||
<view class="" v-html="item2.phtml"></view>
|
|
||||||
<!-- <view class="" v-html="item2.content"></view> -->
|
|
||||||
</view>
|
|
||||||
<view class="flexbox" style="text-align: right; align-items: center; justify-content: space-between;">
|
|
||||||
<view class="flexbox" @click="showPingLun(item2)" style="align-items: center; ">
|
|
||||||
<u-icon style="display: inline ;margin-left: 10rpx; " name="chat" color="#999"
|
|
||||||
size="18" ></u-icon>
|
|
||||||
<text class="time" style="display: inline ;margin-right: 20rpx; ">回复</text>
|
|
||||||
</view>
|
|
||||||
<text class="time">{{item2.createTime}}</text>
|
|
||||||
</view>
|
</view>
|
||||||
|
<view class="neirong" style="text-align: left;">
|
||||||
|
<text class="username nowrap subPName">{{item2.nickName?item2.nickName:'匿名用户'}}</text>
|
||||||
|
<text class="username nowrap" style="padding: 0 10rpx; color: #c7c7c7;">回复了</text>
|
||||||
|
<text class="username nowrap">{{item2.puserNickName?item2.puserNickName:'匿名用户'}}</text>
|
||||||
|
<view class="contentBox" style="width: 100% !important; padding-left: 3px;">
|
||||||
|
<!-- <div class="pjimgs flexbox">
|
||||||
|
<view class="item" v-for="(item1,index) in item2.imageList">
|
||||||
|
<image v-if="item1.length > 10" @click="previewImage(item1)" :src="item1"
|
||||||
|
mode="aspectFill" style="width:100%; height: 50px;"></image>
|
||||||
|
</view>
|
||||||
|
</div> -->
|
||||||
|
<view class="content" style="width: 100%;" @click="showPingLun(item2)">
|
||||||
|
<view class="" v-html="item2.phtml"></view>
|
||||||
|
<!-- <view class="" v-html="item2.content"></view> -->
|
||||||
|
</view>
|
||||||
|
<view class="flexbox" style="text-align: right; align-items: center; justify-content: space-between;">
|
||||||
|
<view class="flexbox" @click="showPingLun(item2)" style="align-items: center;justify-content: space-between; ">
|
||||||
|
<u-icon style="display: inline ;margin-left: 10rpx; " name="chat" color="#999"
|
||||||
|
size="18" ></u-icon>
|
||||||
|
<text class="time" style="display: inline ;margin-right: 20rpx; ">回复</text>
|
||||||
|
</view>
|
||||||
|
<text class="time">{{item2.createTime}}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -11,9 +11,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tip">
|
<!-- <view class="tip">
|
||||||
<text>请选择要打卡的书籍:</text>
|
<text>请选择要打卡的书籍:</text>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="listenList" v-if="bookList.length > 0">
|
<view class="listenList" v-if="bookList.length > 0">
|
||||||
<view class="wrap" >
|
<view class="wrap" >
|
||||||
<u-row gutter="16" justify="flex-start">
|
<u-row gutter="16" justify="flex-start">
|
||||||
@@ -59,21 +59,13 @@
|
|||||||
},
|
},
|
||||||
// 跳转到打卡页面
|
// 跳转到打卡页面
|
||||||
goToClock(val){
|
goToClock(val){
|
||||||
if(val.clockIn != 1){
|
console.log(val,'val')
|
||||||
uni.showModal({
|
if(this.contentShow == 1){
|
||||||
title: '提示',
|
|
||||||
cancelText: '暂不购买',
|
|
||||||
confirmText:'立即购买',
|
|
||||||
content: '购买后才可参与本书打卡哦~',
|
|
||||||
success: function (res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
console.log('点击了去购买');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
console.log(val,'val')
|
|
||||||
this.onPageJump('../clock/clock?bookid='+val.id)
|
this.onPageJump('../clock/clock?bookid='+val.id)
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '../eBook/bookContent?Id=' + val.id
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -194,25 +194,25 @@
|
|||||||
this.freeChapterCount = res.book.freeChapterCount
|
this.freeChapterCount = res.book.freeChapterCount
|
||||||
this.bokMesDet.userId = this.userInfo.id
|
this.bokMesDet.userId = this.userInfo.id
|
||||||
|
|
||||||
if (this.bookMessage.publisherName.indexOf(',') > 0) {
|
// if (this.bookMessage.publisherName.indexOf(',') > 0) {
|
||||||
this.bookMessage.publisherName = this.bookMessage.publisherName.split(',')
|
// this.bookMessage.publisherName = this.bookMessage.publisherName.split(',')
|
||||||
this.bookMessage.publisherId = this.bookMessage.publisherId.split(',')
|
// this.bookMessage.publisherId = this.bookMessage.publisherId.split(',')
|
||||||
this.bookMessage.publisherNIList = []
|
// this.bookMessage.publisherNIList = []
|
||||||
for (let i in this.bookMessage.publisherName) {
|
// for (let i in this.bookMessage.publisherName) {
|
||||||
this.bookMessage.publisherNIList.push({
|
// this.bookMessage.publisherNIList.push({
|
||||||
title: this.bookMessage.publisherName[i]
|
// title: this.bookMessage.publisherName[i]
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
for (let j in this.bookMessage.publisherId) {
|
// for (let j in this.bookMessage.publisherId) {
|
||||||
this.bookMessage.publisherNIList[j].id = this.bookMessage.publisherId[j]
|
// this.bookMessage.publisherNIList[j].id = this.bookMessage.publisherId[j]
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
this.bookMessage.publisherNIList = []
|
// this.bookMessage.publisherNIList = []
|
||||||
this.bookMessage.publisherNIList.push({
|
// this.bookMessage.publisherNIList.push({
|
||||||
'title': this.bookMessage.publisherName,
|
// 'title': this.bookMessage.publisherName,
|
||||||
'id': this.bookMessage.publisherId
|
// 'id': this.bookMessage.publisherId
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取电子目录
|
// 获取电子目录
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
<view class="">
|
<view class="">
|
||||||
<image src="../../static/icon/home3.png" mode="aspectFit"></image>
|
<image src="../../static/icon/home3.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="v1"><text>评 书</text></view>
|
<view class="v1"><text>书 评</text></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item " >
|
<view class="item " >
|
||||||
<!-- <u-icon name="chat" color="#fcbd71" size="24"></u-icon> -->
|
<!-- <u-icon name="chat" color="#fcbd71" size="24"></u-icon> -->
|
||||||
@@ -390,7 +390,7 @@
|
|||||||
.btns{ margin-left: 20rpx; width: calc(100% - 200rpx); box-sizing: border-box; font-size: 34rpx; justify-content: space-between;
|
.btns{ margin-left: 20rpx; width: calc(100% - 200rpx); box-sizing: border-box; font-size: 34rpx; justify-content: space-between;
|
||||||
.item{ margin-bottom:30rpx; width: 20%; text-align: center;
|
.item{ margin-bottom:30rpx; width: 20%; text-align: center;
|
||||||
image{
|
image{
|
||||||
display: block; margin-right: 10rpx; height: 112rpx;
|
display: block; height: 108rpx;
|
||||||
}
|
}
|
||||||
.v1{margin-top: -30rpx;}
|
.v1{margin-top: -30rpx;}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -217,31 +217,6 @@
|
|||||||
newOnShare(){
|
newOnShare(){
|
||||||
this.$refs.share.open()
|
this.$refs.share.open()
|
||||||
},
|
},
|
||||||
//分享app
|
|
||||||
// onShare(){
|
|
||||||
// let shareData = {
|
|
||||||
// shareUrl:"https://www.nuttyreading.com/nuttyreading.apk",
|
|
||||||
// shareTitle:"疯子读书",
|
|
||||||
// type:'0',
|
|
||||||
// summary:'疯子读书,请使用浏览器打开本链接,自动下载安装包', // 分享内容的摘要
|
|
||||||
// shareContent:"疯子读书,请使用浏览器打开本链接,自动下载安装包",
|
|
||||||
// shareImg:"static/fengziIcon.jpg",
|
|
||||||
// appId : "wx47134a8f15083734", // 默认不传type的时候,必须传appId和appPath才会显示小程序图标
|
|
||||||
// appPath : "https://www.nuttyreading.com/nuttyreading.apk",
|
|
||||||
// appWebUrl : "https://www.nuttyreading.com/nuttyreading.apk",
|
|
||||||
// };
|
|
||||||
// // 调用
|
|
||||||
// let shareObj = appShare(shareData,res => {
|
|
||||||
// console.log("疯子读书",res);
|
|
||||||
// // 分享成功后关闭弹窗
|
|
||||||
// // 第一种关闭弹窗的方式
|
|
||||||
// closeShare();
|
|
||||||
// });
|
|
||||||
// setTimeout(() => {
|
|
||||||
// // 第二种关闭弹窗的方式
|
|
||||||
// shareObj.close();
|
|
||||||
// },5000);
|
|
||||||
// },
|
|
||||||
|
|
||||||
// 注销账户
|
// 注销账户
|
||||||
logout(){
|
logout(){
|
||||||
|
|||||||
@@ -49,13 +49,14 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view v-if="this.show==1&&this.bookList==''">
|
|
||||||
<u-divider text="暂无数据"></u-divider>
|
|
||||||
</view>
|
|
||||||
<view style="padding-bottom: 20rpx;">
|
<view style="padding-bottom: 20rpx;">
|
||||||
<u-back-top :scroll-top="scrollTop"></u-back-top>
|
<u-back-top :scroll-top="scrollTop"></u-back-top>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="this.show==1&&this.bookList==''">
|
||||||
|
<u-divider text="暂无数据"></u-divider>
|
||||||
|
</view>
|
||||||
<music-play :playData="playData"></music-play>
|
<music-play :playData="playData"></music-play>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -285,8 +286,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sear_list {
|
.sear_list { border: 1px solid red;
|
||||||
margin: 50rpx 30rpx 0 30rpx; display: flex; flex-wrap: wrap; justify-content: space-between;
|
margin: 50rpx 30rpx 0 30rpx; display: flex; flex-wrap: wrap;
|
||||||
|
// justify-content: space-between;
|
||||||
|
|
||||||
.bl_tioa {
|
.bl_tioa {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
|||||||
Reference in New Issue
Block a user