{"code":"import { defineComponent } from \"vue\";\nexport default defineComponent({\n    data() {\n        return {\n            username: '',\n            password: '',\n            isModalVisible: false,\n            modalTitle: '',\n            modalContent: '',\n            popupNoCancelShow: false,\n            checked: false,\n        };\n    },\n    onLoad() {\n        uni.request({\n            url: 'https://gpt.aiym.run/contract/miniapp/product/categories',\n            method: 'GET',\n            header: new UTSJSONObject({\n                \"Content-Type\": \"application/json\",\n                \"X-Access-Token\": '11'\n            }),\n            success: (res) => {\n                uni.__f__('log', 'at pages/index/login.uvue:78', res.data);\n            }\n        });\n    },\n    methods: {\n        // 处理登录逻辑\n        handleLogin() {\n            if (!this.username || !this.password) {\n                uni.showToast({ title: '请输入账号和密码', icon: 'none' });\n                return null;\n            }\n            else {\n                uni.__f__('log', 'at pages/index/login.uvue:92', this.checked);\n                if (this.checked) {\n                    uni.showToast({ title: '登录成功', icon: 'success' });\n                    uni.switchTab({ url: '/pages/home/home' });\n                }\n                else {\n                    uni.showToast({ title: '请勾选服务协议', icon: 'none' });\n                }\n            }\n        },\n        // 显示弹窗\n        showModal() {\n            this.popupNoCancelShow = true;\n        },\n        // 关闭弹窗\n        closeModal() {\n            this.popupNoCancelShow = false;\n        },\n        change(e = null) {\n            uni.__f__('log', 'at pages/index/login.uvue:110', '当前模式：' + e.type + ',状态：' + e.show);\n        },\n        changeCK() {\n            if (this.checked) {\n                this.checked = false;\n            }\n            else {\n                this.checked = true;\n            }\n        },\n        // 处理选中事件\n        getConfirm() {\n            uni.__f__('log', 'at pages/index/login.uvue:121', \"111\");\n            if (this.checked) {\n                this.checked = this.checked;\n            }\n            else {\n                this.checked = true;\n            }\n            this.popupNoCancelShow = false;\n        }\n    }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/index/login.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.request","uni.__f__","uni.showToast","uni.switchTab"],"map":"{\"version\":3,\"file\":\"login.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",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