1 |
- import{e,f as t,w as s,p as a,t as l,z as i,y as r,g as o,C as d,l as n,m as u,u as c,a8 as m,j as f,Q as p,A as g,s as y,i as _,q as k,D as x}from"./index-9880b451.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const B=b({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:l,size:i,isTrue:r}=this;return["uni-tag--"+e,"uni-tag--"+i,r(t)?"uni-tag--disabled":"",r(s)?"uni-tag--"+e+"--inverted":"",r(a)?"uni-tag--circle":"",r(l)?"uni-tag--mark":"",r(s)?"uni-tag--inverted uni-tag-text--"+e:"","small"===i?"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,f,p){const g=d;return c.text?(e(),t(g,{key:0,class:i(["uni-tag",p.classes]),style:r(c.customStyle),onClick:p.onClick},{default:s((()=>[a(l(c.text),1)])),_:1},8,["class","style","onClick"])):o("",!0)}],["__scopeId","data-v-f9b60738"]]),S=b({__name:"s-address-item",props:{item:{type:Object,default(){}},hasBorderBottom:{type:Boolean,defult:!0}},setup(r){const d=r,b=()=>{y.$router.go("/pages/user/address/edit",{id:d.item.id})};return(r,S)=>{const h=n(u("uni-tag"),B),v=_,C=k,j=x;return e(),t(v,{class:i(["address-item ss-flex ss-row-between ss-col-center",[{"border-bottom":d.hasBorderBottom}]])},{default:s((()=>[c(m.isEmpty)(d.item)?(e(),t(v,{key:1},{default:s((()=>[f(v,{class:"address-text ss-m-b-10"},{default:s((()=>[a("请选择收货地址")])),_:1})])),_:1})):(e(),t(v,{key:0,class:"item-left"},{default:s((()=>[f(v,{class:"area-text ss-flex ss-col-center"},{default:s((()=>[d.item.defaultStatus?(e(),t(h,{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:"默认"})):o("",!0),a(" "+l(d.item.areaName),1)])),_:1}),f(v,{class:"address-text"},{default:s((()=>[a(l(d.item.detailAddress),1)])),_:1}),f(v,{class:"person-text"},{default:s((()=>[a(l(d.item.name)+" "+l(d.item.mobile),1)])),_:1})])),_:1})),p(r.$slots,"default",{},(()=>[f(j,{class:"ss-reset-button edit-btn",onClick:g(b,["stop"])},{default:s((()=>[f(v,{class:"edit-icon ss-flex ss-row-center ss-col-center"},{default:s((()=>[f(C,{src:c(y).$url.static("/static/img/shop/user/address/edit.png")},null,8,["src"])])),_:1})])),_:1},8,["onClick"])]),!0)])),_:3},8,["class"])}}},[["__scopeId","data-v-e3106061"]]);export{S as _};
|