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">
<image :src="baseurl+item.personPictureUrl" mode=""
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>
<image :src="baseurl+item.attributePitureUrl" mode=""
v-if="item.orderType !='HEALTH_CONSULTATION'"></image>

View File

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

View File

@ -98,7 +98,6 @@
<view class="bottom">
<span>更多</span>
<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>
<!-- <span@tap="evaluate" v-if="list.orderStatus=='COMPLETED'">服务评价</span> -->
</view>
@ -151,59 +150,71 @@
pageNum: 1,
goodsName: '',
},
order:[],
}
},
onLoad(options) {
// if(options.item){
this.list = JSON.parse(options.item)
// console.log(this.list, '99')
// console.log(options,'88')
this.baseurl = baseurl
this.orderTypeList.goodsOrderId = options.goodsOrderId
let that = this
// const value = uni.getStorageSync('patientId');
// const value2 = uni.getStorageSync('openid');
// if (value && value2) {
// that.orderTypeList.patientId = value
// that.orderTypeList.openid = value2
// }
console.log(this.list.goodsOrderId, '555')
this.orderTypeList.goodsOrderId = this.list.goodsOrderId
// else if(options.goodsOrderId){
// this.orderTypeList.goodsOrderId = options.goodsOrderId
// let that = this
// }
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: {
goprevious() {
uni.navigateBack({
delta: 1
goodsOrderinfo() {
ssgoodsOrder(this.orderTypeList).then(
res => {
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(
res => {
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
if (this.timestamp >= 0) {
this.timecount = this.timestamp
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;
},
//
cancle() {
var list = this.list
uni.navigateTo({
url: `/pagesB/refundType/refundType?list=${JSON.stringify(this.list)}`
})
},
//
evaluate() {
this.evaluateshow = true;
},
},
}
}
}
</script>
<style lang="scss">