This commit is contained in:
2023-11-14 16:12:12 +08:00
parent 1ec6a1dffa
commit d41c9cc83e

View File

@ -82,7 +82,7 @@
去评价
<!-- </view> -->
</view>
<!-- <view class="logistics harvest" @tap='Receipt(item)'
<!-- <view class="logistics harvest" @tap='Receipt(item)'
v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'&&item.orderType !='HEALTH_CONSULTATION'">
确认收货</view> -->
<!-- <view class="logistics harvest" @tap='Receipt(item)'
@ -237,17 +237,7 @@
this.goodsOrderinfo()
},
},
methods: {
// info() {
// var _this = this
// _this.userId = _this.orderTypeList.patientId
// console.log(_this.userId, '88585')
// getUserSig(_this.userId).then(res => {
// console.log(res, '555')
// this.userSig = res.data
// })
// },
submit() {
console.log(this.orderlist[0], '858')
console.log(this.orderlist[0].goOrderNo, '88')
@ -262,6 +252,7 @@
}
insertGoodsEvaluate(obj).then(res => {
if (res.code == 200) {
uni.setStorageSync("Refresh", 'Refresh')
this.$refs.uToast.show({
title: '评价成功',
type: 'success',
@ -280,13 +271,8 @@
},
//tabs
tabschange(index) {
console.log(this.tabslist)
console.log(index, '99')
this.tabscurrent = index;
this.orderTypeList.orderStatus = this.tabslist[index].orderStatus
// console.log(this.orderTypeList.orderStatus, '999')
// console.log(this.orderTypeList.orderType, '99')
this.goodsOrderinfo();
},
//
@ -295,10 +281,6 @@
this.rateval = 0
}
this.evaluatenurse = true;
// uni.navigateTo({
// url: `/pagesB/goodsorderRate/goodsorderRate?item=${item}&delta=${2}`
// })
},
//
goprevious() {
@ -309,46 +291,12 @@
},
//
golookrate(item) {
console.log(item, '555')
var orderNo = item.goOrderNo
lookrate(orderNo).then(res => {
this.rateval = res.data.compositeScore
this.evaluatenurse = true
})
// uni.navigateTo({
// url: `/pagesB/lookrate/lookrate?item=${JSON.stringify(item)}`
// })
},
//
// Receipts() {
// confirmReceipt(this.orderNoitem.goOrderNo).then(res => {
// if (res.code == 200) {
// this.$refs.uToast.show({
// title: '',
// type: 'success',
// duration: '1000'
// })
// this.show = false
// this.goodsOrderinfo()
// uni.setStorageSync("Refresh", 'Refresh')
// // setTimeout(e => {
// // uni.navigateTo({
// // url: `/pagesB/goodsorderRate/goodsorderRate?item=${JSON.stringify(this.orderNoitem)}&delta=${1}`
// // })
// // uni.navigateTo({
// // url: `/pagesB/orderDetails/orderDetails?goodsOrderId=${this.orderNoitem.goodsOrderId}`
// // })
// // }, 1000)
// } else {
// this.$refs.uToast.show({
// title: '',
// type: 'error',
// duration: '1000'
// })
// this.show = false
// }
// })
// },
//
buy(item) {
let obj = {
@ -395,7 +343,6 @@
}
})
},
//
gologistics(item) {
uni.navigateTo({
@ -431,7 +378,6 @@
//
goodsOrderinfo() {
// this.orderTypeList.orderType = this.patientId
console.log(this.orderTypeList, '45')
ssgoodsOrder(this.orderTypeList).then(
res => {
if (res.code == 200) {
@ -444,14 +390,8 @@
// })
uni.removeStorageSync('Refresh');
this.total = res.total
} else if (res.code == 9999) {
this.$refs.uToast.show({
title: '未登录,请先登录',
type: 'error',
})
}
})
// this.roomitem()
},
//
Receipt(item) {
@ -460,7 +400,6 @@
this.show = true
},
},
onReady() { //
// uni.setNavigationBarTitle({
// title: this.title,
@ -483,18 +422,12 @@
that.orderTypeList.patientId = value
that.openid = value2
if (options.orderStatus) {
console.log(options.orderStatus, '585')
that.tabscurrent = options.toindex
that.orderStatus = options.orderStatus
that.goodsOrderinfo();
} else {
that.goodsOrderinfo();
}
} else {
that.$refs.uToast.show({
title: '未登录,请先登录',
type: 'error',
})
}
},
onReachBottom() { //
@ -856,4 +789,4 @@
}
}
}
</style>
</style>