合同小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.3 KiB

3 months ago
3 months ago
3 months ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const api = require("../../api.js");
  4. const _sfc_main = common_vendor.defineComponent({
  5. data() {
  6. return {
  7. list: [],
  8. currentIndex: "",
  9. clientInfo: new UTSJSONObject({}),
  10. certFront: "",
  11. carPic: "",
  12. certBack: ""
  13. };
  14. },
  15. onLoad(options) {
  16. this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));
  17. },
  18. mounted() {
  19. api.childList(new UTSJSONObject({ pid: getApp().pid_1 })).then((res = null) => {
  20. this.list = res.result.records;
  21. });
  22. },
  23. methods: {
  24. getBack() {
  25. common_vendor.index.navigateBack({ delta: 1 });
  26. },
  27. getName(name = null) {
  28. this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;
  29. common_vendor.index.__f__("log", "at pages/views/car.uvue:56", "3", this.clientInfo.appOrderCarList[0].carSeries);
  30. if (getApp().flag != 1) {
  31. common_vendor.index.redirectTo({ url: "/pages/index/PayPal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) });
  32. } else {
  33. common_vendor.index.redirectTo({ url: "/pages/index/PayPal_pinpai?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) });
  34. }
  35. }
  36. }
  37. });
  38. if (!Array) {
  39. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  40. _easycom_uni_icons2();
  41. }
  42. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  43. if (!Math) {
  44. _easycom_uni_icons();
  45. }
  46. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  47. return {
  48. a: common_vendor.p({
  49. type: "left",
  50. size: "30"
  51. }),
  52. b: common_vendor.o((...args) => $options.getBack && $options.getBack(...args)),
  53. c: common_vendor.f($data.list, (item, index, i0) => {
  54. return {
  55. a: common_vendor.t(item.name),
  56. b: "08b6e8fc-1-" + i0,
  57. c: index,
  58. d: common_vendor.o(($event) => $options.getName(item.name), index)
  59. };
  60. }),
  61. d: common_vendor.p({
  62. type: "right",
  63. color: "#c0c0c0"
  64. }),
  65. e: $data.currentIndex,
  66. f: common_vendor.sei(_ctx.virtualHostId, "view")
  67. };
  68. }
  69. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  70. wx.createPage(MiniProgramPage);
  71. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/views/car.js.map