| | |
| | | const addressEditRef = ref<AddressEditInstance>() |
| | | const chosenAddressId = ref(1) |
| | | const addressInfo=ref({ |
| | | code:'', |
| | | id:0, |
| | | name:'', |
| | | addressDetail:'', |
| | |
| | | console.log('用户信息') |
| | | console.log(userInfo.patient) |
| | | addressInfo.value={ |
| | | code:'', |
| | | id:0, |
| | | name:userInfo.patient.patientInfo.patientName, |
| | | addressDetail:userInfo.patient.patientInfo.patientAddress, |
| | |
| | | const onEdit = (item:any, index:number) =>{ |
| | | console.log(item,index) |
| | | addressInfo.value={ |
| | | code:item.code, |
| | | id:item.id, |
| | | name:item.name, |
| | | addressDetail:item.address, |
| | |
| | | const pasm={ |
| | | addressArea: [form.city,form.county].toString(), |
| | | id: addressInfo.value.id, |
| | | code:addressInfo.value.code, |
| | | patientAddress: form.addressDetail, |
| | | patientCode: userInfo.patient.patientInfo.code, |
| | | patientIsDefault: form.isDefault===true?1:0, |
| | |
| | | <!-- 订单 --> |
| | | <van-icon @click="openOrder" size="26px" name="balance-list-o" color="#67C23A" style="margin-top: 10px; margin-right: 20px;" /> |
| | | <!-- 购物车 --> |
| | | <van-icon @click="openGwc" size="26px" name="cart-circle-o" color="#F56C6C" style="margin-top: 10px;" /> |
| | | <van-icon @click="openGwc" size="26px" name="cart-circle-o" color="#F56C6C" :badge="gwcBadge" style="margin-top: 10px;" /> |
| | | </div> |
| | | <div v-if="items.length > 0" style="border-left: 1px solid rgb(229, 226, 225); background: #f7f8fa;"> |
| | | <van-card |