
const __sfc__ = defineComponent({
  methods: {
  logout() {
    uni.showModal({
      title: '提示',
      content: '确定要退出登录吗？',
      success: (res) => {
        if (res.confirm) {
          uni.showToast({
            title: '退出登录成功',
            icon: 'success',
            success: () => {
              // 这里可以添加退出登录的逻辑，例如清除用户登录状态
              setTimeout(() => {
                uni.navigateTo({ url: '/pages/index/index' });
              }, 1500);
            }
          });
        }
      }
    });
  }
    }
});

export default __sfc__
function GenPagesIndexWodeRender(this: InstanceType<typeof __sfc__>): any | null {
const _ctx = this
const _cache = this.$.renderCache
  return createElementVNode("view", utsMapOf({ class: "container" }), [
    createElementVNode("view", utsMapOf({ class: "user-info" }), [
      createElementVNode("text", utsMapOf({ class: "username" }), "李晓春")
    ]),
    createElementVNode("view", utsMapOf({ class: "menu" }), [
      createElementVNode("view", utsMapOf({ class: "menu-item" }), [
        createElementVNode("image", utsMapOf({
          class: "arrow",
          src: "/static/arrow-right.png"
        })),
        createElementVNode("text", null, "关于我们")
      ]),
      createElementVNode("view", utsMapOf({ class: "menu-item" }), [
        createElementVNode("image", utsMapOf({
          class: "arrow",
          src: "/static/arrow-right.png"
        })),
        createElementVNode("text", null, "修改密码")
      ]),
      createElementVNode("view", utsMapOf({ class: "menu-item" }), [
        createElementVNode("image", utsMapOf({
          class: "arrow",
          src: "/static/arrow-right.png"
        })),
        createElementVNode("text", null, "服务协议")
      ]),
      createElementVNode("view", utsMapOf({ class: "menu-item" }), [
        createElementVNode("image", utsMapOf({
          class: "arrow",
          src: "/static/arrow-right.png"
        })),
        createElementVNode("text", null, "隐私政策")
      ]),
      createElementVNode("view", utsMapOf({
        class: "menu-item",
        onClick: _ctx.logout
      }), [
        createElementVNode("image", utsMapOf({
          class: "arrow",
          src: "/static/arrow-right.png"
        })),
        createElementVNode("text", null, "退出登录")
      ], 8 /* PROPS */, ["onClick"])
    ])
  ])
}
const GenPagesIndexWodeStyles = [utsMapOf([["container", padStyleMapOf(utsMapOf([["display", "flex"], ["flexDirection", "column"], ["backgroundColor", "#f5f5f5"]]))], ["user-info", padStyleMapOf(utsMapOf([["paddingTop", 20], ["paddingRight", 20], ["paddingBottom", 20], ["paddingLeft", 20], ["height", 200], ["backgroundColor", "#007aff"], ["color", "#ffffff"], ["textAlign", "center"]]))], ["username", padStyleMapOf(utsMapOf([["fontSize", 20], ["fontWeight", "bold"], ["marginTop", 0], ["marginRight", "auto"], ["marginBottom", 0], ["marginLeft", "auto"], ["lineHeight", "200px"]]))], ["menu", padStyleMapOf(utsMapOf([["flex", 1], ["paddingTop", 20], ["paddingRight", 20], ["paddingBottom", 20], ["paddingLeft", 20], ["backgroundColor", "#ffffff"]]))], ["menu-item", padStyleMapOf(utsMapOf([["display", "flex"], ["justifyContent", "space-between"], ["alignItems", "center"], ["paddingTop", 15], ["paddingRight", 0], ["paddingBottom", 15], ["paddingLeft", 0], ["borderBottomWidth", 1], ["borderBottomStyle", "solid"], ["borderBottomColor", "#eeeeee"]]))], ["arrow", padStyleMapOf(utsMapOf([["width", 20], ["height", 20]]))], ["footer", padStyleMapOf(utsMapOf([["display", "flex"], ["justifyContent", "space-around"], ["paddingTop", 10], ["paddingRight", 10], ["paddingBottom", 10], ["paddingLeft", 10], ["backgroundColor", "#ffffff"], ["borderTopWidth", 1], ["borderTopStyle", "solid"], ["borderTopColor", "#cccccc"]]))], ["nav-item", padStyleMapOf(utsMapOf([["textAlign", "center"]]))]])]
