This commit is contained in:
闫晓茹 2023-11-02 14:44:32 +08:00
parent 35b4893cf6
commit c6d7438789
3 changed files with 58 additions and 47 deletions

View File

@ -34,7 +34,7 @@
<view class="detailslist"> <view class="detailslist">
<image :src="baseurl+item.personPictureUrl" mode="" <image :src="baseurl+item.personPictureUrl" mode=""
v-if="item.orderType =='HEALTH_CONSULTATION'&&item.personPictureUrl"></image> v-if="item.orderType =='HEALTH_CONSULTATION'&&item.personPictureUrl"></image>
<image src="@/static/pagesB/yis.png" mode="" <image src="../../static/headsculpture.png" mode=""
v-if="item.orderType =='HEALTH_CONSULTATION'&&!item.personPictureUrl"></image> v-if="item.orderType =='HEALTH_CONSULTATION'&&!item.personPictureUrl"></image>
<image :src="baseurl+item.attributePitureUrl" mode="" <image :src="baseurl+item.attributePitureUrl" mode=""
v-if="item.orderType !='HEALTH_CONSULTATION'"></image> v-if="item.orderType !='HEALTH_CONSULTATION'"></image>

View File

@ -11,7 +11,7 @@
width: 95%; width: 95%;
text-align: center; text-align: center;
line-height: 80rpx; line-height: 80rpx;
background-color: #26A888; background-color: #fff;
margin: 30rpx auto 30rpx; margin: 30rpx auto 30rpx;
border-radius: 20rpx; border-radius: 20rpx;

View File

@ -98,7 +98,6 @@
<view class="bottom"> <view class="bottom">
<span>更多</span> <span>更多</span>
<span @tap="cancle" <span @tap="cancle"
v-if="list.orderStatus!='WAIT_PAY'&&list.orderStatus!='EVALUATED'&&list.orderStatus!='WAIT_REFUND'&&list.orderStatus!='COMPLETED'&&list.orderStatus!='RECEIVED_GOODS'&&list.orderStatus!='REFUNDED'">取消订单</span> v-if="list.orderStatus!='WAIT_PAY'&&list.orderStatus!='EVALUATED'&&list.orderStatus!='WAIT_REFUND'&&list.orderStatus!='COMPLETED'&&list.orderStatus!='RECEIVED_GOODS'&&list.orderStatus!='REFUNDED'">取消订单</span>
<!-- <span@tap="evaluate" v-if="list.orderStatus=='COMPLETED'">服务评价</span> --> <!-- <span@tap="evaluate" v-if="list.orderStatus=='COMPLETED'">服务评价</span> -->
</view> </view>
@ -151,59 +150,71 @@
pageNum: 1, pageNum: 1,
goodsName: '', goodsName: '',
}, },
order:[],
} }
}, },
onLoad(options) { onLoad(options) {
// if(options.item){
this.list = JSON.parse(options.item) this.list = JSON.parse(options.item)
// console.log(this.list, '99') console.log(this.list.goodsOrderId, '555')
// console.log(options,'88') this.orderTypeList.goodsOrderId = this.list.goodsOrderId
this.baseurl = baseurl
this.orderTypeList.goodsOrderId = options.goodsOrderId // else if(options.goodsOrderId){
let that = this // this.orderTypeList.goodsOrderId = options.goodsOrderId
// const value = uni.getStorageSync('patientId'); // let that = this
// const value2 = uni.getStorageSync('openid');
// if (value && value2) {
// that.orderTypeList.patientId = value // }
// that.orderTypeList.openid = value2 this.orderTypeList.patientId = uni.getStorageSync('patientId');
// } this.orderTypeList.openid = uni.getStorageSync('openid');
// if (value && value2) {
// that.orderTypeList.patientId = value
// that.orderTypeList.openid = value2
// }
this.goodsOrderinfo()
// console.log(this.list, '99')
// console.log(options,'88')
this.baseurl = baseurl
},
methods: {
goprevious() {
uni.navigateBack({
delta: 1
})
}, },
methods: { goodsOrderinfo() {
goprevious() { ssgoodsOrder(this.orderTypeList).then(
uni.navigateBack({ res => {
delta: 1 this.order = res.rows[0]
var ordertimes = this.order.orderTime.replaceAll(/\-/gi, "/")
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
var times = new Date().getTime() / 1000
this.timestamp = time - times
console.log(this.timestamp, '8585')
if (this.timestamp >= 0) {
this.timecount = this.timestamp
this.Timers = setInterval(() => {
this.timecount--;
}, 1000)
}
}) })
}, },
goodsOrderinfo() { //
ssgoodsOrder(this.orderTypeList).then( cancle() {
res => { var list = this.list
this.order = res.rows[0] uni.navigateTo({
var ordertimes = this.order.orderTime.replaceAll(/\-/gi, "/") url: `/pagesB/refundType/refundType?list=${JSON.stringify(this.list)}`
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2) })
var times = new Date().getTime() / 1000 },
this.timestamp = time - times //
if (this.timestamp >= 0) { evaluate() {
this.timecount = this.timestamp this.evaluateshow = true;
this.Timers = setInterval(() => {
this.timecount--;
}, 1000)
}
})
},
//
cancle() {
var list = this.list
uni.navigateTo({
url: `/pagesB/refundType/refundType?list=${JSON.stringify(this.list)}`
})
},
//
evaluate() {
this.evaluateshow = true;
}, },
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">