question-remove.vue 661 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="questionBankAnswer-bottom-flex">
  3. <view class="questionBankAnswer-bottom-flex" @tap="removeError">
  4. <view class="iconfont icon-a-31Jguanbiyichu"></view>
  5. <view class="ycct">移除</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default{
  11. data(){
  12. return {
  13. }
  14. },
  15. methods:{
  16. removeError(){
  17. let that = this
  18. uni.showModal({
  19. title: '提示',
  20. content: '是否移除该错题',
  21. confirmText:'移除',
  22. success: function (res) {
  23. if (res.confirm) {
  24. that.$emit('removeError')
  25. } else if (res.cancel) {
  26. }
  27. }
  28. });
  29. },
  30. }
  31. }
  32. </script>
  33. <style>
  34. </style>