feat(specialArea): 底部栏高亮问题修复
This commit is contained in:
parent
f098aae2d9
commit
18a56b47d5
|
@ -11,16 +11,20 @@
|
||||||
<view
|
<view
|
||||||
class="goods-view"
|
class="goods-view"
|
||||||
@click="navTap(item)"
|
@click="navTap(item)"
|
||||||
v-for="item in goodsList.recommendSpecialAreaList "
|
v-for="item in goodsList.recommendSpecialAreaList"
|
||||||
:key="item.pkWares"
|
:key="item.pkWares"
|
||||||
>
|
>
|
||||||
<view class="bg-color"></view>
|
<view class="bg-color"></view>
|
||||||
|
|
||||||
<area-product-list v-if="item.waresList && item.waresList.length > 0" :list="item.waresList" :title="item.specialAreaName"></area-product-list>
|
<area-product-list
|
||||||
|
v-if="item.waresList && item.waresList.length > 0"
|
||||||
|
:list="item.waresList"
|
||||||
|
:title="item.specialAreaName"
|
||||||
|
></area-product-list>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<cl-tabbar :current="2"></cl-tabbar>
|
<cl-tabbar :current="1"></cl-tabbar>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -153,20 +157,20 @@ export default {
|
||||||
label: '专供专区',
|
label: '专供专区',
|
||||||
value: 31,
|
value: 31,
|
||||||
children: [],
|
children: [],
|
||||||
name: "wolesaleArea",
|
name: 'wolesaleArea',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '续约专区',
|
label: '续约专区',
|
||||||
value: 30,
|
value: 30,
|
||||||
children: [],
|
children: [],
|
||||||
name: "renewalArea",
|
name: 'renewalArea',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创客空间专区',
|
label: '创客空间专区',
|
||||||
value:28,
|
value: 28,
|
||||||
children: [],
|
children: [],
|
||||||
isShow: true,
|
isShow: true,
|
||||||
name: "makerArea",
|
name: 'makerArea',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '架构管理',
|
label: '架构管理',
|
||||||
|
@ -238,19 +242,19 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goUrl() {
|
goUrl() {
|
||||||
ban.agreementName().then((res) => {
|
ban.agreementName().then(res => {
|
||||||
if (res.data==0) {
|
if (res.data == 0) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:
|
url:
|
||||||
"/pages/specialArea/list?label=续约专区" +
|
'/pages/specialArea/list?label=续约专区' +
|
||||||
"&specialArea=30" +
|
'&specialArea=30' +
|
||||||
"&children=[]",
|
'&children=[]',
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '请先进行实名认证',
|
content: '请先进行实名认证',
|
||||||
success: (res) => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/selfService/realName/realName',
|
url: '/pages/selfService/realName/realName',
|
||||||
|
@ -276,7 +280,7 @@ export default {
|
||||||
})
|
})
|
||||||
if (tapx == -1) {
|
if (tapx == -1) {
|
||||||
this.zoneList.forEach((items, index) => {
|
this.zoneList.forEach((items, index) => {
|
||||||
items.children.forEach((ctem) => {
|
items.children.forEach(ctem => {
|
||||||
if (ctem.value == item.specialArea) {
|
if (ctem.value == item.specialArea) {
|
||||||
if (item.specialArea == 21) {
|
if (item.specialArea == 21) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -302,9 +306,9 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(item.specialArea == 30){
|
if (item.specialArea == 30) {
|
||||||
this.goUrl()
|
this.goUrl()
|
||||||
}else{
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:
|
url:
|
||||||
'/pages/specialArea/list?label=' +
|
'/pages/specialArea/list?label=' +
|
||||||
|
@ -315,26 +319,25 @@ export default {
|
||||||
JSON.stringify(this.zoneList[tapx].children),
|
JSON.stringify(this.zoneList[tapx].children),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getGoodsInfo() {
|
getGoodsInfo() {
|
||||||
let userInfo = uni.getStorageSync('User')
|
let userInfo = uni.getStorageSync('User')
|
||||||
getAreaGoods().then((res) => {
|
getAreaGoods().then(res => {
|
||||||
this.goodsList = res.data
|
this.goodsList = res.data
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMenuList() {
|
getMenuList() {
|
||||||
api.menuList().then((res) => {
|
api.menuList().then(res => {
|
||||||
res.data.forEach((item) => {
|
res.data.forEach(item => {
|
||||||
this.zoneList.forEach((ctem) => {
|
this.zoneList.forEach(ctem => {
|
||||||
if (ctem.name == item.menuKey) {
|
if (ctem.name == item.menuKey) {
|
||||||
ctem.isShow = true
|
ctem.isShow = true
|
||||||
}
|
}
|
||||||
if (ctem.children.length > 0) {
|
if (ctem.children.length > 0) {
|
||||||
ctem.children.forEach((stem) => {
|
ctem.children.forEach(stem => {
|
||||||
if (stem.name == item.menuKey) {
|
if (stem.name == item.menuKey) {
|
||||||
stem.isShow = true
|
stem.isShow = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue