风险测评小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
1.9 KiB

  1. <template>
  2. <uv-popup
  3. ref="popup"
  4. :overlayOpacity="0.17"
  5. mode="center"
  6. bgColor="none"
  7. :zIndex="1000000"
  8. >
  9. <view class="popup__view">
  10. <view class="header">您还有未完成的题是否继续答题</view>
  11. <view class="flex flex-column content">
  12. <image class="icon" src="@/static/image/icon-unfinish.png" mode="widthFix"></image>
  13. <view>{{ `您还有${detail.unfinishCount}道题未完成` }}</view>
  14. </view>
  15. <view class="flex footer">
  16. <button class="btn" @click="close">取消</button>
  17. <button class="btn btn-primary" @click="onContinue">继续答题</button>
  18. </view>
  19. </view>
  20. </uv-popup>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. detail: {}
  27. }
  28. },
  29. methods: {
  30. open(data) {
  31. this.detail = data
  32. this.$refs.popup.open();
  33. },
  34. close() {
  35. this.$refs.popup.close();
  36. },
  37. onContinue() {
  38. uni.navigateTo({
  39. url: `/pages_order/test/answer?id=${this.detail.id}&current=${this.detail.current}`,
  40. success: () => {
  41. this.close()
  42. },
  43. })
  44. },
  45. },
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. .popup__view {
  50. padding: 60rpx 45rpx 53rpx 45rpx;
  51. background: #FFFFFF;
  52. border-radius: 16rpx;
  53. }
  54. .header {
  55. text-align: center;
  56. font-size: 30rpx;
  57. font-weight: 600;
  58. color: #000000;
  59. }
  60. .content {
  61. padding: 90rpx 0 103rpx 0;
  62. row-gap: 24rpx;
  63. font-size: 28rpx;
  64. color: #999999;
  65. .icon {
  66. width: 120rpx;
  67. }
  68. }
  69. .footer {
  70. column-gap: 25rpx;
  71. }
  72. .btn {
  73. flex: 1;
  74. padding: 17rpx 0;
  75. box-sizing: border-box;
  76. font-family: PingFang SC;
  77. font-size: 30rpx;
  78. line-height: 1.4;
  79. color: #014FA2;
  80. border: 3rpx solid #014FA2;
  81. border-radius: 40rpx;
  82. &-primary {
  83. color: #FFFFFF;
  84. background: #014FA2;
  85. }
  86. }
  87. </style>