提交 f7872b73 作者: 陈师旦

upd: BottomBar 改为 border-box 宽高不再计算padding;首页颜色修复;

上级 a2d25102
# API 接口地址 # API 接口地址
VITE_GLOB_API_URL=http://192.168.0.156:8081 VITE_GLOB_API_URL=http://qks.straw.yiring.com:40051/tbm/api
# API 接口地址前缀 # API 接口地址前缀
VITE_GLOB_API_URL_PREFIX=/api VITE_GLOB_API_URL_PREFIX=/api
......
# API 接口地址 # API 接口地址
VITE_GLOB_API_URL=http://localhost:8080 VITE_GLOB_API_URL=http://qks.straw.yiring.com:40051/tbm/api
# API 接口地址前缀 # API 接口地址前缀
VITE_GLOB_API_URL_PREFIX=/api VITE_GLOB_API_URL_PREFIX=/api
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
// const getColor = (type: string) => colors[type] // const getColor = (type: string) => colors[type]
function goRoute(item: NavItemType) { function goRoute(item: NavItemType) {
if (!item?.navigate?.url) { if (!item?.navigate?.url) {
Message.alert('模块开发中,敬请期待!', '') Message.alert('版块升级中,敬请期待!', '')
return return
} }
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
toggleShow, toggleShow,
toggleExpand, toggleExpand,
// TODO: 此处高度还需考虑底部安全区 // TODO: 此处高度还需考虑底部安全区
height: computed(() => (data.show ? `${(data.expand ? data.maxHeight : data.height) + 60}rpx` : '1rpx')), height: computed(() => (data.show ? `${(data.expand ? data.maxHeight : data.height) + 30}rpx` : '1rpx')),
}) })
</script> </script>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
// 定义复用渲染组件 // 定义复用渲染组件
const [DefineTemplate, ReuseTemplate] = createReusableTemplate<{ item: Recordable; sub?: boolean }>() const [DefineTemplate, ReuseTemplate] = createReusableTemplate<{ item: Recordable; sub?: boolean }>()
const positionBottom = computed(() => `calc(30rpx + ${data.bottom})`) const positionBottom = computed(() => `calc(${data.bottom})`)
const data = reactive({ const data = reactive({
show: props.show, show: props.show,
expand: props.expand, expand: props.expand,
......
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
const [DefineTemplate, ReuseTemplate] = createReusableTemplate<{ items: ToolBoxButton[] }>() const [DefineTemplate, ReuseTemplate] = createReusableTemplate<{ items: ToolBoxButton[] }>()
const positionTop = computed(() => `calc(125rpx + ${data.top})`) const positionTop = computed(() => `calc(125rpx + ${data.top})`)
const height = computed(() => `calc(30rpx + ${data.bottomPadding} + ${data.bottom})`) // BottomBar 改为 border-box 宽高不再计算padding
const height = computed(() => `calc(${data.bottomPadding} + ${data.bottom})`)
const data = reactive({ const data = reactive({
show: props.show, show: props.show,
expand: props.expand, expand: props.expand,
......
...@@ -163,7 +163,8 @@ ...@@ -163,7 +163,8 @@
], ],
handle: () => {}, handle: () => {},
}, },
{ // todo 初始版本先定为湖南省
/* {
name: '区域', name: '区域',
icon: '/static/icons/toolbox/location.png', icon: '/static/icons/toolbox/location.png',
type: 'select', type: 'select',
...@@ -184,7 +185,7 @@ ...@@ -184,7 +185,7 @@
}, },
], ],
handle: () => {}, handle: () => {},
}, }, */
{ {
name: '站点', name: '站点',
icon: '/static/icons/toolbox/station.png', icon: '/static/icons/toolbox/station.png',
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
</script> </script>
<template> <template>
<view class="text-c0 bg-cover h-362 pos-relative p-4 pt-13 pb-0" :style="`background-image: url(${path})`"> <view
class="text-c0 bg-cover h-362 pos-relative p-4 pt-13 pb-0 color-white"
:style="`background-image: url(${path})`"
>
<fui-row> <fui-row>
<!-- 定位 --> <!-- 定位 -->
<fui-col :span="12"> <fui-col :span="12">
...@@ -22,7 +25,9 @@ ...@@ -22,7 +25,9 @@
<fui-col :span="12"> <fui-col :span="12">
<view class="flex flex-justify-end b-rd-0.7 text-24 lh-7 h-56"> <view class="flex flex-justify-end b-rd-0.7 text-24 lh-7 h-56">
<view class="pl-3 pr-4 inline-block pr-2 bg-[#f6f7fb] b-rd-l-0.7 bg-[#FF9A03]">暴雨</view> <view class="pl-3 pr-4 inline-block pr-2 bg-[#f6f7fb] b-rd-l-0.7 bg-[#FF9A03]">暴雨</view>
<view class="pos-relative pr-1.3 pl-2 inline-block bg-[#fff] text-c2 font-650 b-rd-r-0.7 triangle"> <view
class="pos-relative pr-1.3 pl-2 inline-block bg-[#fff] text-c2 font-650 b-rd-r-0.7 triangle color-[#333333]"
>
|| 响应 || 响应
</view> </view>
</view> </view>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论