renWuXiangQing.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <template>
  2. <view class="box">
  3. <!-- <u-navbar :autoBack="true" title="历史人物" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar> -->
  4. <u-navbar :autoBack="true" bgColor="rgba(255,255,255,0)"></u-navbar>
  5. <image
  6. style="width: 100%;"
  7. src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/renwu.jpg">
  8. </image>
  9. <view class="box">
  10. <view style="width: 400rpx; height: 300rpx; float: right; padding: 20rpx;">
  11. <u--image width="100%" radius="5" height="300rpx" mode="heightFix"
  12. :src="item.image">
  13. </u--image>
  14. </view>
  15. <view style="margin-left: 12px; display: flex;align-items: center;">
  16. <text style="font-size:40rpx;color:#9a6700;font-weight: bold;">{{item.title}}</text>
  17. <text style="font-size:24rpx;color:#9a6700" v-if="item.also_name">({{(item.also_name!='')?'别称:'+item.also_name:''}})</text>
  18. </view>
  19. <view class="info">
  20. <view style="width: 100%; height: 40rpx;" >出生日期: {{item.date_birth}}</view>
  21. <view style="width: 100%;" >籍贯:{{item.birthplace||''}}</view>
  22. <view style="width: 100%;height: 40rpx;" >{{(item.death_birth!="")?"逝世日期:"+item.death_birth:""}}</view>
  23. <view style="width: 100%;height: 40rpx;" >民族:{{item.nation||''}}</view>
  24. </view>
  25. <view class="hrs"></view>
  26. <view
  27. style="margin-bottom: 20rpx; color:#b37700;font-size: 24rpx;margin-left: 24rpx; display: flex;align-items: center;margin-top: 40rpx" v-if="item.intro">
  28. <view style="font-weight: 700;font-size: 18px;" >简介</view>
  29. </view>
  30. <view class="gui-margin-top gui-margin">
  31. <u-parse :content="item.intro"></u-parse>
  32. </view>
  33. <view
  34. style=" margin-bottom: 20rpx;color:#b37700;font-size: 24rpx;margin-left: 24rpx; display: flex;align-items: center;margin-top: 40rpx" v-if="item.prize">
  35. <view style="font-weight: 700;font-size: 18px;" >成就</view>
  36. </view>
  37. <view class="gui-margin-top gui-margin">
  38. <u-parse :content="item.prize"></u-parse>
  39. </view>
  40. <view
  41. style="margin-bottom: 20rpx;color:#b37700;font-size: 24rpx;margin-left: 24rpx; display: flex;align-items: center;margin-top: 40rpx"v-if="item.content&&item.content!='<br />'">
  42. <view style="font-weight: 700;font-size: 18px;" >更多介绍</view>
  43. </view>
  44. <view class="gui-margin-top gui-margin">
  45. <u-parse :content="item.content"></u-parse>
  46. </view>
  47. <view class="text-img" v-if="item.association_me_list">
  48. <view style="color:#b37700; font-weight: 700;font-size: 18px;">相关</view>
  49. <view class="text-img-img">
  50. <view v-for="(it,idx) in item.association_me_list" :key="idx" >
  51. <view
  52. style="color:#b37700;font-size: 24rpx;margin-left: 10rpx; display: flex;align-items: center;margin-top: 40rpx">
  53. </view>
  54. <u--image radius="5" width="360rpx" height="240rpx" :src="it.image" @click="$common.navigateTo('/index_fenbao/GuanLi/XiangQing?id='+it.id)">
  55. </u--image>
  56. <view>{{it.title}}</view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. let that;
  66. export default {
  67. data() {
  68. return {
  69. flag: false,
  70. id:'',
  71. item:{},
  72. shadowStyle: {
  73. backgroundImage: "none"
  74. }
  75. };
  76. },
  77. onLoad(e){
  78. that=this;
  79. this.id=e.id;
  80. this.getContentDetail()
  81. },
  82. methods: {
  83. getContentDetail(){
  84. this.$api.getContentDetail({id:this.id,main_body_id:1},function(res){
  85. // console.log(res);
  86. that.item=res.data;
  87. });
  88. }
  89. }
  90. }
  91. </script>
  92. <style>
  93. .box {
  94. width: 100%;
  95. padding-bottom: 50rpx;
  96. background-color: #fff9e9;
  97. height: auto;
  98. }
  99. .fonter {
  100. height: 60px;
  101. background-color: #dedddc;
  102. z-index: 1000;
  103. position: fixed;
  104. bottom: 0;
  105. width: 100%;
  106. display: flex;
  107. justify-content: space-around;
  108. align-items: center;
  109. font-size: 16px;
  110. color: #978b83;
  111. }
  112. .text-img-img {
  113. display: flex;
  114. overflow: none;
  115. overflow-x: scroll;
  116. margin-top: 10rpx;
  117. }
  118. .text-img-img>view {
  119. color: #978b83;
  120. margin-right: 10px;
  121. }
  122. .text-img-info {
  123. color: #978b83;
  124. display: flex;
  125. justify-content: space-between;
  126. }
  127. .text-img {
  128. margin: 14px 10px;
  129. }
  130. .hrs {
  131. height: 3px;
  132. background-color: burlywood;
  133. width: 94%;
  134. margin: 20px auto;
  135. margin-top: 20px;
  136. }
  137. .box .info {
  138. display: flex;
  139. justify-content: space-between;
  140. flex-wrap: wrap;
  141. margin-left: 12px;
  142. margin-top: 8px;
  143. }
  144. .box .info>view {
  145. width: 48%;
  146. margin-top: 10px;
  147. font-size: 14px;
  148. margin-left: 4px;
  149. color: #978b83;
  150. }
  151. .imgs {
  152. z-index: 1;
  153. }
  154. .box {
  155. width: 100%;
  156. background-image: url("https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png");
  157. background-size: 100% 100%;
  158. background-attachment: fixed;
  159. border-radius: 16px 16px 0 0;
  160. position: relative;
  161. top: -100rpx;
  162. overflow-y: auto;
  163. padding-top: 10px;
  164. }
  165. .box .head {
  166. height: 6px;
  167. width: 60px;
  168. background-color: darkgray;
  169. text-align: center;
  170. margin: 0 auto;
  171. margin-top: 10px;
  172. border-radius: 4px;
  173. }
  174. .boxs>view {
  175. overflow: hidden;
  176. width: 355px;
  177. height: 160px;
  178. border-radius: 5px;
  179. margin-bottom: 30px;
  180. }
  181. .gui-margin-top{
  182. padding: 0 20rpx 0 20rpx ;
  183. }
  184. </style>