Files
JMApp/pages/orderPaySuccess/orderPaySuccess.js
XiaoMo 95eed74b96 feat: 新增商品详情搭配优惠组件和客服弹窗
refactor: 优化页面样式和交互逻辑

fix: 修复洗车券列表和详情页的数据展示问题

style: 调整用户页面按钮样式和布局

chore: 移除无用页面和代码,更新项目配置

docs: 更新单次启动页面的使用说明和注意事项

perf: 优化网络请求和数据处理逻辑

build: 更新依赖和配置文件

test: 更新测试用例以适应新功能

ci: 调整CI配置以适应新项目结构
2026-01-03 11:26:51 +08:00

50 lines
1.8 KiB
JavaScript

var e = require("../../@babel/runtime/helpers/interopRequireDefault")(require("../../@babel/runtime/regenerator")), r = require("../../@babel/runtime/helpers/slicedToArray"), t = require("../../@babel/runtime/helpers/asyncToGenerator"), i = (getApp(),
require("../../utils/login.js"));
require("../../utils/common.js");
Page({
data: {
showLoding: !0,
orderid: "",
recommendedList: [],
info: {}
},
onLoad: function(e) {
this.setData({
orderid: e.orderid || ""
}), this.getOrderDetail();
},
getOrderDetail: function() {
var n = this;
return t(e.default.mark(function t() {
var a, o, s;
return e.default.wrap(function(e) {
for (;;) switch (e.prev = e.next) {
case 0:
return n, e.prev = 1, a = n.data.orderid, e.next = 5, i.request(i.baseUrl + "shop/notify/paymentSuccessful", {
orderid: a
}, !0);
case 5:
o = e.sent, console.log("getOrderDetail", o), (s = o.data).recommendedList.forEach(function(e) {
var t = e.price.split("."), i = r(t, 2);
e.price_buck = i[0], e.price_cent = i[1];
}), n.setData({
showLoding: !1,
info: s,
recommendedList: s.recommendedList
}), e.next = 15;
break;
case 12:
e.prev = 12, e.t0 = e.catch(1), console.log(e.t0);
case 15:
case "end":
return e.stop();
}
}, t, null, [ [ 1, 12 ] ]);
}))();
}
});