unpackage/dist/dev/mp-weixin/pages/recharge/index.js
@@ -49,6 +49,7 @@
      { text: "微信支付", value: 2, checked: true, img: "../../static/images/recharge/wx.png" }
      // {text:"余额",value:3,checked:false,img:'../../static/images/recharge/balance.png'},
    ]);
    const e = common_vendor.ref("123125");
    async function submit() {
      let money = "";
      if (disabled.value) {
@@ -57,7 +58,8 @@
        money = Number(otherMoney.value);
      }
      await api_index.wxPayApi({ businessType: 1, tradeAmount: money }).then((res) => {
        console.log("reswxpay", res);
        e.value = res;
        if (res.code == 200) {
        common_vendor.wx$1.requestPayment({
          //预支付订单信息
          // appId: res.data.appId,
@@ -74,14 +76,28 @@
          success(res2) {
            if (res2.errMsg == "requestPayment:ok") {
              console.log("支付成功", res2);
                common_vendor.index.showToast({
                  title: "支付成功",
                  duration: 2e3
                });
                common_vendor.index.navigateBack();
            } else {
              console.log("支付失败");
                common_vendor.index.showToast({
                  title: "支付失败",
                  duration: 2e3,
                  icon: "none"
                });
            }
          },
          fail(res2) {
            console.log("支付失败", res2);
              common_vendor.index.showToast({
                title: "微信支付失败",
                duration: 2e3,
                icon: "none"
              });
          }
        });
        }
      });
    }
    return (_ctx, _cache) => {
@@ -109,7 +125,8 @@
            d: item.checked
          };
        }),
        h: common_vendor.o(($event) => submit())
        h: common_vendor.t(e.value),
        i: common_vendor.o(($event) => submit())
      };
    };
  }