From 2ebfb6c9ef4e5515e7ea903255bff32286036c4a Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Mon, 16 Dec 2024 18:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B2=E7=AA=81=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cart/index.vue | 82 ---------------------------------------- 1 file changed, 82 deletions(-) diff --git a/src/views/cart/index.vue b/src/views/cart/index.vue index 4c4526e..9f08280 100644 --- a/src/views/cart/index.vue +++ b/src/views/cart/index.vue @@ -173,41 +173,6 @@
- - - - - - - - - - -
@@ -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; -}