Commit d6ae98bf by Lin

feat(HomeFrame, ActivityDetail, AddFiles): 增强组件功能与样式优化

- 在 HomeFrame 组件中,添加了获取策略状态的逻辑,以提升数据更新的及时性。
- 在 ActivityDetail 组件中,调整了图片展示方式,使用 scroll-view 包裹图片以改善用户体验。
- 在 AddFiles 组件中,修复了模板循环中 key 属性的位置,确保 Vue 渲染性能的优化。
1 parent 865613bc
......@@ -712,6 +712,7 @@ export default {
if (index == 0) {
this.$refs.messageRef.getMessageSummary()
this.getCustomerProfileGroupInfo()
this.getStrategyStatus()
}
this.previewOff = index != 0
this.$emit('changeTab', index)
......@@ -738,6 +739,7 @@ export default {
try {
const res = await uni.$api.activityApi.getActivityStatusAPI({ merchantId })
console.log('getStrategyStatus***', res)
if (!res) {
this.marketingActivityHasData = false
this.customerListHasData = false
......
......@@ -8,11 +8,13 @@
/>
</view>
<image
class="goods-img"
:src="displayMainImage"
mode="aspectFill"
/>
<scroll-view class="detail-scroll" scroll-y>
<image
class="goods-img"
:src="displayMainImage"
mode="widthFix"
/>
</scroll-view>
<image
class="prelearn-entrance"
......@@ -146,9 +148,13 @@ export default {
background-color: #000;
}
.detail-scroll {
width: 100%;
height: 100vh;
}
.goods-img {
width: 100%;
height: 100%;
display: block;
}
......
......@@ -10,8 +10,8 @@
<view class="detail-panel">
<view class="form-header">必填信息</view>
<view class="form-box flex">
<template v-for="(i, index) in customerForm" :key="index">
<view class="form-item flex">
<template v-for="(i, index) in customerForm" >
<view class="form-item flex" :key="index">
<view class="label flex">
<view class="required" v-if="i.required">*</view>{{ i.label }}
</view>
......@@ -64,8 +64,8 @@
</view>
<view class="form-header">选填信息</view>
<view class="form-box flex">
<template v-for="(i, index) in optionalForm" :key="index">
<view class="form-item flex">
<template v-for="(i, index) in optionalForm">
<view class="form-item flex" :key="index">
<view class="label flex">
<view class="required" v-if="i.required">*</view>{{ i.label }}
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!