@@ -288,7 +253,6 @@ import {
import moment, { max } from 'moment'
import { InfoFilled } from '@element-plus/icons-vue'
import CustomDatePickerButton from './components/date-picker-button.vue'
-import { getAddressListApi } from 'http/api/address-manage/index'
import { useRoute, useRouter } from 'vue-router'
import { useStore } from '../../store/user'
import jsPreviewDocx from "@js-preview/docx";
@@ -298,9 +262,6 @@ const router = useRouter()
const protocolChecked = ref
(false)
const allKey = ref(0)
const cardList = ref([])
-const activeNames = ref('')
-const addressTitle = ref('请选择收货地址')
-const addressList = ref([])
const getBookCarDetailsData = async () => {
const res: any = await getBookCarDetailsApi()
@@ -475,14 +436,6 @@ const onCartSubmit = async () => {
})
return
}
- if (addressTitle.value === '请选择收货地址') {
- ElMessage({
- showClose: false,
- message: '请选择收货地址',
- type: 'error',
- })
- return
- }
let isDays = false
try {
@@ -534,7 +487,6 @@ const onCartSubmit = async () => {
})
paramsList[index] = {
cost: 0,
- address: addressTitle.value.split(':')[1],
detailsList: itemsArray,
}
})
@@ -570,31 +522,6 @@ const onCartSubmit = async () => {
// console.log(res, '预约车提交结果')
}
-// 获取收货地址
-const getReceiptGoodsAddress = async () => {
- const res: any = await getAddressListApi({})
- addressList.value = res.rows.map((e: any) => {
- return {
- addressName: `${e.provinceName}${e.cityName}${e.areaName}${e.address}`,
- }
- })
-}
-// 选择收货地址
-const onSelectAddress = (address: any) => {
- addressTitle.value = '收货地址:' + address
- activeNames.value = ''
-}
-// 去往地址管理
-const onAddAddress = () => {
- userStore.editcurrentMenuItem('address-manage')
- setTimeout(() => {
- router.push({
- name: 'my-user',
- })
- }, 500)
-}
-
-getReceiptGoodsAddress()
const wordUrl = ref("")
const settleWordTitle = ref('')
const dialogFormVisibleSettleWord: any = ref(false)
@@ -735,13 +662,4 @@ const handleViewWord = async() => {
}
}
}
-
-.address-item {
- margin: 0 auto;
- padding: 6px 10px;
- cursor: pointer;
-}
-.address-item:hover {
- background-color: #c9e7e5;
-}