cm-return-instructions.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="goods-return-instructions">
  3. <view class="section" @click="onShowDetail">
  4. <view class="label">特殊商品退货须知</view>
  5. <view class="iconfont icon-chakangengduo 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. font-size: 28rpx;
  53. color: #666;
  54. }
  55. }
  56. }
  57. .popup-content {
  58. position: relative;
  59. padding: 50rpx;
  60. background-color: #fff;
  61. border-radius: 16rpx 16rpx 0 0;
  62. .close {
  63. position: absolute;
  64. right: 24rpx;
  65. top: 24rpx;
  66. color: #999;
  67. font-size: 32rpx;
  68. }
  69. .title {
  70. text-align: center;
  71. font-size: 34rpx;
  72. color: #333;
  73. font-weight: bold;
  74. }
  75. .content {
  76. line-height: 42rpx;
  77. font-size: 26rpx;
  78. margin-top: 50rpx;
  79. max-height: 200rpx;
  80. color: #333333;
  81. }
  82. }
  83. </style>