移动端
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

insuranceProjectDetail.vue 3.9 KiB

2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <div class="home_wrapper">
  3. <!-- 头部开始 -->
  4. <div class="header">
  5. <div class="header_left" @click="onClickLeft">
  6. <img src="../../../../static/images/agriculturalTrusteeship/return.png">
  7. </div>
  8. <div class="header_right" @click="onClickLeft">
  9. <img src="../../../../static/images/agriculturalTrusteeship/share.png">
  10. </div>
  11. </div>
  12. <!-- 头部结束 -->
  13. <!-- 内容开始 -->
  14. <div class="main">
  15. <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
  16. <van-swipe-item v-for="(item,index) in product.mainImgList" :key="index"><img :src="item"></van-swipe-item>
  17. </van-swipe>
  18. <div class="main_content">
  19. <p class="tt">{{product.productName}}</p>
  20. <p class="name">{{product.financialName}}</p>
  21. </div>
  22. <div class="main_box">
  23. <van-cell title="产品类型" :border="false" :value="product.productType" />
  24. <van-cell title="联系人" :border="false" :value="product.financialService.linker" />
  25. <van-cell title="联系方式" :border="false" :value="product.financialService.phone" />
  26. <van-cell title="产品描述" :border="false" :value="product.productLink" />
  27. <van-cell title="发布日期" :border="false" :value="product.releaseDate" />
  28. </div>
  29. </div>
  30. <!-- 内容结束 -->
  31. </div>
  32. </template>
  33. <script>
  34. import Cookies from "js-cookie";
  35. import {productGet} from "@/api/agriculturalTrusteeship";
  36. export default {
  37. name: "agriculturalTrusteeshipInsuranceDetail",
  38. data() {
  39. return {
  40. activeKey: 0,
  41. active: 0,
  42. loading: false,
  43. finished: false,
  44. product:{
  45. financialService:{
  46. linker:''
  47. }
  48. }
  49. };
  50. },
  51. created() {
  52. this.getDetail();
  53. },
  54. methods: {
  55. getDetail(){
  56. productGet(this.$route.query.id).then(response => {
  57. if (response.data.mainImg){
  58. response.data.mainImgList = [];
  59. var attachement = response.data.mainImg.split( "," );
  60. attachement.forEach(responseAttach=>{
  61. response.data.mainImgList.push({
  62. url:'/api' + responseAttach,
  63. isImage: true
  64. });
  65. })
  66. }
  67. var that = this ;
  68. that.product = response.data;
  69. });
  70. },
  71. },
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. .home_wrapper{
  76. }
  77. /*头部*/
  78. .header{
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. padding: 2vh 4% 2vh;
  83. position: absolute;
  84. top: 0;
  85. z-index: 99999999;
  86. width: 100%;
  87. .header_left{
  88. display: flex;
  89. align-items: center;
  90. p{
  91. font-size: .4rem;
  92. color: #ffffff;
  93. line-height: 1;
  94. margin-left: 10PX;
  95. }
  96. }
  97. .header_right{
  98. }
  99. }
  100. /* 内容 */
  101. .main{
  102. .my-swipe{
  103. height: 250PX;
  104. img{
  105. width: 100%;
  106. height: 100%;
  107. }
  108. }
  109. .my-swipe .van-swipe-item {
  110. color: #fff;
  111. font-size: 20px;
  112. text-align: center;
  113. }
  114. .main_content{
  115. background: #ffffff;
  116. padding: 2vh 4%;
  117. width: 92%;
  118. margin: 0 auto;
  119. border-radius: 10PX;
  120. margin-top: 2vh;
  121. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  122. .tt{
  123. font-size: .4rem;
  124. margin-bottom: 10PX;
  125. }
  126. .name{
  127. color: #4E7FFF;
  128. background: url("../../../../static/images/agriculturalTrusteeship/index/name_icon.png") no-repeat left center;
  129. padding-left: 18PX;
  130. }
  131. }
  132. .main_box{
  133. width: 92%;
  134. margin: 0 auto;
  135. margin-top: 2vh;
  136. border-radius: 10PX;
  137. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  138. overflow: hidden;
  139. background-color: #FFF;
  140. padding: 2vh 4%;
  141. /deep/ .van-cell{
  142. padding: 0;
  143. margin-bottom: 10PX;
  144. &:last-child{
  145. margin-bottom: 0;
  146. }
  147. }
  148. }
  149. }
  150. </style>