1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const common_assets = require("../../common/assets.js");
- const services_task = require("../../services/task.js");
- if (!Array) {
- const _easycom_wd_button2 = common_vendor.resolveComponent("wd-button");
- _easycom_wd_button2();
- }
- const _easycom_wd_button = () => "../../node-modules/wot-design-uni/components/wd-button/wd-button.js";
- if (!Math) {
- _easycom_wd_button();
- }
- const _sfc_defineComponent = common_vendor.defineComponent({
- __name: "index",
- setup(__props) {
- const title = common_vendor.ref("Hello");
- common_vendor.onLoad(() => {
- common_vendor.index.getUserInfo({
- success: (success) => {
- console.log(success);
- }
- });
- });
- const onLogin = async () => {
- let form = {
- mobile: "18927563000",
- password: "123456"
- };
- let res = await services_task.postLoginAPI(form);
- if (res.code == 200) {
- console.log("1111111111111111");
- } else {
- return common_vendor.index.showToast({
- title: res.msg,
- icon: "none"
- });
- }
- };
- return (_ctx, _cache) => {
- return {
- a: common_assets._imports_0,
- b: common_vendor.t(title.value),
- c: common_vendor.o(onLogin),
- d: common_vendor.p({
- type: "success"
- })
- };
- };
- }
- });
- _sfc_defineComponent.__runtimeHooks = 1;
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_defineComponent, [["__scopeId", "data-v-276ac604"]]);
- wx.createPage(MiniProgramPage);
|