acdr-ui/dist/build/mp-weixin/modules/mall/public/setting.js

2 lines
2.7 KiB
JavaScript
Raw Normal View History

2024-10-01 09:15:35 +08:00
"use strict";var e=(e,t,o)=>new Promise(((r,s)=>{var l=e=>{try{i(o.next(e))}catch(t){s(t)}},n=e=>{try{i(o.throw(e))}catch(t){s(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(l,n);i((o=o.apply(e,t)).next())}));const t=require("../../../common/vendor.js"),o=require("../sheep/index.js"),r=require("../sheep/api/member/auth.js");if(!Array){(t.resolveComponent("uni-list-item")+t.resolveComponent("uni-list")+t.resolveComponent("su-fixed")+t.resolveComponent("s-layout")+t.resolveComponent("layout-default-uni"))()}Math||((()=>"../../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js")+(()=>"../../../uni_modules/uni-list/components/uni-list/uni-list.js")+(()=>"../sheep/ui/su-fixed/su-fixed.js")+(()=>"../sheep/components/s-layout/s-layout.js"))();const s={__name:"setting",setup(s){const l=t.computed((()=>o.sheep.$store("app").info)),n=t.computed((()=>o.sheep.$store("user").isLogin)),i=t.index.getStorageInfoSync().currentSize+"Kb";function u(){o.sheep.$platform.checkUpdate()}function p(){t.index.showModal({title:"提示",content:"确认注销账号?",success:function(t){return e(this,null,(function*(){if(!t.confirm)return;const{code:e}=yield r.AuthUtil.logout();0===e&&(o.sheep.$store("user").logout(),o.sheep.$router.go("/modules/mall/index/user"))}))}})}function c(){t.index.showModal({title:"提示",content:"确认退出账号?",success:function(t){return e(this,null,(function*(){if(!t.confirm)return;const{code:e}=yield r.AuthUtil.logout();0===e&&(o.sheep.$store("user").logout(),o.sheep.$router.go("/modules/mall/index/user"))}))}})}return t.reactive({showModal:!1}),(e,r)=>t.e({a:t.unref(o.sheep).$url.cdn(l.value.logo),b:t.t(l.value.name),c:t.o(u),d:t.p({title:"当前版本",rightText:l.value.version,showArrow:!0,clickable:!0,border:!1}),e:t.p({title:"本地缓存",rightText:i,showArrow:!0,border:!1}),f:t.o((e=>t.unref(o.sheep).$router.go("/modules/mall/public/richtext",{title:"关于我们"}))),g:t.p({title:"关于我们",showArrow:!0,clickable:!0,border:!1}),h:n.value&&"ios"===t.unref(o.sheep).$platform.os&&"App"===t.unref(o.sheep).$platform.name},n.value&&"ios"===t.unref(o.sheep).$platform.os&&"App"===t.unref(o.sheep).$platform.name?{i:t.o(p),j:t.p({title:"注销账号",rightText:"",showArrow:!0,clickable:!0,border:!1})}:{},{k:t.p({border:!1}),l:t.o((e=>t.unref(o.sheep).$router.go("/modules/mall/public/richtext",{title:"用户协议"}))),m:t.o((e=>t.unref(o.sheep).$router.go("/modules/mall/public/richtext",{title:"隐私协议"}))),n:t.t(l.value.copyright),o:t.t(l.value.copytime),p:n.value},n.value?{q:t.o(c)}:{},{r:t.p({bottom:!0,placeholder:!0}),s:t.p({title:"系统设置",bgStyle:{color:"#fff"}})})}},l=t._export_sfc(s,[["__scopeId","data-v-0408aa23"]]);wx.createPage(l);