"use strict";const e=require("../../../common/vendor.js"),r=require("../../../common/assets.js"),i=require("../../index.js");require("../../store/index.js"),require("../../helper/index.js"),require("../../request/index.js"),require("../../url/index.js"),require("../../config/index.js"),require("../../router/index.js"),require("../../hooks/useModal.js"),require("../../helper/test.js"),require("../../api/member/auth.js"),require("../../api/member/signin.js"),require("../../helper/throttle.js"),require("../../platform/index.js"),require("../../platform/provider/wechat/index.js"),require("../../platform/provider/wechat/miniProgram.js"),require("../../api/member/social.js"),require("../../api/member/user.js"),require("../../platform/provider/apple/index.js"),require("../../platform/share.js"),require("../../platform/pay.js"),require("../../api/pay/order.js"),require("../../config/zIndex.js"),require("../../store/app.js"),require("../../api/promotion/diy.js"),require("../../store/user.js"),require("../../store/cart.js"),require("../../api/trade/cart.js"),require("../../api/pay/wallet.js"),require("../../api/trade/order.js"),require("../../api/promotion/coupon.js"),require("../../store/sys.js"),require("../../store/modal.js"),require("../../helper/digit.js");const s={__name:"s-user-card",props:{background:{type:String,default:""},avatar:{type:String,default:""},nickname:{type:String,default:"请登录"},username:{type:String,default:"无"},vip:{type:[String,Number],default:"1"},collectNum:{type:[String,Number],default:"1"},likeNum:{type:[String,Number],default:"1"}},setup(s){const u=e.computed((()=>i.sheep.$store("user").userInfo)),t=e.computed((()=>i.sheep.$store("user").isLogin));return(a,o)=>{var n,p;return{a:t.value?e.unref(i.sheep).$url.cdn(u.value.avatar):e.unref(i.sheep).$url.static("/static/images/default_avatar.png"),b:e.o((r=>e.unref(i.sheep).$router.go("/pages/user/info"))),c:e.t((null==(n=u.value)?void 0:n.nickname)||s.nickname),d:e.t((null==(p=u.value)?void 0:p.username)||s.username),e:r._imports_0$5,f:e.o((r=>e.unref(i.sheep).$router.go("/pages/user/setting")))}}}},u=e._export_sfc(s,[["__scopeId","data-v-d7577db9"]]);wx.createComponent(u);
