阶段性上传

This commit is contained in:
@fawn-nine
2023-09-08 18:06:39 +08:00
parent 7b9044f4df
commit b0cc2b8663
62 changed files with 5075 additions and 506 deletions

View File

@@ -86,7 +86,7 @@
bgiStyle: {
background: '#2ab58833'
},
iconStyle: {
iconStyle: {
fontSize: '40rpx',
fontWeight: 'bold',
color: '#54a966',

View File

@@ -29,8 +29,10 @@
<view v-if="contentShow == 0">
<view class="tingshuList" v-if="listenList.length > 0">
<h4>赠送听书权益</h4>
<view class="item flexbox" v-for="item in listenList" :key="item.id" @click="goToListen(item.id)">
<text>{{item.name}}</text><u-icon name="volume" color="#71d5a1" size="24">立即试听</u-icon>
<view class="item flexbox" v-for="item in listenList" :key="item.id" style="vertical-align: middle;">
<text style="margin-top: 10rpx; padding-right: 10rpx;">{{item.name}}</text>
<u-icon v-if="item.canListen == 'true'" name="volume" color="#71d5a1" size="24" @click="goToListen(item.id)"></u-icon>
<u-icon v-else name="volume" color="#71d5a1" size="24" @click="goToListenNone(item.id)"></u-icon>
</view>
</view>
<view class="bookInfo" >
@@ -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;}
}

View File

@@ -49,14 +49,13 @@
</view>
<br clear="both">
</view>
<!-- <view class="orderOper" v-if="orderContet.orderStatus=='3'"> -->
<view class="orderOper" >
<view style="width: 100%; text-align: right;">
<view @click.stop="pingji(item.productId)" class="opCan" >评价</view>
<view @click.stop="showZhuiping(item.productId)" class="opCan" >追评</view>
<view v-if="userRecordid == null" @click.stop="pingji(item.productId)" class="opCan" >评价</view>
<view v-else @click.stop="showZhuiping(item.productId)" class="opCan" >追评</view>
</view>
</view>
<br clear="both">
</view>
@@ -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
})

View File

@@ -292,7 +292,8 @@
// this.getYunFei()
},
onShow() {
onShow() {
console.log('进来了这个页面')
this.getProid()
// return false
// if (this.typeId == 1) {