阶段性上传

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

@@ -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
})