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

优化

上级 dc96c32c
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
</view> </view>
</view> </view>
</template> </template>
<u-action-sheet <!-- <u-action-sheet
:list="sheetList" :list="sheetList"
v-model="sheetShow" v-model="sheetShow"
:cancel-btn="false" :cancel-btn="false"
class="action-sheet" class="action-sheet"
@click="sheetChange" @click="sheetChange"
></u-action-sheet> ></u-action-sheet> -->
</view> </view>
</template> </template>
...@@ -149,8 +149,18 @@ export default { ...@@ -149,8 +149,18 @@ export default {
that.controlsArray[s].show = false; that.controlsArray[s].show = false;
} }
that.controlsArray[index].show = true; that.controlsArray[index].show = true;
that.sheetShow = true;
that.sheetIndex = index; 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) { sheetChange(index) {
...@@ -297,5 +307,6 @@ $sheet-heigth: var(--window-bottom); ...@@ -297,5 +307,6 @@ $sheet-heigth: var(--window-bottom);
.action-sheet { .action-sheet {
position: fixed; position: fixed;
bottom: 100px; bottom: 100px;
z-index: 999;
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论