cm-return-instructions.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="goods-return-instructions">
  3. <view class="section" @click="onShowDetail">
  4. <view class="label">特殊商品退货须知</view>
  5. <view class="iconfont icon-xiangyou more"></view>
  6. </view>
  7. <tui-bottom-popup backgroundColor="#fff" :height="400" :show="popupShow">
  8. <view class="popup-content">
  9. <view class="close iconfont icon-iconfontguanbi" @click="close"></view>
  10. <view class="title">特殊商品退货须知</view>
  11. <scroll-view :scroll-y="true" class="content">
  12. <view v-html="content"></view>
  13. </scroll-view>
  14. </view>
  15. </tui-bottom-popup>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. props:{
  21. content: {
  22. type: String,
  23. default: ''
  24. }
  25. },
  26. data(){
  27. return {
  28. popupShow: false
  29. }
  30. },
  31. methods: {
  32. onShowDetail() {
  33. this.popupShow = true
  34. },
  35. close() {
  36. this.popupShow = false
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .goods-return-instructions {
  43. background-color: #fff;
  44. .section {
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. font-size: 28rpx;
  49. line-height: 90rpx;
  50. color: #666666;
  51. .iconfont {
  52. color: #b2b2b2;
  53. }
  54. }
  55. }
  56. .popup-content {
  57. position: relative;
  58. padding: 50rpx;
  59. background-color: #fff;
  60. border-radius: 16rpx 16rpx 0 0;
  61. .close {
  62. position: absolute;
  63. right: 24rpx;
  64. top: 24rpx;
  65. color: #999;
  66. font-size: 32rpx;
  67. }
  68. .title {
  69. text-align: center;
  70. font-size: 34rpx;
  71. color: #333;
  72. font-weight: bold;
  73. }
  74. .content {
  75. line-height: 42rpx;
  76. font-size: 26rpx;
  77. margin-top: 50rpx;
  78. max-height: 200rpx;
  79. color: #333333;
  80. }
  81. }
  82. </style>