Commit d6ae98bf by Lin

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

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