### commit message

1. 修复并优化多项功能的实现和配置更新。
   - 在`bookTicket`组件中,确保表单数据同步更新,并记录选择的日期。   - 更新`config.js`,修改请求和根路径以指向新地址。
   - 在`order`组件中,优化退款功能的逻辑,正确计算支付金额。
   - 在`zhinengjiqiren`组件中,更新聊天消息的时间格式。

   每项更改均旨在增强功能性和性能,确保与用户交互的顺畅进行。
lu_quan_dev
Tuzki 1 year ago
parent f85cb886df
commit 5ac955fe43
  1. 8
      common/config.js
  2. 6
      subPageB/jiqiren/jiqiren/zhinengjiqiren.vue
  3. 11
      subPageC/bookTicket/bookTicket.vue
  4. 5
      subPageC/order/order.vue

@ -2,10 +2,10 @@
// const REAUEST_ROOTPATH = "https://app.xawl.gov.cn/";
// const ROOTPATH = "https://app.xawl.gov.cn/";
// const REAUEST_ROOTPATH = "http://192.168.130.205:8083";
const REAUEST_ROOTPATH = "https://eluyou.ailuquan.cn";
// const REAUEST_ROOTPATH = "http://192.168.0.181:8083/";
// const ROOTPATH = "http://192.168.130.205:8083";
const ROOTPATH = "https://eluyou.ailuquan.cn";
// const REAUEST_ROOTPATH = "https://eluyou.ailuquan.cn";
const REAUEST_ROOTPATH = "http://192.168.110.113:8083/";
const ROOTPATH = "http://192.168.110.113:8083";
// const ROOTPATH = "https://eluyou.ailuquan.cn";
//票务根
const PWPATH = "http://192.168.130.157:48080";
// const PWPATH = "https://eluyou.ailuquan.cn";

@ -110,7 +110,7 @@ innerAudioContext.autoplay = true;
messages: [{
type:"jiqiren",
typestyle:"dly_flex left_dig m-item",
time: this.$util.getCurrentTime(),
time: this.$util.getCurrentTime3(),
headurl:"/subPageB/static/img/jqr_jxw.png",
content:[{text:"您好,我是您的智能小助手"}],
contentstyle:"jqr_box_txt dig_gd"
@ -175,7 +175,7 @@ innerAudioContext.autoplay = true;
this.messages.push({
type:"user",
typestyle:"dly_flex_c2 right_dig m-item me",
time: this.$util.getCurrentTime(),
time: this.$util.getCurrentTime3(),
headurl:"",
content:[{text:title}],
contentstyle:"jqr_box"
@ -215,7 +215,7 @@ innerAudioContext.autoplay = true;
this.messages.push({
type:"jiqiren",
typestyle:"dly_flex left_dig m-item",
time: this.$util.getCurrentTime(),
time: this.$util.getCurrentTime3(),
headurl:"/subPageB/static/img/jqr_jxw.png",
content:content,
page:page,

@ -1093,7 +1093,9 @@ export default {
} else {
//
const index = this.dataList.findIndex(item => item.id === this.baseFormData.id);
const index1 = this.selectUserList.findIndex(item => item.id === this.baseFormData.id);
this.$set(this.dataList, index, { ...this.dataList[index], ...this.baseFormData });
this.$set(this.selectUserList, index1, { ...this.selectUserList[index1], ...this.baseFormData });
}
console.log("表单数据信息:", that.dataList, that.navUserList, that.selectUserList);
const sessionDataList = [...this.dataList];
@ -1547,10 +1549,19 @@ export default {
})
} else {
that.nowIndex = -1
// that.nowIndex = 8
// this.dates.push({
// date: this.getFormattedDate(i),
// fullDate: e.fulldate,
// isAvailable: true,
// price: e.extraInfo.topInfo.replace("", "").trim(),
// inventory: 0,
// })
}
})
this.maxBuyNums = e.extraInfo.info == "" ? 100 : e.extraInfo.info.match(/\d+/)[0]
this.ticket.date = e.fulldate;
this.choseDate = e.fullDate;
this.ticket.settlementPrice = parseFloat(
e.extraInfo.topInfo.replace("元", "").trim()
);

@ -410,11 +410,16 @@ export default {
//退
refund(val) {
console.log(val, 'val')
let payAmount = 0
if (val && Array.isArray(val.ticketList)) {
const filteredList = val.ticketList.filter(item => item.ticketStatus == 1);
payAmount = filteredList.reduce((sum, item) => {
return sum + (item.settlementAmount || 0); // settlementAmount
}, 0);
val.ticketList = filteredList; // ticketList
}
this.orderInfo = val; // orderInfo
this.orderInfo.payAmount = payAmount; // orderInfo
console.log(this.orderInfo);
// backOrder

Loading…
Cancel
Save