邓洁 : 定位框只显示确认按钮
This commit is contained in:
@@ -1,27 +1,22 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="tabs-bg" />
|
||||
<view class="tabs-bg"></view>
|
||||
<view class="tabs">
|
||||
<view class="title-view" v-for="(item, index) in title" :key="item" @click="changeActiveIndex(index)"
|
||||
:class="{isActive: activeIndex === index}">
|
||||
<text>{{item}}</text>
|
||||
<view class="arrow" v-if="activeIndex !== index">
|
||||
<u-image src="/static/dropdown/dp_icon_lxia.png" width="14rpx" height="11rpx" />
|
||||
<u-image src="/static/dropdown/dp_icon_lxia.png" width="14rpx" height="11rpx"></u-image>
|
||||
</view>
|
||||
<view class="arrow" v-if="activeIndex === index">
|
||||
<u-image src="/static/dropdown/dp_icon_hlxia.png" width="14rpx" height="11rpx" />
|
||||
<u-image src="/static/dropdown/dp_icon_hlxia.png" width="14rpx" height="11rpx"></u-image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-border">
|
||||
<DropDownItem
|
||||
v-if="activeIndex !== -1"
|
||||
:list="tablist"
|
||||
@cancelDrop="cancelDrop"
|
||||
@getQueryInfo="getQueryInfo"
|
||||
:type="title[activeIndex]"
|
||||
/>
|
||||
<DropDownItem v-if="activeIndex !== -1" :list="tablist" @cancelDrop="cancelDrop" @getQueryInfo="getQueryInfo"
|
||||
:type="title[activeIndex]" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -60,9 +55,9 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.postlist[0]=JSON.parse(uni.getStorageSync('classList'))
|
||||
this.postlist[0] = JSON.parse(uni.getStorageSync('classList'))
|
||||
// this.postlist[0].unshift('全部')
|
||||
this.postlist[1]=JSON.parse(uni.getStorageSync('regionList'))
|
||||
this.postlist[1] = JSON.parse(uni.getStorageSync('regionList'))
|
||||
},
|
||||
methods: {
|
||||
changeActiveIndex(index) {
|
||||
|
||||
@@ -46,14 +46,13 @@
|
||||
options: {
|
||||
styleIsolation: 'shared', // 解除样式隔离
|
||||
},
|
||||
created() {
|
||||
},
|
||||
created() {},
|
||||
methods: {
|
||||
//点击轮播图
|
||||
handleSwiperList(currentNum, bannerURL) {
|
||||
const item=bannerURL[currentNum]
|
||||
const item = bannerURL[currentNum]
|
||||
uni.navigateTo({
|
||||
url: item.link+`?id=${item.param}&type=${item.type}`
|
||||
url: item.link + `?id=${item.param}&type=${item.type}`
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user