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