|
|
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const common_assets = require("../../common/assets.js");
- if (!Array) {
- const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar");
- const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
- (_easycom_uni_nav_bar2 + _easycom_uni_section2)();
- }
- const _easycom_uni_nav_bar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js";
- const _easycom_uni_section = () => "../../uni_modules/uni-section/components/uni-section/uni-section.js";
- if (!Math) {
- (_easycom_uni_nav_bar + _easycom_uni_section)();
- }
- const _sfc_main = {
- __name: "payment",
- setup(__props) {
- const form = common_vendor.reactive({
- money: ""
- });
- const index = common_vendor.ref(0);
- function selectMoney(money, item) {
- form.money = money;
- index.value = item;
- }
- function focus() {
- }
- return (_ctx, _cache) => {
- return common_vendor.e({
- a: common_vendor.p({
- dark: true,
- fixed: true,
- ["background-color"]: "#00aaff",
- border: false,
- ["status-bar"]: true,
- title: "加油"
- }),
- b: common_vendor.p({
- title: "输入金额",
- type: "line",
- titleFontSize: "34rpx"
- }),
- c: common_assets._imports_0,
- d: common_vendor.o(focus),
- e: form.money,
- f: common_vendor.o(($event) => form.money = $event.detail.value),
- g: form.money
- }, form.money ? {
- h: common_vendor.t(form.money * 0.99)
- } : {}, {
- i: common_vendor.f(3, (item, k0, i0) => {
- return {
- a: common_vendor.t(item * 100),
- b: common_vendor.o(($event) => selectMoney(item * 100, item)),
- c: index.value == item ? 1 : ""
- };
- })
- });
- };
- }
- };
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-eade9ab2"]]);
- wx.createPage(MiniProgramPage);
|