You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pages-mailingAddress-mailingAddress.87315f2e.js 2.5KB

1
  1. import{d as e,r as a,o as t,c as l,a as o,u as i,b as u,n}from"./index-e7a17087.js";import{u as r,o as s,r as d}from"./unifyTemplate.f1637b75.js";import{I as v}from"./tools.23d60313.js";import"./CustomHeader.31edf15e.js";const h=[{title:"是否邮寄",type:7,value:"whetherToMail",postal:1,itemData:[{checked:!0,value:"1",name:"不邮寄"},{checked:!1,value:"0",name:"邮寄"}]},{required:!1,title:"收件人",type:2,vertical:1,value:"consignee",underline:!0,show:!0},{required:!1,title:"收件人手机号",type:2,value:"consigneeTel",hint:"请输入手机号",underline:!0,show:!0},{required:!1,title:"省市区",type:10,value:"region",hint:"请选择省市区",underline:!0,show:!0},{required:!1,title:"详细地址",type:2,value:"address",hint:"请输入详细地址",underline:!0,show:!0},{required:!1,title:"邮政编码",type:2,value:"postalCode",hint:"请输入邮政编码",underline:!0,show:!0}],c=e({__name:"mailingAddress",setup(e){let c=a({submitName:"提交",titleWidth:160}),p=a(h);const{formBuilderVue:m,CustomHeader:f,initData:w,isShow:g,qdOrderVal:y}=r();function b(e,a){"是否邮寄"===a.title&&("1"==e.detail.value?(p.value[v("收件人",p.value)].show=!0,p.value[v("收件人手机号",p.value)].show=!0,p.value[v("省市区",p.value)].show=!0,p.value[v("详细地址",p.value)].show=!0,p.value[v("邮政编码",p.value)].show=!0):(p.value[v("收件人",p.value)].show=!1,p.value[v("收件人手机号",p.value)].show=!1,p.value[v("省市区",p.value)].show=!1,p.value[v("详细地址",p.value)].show=!1,p.value[v("邮政编码",p.value)].show=!1))}function C(e){let{userType:a,vanType:t,vehicleColor:l,vehiclePlate:o,qdOrderNo:i}=y.value;y.value.type=t-1;const u={userType:a,qdOrderNo:i,vehiclePlate:o,vehiclePlateColor:l,type:t-1,orderSource:"H5",...e};let{commitInterface:r,jumpPage:s}=c.value;d(r||"3dc2df0ba7004fffbd97192cbaa66b6f",{data:u}).then((e=>{0===e.statusCode&&(!function(e,a){const t={promoteId:e,orderId:a};d("198172b1858d474fa8e35225d65014d7",{showLoading:!0,data:t}).then((e=>{console.log("关联成功",e)}))}(y.value.productCode,JSON.parse(e.bizContent).orderId),n({url:"/"+s,animationType:"pop-in",animationDuration:500}))}))}return s((e=>{w(e,0).then((e=>{p.value=JSON.parse(e.config.tableConfig),g.value=!0,delete e.config.tableConfig,c.value=Object.assign(e.config,c.value)}))})),(e,a)=>(t(),l("div",null,[o(i(f),{back:!1,title:"邮寄"}),i(g)?(t(),l("div",{key:0,style:{"padding-top":"20rpx"}},[o(i(m),{formData:i(p),config:i(c),onRadioChange:b,onSubmit:C},null,8,["formData","config"])])):u("",!0)]))}});export{c as default};