加油站付款小程序,打印小票
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.

62 lines
2.0 KiB

9 months ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. if (!Array) {
  5. const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar");
  6. const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
  7. (_easycom_uni_nav_bar2 + _easycom_uni_section2)();
  8. }
  9. const _easycom_uni_nav_bar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js";
  10. const _easycom_uni_section = () => "../../uni_modules/uni-section/components/uni-section/uni-section.js";
  11. if (!Math) {
  12. (_easycom_uni_nav_bar + _easycom_uni_section)();
  13. }
  14. const _sfc_main = {
  15. __name: "payment",
  16. setup(__props) {
  17. const form = common_vendor.reactive({
  18. money: ""
  19. });
  20. const index = common_vendor.ref(0);
  21. function selectMoney(money, item) {
  22. form.money = money;
  23. index.value = item;
  24. }
  25. function focus() {
  26. }
  27. return (_ctx, _cache) => {
  28. return common_vendor.e({
  29. a: common_vendor.p({
  30. dark: true,
  31. fixed: true,
  32. ["background-color"]: "#00aaff",
  33. border: false,
  34. ["status-bar"]: true,
  35. title: "加油"
  36. }),
  37. b: common_vendor.p({
  38. title: "输入金额",
  39. type: "line",
  40. titleFontSize: "34rpx"
  41. }),
  42. c: common_assets._imports_0,
  43. d: common_vendor.o(focus),
  44. e: form.money,
  45. f: common_vendor.o(($event) => form.money = $event.detail.value),
  46. g: form.money
  47. }, form.money ? {
  48. h: common_vendor.t(form.money * 0.99)
  49. } : {}, {
  50. i: common_vendor.f(3, (item, k0, i0) => {
  51. return {
  52. a: common_vendor.t(item * 100),
  53. b: common_vendor.o(($event) => selectMoney(item * 100, item)),
  54. c: index.value == item ? 1 : ""
  55. };
  56. })
  57. });
  58. };
  59. }
  60. };
  61. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-eade9ab2"]]);
  62. wx.createPage(MiniProgramPage);