线下预约微信通知 跳转待支付。线下到期订单不删除

main
岩仔88 2 weeks ago
parent 785c40164f
commit 10ee1e984c

@ -247,11 +247,13 @@ class OrderService
'type' => $orderInfo->type,
'预约Id' => $orderInfo->appointment_number
]);
$orderJson = json_encode($orderInfo, JSON_UNESCAPED_UNICODE);
$insert=DB::table('orders_delete')->insert(['order_info' =>$orderJson]);
if($insert){
DB::table('orders')->where(['id' => $orderInfo->id])->delete();
}
//之前是到期进行删除26年1月改为不删除只把状态为取消即可。
//$orderJson = json_encode($orderInfo, JSON_UNESCAPED_UNICODE);
// $insert=DB::table('orders_delete')->insert(['order_info' =>$orderJson]);
// if($insert){
// DB::table('orders')->where(['id' => $orderInfo->id])->delete();
// }
}
return true;
}

@ -31,6 +31,10 @@
type:String,
default:''
},
status: {
type: String,
default: ''
}
});
const getUserInfo = async () => {
@ -237,7 +241,8 @@
NoticeInfo.value=response.data
if (!!$props.path && $props.path=='order') {
let orderid=$props.orderid?$props.orderid:''
let canshu='?orderid='+orderid
let status=$props.status?$props.status:''
let canshu='?orderid='+orderid+'&status='+status
uni.navigateTo({
url: "/pages/main/order/order"+canshu
})
@ -249,7 +254,6 @@
return item ? item.value : '';
}
onShow(() => {
uni.getLocation({
type: 'wgs84',
success: (res) => {

@ -22,7 +22,11 @@ const props = defineProps({
orderid: {
type: String,
default: ''
}
},
status: {
type: String,
default: ''
}
});
const tip_str = ref('授权登录中,请稍候...')
@ -40,6 +44,7 @@ const checkOpenid = () => {
const openid = getPureValue(props.openid);
const path = getPureValue(props.path);
const orderid = getPureValue(props.orderid);
const status = getPureValue(props.status);
// 4. undefined
let redirectParams = '';
@ -51,6 +56,9 @@ const checkOpenid = () => {
if (orderid) {
redirectParams += `${redirectParams ? '&' : '?'}orderid=${orderid}`;
}
if (status) {
redirectParams += `${redirectParams ? '&' : '?'}status=${encodeURIComponent(status)}`;
}
if (openid) {
uni.setStorageSync('OPENID', openid);

@ -716,7 +716,7 @@
line-height: 60rpx;
text-align: center;
font-weight: 400;
font-size: 24rpx;
font-size: 26rpx;
margin-left: 20rpx;
}
@ -750,7 +750,7 @@
}
.order_pay_time_wrapper {
font-size: 24rpx;
font-size: 26rpx;
color: #101010;
line-height: 26rpx;
}
@ -783,7 +783,7 @@
text-align: right;
margin-right: 30rpx;
font-size: 26rpx;
font-size: 28rpx;
}
.price_text {
@ -807,7 +807,7 @@
.order_info_line_label_wrapper {
width: 140rpx;
font-weight: 400;
font-size: 26rpx;
font-size: 28rpx;
color: #101010;
line-height: 1;
margin-left: 30rpx;
@ -815,7 +815,7 @@
.order_info_line_value_wrapper {
font-weight: 400;
font-size: 26rpx;
font-size: 28rpx;
color: #101010;
line-height: 1;
margin-left: 10rpx;
@ -824,7 +824,7 @@
.combo_name_wrapper {
padding-top: 4rpx;
width: calc(550rpx - 30rpx);
font-size: 26rpx;
font-size: 28rpx;
color: #101010;
line-height: 1;
margin-left: 10rpx;
@ -837,7 +837,7 @@
position: absolute;
top: 27rpx;
right: 27rpx;
font-size: 26rpx;
font-size: 28rpx;
}
.order_status_wrapper.status1 {
@ -877,7 +877,7 @@
}
.click_detail {
font-size: 24rpx;
font-size: 26rpx;
color: #239ea3;
margin-left: 30rpx;
margin-top: 20rpx;
@ -886,7 +886,7 @@
.OrderInfoRow {
display: flex;
font-size: 26rpx;
font-size: 28rpx;
margin-top: 16rpx;
color: #666;
@ -919,12 +919,12 @@
.tishi_title{
text-align: center;
font-size: 30rpx;
font-size: 32rpx;
font-weight: 600;
color:#2b2827;
}
.tishi_title2{
font-size: 28rpx;
font-size: 30rpx;
margin-top: 30rpx;
font-weight: 600;
color:#3a3635;
@ -932,7 +932,7 @@
padding-left: 5rpx;
}
.tishi_content{
font-size: 28rpx;
font-size: 30rpx;
margin-top: 30rpx;
color:#474241;
}

Loading…
Cancel
Save