案例演示
案例代码
<template>
<pageBox ref="pagebox">
<view class="container">
<view class="greenBg">
<view class="manage">
<view class="selectNum">
共<text class="nums">{
{allNum}}</text>件商品
</view>
<view class="tabBox">
<block v-for="(item,index) in tabList" :key="item.value">
<view class="tabItem" :class="current == item.value?'tabActive':''"
@click="tabChange(item.value)">
{
{item.name}}
</view>
</block>
</view>
<view class="edit" v-if="isEdit" @click="edit">
<image src="/static/images/mall/edit.png" mode="aspectFill"></image> 编辑
</view>
<view class="edit" v-if="!isEdit" @click="cancelEdit">
<image src="/static/images/mall/cancel.png" mode="aspectFill"></image>取消
</view>
</view>
</view>
<view class="list">
<u-checkbox-group v-model="checkboxId" placement="column" activeColor="#60B347">
<view class="item" v-for="(item,index) in list" :key="index">
<view class="checkBox">
<u-checkbox :name="item.id" shape="circle" activeColor="#60B347" :checked="item.checked"
@change="choose(item)"></u-checkbox>
</view>
<view class="productImg">
<image src="/static/images/mall/goodImg.png" mode="aspectFill"></image>
</view>
<view class="productInfo">
<view class="proName">{
{item.name}}</view>
<view class="proNumBox">
<view class="proPrice">¥{
{item.money}}</view>
<view class="proStep">
<u-number-box>
<v