🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` <el-row> <el-col :span="3" v-for="(o, index) in 8" :key="o" > <el-card :body-style="{ padding: '0px' }" > <img :src="index+'.jpg'" class="image"> <div style="padding: 14px;"> <span>好吃的汉堡</span> <div class="bottom clearfix"> <time class="time">{{ currentDate }}</time> <el-button type="text" class="button">操作按钮</el-button> </div> </div> </el-card> </el-col> </el-row> ``` ``` <el-row> <el-col :span="3" v-for="(o, index) in 8" :key="o" > <el-card :body-style="{ padding: '0px' }" > <img :src="o+'.jpg'" class="image"> <div style="padding: 14px;"> <span>好吃的汉堡</span> <div class="bottom clearfix"> <time class="time">{{ currentDate }}</time> <el-button type="text" class="button">操作按钮</el-button> </div> </div> </el-card> </el-col> </el-row> ``` ``` exptype: ['统一运费','运费模板'], ``` ``` <el-select v-model="formValue.goods_exptype" style="width: 200px" @change="chooseExptype"> <el-option v-for="(item, index) in exptype" :label="item" :value="index" :key="index"></el-option> </el-select> ``` 完美方法,直接写即可 ``` <el-select v-model="formValue.goods_exptype" style="width: 200px" @change="chooseExptype"> <el-option label="统一运费" value="1"></el-option> <el-option label="运费模板" value="2"></el-option> </el-select> ```