report-details.vue 5.1 KB

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