提交 a35e615f authored 作者: 刘旭's avatar 刘旭

优化

上级 dc96c32c
......@@ -33,13 +33,13 @@
</view>
</view>
</template>
<u-action-sheet
<!-- <u-action-sheet
:list="sheetList"
v-model="sheetShow"
:cancel-btn="false"
class="action-sheet"
@click="sheetChange"
></u-action-sheet>
></u-action-sheet> -->
</view>
</template>
......@@ -149,8 +149,18 @@ export default {
that.controlsArray[s].show = false;
}
that.controlsArray[index].show = true;
that.sheetShow = true;
that.sheetIndex = index;
uni.showActionSheet({
itemList: ['修改规格', '复制', '删除'],
success: function(res) {
that.sheetChange(res.tapIndex);
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
},
fail: function(res) {
console.log(res.errMsg);
},
});
// that.sheetShow = true;
},
// 点击选择操作
sheetChange(index) {
......@@ -297,5 +307,6 @@ $sheet-heigth: var(--window-bottom);
.action-sheet {
position: fixed;
bottom: 100px;
z-index: 999;
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论