修改
This commit is contained in:
parent
4a8fa4b8f1
commit
2bd3decb7a
@ -175,7 +175,6 @@
|
|||||||
},
|
},
|
||||||
//立即购买跳转确认订单页面
|
//立即购买跳转确认订单页面
|
||||||
tapbuy() {
|
tapbuy() {
|
||||||
this.buyshow = false
|
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
try {
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
@ -198,6 +197,7 @@
|
|||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
that.buyshow = false
|
||||||
that.updata.totalPrice = (that.updata.goodsPrice * that.updata
|
that.updata.totalPrice = (that.updata.goodsPrice * that.updata
|
||||||
.goodsCount).toFixed(
|
.goodsCount).toFixed(
|
||||||
2)
|
2)
|
||||||
@ -206,6 +206,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
that.buyshow = false
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(that.updata)}`
|
url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(that.updata)}`
|
||||||
})
|
})
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
<view class="anniu">
|
<view class="anniu">
|
||||||
<view class="logistics" v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'" @tap='gologistics(item)'>查看物流
|
<view class="logistics" v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'" @tap='gologistics(item)'>查看物流
|
||||||
</view>
|
</view>
|
||||||
<view class="logistics harvest" @tap='Receipt(item)' v-if="item.orderStatus=='WAIT_PAY'">
|
<view class="logistics harvest" v-if="item.orderStatus=='WAIT_PAY'" @tap='buy(item)'>
|
||||||
去支付</view>
|
去支付</view>
|
||||||
<view class="logistics harvest" @tap='Receipt(item)' v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'">
|
<view class="logistics harvest" @tap='Receipt(item)' v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'">
|
||||||
确认收货</view>
|
确认收货</view>
|
||||||
@ -89,6 +89,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//支付
|
||||||
|
buy(item) {
|
||||||
|
let obj = {
|
||||||
|
patientId: this.patientId,
|
||||||
|
orderNo: item.goOrderNo,
|
||||||
|
orderChannel: "WECHAT_APPLET",
|
||||||
|
paymentPrice: item.totalPrice,
|
||||||
|
payType: "WECHAT_PAY",
|
||||||
|
buySource: item.buySource,
|
||||||
|
}
|
||||||
|
console.log(obj)
|
||||||
|
},
|
||||||
//物流页面
|
//物流页面
|
||||||
gologistics(item) {
|
gologistics(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -112,7 +124,6 @@
|
|||||||
},
|
},
|
||||||
//确认收货
|
//确认收货
|
||||||
Receipt(item) {
|
Receipt(item) {
|
||||||
console.log(item)
|
|
||||||
this.img = item.attributePitureUrl
|
this.img = item.attributePitureUrl
|
||||||
this.show = true
|
this.show = true
|
||||||
},
|
},
|
||||||
|
|||||||
@ -8,9 +8,9 @@
|
|||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 0 0 20rpx 0;
|
padding: 0 0 100rpx 0;
|
||||||
margin: 20rpx auto;
|
margin: 20rpx auto;
|
||||||
|
position: relative;
|
||||||
.name {
|
.name {
|
||||||
width: 95%;
|
width: 95%;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
@ -82,7 +82,8 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
margin-left: 70%;
|
position: absolute;
|
||||||
|
right:2%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -38,14 +38,20 @@
|
|||||||
|
|
||||||
//按钮取消订单和评价
|
//按钮取消订单和评价
|
||||||
.evaluate {
|
.evaluate {
|
||||||
width: 35%;
|
width: 90%;
|
||||||
display: flex;
|
margin: 0 auto;
|
||||||
// float: right;
|
|
||||||
margin: 100rpx 0 50rpx 60%;
|
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
height: 200rpx;
|
||||||
|
.price{
|
||||||
|
position: absolute;
|
||||||
|
line-height: 68rpx;
|
||||||
|
left:0%;
|
||||||
|
top:50%;
|
||||||
|
color: red;
|
||||||
|
font-size: 46rpx;
|
||||||
|
}
|
||||||
.cancelorder {
|
.cancelorder {
|
||||||
margin-left: 5%;
|
|
||||||
width: 216rpx;
|
width: 216rpx;
|
||||||
height: 68rpx;
|
height: 68rpx;
|
||||||
background: #E1AE3C;
|
background: #E1AE3C;
|
||||||
@ -53,6 +59,9 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
line-height: 68rpx;
|
line-height: 68rpx;
|
||||||
|
position: absolute;
|
||||||
|
right:0%;
|
||||||
|
top:50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -54,9 +54,15 @@
|
|||||||
<input placeholder="请输入" v-model='userinfo.remark'>
|
<input placeholder="请输入" v-model='userinfo.remark'>
|
||||||
</view>
|
</view>
|
||||||
<view class="evaluate">
|
<view class="evaluate">
|
||||||
|
<view class="price">
|
||||||
|
¥{{orderlist.totalPrice}}
|
||||||
|
</view>
|
||||||
<view class="cancelorder" @tap="cancelorderment()"
|
<view class="cancelorder" @tap="cancelorderment()"
|
||||||
v-if="orderStatus=='PAY'||orderStatus=='WAIT_DISPATCH'||orderStatus=='NOT_FINISH'">取消订单</view>
|
v-if="orderStatus=='PAY'||orderStatus=='WAIT_DISPATCH'||orderStatus=='NOT_FINISH'">取消订单</view>
|
||||||
<!-- <view class="cancelorder " style="background: #4C7BC9;">评价</view> -->
|
<!-- <view class="cancelorder " style="background: #4C7BC9;">评价</view> -->
|
||||||
|
<view class="cancelorder" @tap='buy' style="background-color: darkorange;" v-if="orderStatus=='WAIT_PAY'">
|
||||||
|
去支付
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -98,6 +104,17 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//支付
|
||||||
|
buy() {
|
||||||
|
let obj = {
|
||||||
|
patientId: this.patientId,
|
||||||
|
orderNo: this.item.orderNo,
|
||||||
|
orderChannel: "WECHAT_APPLET",
|
||||||
|
paymentPrice: this.item.totalPrice,
|
||||||
|
payType: "WECHAT_PAY",
|
||||||
|
buySource: "NURSE_STATION",
|
||||||
|
}
|
||||||
|
},
|
||||||
gophone() {
|
gophone() {
|
||||||
var that = this
|
var that = this
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
|
|||||||
@ -122,7 +122,7 @@
|
|||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0,0,0,0.03);
|
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0,0,0,0.03);
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
margin: 0 auto;
|
margin: 20rpx auto;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
.money{
|
.money{
|
||||||
line-height: 68rpx;
|
line-height: 68rpx;
|
||||||
|
|||||||
@ -40,14 +40,14 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="integral">
|
<!-- <view class="integral">
|
||||||
<view class="header">
|
<view class="header">
|
||||||
积分抵扣
|
积分抵扣
|
||||||
</view>
|
</view>
|
||||||
<view class="number">
|
<view class="number">
|
||||||
共5积分,满100可用
|
共5积分,满100可用
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<view class="priceinfo">
|
<view class="priceinfo">
|
||||||
<view class="header money">
|
<view class="header money">
|
||||||
@ -100,7 +100,6 @@
|
|||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
import {
|
import {
|
||||||
@ -144,18 +143,6 @@
|
|||||||
url: `/pages/modifyAddress/modifyAddress?updata=${JSON.stringify(this.updata)}`
|
url: `/pages/modifyAddress/modifyAddress?updata=${JSON.stringify(this.updata)}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 收件人
|
|
||||||
goodsList() {
|
|
||||||
goodPatientInfo(this.updata.patientId).then(res => {
|
|
||||||
res.data.forEach(e => {
|
|
||||||
e.address = e.provinceName + e.cityName + e.regionName + e.streetName + e
|
|
||||||
.receiveAddress
|
|
||||||
})
|
|
||||||
this.updata.receiver = res.data[0].receiveName
|
|
||||||
this.updata.receiveAddress = res.data[0].address
|
|
||||||
this.updata.phone = res.data[0].receivePhone
|
|
||||||
})
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.updata = JSON.parse(options.updata)
|
this.updata = JSON.parse(options.updata)
|
||||||
|
|||||||
@ -1,6 +1,15 @@
|
|||||||
.app {
|
.app {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
padding: 10rpx 0 0 ;
|
||||||
|
.time{
|
||||||
|
height: 80rpx;
|
||||||
|
width: 95%;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 80rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 0 auto 10rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
.buy {
|
.buy {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@ -1,5 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
|
<view class="time" style="">
|
||||||
|
剩余付款时间:
|
||||||
|
<u-count-down style='' v-if="order.orderStatus=='WAIT_PAY'" :timestamp="timestamp">
|
||||||
|
</u-count-down>
|
||||||
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
店铺名称
|
店铺名称
|
||||||
@ -72,6 +77,7 @@
|
|||||||
orderStatus: '',
|
orderStatus: '',
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
timestamp: 0, //倒计时
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -84,6 +90,9 @@
|
|||||||
goodsOrderinfo(goodsOrderId) {
|
goodsOrderinfo(goodsOrderId) {
|
||||||
goodsOrder(this.patientId, this.orderStatus, goodsOrderId, this.pageSize, this.pageNum).then(res => {
|
goodsOrder(this.patientId, this.orderStatus, goodsOrderId, this.pageSize, this.pageNum).then(res => {
|
||||||
this.order = res.rows[0]
|
this.order = res.rows[0]
|
||||||
|
var time = new Date(this.order.orderTime).getTime() / 1000 + (60 * 60 * 24)
|
||||||
|
var times = new Date().getTime() / 1000
|
||||||
|
this.timestamp = time - times
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//跳转售后详情
|
//跳转售后详情
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user