myScoreDetail.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <div class="detail">
  3. <mt-header class="detail_head" fixed title="评分详情">
  4. <router-link to="" slot="left">
  5. <mt-button icon="back" v-on:click="jumpBack()"></mt-button>
  6. </router-link>
  7. </mt-header>
  8. <div class="detail_body">
  9. <div class="detailBox one_recordBox">
  10. <div class="record_head">
  11. <div>个人分:<span>{{detail.personalScore==null?'0分':detail.personalScore + '分'}}</span></div>
  12. <div>建议分:<span>{{detail.ideaScoreSum==null?'0分':detail.ideaScoreSum + '分'}}</span></div>
  13. </div>
  14. <div class="record_body">
  15. <div v-on:click="showSuggest()">我的建议 <span class="toDetail"><img class="rotate" src="../../assets/image/pull_down_blue.png"></span></div>
  16. </div>
  17. <div class="suggestList" >
  18. <div class="one_suggest" v-for="item in detail.ideaVO">
  19. <div class="one_suggest_title">
  20. {{item.indate}}
  21. </div>
  22. <div class="one_suggest_body">
  23. {{item.content}}
  24. </div>
  25. <div class="one_suggest_reply" v-if="item.ideaComment != null">
  26. <div class="reply_title">来自领导的回复</div>
  27. <div class="reply_body">
  28. {{item.ideaComment.content}}
  29. <div>{{item.ideaComment.responder}} <span class="score">得分:<span>{{item.score==null?'0分':item.score + '分'}}</span></span></div>
  30. <div>{{item.ideaComment.indate}}</div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="detailBox one_recordBox">
  37. <div class="totalScore">总得分:<span>{{detail.total==null?'0分':detail.total + '分'}}</span></div>
  38. <div class="totalReason">
  39. <div>得分原因</div>
  40. <div>
  41. {{detail.reason}}
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. uid: this.$route.params.uid,
  53. time: this.$route.params.time,
  54. detail: '',
  55. }
  56. },
  57. methods: {
  58. // 消息列表
  59. getDetail() {
  60. this.$indicator.open();
  61. this.http.post(this.port.my.scoreDetail, {
  62. 'uid': this.uid,
  63. 'time': this.time,
  64. } ,
  65. res => {
  66. this.$indicator.close();
  67. if (res.code == "ok") {
  68. this.detail = res.data;
  69. } else {
  70. this.$toast({
  71. message: res.msg,
  72. duration: 2000
  73. });
  74. }
  75. }, error => {
  76. this.$indicator.close();
  77. this.$toast({
  78. message: error,
  79. duration: 2000
  80. });
  81. })
  82. },
  83. showSuggest() {
  84. if($('.toDetail img').attr("class") == "rotate") {
  85. $('.suggestList').slideDown();
  86. $('.toDetail img').attr("class","rotate1")
  87. } else {
  88. $('.suggestList').slideUp();
  89. $('.toDetail img').attr("class","rotate")
  90. }
  91. },
  92. jumpBack() {
  93. this.$router.go(-1);
  94. }
  95. },
  96. created() {
  97. this.getDetail();
  98. },
  99. mounted() {
  100. }
  101. }
  102. </script>
  103. <style scoped>
  104. body {
  105. background: #EFEFEF!important;
  106. }
  107. .context_router {
  108. background: #EFEFEF;
  109. }
  110. .detail {
  111. background: #EFEFEF;
  112. }
  113. .detail_head {
  114. background: #fff;
  115. color: #333;
  116. height: 0.4rem;
  117. }
  118. .detail_body {
  119. margin-top: 0.4rem;
  120. padding-bottom: 0.15rem;
  121. }
  122. .detailBox {
  123. background: #fff;
  124. margin-bottom: 0.11rem;
  125. }
  126. .one_recordBox {
  127. padding: 0.12rem 0.2rem;
  128. }
  129. .record_head {
  130. padding: 0 0 0.1rem 0;
  131. line-height: 0.25rem;
  132. border-bottom: 1px solid #ccc;
  133. }
  134. .record_head > div {
  135. width: 100%;
  136. display: inline-block;
  137. vertical-align: middle;
  138. }
  139. .record_head > div span {
  140. color: #5FA1F0;
  141. margin-left: 0.2rem;
  142. float: right;
  143. margin-right: 0.08rem;
  144. }
  145. .record_body {
  146. color: #5FA1F0;
  147. font-size: 0.14rem;
  148. margin: 0.12rem 0 0 0;
  149. }
  150. .record_body .toDetail {
  151. float: right;
  152. margin-right: 0.05rem;
  153. }
  154. .record_body .toDetail img {
  155. width: 0.12rem;
  156. }
  157. .one_suggest {
  158. margin-top: 0.2rem;
  159. }
  160. .one_suggest_title {
  161. line-height: 0.3rem;
  162. }
  163. .one_suggest_body {
  164. font-size: 0.13rem;
  165. line-height: 0.2rem;
  166. color: #333;
  167. }
  168. .one_suggest_reply {
  169. margin-top: 0.12rem;
  170. }
  171. .reply_title {
  172. font-size: 0.12rem;
  173. color: #999;
  174. margin-bottom: 0.08rem;
  175. }
  176. .reply_body {
  177. padding: 0.1rem;
  178. background: #EEE;
  179. color: #333;
  180. }
  181. .reply_body > div {
  182. color: #333;
  183. line-height: 0.2rem;
  184. font-size: 0.13rem;
  185. color: #777;
  186. }
  187. .reply_body > div:nth-child(1) {
  188. margin-top: 0.1rem;
  189. }
  190. .reply_body .score {
  191. float: right;
  192. }
  193. .reply_body .score span {
  194. color: #5FA1F0;
  195. }
  196. .suggestList {
  197. display: none;
  198. }
  199. .rotate {
  200. transform-origin: center center;
  201. transform: rotate(-90deg);
  202. -webkit-transform: rotate(-90deg);
  203. -moz-transform: rotate(-90deg);
  204. -ms-transform: rotate(-90deg);
  205. -o-transform: rotate(-90deg);
  206. transition: transform 0.2s;
  207. -moz-transition: -moz-transform 0.2s;
  208. -moz-transition: -moz-transform 0.2s;
  209. -o-transition: -o-transform 0.2s;
  210. -ms-transition: -ms-transform 0.2s;
  211. }
  212. .rotate1 {
  213. transform-origin: center center;
  214. transform: rotate(0deg);
  215. -webkit-transform: rotate(0deg);
  216. -moz-transform: rotate(0deg);
  217. -ms-transform: rotate(0deg);
  218. -o-transform: rotate(0deg);
  219. transition: transform 0.2s;
  220. -moz-transition: -moz-transform 0.2s;
  221. -moz-transition: -moz-transform 0.2s;
  222. -o-transition: -o-transform 0.2s;
  223. -ms-transition: -ms-transform 0.2s;
  224. }
  225. .totalScore {
  226. line-height: 0.3rem;
  227. }
  228. .totalScore span {
  229. color: #5FA1F0;
  230. margin-left: 0.2rem;
  231. }
  232. .totalReason div:nth-child(1) {
  233. line-height: 0.3rem;
  234. }
  235. .totalReason div:nth-child(2) {
  236. line-height: 0.2rem;
  237. color: #777;
  238. }
  239. </style>