@file:Suppress("UNCHECKED_CAST", "USELESS_CAST", "INAPPLICABLE_JVM_NAME", "UNUSED_ANONYMOUS_PARAMETER")
package uni.UNIABF0653;
import io.dcloud.uniapp.*;
import io.dcloud.uniapp.extapi.*;
import io.dcloud.uniapp.framework.*;
import io.dcloud.uniapp.runtime.*;
import io.dcloud.uniapp.vue.*;
import io.dcloud.uniapp.vue.shared.*;
import io.dcloud.unicloud.*;
import io.dcloud.uts.*;
import io.dcloud.uts.Map;
import io.dcloud.uts.Set;
import io.dcloud.uts.UTSAndroid;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.Deferred;
import kotlinx.coroutines.Dispatchers;
import kotlinx.coroutines.async;
import io.dcloud.uniapp.extapi.navigateTo as uni_navigateTo;
import io.dcloud.uniapp.extapi.showModal as uni_showModal;
import io.dcloud.uniapp.extapi.showToast as uni_showToast;
open class GenPagesIndexWode : BasePage {
    constructor(__ins: ComponentInternalInstance) : super(__ins) {}
    @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
    override fun `$render`(): Any? {
        val _ctx = this;
        val _cache = this.`$`.renderCache;
        return createElementVNode("view", utsMapOf("class" to "container"), utsArrayOf(
            createElementVNode("view", utsMapOf("class" to "user-info"), utsArrayOf(
                createElementVNode("text", utsMapOf("class" to "username"), "李晓春")
            )),
            createElementVNode("view", utsMapOf("class" to "menu"), utsArrayOf(
                createElementVNode("view", utsMapOf("class" to "menu-item"), utsArrayOf(
                    createElementVNode("image", utsMapOf("class" to "arrow", "src" to "/static/arrow-right.png")),
                    createElementVNode("text", null, "关于我们")
                )),
                createElementVNode("view", utsMapOf("class" to "menu-item"), utsArrayOf(
                    createElementVNode("image", utsMapOf("class" to "arrow", "src" to "/static/arrow-right.png")),
                    createElementVNode("text", null, "修改密码")
                )),
                createElementVNode("view", utsMapOf("class" to "menu-item"), utsArrayOf(
                    createElementVNode("image", utsMapOf("class" to "arrow", "src" to "/static/arrow-right.png")),
                    createElementVNode("text", null, "服务协议")
                )),
                createElementVNode("view", utsMapOf("class" to "menu-item"), utsArrayOf(
                    createElementVNode("image", utsMapOf("class" to "arrow", "src" to "/static/arrow-right.png")),
                    createElementVNode("text", null, "隐私政策")
                )),
                createElementVNode("view", utsMapOf("class" to "menu-item", "onClick" to _ctx.logout), utsArrayOf(
                    createElementVNode("image", utsMapOf("class" to "arrow", "src" to "/static/arrow-right.png")),
                    createElementVNode("text", null, "退出登录")
                ), 8, utsArrayOf(
                    "onClick"
                ))
            ))
        ));
    }
    override fun `$initMethods`() {
        this.logout = fun() {
            uni_showModal(ShowModalOptions(title = "提示", content = "确定要退出登录吗？", success = fun(res){
                if (res.confirm) {
                    uni_showToast(ShowToastOptions(title = "退出登录成功", icon = "success", success = fun(_){
                        setTimeout(fun(){
                            uni_navigateTo(NavigateToOptions(url = "/pages/index/index"));
                        }
                        , 1500);
                    }
                    ));
                }
            }
            ));
        }
        ;
    }
    open lateinit var logout: () -> Unit;
    companion object {
        val styles: Map<String, Map<String, Map<String, Any>>> by lazy {
            normalizeCssStyles(utsArrayOf(
                styles0
            ), utsArrayOf(
                GenApp.styles
            ))
        };
        val styles0: Map<String, Map<String, Map<String, Any>>>
            get() {
                return utsMapOf("container" to padStyleMapOf(utsMapOf("display" to "flex", "flexDirection" to "column", "backgroundColor" to "#f5f5f5")), "user-info" to padStyleMapOf(utsMapOf("paddingTop" to 20, "paddingRight" to 20, "paddingBottom" to 20, "paddingLeft" to 20, "height" to 200, "backgroundColor" to "#007aff", "color" to "#ffffff", "textAlign" to "center")), "username" to padStyleMapOf(utsMapOf("fontSize" to 20, "fontWeight" to "bold", "marginTop" to 0, "marginRight" to "auto", "marginBottom" to 0, "marginLeft" to "auto", "lineHeight" to "200px")), "menu" to padStyleMapOf(utsMapOf("flex" to 1, "paddingTop" to 20, "paddingRight" to 20, "paddingBottom" to 20, "paddingLeft" to 20, "backgroundColor" to "#ffffff")), "menu-item" to padStyleMapOf(utsMapOf("display" to "flex", "justifyContent" to "space-between", "alignItems" to "center", "paddingTop" to 15, "paddingRight" to 0, "paddingBottom" to 15, "paddingLeft" to 0, "borderBottomWidth" to 1, "borderBottomStyle" to "solid", "borderBottomColor" to "#eeeeee")), "arrow" to padStyleMapOf(utsMapOf("width" to 20, "height" to 20)), "footer" to padStyleMapOf(utsMapOf("display" to "flex", "justifyContent" to "space-around", "paddingTop" to 10, "paddingRight" to 10, "paddingBottom" to 10, "paddingLeft" to 10, "backgroundColor" to "#ffffff", "borderTopWidth" to 1, "borderTopStyle" to "solid", "borderTopColor" to "#cccccc")), "nav-item" to padStyleMapOf(utsMapOf("textAlign" to "center")));
            }
        var inheritAttrs = true;
        var inject: Map<String, Map<String, Any?>> = utsMapOf();
        var emits: Map<String, Any?> = utsMapOf();
        var props = normalizePropsOptions(utsMapOf());
        var propsNeedCastKeys: UTSArray<String> = utsArrayOf();
        var components: Map<String, CreateVueComponent> = utsMapOf();
    }
}
