XueweiD.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <div class="xueweid flex-plane-center-l">
  3. <div class="left">
  4. <div class="back flex-center" @click="$router.back()">返回</div>
  5. <div class="content">
  6. <div class="name">穴位名称:{{info.acuname}}</div>
  7. <div class="text-blue">定位:</div>
  8. <div v-html="info.acuposotion"></div>
  9. <div class="text-blue">解剖:</div>
  10. <div v-html="info.acudiscection"></div>
  11. <div class="text-blue">主治:</div>
  12. <div v-html="info.acumaintreat"></div>
  13. <div class="text-blue">操作:</div>
  14. <div v-html="info.acuoperation"></div>
  15. <div class="text-blue">针刺:</div>
  16. <div v-html="info.acuneedling"></div>
  17. </div>
  18. </div>
  19. <div class="right">
  20. <div class="title flex-vertical-center-l">
  21. <span></span>
  22. <div>穴位图</div>
  23. </div>
  24. <div class="img">
  25. <img :src="info.acuimg" alt />
  26. </div>
  27. <!-- <div class="img">
  28. <img src="../../assets/xuewei1.jpg" alt="">
  29. </div>
  30. <div class="img">
  31. <img src="../../assets/xuewei2.jpg" alt="">
  32. </div>-->
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. import { getAcupointD } from "@/api/knowledge.js";
  38. export default {
  39. data() {
  40. return {
  41. info: {},
  42. ops: {
  43. vuescroll: {},
  44. scrollPanel: {},
  45. rail: {
  46. keepShow: true
  47. },
  48. bar: {
  49. hoverStyle: true,
  50. onlyShowBarOnScroll: false, //是否只有滚动的时候才显示滚动条
  51. background: "#C1C1C1", //滚动条颜色
  52. opacity: 0.5, //滚动条透明度
  53. "overflow-x": "hidden"
  54. }
  55. }
  56. };
  57. },
  58. created() {
  59. this.getAcupointD();
  60. },
  61. methods: {
  62. // 获取详情
  63. async getAcupointD() {
  64. let res = await getAcupointD({
  65. acuid: this.$route.query.acuid
  66. });
  67. if (res.code == 0) {
  68. res.data.acuimg = process.env.VUE_APP_XUEWEI + res.data.acuimg;
  69. this.info = res.data;
  70. }
  71. }
  72. }
  73. };
  74. </script>
  75. <style lang="scss" scoped>
  76. @import "../../style/common.scss";
  77. .xueweid {
  78. // height: 100%;
  79. height: 82vh;
  80. .right {
  81. width: 230px;
  82. padding: 19px 12px;
  83. background: #ffffff;
  84. border-radius: 5px;
  85. margin-left: 10px;
  86. box-sizing: border-box;
  87. height: 100%;
  88. .title {
  89. margin-bottom: 26px;
  90. span {
  91. width: 3px;
  92. height: 14px;
  93. background: #9F643A;
  94. border-radius: 1px;
  95. margin-right: 6px;
  96. }
  97. div {
  98. font-size: 18px;
  99. font-family: PingFang SC;
  100. font-weight: 400;
  101. color: #9F643A;
  102. }
  103. }
  104. .img {
  105. width: 194px;
  106. // height: 265px;
  107. img {
  108. width: 100%;
  109. background: red;
  110. }
  111. }
  112. }
  113. .left {
  114. height: 100%;
  115. flex: 1;
  116. overflow: auto;
  117. box-sizing: border-box;
  118. padding: 10px 10px;
  119. background: #ffffff;
  120. border-radius: 5px;
  121. .back {
  122. cursor: pointer;
  123. width: 74px;
  124. height: 36px;
  125. background: #9F643A;
  126. border-radius: 4px;
  127. font-size: 14px;
  128. font-family: PingFang SC;
  129. font-weight: 400;
  130. color: #ffffff;
  131. margin-bottom: 30px;
  132. }
  133. .content {
  134. font-size: 14px;
  135. font-family: PingFang SC;
  136. font-weight: 400;
  137. color: #333333;
  138. }
  139. .text-blue {
  140. color: #9F643A;
  141. margin: 15px 0;
  142. }
  143. }
  144. }
  145. // 滚动条位置
  146. .xueweid ::v-deep .__bar-is-vertical {
  147. right: -1px !important;
  148. }
  149. // 隐藏横向滚动条
  150. .xueweid ::v-deep .__bar-is-horizontal {
  151. display: none !important;
  152. }
  153. </style>
  154. <style lang="scss" scoped>
  155. @media screen and (min-width: 1681px) and (max-width: 1920px) {
  156. .xueweid {
  157. height: 89vh;
  158. }
  159. }
  160. @media screen and (min-width: 1601px) and (max-width: 1680px) {
  161. .xueweid {
  162. height: 88vh;
  163. }
  164. }
  165. @media screen and (min-width: 1361px) and (max-width: 1600px) {
  166. .xueweid {
  167. height: 83vh;
  168. }
  169. }
  170. @media screen and(min-width:1281px) and (max-width: 1360px) {
  171. .xueweid {
  172. height: 83vh;
  173. }
  174. }
  175. </style>