Commit 69d7cadb authored by shilei's avatar shilei

feat: lint

parent cd7e56e6
NODE_ENV=production
VITE_BASE_URL=http://test.api.liyeyun.com
# VITE_BASE_URL=/API
VITE_BASE_USER_URL=http://test.user.liyeyun.com
......@@ -5,7 +5,7 @@
"scripts": {
"dev": "vite",
"build:prod": "npm run build-only",
"build:test": "npm run build-only -- -m development",
"build:test": "npm run build-only",
"preview": "vite preview",
"test:unit": "vitest",
"build-only": "vite build",
......
......@@ -28,7 +28,7 @@
</template>
</ElMenu>
</div>
<div class="flex items-center pr-[56px] text-base text-[#333333] font-medium">
<div class="flex items-center pr-[56px] text-base font-medium text-[#333333]">
<div class="cursor-pointer">
<span v-if="userInfo" @click="toUserCenter">{{ userInfo.phone }}</span>
<div v-else>
......@@ -37,7 +37,7 @@
<span @click="handleLogin('register')">注册</span>
</div>
</div>
<div class="ml-4 flex items-center text-[#C0322B] text-base font-medium">
<div class="ml-4 flex items-center text-base font-medium text-[#C0322B]">
<img src="@/assets/images/icon-phone_call.png" />
<span>400-900-1786</span>
</div>
......
<template>
<div class="w-[258px] h-[318px] pt-[30px] px-[29px] content">
<p class="text-base text-[#1A1A1A] font-bold mb-5">选址需求</p>
<div class="content h-[318px] w-[258px] px-[29px] pt-[30px]">
<p class="mb-5 text-base font-bold text-[#1A1A1A]">选址需求</p>
<ElInput v-model="formData.address" class="w-[200px]" placeholder="*输入选址区域"></ElInput>
<ElSelect v-model="formData.needType" class="w-[200px] mt-3" placeholder="*请选择您的需求类型">
<ElSelect v-model="formData.needType" class="mt-3 w-[200px]" placeholder="*请选择您的需求类型">
<ElOption v-for="item in options" :key="item.label" :label="item.label" :value="item.value" />
</ElSelect>
<ElInput
v-model="formData.phone"
class="w-[200px] mt-3"
class="mt-3 w-[200px]"
placeholder="*请填写您的联系方式"
></ElInput>
<ElInput v-model="formData.remark" class="w-[200px] mt-3" placeholder="具体描述"></ElInput>
<ElInput v-model="formData.remark" class="mt-3 w-[200px]" placeholder="具体描述"></ElInput>
<div class="btn-default mt-5" @click="commit">提交</div>
</div>
</template>
......
......@@ -24,34 +24,34 @@
<!-- 搜索分类 -->
<div class="menu relative mt-3.5 flex text-sm text-[#808080]">
<span
@click="changeSearchType('develop', '21px', '开发区')"
:class="{ active: searchType === 'develop' }"
@click="changeSearchType('develop', '21px', '开发区')"
>
找开发区
</span>
<span
@click="changeSearchType('industrial', '84px', '产业园')"
:class="{ active: searchType === 'industrial' }"
@click="changeSearchType('industrial', '84px', '产业园')"
>
找产业园
</span>
<span
@click="changeSearchType('land', '149px', '土地')"
:class="{ active: searchType === 'land' }"
@click="changeSearchType('land', '149px', '土地')"
>
找土地
</span>
<span
style="margin-right: 14px"
@click="changeSearchType('carrier', '202px', '载体')"
:class="{ active: searchType === 'carrier' }"
@click="changeSearchType('carrier', '202px', '载体')"
>
找载体
</span>
<span
style="margin-right: 14px"
@click="changeSearchType('category', '272px', '产业分类')"
:class="{ active: searchType === 'category' }"
@click="changeSearchType('category', '272px', '产业分类')"
>
找产业分类
</span>
......@@ -150,7 +150,7 @@
</div>
</div>
<!-- 资源列表展示 -->
<div class="flex flex-wrap justify-between home-media">
<div class="home-media flex flex-wrap justify-between">
<div
v-for="item in activeDataList"
:key="item.id"
......
......@@ -16,8 +16,8 @@
<p
v-for="item in directionList"
:key="item"
@click="handleDirectionClick(item)"
:class="{ 'active-direction': currentDirection === item }"
@click="handleDirectionClick(item)"
v-html="heightLight(item, keyWords)"
></p>
</div>
......
......@@ -22,10 +22,7 @@
<DetailInfo :infos="joinRequired"></DetailInfo>
</DetailInfoCell>
<DetailInfoCell title="周边配套" title-center>
<MapView
:lat="detail.development.latitude"
:lng="detail.development.longitude"
></MapView>
<MapView :lat="detail.development.latitude" :lng="detail.development.longitude"></MapView>
</DetailInfoCell>
<DetailInfoCell title-center title="所属开发区">
<ParkItem
......@@ -42,7 +39,7 @@
import DetailInfoCell from '@/components/detail/DetailInfoCell.vue';
import DetailInfo from '@/components/detail/DetailInfo.vue';
import DetailMain from '@/components/detail/DetailMain.vue';
import MapView from '@/components/map/MapView.vue'
import MapView from '@/components/map/MapView.vue';
import { useDetail } from '@/composable/useDetail.ts';
import { useJoinRequired, type JoinRequiredParams } from '@/composable/useJoinRequired.ts';
import { RequestUrl } from '@/types/api.ts';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment