搜索
This commit is contained in:
parent
35b4893cf6
commit
c6d7438789
@ -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>
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user