添加月卡订单页面的去支付和取消订单

This commit is contained in:
赵毅 2025-09-13 10:41:29 +08:00
parent c3ad7f9a37
commit 058d2d4a60
2 changed files with 44 additions and 2 deletions

View File

@ -30,7 +30,7 @@
<!-- 电商服务区域 --> <!-- 电商服务区域 -->
<view class="service-section"> <view class="service-section">
<text class="section-title">电商服务</text> <text class="section-title">订单信息</text>
<view class="info-item"> <view class="info-item">
<text class="info-label">车牌号码</text> <text class="info-label">车牌号码</text>

View File

@ -136,7 +136,49 @@ export default {
} }
}, },
onLoad(options) { onLoad(options) {
this.itemObj = JSON.parse(decodeURIComponent(options.item)); const rawData = JSON.parse(decodeURIComponent(options.item));
// month_card_order_list
if (rawData.carInfo) {
// trans_type
// : 71, App: 51
const systemInfo = uni.getSystemInfoSync();
let trans_type = 51; // App
//
if (systemInfo.platform === 'devtools' || systemInfo.platform === 'unknown') {
trans_type = 71; //
}
//
// #ifdef MP
trans_type = 71; //
// #endif
// #ifdef APP-PLUS
trans_type = 51; // App
// #endif
this.itemObj = {
endTime: rawData.carInfo.deadline_time || '',
headerTitle: rawData.parkingInfo.parking_name || '',
monthCount: rawData.month_num || 0,
monthPrice: rawData.monthly_rental_fee || 0,
order_id: rawData.id || 0,
paymentAmount: rawData.amount || 0,
selectedBillingRule: rawData.billing_rule_id || '',
selectedCarPlate: rawData.carInfo.car_no || '',
selectedCarPlateId: rawData.carInfo.id || 0,
selectedParkId: rawData.parking_id || 0,
selectedParkType: rawData.parkingInfo.space_type || 0,
startTime: rawData.carInfo.enable_time || '',
trans_type: trans_type,
user_id: rawData.user_id || 0
};
} else {
// 使
this.itemObj = rawData;
}
} }
} }
</script> </script>