|  |  |  | 
|---|
|  |  |  | <view class="flex m-t-12 flex-wrap-normal"> | 
|---|
|  |  |  | <view class="type-list"  v-if="flg==='1'"> | 
|---|
|  |  |  | <view v-for="(item,index) of catgoryTree" @click="changeType(item)" | 
|---|
|  |  |  | :class="[query.categoryRoot===item.id?'current':'']" :key="index" class="p10 flex type-item"> | 
|---|
|  |  |  | :class="[query.categoryRoot===item.id?'current':'']" :key="index" | 
|---|
|  |  |  | class="p10 flex type-item"> | 
|---|
|  |  |  | {{item.name || '-'}} | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="flex1"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <view class="component-shop-item flex" v-for="(item,index) of list" :key="index" :class="flg==='1'?'flg-category':''"> | 
|---|
|  |  |  | <view class="component-shop-item flex" v-for="(item,index) of list" :key="index" | 
|---|
|  |  |  | :class="flg==='1'?'flg-category':''"> | 
|---|
|  |  |  | <view class="img" @click.stop="toDetail(item)"> | 
|---|
|  |  |  | <image class="img img100" :src="item.cover" lazy-load> | 
|---|
|  |  |  | </image> | 
|---|
|  |  |  | 
|---|
|  |  |  | onShow() { | 
|---|
|  |  |  | //避免商品数目不一样 | 
|---|
|  |  |  | this.refreshList('post') | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | async onPullDownRefresh() { | 
|---|
|  |  |  | if (this.id) { | 
|---|
|  |  |  | await this.getDetail() | 
|---|
|  |  |  | } | 
|---|
|  |  |  | await this.refreshList('post') | 
|---|
|  |  |  | uni.stopPullDownRefresh() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onLoad(options) { | 
|---|
|  |  |  | this.id = options.id || '' | 
|---|
|  |  |  | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .tag { | 
|---|
|  |  |  | min-width: 80rpx; | 
|---|
|  |  |  | padding-left: 20rpx; | 
|---|
|  |  |  | padding-right: 20rpx; | 
|---|
|  |  |  | line-height: 36rpx; | 
|---|
|  |  |  | min-width: 60rpx; | 
|---|
|  |  |  | padding-left: 10rpx; | 
|---|
|  |  |  | padding-right: 10rpx; | 
|---|
|  |  |  | line-height: 30rpx; | 
|---|
|  |  |  | background: #FEE6E6; | 
|---|
|  |  |  | border-radius: 21rpx; | 
|---|
|  |  |  | font-size: 24rpx; | 
|---|
|  |  |  | border-radius: 10rpx; | 
|---|
|  |  |  | font-size: 22rpx; | 
|---|
|  |  |  | color: #CD1212; | 
|---|
|  |  |  | margin-right: 12rpx; | 
|---|
|  |  |  | text-align: center; | 
|---|
|  |  |  | 
|---|
|  |  |  | .tag.green { | 
|---|
|  |  |  | color: rgba(110, 159, 102, 1); | 
|---|
|  |  |  | background: rgba(202, 229, 214, 1); | 
|---|
|  |  |  | border-radius: 21rpx; | 
|---|
|  |  |  | border-radius: 10rpx; | 
|---|
|  |  |  | // opacity: 0.57; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | overflow: hidden; | 
|---|
|  |  |  | overflow-y: scroll; | 
|---|
|  |  |  | padding: 40rpx 32rpx; | 
|---|
|  |  |  | height: calc(100vh - 450rpx); | 
|---|
|  |  |  | min-height: calc(100vh - 470rpx); | 
|---|
|  |  |  | max-height: calc(100vh - 470rpx); | 
|---|
|  |  |  | padding-top: 0rpx; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .type-list { | 
|---|
|  |  |  | 
|---|
|  |  |  | color: #04BA97; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .flg-category.component-shop-item{ | 
|---|
|  |  |  | .img{ | 
|---|
|  |  |  | width: 140rpx; | 
|---|
|  |  |  | height: 140rpx; | 
|---|
|  |  |  | margin-top: 10rpx; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .info-container{ | 
|---|
|  |  |  | .title { | 
|---|
|  |  |  | margin-top: 0rpx; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .shop-name{ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .shop-name {} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .other-info { | 
|---|
|  |  |  | margin-bottom: 60rpx; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .bottom-buttons{ | 
|---|
|  |  |  | bottom: -50rpx; | 
|---|
|  |  |  | } | 
|---|