| | |
| | | <view v-for="(item,index) of listFilter" :key="item.id" class="canteen-item list"
|
| | | @click.stop="toDetailList(item)">
|
| | | <view class="m-r-10">
|
| | | <image :src="item.imageUrl" mode="scaleToFill" class="cover"
|
| | | <image :src="item.imageUrl" mode="scaleToFill" class="cover" :lazy-load="true"
|
| | | @click.stop="previewImg(item.imageUrl)">
|
| | | </image>
|
| | | </view>
|
| | |
| | | },
|
| | | async onLoad() {
|
| | |
|
| | | //加载分类
|
| | | this.$http.request('get', '/api/customer/flower/category/tree', {}).then(res => {
|
| | | //加载分类 |
| | | this.$message.showLoading()
|
| | | this.$http.request('get', '/api/customer/flower/category/tree', {}).then(res => { |
| | | this.$message.hideLoading()
|
| | | var data = res.data
|
| | | this.list = data || []
|
| | | if (this.list.length > 0) {
|