修改
This commit is contained in:
parent
6398f99919
commit
20383f0709
@ -2,7 +2,7 @@
|
||||
<view class="app">
|
||||
<view class="" v-if='GoodsCategorychildrenlist.length>1'>
|
||||
<top-tabbar :tabIndex="tabIndex" :tabBars="GoodsCategorychildrenlist" @toggleToptab="toggleTab"
|
||||
selectedBottomColor="#30c58d" selectedTextColor="#343434" textColor="#7d7e80" bgColor="#ffffff">
|
||||
selectedBottomColor="#D43953" selectedTextColor="#D43953" textColor="#7d7e80" bgColor="#ffffff">
|
||||
</top-tabbar>
|
||||
</view>
|
||||
<view class="inputs">
|
||||
@ -100,7 +100,7 @@
|
||||
toggleTab(index) {
|
||||
if (index == 1111111111111) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/classification/classification?goodsCategoryId=${this.GoodsCategorychildrenid}`
|
||||
url: `/pages/classification/classification?goodsCategoryId=${this.goodsCategoryId}&index=${this.tabIndex}&GoodsCategorychildrenid=${this.GoodsCategorychildrenid}`
|
||||
})
|
||||
} else if (index == 0) {
|
||||
this.GoodsCategorychildrenid = this.goodsCategoryId
|
||||
@ -143,7 +143,7 @@
|
||||
// 查询商品列表
|
||||
goodsListinfo() {
|
||||
this.pageNum = 1;
|
||||
goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => {
|
||||
goodsList(this.pageSize, this.pageNum, this.GoodsCategorychildrenid, this.goodsName).then(res => {
|
||||
if (res.code == 200) {
|
||||
res.rows.forEach(e => {
|
||||
this.goodsList.push(e)
|
||||
|
||||
@ -163,7 +163,6 @@
|
||||
methods: {
|
||||
//查看评价
|
||||
lookrate(item) {
|
||||
console.log(item)
|
||||
this.rateimgtitle.img = item.itemPictureUrl
|
||||
this.rateimgtitle.title = item.nurseItemName
|
||||
lookrate(item.orderNo).then(res => {
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
@scrolltolower="lower" @scroll="scroll">
|
||||
<view class="scroll-view-item" v-for="(item,index) in GoodsCategorychildrenlist" :key='item.id'
|
||||
@tap='tapscroll(item,index)'>
|
||||
<view :class="tabIndex==index?'active':''">
|
||||
<view :class="tabIndex==index?'actives':'active'">
|
||||
{{item.goodsCategoryName}}
|
||||
</view>
|
||||
</view>
|
||||
@ -81,7 +81,8 @@
|
||||
},
|
||||
onLoad(options) { //获取传值
|
||||
this.goodsCategoryId = options.goodsCategoryId //请求id
|
||||
this.GoodsCategorychildrenid = options.goodsCategoryId //请求id
|
||||
this.GoodsCategorychildrenid = options.GoodsCategorychildrenid //请求id
|
||||
this.tabIndex = options.index
|
||||
this.baseurl = baseurl;
|
||||
this.goodsListinfo()
|
||||
this.GoodsCategorychildren(this.goodsCategoryId);
|
||||
@ -135,7 +136,7 @@
|
||||
// 查询商品列表
|
||||
goodsListinfo() {
|
||||
this.pageNum = 1;
|
||||
goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => {
|
||||
goodsList(this.pageSize, this.pageNum, this.GoodsCategorychildrenid, this.goodsName).then(res => {
|
||||
if (res.code == 200) {
|
||||
res.rows.forEach(e => {
|
||||
this.goodsList.push(e)
|
||||
@ -204,6 +205,7 @@
|
||||
height: 100%;
|
||||
|
||||
.lefttabbar {
|
||||
position: fixed;
|
||||
width: 20%;
|
||||
height: 100%;
|
||||
display: inline-block;
|
||||
@ -212,9 +214,19 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.active {
|
||||
|
||||
.actives {
|
||||
color: red;
|
||||
font-size: 34rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.active {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.scroll-view-item {
|
||||
@ -223,6 +235,7 @@
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
padding: 0 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
//选中时底部横条颜色
|
||||
selectedBottomColor: {
|
||||
type: String,
|
||||
default: '#30c58d'
|
||||
default: '#D43953'
|
||||
},
|
||||
|
||||
//导航区背景颜色
|
||||
@ -76,7 +76,7 @@
|
||||
//选中时文字颜色
|
||||
selectedTextColor: {
|
||||
type: String,
|
||||
default: '#343434'
|
||||
default: '#D43953'
|
||||
},
|
||||
|
||||
//默认文本颜色
|
||||
|
||||
Loading…
Reference in New Issue
Block a user