From 38d111cb6defedff3bf06314ca30d22a01faae22 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 09 二月 2026 16:30:36 +0800
Subject: [PATCH] 功能开发
---
mini-program/pages/index/index.vue | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/mini-program/pages/index/index.vue b/mini-program/pages/index/index.vue
index fe99bf9..6e87813 100644
--- a/mini-program/pages/index/index.vue
+++ b/mini-program/pages/index/index.vue
@@ -14,9 +14,9 @@
</view>
<view class="cate">
<view class="cate-item" @click="clickRow(1)">
- <text :style="{ fontWeight: (view === 1 || form.bustypeIds) ? 'bold' : '', color: (view === 1 || form.bustypeIds) ? '#222222' : '' }">{{form.bustypeIds ? form.bustypeName : '鍟嗕笟鍖栫被鍨�'}}</text>
+ <text :style="{ fontWeight: (view === 1 || form.bustypeIdList.length > 0) ? 'bold' : '', color: (view === 1 || form.bustypeIdList.length > 0) ? '#222222' : '' }">{{form.bustypeIdList.length > 0 ? form.bustypeName : '鍟嗕笟鍖栫被鍨�'}}</text>
<image src="/static/ar_open_sel8@2x.png" mode="widthFix" v-if="view === 1"></image>
- <image src="/static/ar_open_sel@2x.png" mode="widthFix" v-else-if="view !== 1 && form.bustypeIds"></image>
+ <image src="/static/ar_open_sel@2x.png" mode="widthFix" v-else-if="view !== 1 && form.bustypeIdList.length > 0"></image>
<image src="/static/ar_open7@2x.png" mode="widthFix" v-else></image>
</view>
<view class="cate-item" @click="clickRow(2)">
@@ -85,7 +85,8 @@
</view>
</view>
<view class="item-info-d" v-if="item.isShow">
- {{item.zhankai ? item.content : item.contentCopy}}<text @click.stop="zhankai(item)">{{item.zhankai ? '鏀惰捣' : '鏇村'}}</text>
+ <!-- @click.stop="zhankai(item)" -->
+ {{item.zhankai ? item.content : item.contentCopy}}<text>{{item.zhankai ? '鏀惰捣' : '鏇村'}}</text>
</view>
<view class="item-info-d" v-else>
{{item.content}}
@@ -108,7 +109,7 @@
orderByType: '',
orderByName: '',
fieldIdList: [],
- bustypeIds: '',
+ bustypeIdList: [],
bustypeName: '',
name: ''
},
@@ -146,7 +147,7 @@
orderByType: this.form.orderByType ? this.form.orderByType : 3,
orderByName: this.form.orderByName,
fieldIdList: this.form.fieldIdList,
- bustypeIds: this.form.bustypeIds,
+ bustypeIdList: this.form.bustypeIdList,
bustypeName: this.form.bustypeName,
name: this.form.name
}
@@ -176,7 +177,11 @@
},
clickSearch(i, type) {
if (type === 1) {
- this.form.bustypeIds = this.list1[i].id
+ if (this.list1[i].id) {
+ this.form.bustypeIdList = [this.list1[i].id]
+ } else {
+ this.form.bustypeIdList = []
+ }
this.form.bustypeName = this.list1[i].name
this.list1.forEach((item, index) => {
item.active = index === i
@@ -325,6 +330,7 @@
}
}
.item-info-b {
+ width: 80%;
display: flex;
flex-wrap: wrap;
align-items: center;
--
Gitblit v1.9.3