index.ux 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <div class="content fd_c">
  3. <image class="w h-150" src="/assets/images/source/jubao.jpeg"></image>
  4. <div class="mgt-50 text-28 text-777 mgb-20 fd_c">
  5. <text>请选择举报原因:(*)</text>
  6. </div>
  7. <div class="fd_c" style="margin-top: 20px;">
  8. <list style="height: 200px;">
  9. <list-item for="(index,item) in radiolist1">
  10. <div class="radio-row" @click="selectRadio(index)">
  11. <div class="radio-outer">
  12. <div class="radio-inner" if="radiovalue1 === item.name"></div>
  13. </div>
  14. <text class="radio-label">{{item.name}}</text>
  15. </div>
  16. </list-item>
  17. </list>
  18. <div if="radiovalue1 === '其他意见或建议'" style="margin-bottom: 50px;">
  19. <div class="pdl-50 fd_c">
  20. <div class="input_line">
  21. <text class="w-260">具体情况说明</text>
  22. <input class="text-24 h-50" value="{{desc}}" placeholder="请补充你的投诉内容" @change="descChange"/>
  23. </div>
  24. <div class="input_line">
  25. <text class="w-260">联系方式</text>
  26. <input class="text-24 h-50" value="{{tel}}" placeholder="请填写你的联系方式" @change="telChange"/>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div style="justify-content: space-around;margin-top: 100px;">
  32. <text class="cancel" @click="cancelFn">取消</text>
  33. <text class="sure" @click="sureFn">确定</text>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. import router from '@system.router'
  39. import prompt from '@system.prompt'
  40. export default {
  41. data: {
  42. radiolist1: [
  43. { name: '内容粗糙或不美观', disabled: false },
  44. { name: '广告展示频繁,影响体验', disabled: false },
  45. { name: '其他意见或建议', disabled: false }
  46. ],
  47. desc: '',
  48. tel: '',
  49. radiovalue1: '内容粗糙或不美观'
  50. },
  51. selectRadio(index) {
  52. this.radiovalue1 = this.radiolist1[index].name;
  53. },
  54. descChange(e) {
  55. this.desc = e.value;
  56. },
  57. telChange(e) {
  58. this.tel = e.value;
  59. },
  60. cancelFn() {
  61. router.back();
  62. },
  63. sureFn() {
  64. prompt.showToast({ message: '提交成功' });
  65. setTimeout(() => {
  66. router.replace({ uri: '/pages/commonModule/complaintResult' });
  67. }, 500);
  68. }
  69. }
  70. </script>
  71. <style>
  72. .fd_c{
  73. flex-direction: column;
  74. }
  75. .input_line{
  76. border-top:1px solid #999;
  77. padding: 20px 100px 20px 0;
  78. justify-content: space-between;
  79. align-items: center;
  80. }
  81. .w-260{
  82. width: 260px;
  83. }
  84. .text-24{
  85. font-size: 24px;
  86. }
  87. .h-50{
  88. height: 50px;
  89. }
  90. .content {
  91. margin-top: 60px;
  92. border-radius: 50px;
  93. padding: 50px 28px;
  94. background: linear-gradient(to bottom, #d6e6ff, #f3f4f8);
  95. }
  96. .radio-row {
  97. display: flex;
  98. align-items: center;
  99. margin-bottom: 30px;
  100. }
  101. .radio-outer {
  102. width: 32px;
  103. height: 32px;
  104. border: 2px solid #d91e0f;
  105. border-radius: 50%;
  106. margin-right: 20px;
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. }
  111. .radio-inner {
  112. width: 18px;
  113. height: 18px;
  114. background-color: #d91e0f;
  115. border-radius: 50%;
  116. }
  117. .radio-label {
  118. font-size: 28px;
  119. color: #333;
  120. }
  121. .cancel {
  122. border: 1px solid #999;
  123. height: 80px;
  124. line-height: 80px;
  125. width: 250px;
  126. text-align: center;
  127. border-radius: 12px;
  128. }
  129. .sure {
  130. height: 80px;
  131. line-height: 80px;
  132. width: 250px;
  133. text-align: center;
  134. border-radius: 12px;
  135. color: #fff;
  136. background-color: #f03433;
  137. }
  138. </style>