Compare commits
2 Commits
c08e1afe85
...
34303a2800
| Author | SHA1 | Date | |
|---|---|---|---|
| 34303a2800 | |||
| 55f9f7df73 |
@@ -92,7 +92,7 @@
|
|||||||
<view class="hall-main">
|
<view class="hall-main">
|
||||||
<text class="hall-name">{{ unit.name }}</text>
|
<text class="hall-name">{{ unit.name }}</text>
|
||||||
<view class="hall-meta-row">
|
<view class="hall-meta-row">
|
||||||
<text class="hall-meta-text">{{ unit.guideStopCount }} 个讲解点</text>
|
<text class="hall-meta-text">{{ unit.guideStopCount }} 个讲解</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@@ -1956,11 +1956,11 @@ const handleExplainBack = () => {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background:
|
background:
|
||||||
linear-gradient(180deg, rgba(224, 225, 0, 0.18) 0, rgba(224, 225, 0, 0) 46px),
|
linear-gradient(180deg, rgba(224, 225, 0, 0.14) 0, rgba(224, 225, 0, 0) 46px),
|
||||||
#060704;
|
#443c2d;
|
||||||
border: 1px solid rgba(224, 225, 0, 0.34);
|
border: 1px solid #95855e;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
|
box-shadow: 0 12px 28px rgba(58, 50, 35, 0.26);
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
z-index: 1003;
|
z-index: 1003;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ vi.mock('@/utils/hostEnvironment', () => ({
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
describe('讲解展厅选择列表', () => {
|
describe('讲解展厅选择列表', () => {
|
||||||
it('业务单元卡片不显示业务单元标签,并保留讲解点数量和点击事件', async () => {
|
it('业务单元卡片不显示业务单元标签,并保留讲解数量和点击事件', async () => {
|
||||||
const wrapper = mount(ExplainHallSelect, {
|
const wrapper = mount(ExplainHallSelect, {
|
||||||
props: {
|
props: {
|
||||||
stage: 'unit',
|
stage: 'unit',
|
||||||
@@ -34,8 +34,8 @@ describe('讲解展厅选择列表', () => {
|
|||||||
expect(cards).toHaveLength(2)
|
expect(cards).toHaveLength(2)
|
||||||
expect(wrapper.text()).toContain('生命演化')
|
expect(wrapper.text()).toContain('生命演化')
|
||||||
expect(wrapper.text()).toContain('恐龙世界')
|
expect(wrapper.text()).toContain('恐龙世界')
|
||||||
expect(wrapper.text()).toContain('6 个讲解点')
|
expect(wrapper.text()).toContain('6 个讲解')
|
||||||
expect(wrapper.text()).toContain('4 个讲解点')
|
expect(wrapper.text()).toContain('4 个讲解')
|
||||||
expect(cards.map((card) => card.text()).join('')).not.toContain('业务单元')
|
expect(cards.map((card) => card.text()).join('')).not.toContain('业务单元')
|
||||||
expect(cards[0]?.find('.floor-badge').exists()).toBe(false)
|
expect(cards[0]?.find('.floor-badge').exists()).toBe(false)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user