1 |
- import{f as e,g as t,w as s,u as a,v as i,E as l,B as r,i as d,I as o,m as n,n as u,x as c,a6 as m,k as p,ah as f,G as g,s as y,j as _,y as b,J as x}from"./index-a116b7fa.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";const B=k({name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:e,disabled:t,inverted:s,circle:a,mark:i,size:l,isTrue:r}=this;return["uni-tag--"+e,"uni-tag--"+l,r(t)?"uni-tag--disabled":"",r(s)?"uni-tag--"+e+"--inverted":"",r(a)?"uni-tag--circle":"",r(i)?"uni-tag--mark":"",r(s)?"uni-tag--inverted uni-tag-text--"+e:"","small"===l?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:e=>!0===e||"true"===e,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(n,u,c,m,p,f){const g=o;return c.text?(e(),t(g,{key:0,class:l(["uni-tag",f.classes]),style:r(c.customStyle),onClick:f.onClick},{default:s((()=>[a(i(c.text),1)])),_:1},8,["class","style","onClick"])):d("",!0)}],["__scopeId","data-v-f9b60738"]]),S=k({__name:"s-address-item",props:{item:{type:Object,default(){}},hasBorderBottom:{type:Boolean,defult:!0},spuType:{type:Number}},setup(r){const o=r,k=()=>{0==o.spuType?y.$router.go("/pages/user/dummyAddress/edit",{id:o.item.id}):y.$router.go("/pages/user/address/edit",{id:o.item.id})};return(r,S)=>{const v=n(u("uni-tag"),B),h=_,T=b,j=x;return e(),t(h,{class:l(["address-item ss-flex ss-row-between ss-col-center",[{"border-bottom":o.hasBorderBottom}]])},{default:s((()=>[c(m.isEmpty)(o.item)?(e(),t(h,{key:1},{default:s((()=>[p(h,{class:"address-text ss-m-b-10"},{default:s((()=>[a("请选择收货地址")])),_:1})])),_:1})):(e(),t(h,{key:0,class:"item-left"},{default:s((()=>[p(h,{class:"area-text ss-flex ss-col-center"},{default:s((()=>[o.item.defaultStatus?(e(),t(v,{key:0,class:"ss-m-r-10",size:"small","custom-style":"background-color: var(--ui-BG-Main); border-color: var(--ui-BG-Main); color: #fff;",text:"默认"})):d("",!0),a(" "+i(o.item.areaName),1)])),_:1}),p(h,{class:"address-text"},{default:s((()=>[a(i(o.item.detailAddress),1)])),_:1}),p(h,{class:"person-text"},{default:s((()=>[a(i(o.item.name)+" "+i(o.item.mobile),1)])),_:1})])),_:1})),f(r.$slots,"default",{},(()=>[p(j,{class:"ss-reset-button edit-btn",onClick:g(k,["stop"])},{default:s((()=>[p(h,{class:"edit-icon ss-flex ss-row-center ss-col-center"},{default:s((()=>[p(T,{src:c(y).$url.static("/static/images/edit.png")},null,8,["src"])])),_:1})])),_:1})]),!0)])),_:3},8,["class"])}}},[["__scopeId","data-v-8b8dc1b1"]]);export{S as _};
|