fuint-uniapp-master/pages/goods/list.vue
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ native: true }" @down="downCallback"
:up="upOption" @up="upCallback">
<!-- 页面头部 -->
<view class="header">
<search class="search" :tips="options.search ? options.search : '搜索商品'" @event="handleSearch" />
</view>
<!-- 排序标签 -->
<view class="store-sort">
<view class="sort-item" :class="{ active: sortType === 'all' }" @click="handleSortType('all')">
<text>综合</text>
</view>
<view class="sort-item" :class="{ active: sortType === 'sales' }" @click="handleSortType('sales')">
<text>销量</text>
</view>
<view class="sort-item sort-item-price" :class="{ active: sortType === 'price' }" @click="handleSortType('price')">
<text>价格</text>
<view class="price-arrow">
<view class="icon up" :class="{ active: sortType === 'price' && !sortPrice }">
<text class="iconfont icon-arrow-up"></text>
</view>
<view class="icon down" :class="{ active: sortType === 'price' && sortPrice }">
<text class="iconfont icon-arrow-down"></text> </view>
</view>
</view>
</view>
<!-- 商品列表 -->
<view class="goods-list clearfix" :class="['column-1']">
<view class="goods-item" v-for="(item, index) in list.data" :key="index" @click="onTargetDetail(item.id, item.type)">
<!-- 单列显示 -->
<view v-if="showView" class="dis-flex">
<!-- 商品图片 -->
<view class="goods-item_left">
<image class="image" :src="item.logo"></image>
</view>
<view class="goods-item_right">
<!-- 商品名称 -->
<view class="goods-name twolist-hidden">
<text>{{ item.name }}</text>
</view>
<view class="goods-item_desc">
<!-- 商品卖点 -->
<view class="desc-selling_point dis-flex">
<text class="onelist-hidden">{{ item.salepoint }}</text>
</view>
<view class="coupon-attr">
<view class="attr-l">
<!-- 销量 -->
<view class="desc-goods_sales dis-flex">
<text>已售{{ item.initSale }}</text>
</view>
<!-- 价格 -->
<view class="desc_footer">
<text class="price_x">¥{{ item.price }}</text>
<text class="price_y col-9" v-if="item.linePrice > 0">¥{{ item.linePrice }}</text>
</view>
</view>
<view class="attr-r">
后面还有 438 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。