This commit is contained in:
zmj 2024-02-23 16:13:49 +08:00
parent 41669abfe3
commit 0012907946
3 changed files with 21 additions and 40 deletions

View File

@ -17,8 +17,10 @@ for (let i = 1; i < 6; i++) {
</script>
<style>
.main-box {
width: 1280px;
height: 720px;
/* width: 1280px;
height: 720px; */
width: 100vw;
height: 100vh;
overflow: hidden;
background-image: url('/static/img/index/index_bg.png');
background-size: 100% 100%;

View File

@ -1,6 +1,5 @@
<template>
<img src="/static/img/tradeScreen/FH.png" @click="router.go(-1)" class="back-btn" alt="">
<div style="height: 100vh;">
<div class="tradmenu" v-if="flag">
<div class="tradmenu-li sy"></div>
@ -13,7 +12,6 @@
<areaChose></areaChose>
</div>
</div>
<div class="area" @click="flag=!flag">
<div class="area-top">
<div class="town">江陽區</div>
@ -21,9 +19,6 @@
</div>
<div class="area-bottom"></div>
</div>
<!-- <div style="text-align: center;">数据之眼可视化大屏</div>
<div>
<button @click="sendFn('header1', { page: 1 })">首页</button>
@ -88,40 +83,24 @@ const areaCode = ref('510521')
const townCode = ref("")
const changeArea = (e) => {
getTownList()
options.forEach(item => {
if (item.value == e) {
sendFn('choserArea', { name: item.label, code: item.value })
}
})
}
const changeTown = (e) => {
townOptions.forEach(item => {
if (item.value == e) {
sendFn('header7', { id: item.value, name: item.label })
// sendFn('choseTown', { name: item.label })
}
})
}
const getTownList = () => {
townOptions.splice(0, 99999999)
axios.get(`https://crmeb-test.shop.lihaink.cn/api/city/get_street?area_code=${areaCode.value}`)
.then(function (res) {
res.data.data.forEach(item => {
townOptions.push({
value: item.code,
label: item.name
})
})
})
}
// const changeArea = (e) => {
// getTownList()
// options.forEach(item => {
// if (item.value == e) {
// sendFn('choserArea', { name: item.label, code: item.value })
// }
// })
// }
// const changeTown = (e) => {
// townOptions.forEach(item => {
// if (item.value == e) {
// sendFn('header7', { id: item.value, name: item.label })
// // sendFn('choseTown', { name: item.label })
// }
// })
// }
const page = ref(1)

View File

@ -4,7 +4,7 @@
<div class="card" v-for="item in 9">
<div class="card-tit">
究极公司
<span style="font-size: 16px;color: white;">2024-01-21</span>
<span style="font-size: 14px;color: white;">2024-01-21</span>
</div>
<div class="card-cotnet">
<div>商户姓名: 为对方</div>