6***@qq.com
6***@qq.com
  • 发布:2022-08-11 11:35
  • 更新:2022-08-12 09:24
  • 阅读:150

在uni-popup弹出层中uni-appcollapse配置默认打开不生效

分类:uni-app
<uni-popup ref="popup" type="bottom">  
            <view class="popup-content">  
                <text class="title">店铺信息</text>  
                <view class="shops-content">  
                    <uni-collapse ref="collapseView" accordion v-model="accordionVal" @change="collapseChange">  
                        <view v-for="(item,index) in studyShops" :key="item.id" :name="index">  
                            <uni-collapse-item :show-arrow="false" titleBorder="none" :border="false">  
                                <template v-slot:title>  
                                    <view class="flex-align-center collapse-title">  
                                        <view class="flex-align-center">  
                                            <view class="study_shop_icon"></view>  
                                            <text>{{item.name}}</text>  
                                        </view>  
                                        <uni-data-checkbox v-model="selectedRadio" :localdata="studyShops"  
                                            selectedColor="#2F7466"></uni-data-checkbox>  
                                    </view>  
                                </template>  
                                <view class="content">  
                                    <view class="content-item"><text  
                                            class="content-label">店铺简介</text>{{item.introduction}}  
                                    </view>  
                                    <view class="content-item"><text  
                                            class="content-label">营业时间</text>{{item.openTime}}-   
                                                                                           {{item.closeTime}}</view>  
                                    <view class="content-item"><text  
                                            class="content-label">店铺实景</text>{{item.introduction}}  
                                    </view>  
                                </view>  
                            </uni-collapse-item>  
                        </view>  
                    </uni-collapse>  
                    <button class="base-button" @click="closePopup()">确认</button>  
                </view>  
            </view>  
        </uni-popup>  

accordionVal:"0"
2022-08-11 11:35 负责人:无 分享
已邀请:
6***@qq.com

6***@qq.com (作者)

哪位大佬帮忙看看

要回复问题请先登录注册