"use strict";const e=require("../../common/vendor.js"),r=require("../../sheep/index.js");require("../../sheep/store/index.js"),require("../../sheep/helper/index.js");const s=require("../../sheep/api/member/auth.js");if(require("../../sheep/request/index.js"),require("../../sheep/config/index.js"),require("../../sheep/url/index.js"),require("../../sheep/router/index.js"),require("../../sheep/hooks/useModal.js"),require("../../sheep/helper/test.js"),require("../../sheep/api/member/signin.js"),require("../../sheep/helper/throttle.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/platform/pay.js"),require("../../sheep/api/pay/order.js"),require("../../sheep/config/zIndex.js"),require("../../sheep/store/app.js"),require("../../sheep/api/promotion/diy.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/helper/digit.js"),!Array){(e.resolveComponent("uni-list-chat")+e.resolveComponent("uni-list-item")+e.resolveComponent("su-image")+e.resolveComponent("uni-list")+e.resolveComponent("uni-forms")+e.resolveComponent("su-fixed")+e.resolveComponent("s-layout"))()}Math||((()=>"../../uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js")+(()=>"../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js")+(()=>"../../sheep/ui/su-image/su-image.js")+(()=>"../../uni_modules/uni-list/components/uni-list/uni-list.js")+(()=>"../../uni_modules/uni-forms/components/uni-forms/uni-forms.js")+(()=>"../../sheep/ui/su-fixed/su-fixed.js")+(()=>"../../sheep/components/s-layout/s-layout.js"))();const o={__name:"setting",setup(o){const i=e.computed((()=>r.sheep.$store("user").isLogin)),t=e.reactive({model:{},rules:{},thirdInfo:{}}),u=e.computed((()=>r.sheep.$store("user").userInfo));function p(){e.index.showModal({title:"提示",content:"确认退出账号？",success:async function(o){if(!o.confirm)return;const{code:i}=await s.AuthUtil.logout();0===i&&(r.sheep.$store("user").logout(),e.index.removeStorageSync("linkId"),r.sheep.$router.go("/pages/index/user"))}})}return e.onBeforeMount((()=>{(async()=>{const s=await r.sheep.$store("user").getInfo();if(t.model=e.lodashExports.clone(s),"H5"!==r.sheep.$platform.name){const e=await r.sheep.$platform.useProvider("wechat").getInfo();t.thirdInfo=e||{}}})()})),(s,o)=>{var n,l,a;return e.e({a:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/info"))),b:e.p({clickable:!0,"avatar-circle":!0,title:null==(n=t.model)?void 0:n.nickname,avatar:null==(l=t.model)?void 0:l.avatar,note:"个性签名"}),c:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/address/list"))),d:e.p({clickable:!0,title:"实体收货地址管理",showArrow:!0,border:!1}),e:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/dummyAddress/list"))),f:e.p({clickable:!0,title:"虚拟收货地址管理",showArrow:!0,border:!1}),g:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/address/list"))),h:e.p({clickable:!u.value.mobile,title:"实名认证",showArrow:!0,border:!1}),i:e.p({current:0,src:null==(a=t.model)?void 0:a.avatar,height:100,width:100,radius:0,mode:"scaleToFill"}),j:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/qrcode-share"))),k:e.p({title:"我的二维码",clickable:!0,border:!1}),l:e.p({border:!1}),m:e.p({model:t.model,rules:t.rules,labelPosition:"left",border:!0}),n:i.value},i.value?{o:e.o(p)}:{},{p:e.p({bottom:!0,placeholder:!0}),q:e.p({title:"用户信息"})})}}},i=e._export_sfc(o,[["__scopeId","data-v-05df63ff"]]);wx.createPage(i);
