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

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

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

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

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

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

Loading…
Cancel
Save