report-details.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <view class="container qualifications" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0' }">
  3. <tui-skeleton
  4. v-if="skeletonShow"
  5. backgroundColor="#fafafa"
  6. borderRadius="10rpx"
  7. :isLoading="true"
  8. :loadingType="5"
  9. ></tui-skeleton>
  10. <view class="remarks-content" v-else>
  11. <template v-if="reportParams.clubId && reportParams.clubId > 0">
  12. <view class="list-view-title">
  13. <view class="list-view-h1"
  14. >机构名称:<text>{{ reportParams.clubName }}</text></view
  15. >
  16. </view>
  17. <view class="list-view-title">
  18. <view class="list-view-h1"
  19. >联系人:<text>{{ reportParams.linkMan }}</text></view
  20. >
  21. </view>
  22. </template>
  23. <template v-else>
  24. <view class="list-view-title">
  25. <view class="list-view-h1">咨询人:{{ reportParams.questionMan }}</view>
  26. </view>
  27. </template>
  28. <view class="list-view-title">
  29. <view class="list-view-h1">报备时间:{{ reportParams.addTime }}</view>
  30. </view>
  31. <view class="list-view-title"> <view class="list-view-h1">报备商品:</view> </view>
  32. <view class="tui-remarks-content" v-if="reportParams.productId">
  33. <view class="tui-remarks-goods">
  34. <view class="goods-image"> <image :src="reportParams.mainImage" mode=""></image> </view>
  35. <view class="goods-main">
  36. <view class="name"> {{ reportParams.productName }} </view>
  37. <view class="shop"> 供应商:{{ reportParams.shopName }} </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="list-view-title">
  42. <view class="list-view-h1"
  43. >报备事由:<text>{{ reportParams.reportText }}</text></view
  44. >
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import { mapState, mapMutations } from 'vuex'
  51. import authorize from '@/common/config/authorize.js'
  52. var isPreviewImg
  53. export default {
  54. data() {
  55. return {
  56. isIphoneX: this.$store.state.isIphoneX,
  57. skeletonShow:true,
  58. productActions: [],
  59. reportParams: {},
  60. reportId: 0,
  61. }
  62. },
  63. onLoad(option) {
  64. console.log(option)
  65. this.reportId = option.reportId
  66. this.userReportDetails(this.reportId)
  67. },
  68. methods: {
  69. ...mapMutations(['login']),
  70. userReportDetails(reportId) {
  71. //报备详情
  72. this.UserService.userReportDetails({
  73. reportId: reportId
  74. })
  75. .then(response => {
  76. this.reportParams = response.data
  77. setTimeout(()=>{
  78. this.skeletonShow = false
  79. },500)
  80. })
  81. .catch(error => {
  82. this.$util.msg(error.msg, 2000)
  83. })
  84. }
  85. },
  86. onShow() {}
  87. }
  88. </script>
  89. <style lang="scss">
  90. page {
  91. height: auto;
  92. background: #ffffff;
  93. }
  94. .remarks-content {
  95. width: 100%;
  96. height: auto;
  97. box-sizing: border-box;
  98. padding: 0 24rpx;
  99. padding-bottom: 80rpx;
  100. .list-view-title {
  101. width: 100%;
  102. height: auto;
  103. margin-bottom: 16rpx;
  104. margin-top: 40rpx;
  105. .list-view-h1 {
  106. line-height: 40rpx;
  107. font-size: $font-size-30;
  108. color: #333333;
  109. text-align: left;
  110. font-weight: bold;
  111. text {
  112. color: #666666;
  113. font-weight: normal;
  114. }
  115. }
  116. }
  117. .tui-remarks-content {
  118. width: 100%;
  119. height: auto;
  120. margin-bottom: 24rpx;
  121. .tui-remarks-goods {
  122. width: 100%;
  123. height: 180rpx;
  124. box-sizing: border-box;
  125. background-color: #f7f7f7;
  126. padding: 26rpx;
  127. border-radius: 6rpx;
  128. .goods-image {
  129. width: 128rpx;
  130. height: 128rpx;
  131. float: left;
  132. image {
  133. width: 128rpx;
  134. height: 128rpx;
  135. display: block;
  136. border-radius: 4rpx;
  137. }
  138. }
  139. .goods-main {
  140. width: 522rpx;
  141. height: 128rpx;
  142. box-sizing: border-box;
  143. padding: 0 32rpx;
  144. float: right;
  145. .name {
  146. width: 100%;
  147. height: 60rpx;
  148. box-sizing: border-box;
  149. line-height: 60rpx;
  150. color: #333333;
  151. text-overflow: ellipsis;
  152. overflow: hidden;
  153. display: -webkit-box;
  154. -webkit-line-clamp: 1;
  155. line-clamp: 1;
  156. -webkit-box-orient: vertical;
  157. font-size: 26rpx;
  158. }
  159. .shop {
  160. line-height: 60rpx;
  161. color: #999999;
  162. font-size: 26rpx;
  163. }
  164. }
  165. }
  166. }
  167. .list-view {
  168. width: 100%;
  169. height: auto;
  170. margin-top: 20rpx;
  171. .list-view-text {
  172. width: 100%;
  173. float: left;
  174. .input {
  175. width: 500rpx;
  176. height: 50rpx;
  177. box-sizing: border-box;
  178. line-height: 50rpx;
  179. color: #333333;
  180. text-overflow: ellipsis;
  181. overflow: hidden;
  182. display: -webkit-box;
  183. -webkit-line-clamp: 1;
  184. line-clamp: 1;
  185. -webkit-box-orient: vertical;
  186. float: left;
  187. font-size: 26rpx;
  188. }
  189. .delbtn {
  190. width: 96rpx;
  191. height: 44rpx;
  192. border-radius: 8rpx;
  193. font-size: $font-size-24;
  194. color: #e15616;
  195. line-height: 44rpx;
  196. text-align: center;
  197. float: left;
  198. &.down {
  199. color: #1890f9;
  200. }
  201. }
  202. }
  203. }
  204. }
  205. </style>