ruleDialog.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="cu-modal" :class="{ show: visible }">
  3. <view class="mask"></view>
  4. <view
  5. class="wrapper cu-dialog"
  6. style="background-color: transparent; width: 100%; padding: 0"
  7. >
  8. <view class="relative" style="text-align: center;">
  9. <image :src="ossurl.box.rule.cjsRule" mode="widthFix" style="width: 90%" />
  10. <view class="footer">
  11. <view class="more" @click="showRule">查看详细规则</view>
  12. <view class="close cuIcon-close" @click="close"></view>
  13. </view>
  14. </view>
  15. </view>
  16. <goods-detail ref="goodsDetailRef" />
  17. </view>
  18. </template>
  19. <script>
  20. import ossurl from '@/utils/ossurl'
  21. export default {
  22. props: {},
  23. data() {
  24. return {
  25. ossurl: ossurl,
  26. visible: false
  27. }
  28. },
  29. computed: {},
  30. methods: {
  31. close() {
  32. this.visible = false
  33. },
  34. showRule() {
  35. this.$router.push('playing_method', { type: 1 })
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .mask {
  42. position: absolute;
  43. left: 0;
  44. right: 0;
  45. top: 0;
  46. bottom: 0;
  47. }
  48. .footer {
  49. text-align: center;
  50. width: 100%;
  51. .more {
  52. font-size: 24rpx;
  53. font-family: Source Han Sans, Source Han Sans;
  54. font-weight: 400;
  55. color: #fff8e5;
  56. padding: 30rpx;
  57. text-decoration: underline;
  58. }
  59. }
  60. .close {
  61. display: inline-block;
  62. width: 64rpx;
  63. height: 64rpx;
  64. background: #d8d8d8;
  65. font-size: 32rpx;
  66. text-align: center;
  67. line-height: 64rpx;
  68. color: #444;
  69. border-radius: 50%;
  70. }
  71. </style>