index-legacy.e06a4f89.js 2.9 KB

12345
  1. ;(function(){var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._cellEntry_13jw9_1{align-items:center}._cellEntry_13jw9_1 .van-badge__wrapper{margin:0}._cellEntry_13jw9_1 .van-cell__title{display:flex;align-items:center;margin-left:.37333rem}._cell_13jw9_1{align-items:center}._cell_13jw9_1 .van-cell__title{margin-left:.37333rem}._userName_13jw9_18{color:#333;font-size:.42667rem;font-weight:500}._phone_13jw9_23{font-size:.42667rem;color:#333;margin-left:.37333rem}._addressInfo_13jw9_28{font-size:.37333rem;color:#666}._emtry_13jw9_32{padding-top:.05333rem}\n";document.head.appendChild(__vite_style__);System.register(['./vendor-legacy.73abbe39.js','./index-legacy.f25f109a2.js'],function(exports){'use strict';var defineComponent,useRouter,computed,createVNode,Cell,Icon,createTextVNode,Fragment;return{setters:[function(module){defineComponent=module.d;useRouter=module.a6;computed=module.a7;createVNode=module.b;Cell=module.p;Icon=module.q;createTextVNode=module.j;Fragment=module.F;},function(){}],execute:function execute(){var iconAddress="./assets/icon-address.135cd83f.png";var cellEntry="_cellEntry_13jw9_1";var cell="_cell_13jw9_1";var userName="_userName_13jw9_18";var phone="_phone_13jw9_23";var addressInfo="_addressInfo_13jw9_28";var emtry="_emtry_13jw9_32";var styles={cellEntry:cellEntry,cell:cell,userName:userName,phone:phone,addressInfo:addressInfo,emtry:emtry};var Address=exports('A',defineComponent({name:'cart-address',props:{item:{type:Object,default:{}},isLink:{type:Boolean,default:true},setAddress:{type:Function,default:function _default(n){}}},setup:function setup(props){var router=useRouter();var addressInfo=computed(function(){return[props.item.province,props.item.city,props.item.region,props.item.detailAddress].join('');});var selectAddress=function selectAddress(){if(!props.isLink)return;// postMessage({
  2. // api: 'setAddress',
  3. // content: {}
  4. // })
  5. router.push({path:'/address',query:{type:'getAddress'}});};return function(){return createVNode(Fragment,null,[props.item&&props.item.phoneNumber?createVNode(Cell,{"class":styles.cell,"is-link":props.isLink,"onClick":function onClick(){return selectAddress();}},{icon:function icon(){return createVNode(Icon,{"name":iconAddress,"size":19},null);},title:function title(){return createVNode("div",null,[createVNode("span",{"class":styles.userName},[props.item.name]),createVNode("span",{"class":styles.phone},[props.item&&props.item.phoneNumber&&props.item.phoneNumber.replace(/^(\d{3})\d{4}(\d+)/,'$1****$2')])]);},label:function label(){return createVNode("span",{"class":styles.addressInfo},[addressInfo.value]);}}):createVNode(Cell,{"class":styles.cell,"is-link":props.isLink,"onClick":function onClick(){return selectAddress();}},{icon:function icon(){return createVNode(Icon,{"name":iconAddress,"size":19},null);},title:function title(){return createVNode("div",{"class":styles.emtry},[createTextVNode("\u53BB\u586B\u5199\u6536\u8D27\u5730\u5740")]);}})]);};}}));}};});})();