"use strict";const e=require("../../common/vendor.js"),r=require("../../common/assets.js"),s=require("../../sheep/index.js"),i=require("../../sheep/api/member/auth.js");if(require("../../sheep/url/index.js"),require("../../sheep/store/index.js"),require("../../sheep/store/app.js"),require("../../sheep/api/promotion/diy.js"),require("../../sheep/request/index.js"),require("../../sheep/config/index.js"),require("../../sheep/platform/index.js"),require("../../sheep/platform/provider/wechat/index.js"),require("../../sheep/platform/provider/wechat/miniProgram.js"),require("../../sheep/api/member/social.js"),require("../../sheep/api/member/user.js"),require("../../sheep/platform/provider/apple/index.js"),require("../../sheep/platform/share.js"),require("../../sheep/router/index.js"),require("../../sheep/hooks/useModal.js"),require("../../sheep/helper/index.js"),require("../../sheep/helper/test.js"),require("../../sheep/helper/digit.js"),require("../../sheep/api/member/signin.js"),require("../../sheep/helper/throttle.js"),require("../../sheep/platform/pay.js"),require("../../sheep/api/pay/order.js"),require("../../sheep/store/user.js"),require("../../sheep/store/cart.js"),require("../../sheep/api/trade/cart.js"),require("../../sheep/api/pay/wallet.js"),require("../../sheep/api/trade/order.js"),require("../../sheep/api/promotion/coupon.js"),require("../../sheep/store/sys.js"),require("../../sheep/store/modal.js"),require("../../sheep/config/zIndex.js"),!Array){(e.resolveComponent("uni-list-item")+e.resolveComponent("uni-list")+e.resolveComponent("s-layout"))()}Math||((()=>"../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js")+(()=>"../../uni_modules/uni-list/components/uni-list/uni-list.js")+(()=>"../../sheep/components/s-layout/s-layout.js"))();const o={__name:"setting",setup(o){const t=e.computed((()=>s.sheep.$store("app").info)),p=e.computed((()=>s.sheep.$store("user").isLogin)),u=e.index.getStorageInfoSync().currentSize+"Kb";function n(){s.sheep.$platform.checkUpdate()}function a(){e.index.showModal({title:"提示",content:"确认注销账号？",success:async function(e){if(!e.confirm)return;const{code:r}=await i.AuthUtil.logout();0===r&&(s.sheep.$store("user").logout(),s.sheep.$router.go("/pages/index/user"))}})}return e.reactive({showModal:!1}),(i,o)=>e.e({a:r._imports_0$2,b:e.t(t.value.name),c:e.o(n),d:e.p({title:"当前版本",rightText:t.value.version,showArrow:!0,clickable:!0,border:!1}),e:e.p({title:"本地缓存",rightText:u,showArrow:!0,border:!1}),f:e.o((r=>e.unref(s.sheep).$router.go("/pages/public/richtext",{title:"关于我们"}))),g:e.p({title:"关于我们",showArrow:!0,clickable:!0,border:!1}),h:p.value&&"ios"===e.unref(s.sheep).$platform.os&&"App"===e.unref(s.sheep).$platform.name},p.value&&"ios"===e.unref(s.sheep).$platform.os&&"App"===e.unref(s.sheep).$platform.name?{i:e.o(a),j:e.p({title:"注销账号",rightText:"",showArrow:!0,clickable:!0,border:!1})}:{},{k:e.p({border:!1}),l:e.o((r=>e.unref(s.sheep).$router.go("/pages/public/richtext",{title:"用户协议"}))),m:e.o((r=>e.unref(s.sheep).$router.go("/pages/public/richtext",{title:"隐私协议"}))),n:e.p({title:"系统设置",bgStyle:{color:"#fff"}})})}},t=e._export_sfc(o,[["__scopeId","data-v-757eb3ca"]]);wx.createPage(t);
