diary.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <view class="sub-base-container">
  3. <view class="tree-info">
  4. <image class="image" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></image>
  5. <view class="info-cont">
  6. <view class="tree-name">果树档案</view>
  7. <view class="text-wrap">
  8. <view class="row-text">
  9. <text class="label">树木名称</text>
  10. <text>茜茜荔</text>
  11. </view>
  12. <view class="row-text">
  13. <text class="label">树木编号</text>
  14. <text>LCJGHN-GZCH-LBY0011</text>
  15. </view>
  16. <view class="row-text">
  17. <text class="label">来自农场</text>
  18. <text>从化荔枝博览园</text>
  19. </view>
  20. <view class="row-text">
  21. <text class="label">品种树龄</text>
  22. <text>井岗红糯-18年</text>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="tree-diary">
  28. <view class="diary-head">
  29. <view class="date" @click="handleDate">
  30. <image class="img" :src="`${config.BASIC_IMG}img/subTreePage/date-icon.png`"></image>
  31. <text>2025年7月28日</text>
  32. </view>
  33. <view class="arrow-group">
  34. <view class="arrow-icon">
  35. <up-icon name="arrow-left" size="17" bold color="#fff"></up-icon>
  36. </view>
  37. <view class="arrow-icon">
  38. <up-icon name="arrow-right" size="17" bold color="#fff"></up-icon>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="diary-cont">
  43. <view class="text">今天是我开花的日子今天是我开花的日子今天是我开花的日子今天是我开花的日子</view>
  44. <view class="photo">
  45. <image class="img" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></image>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <up-datetime-picker
  51. :show="showDatetim"
  52. v-model="date"
  53. mode="date"
  54. @cancel="cancel"
  55. @confirm="cancel"
  56. ></up-datetime-picker>
  57. </template>
  58. <script setup>
  59. import config from "@/api/config.js"
  60. import {ref} from "vue"
  61. const showDatetim = ref(false)
  62. const date = ref('')
  63. const handleDate = () =>{
  64. showDatetim.value = true
  65. }
  66. const cancel = () =>{
  67. showDatetim.value = false
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. @import "@/static/style/mixin.scss";
  72. .sub-base-container {
  73. background-image: linear-gradient(0deg, #FFFFFF, rgba(33, 153, 248, 0.6));
  74. max-height: 484rpx;
  75. min-height: 484rpx;
  76. padding-top: 52rpx;
  77. .tree-info {
  78. display: flex;
  79. justify-content: space-between;
  80. .image {
  81. width: 220rpx;
  82. height: 220rpx;
  83. border: 2rpx solid #fff;
  84. border-radius: 16rpx;
  85. }
  86. .info-cont {
  87. width: calc(100% - 220rpx - 36rpx);
  88. border: 2rpx solid #fff;
  89. border-radius: 16rpx;
  90. background-image: linear-gradient(180deg, rgba(241, 249, 255, .6), rgba(255, 255, 255, .75));
  91. .tree-name {
  92. font-size: 28rpx;
  93. font-family: 'PangMenZhengDao';
  94. padding: 8rpx 0;
  95. border-radius: 16rpx 4rpx 16rpx 4rpx;
  96. background-image: linear-gradient(120deg, #9FD5FF, #2199F8);
  97. color: #fff;
  98. width: 164rpx;
  99. text-align: center;
  100. }
  101. .text-wrap {
  102. padding: 8rpx 0 0 20rpx;
  103. line-height: 36rpx;
  104. .row-text {
  105. font-size: 24rpx;
  106. .label {
  107. font-weight: 500;
  108. margin-right: 20rpx;
  109. }
  110. }
  111. }
  112. }
  113. }
  114. .tree-diary {
  115. width: 100%;
  116. min-height: 960rpx;
  117. box-sizing: border-box;
  118. padding: 70rpx 0 56rpx 34rpx;
  119. @include ossBg("subTreePage/diary-bg.png");
  120. .diary-head{
  121. display: flex;
  122. justify-content: space-between;
  123. .date{
  124. font-family: 'PangMenZhengDao';
  125. font-size: 29rpx;
  126. color: #2199F8;
  127. display: flex;
  128. align-items: center;
  129. .img{
  130. width: 26rpx;
  131. height: 26rpx;
  132. margin-right: 10rpx;
  133. }
  134. }
  135. .arrow-group{
  136. display: flex;
  137. .arrow-icon{
  138. border-radius: 50%;
  139. background: rgba(33, 153, 248, 0.2);
  140. width: 56rpx;
  141. height: 56rpx;
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. }
  146. .arrow-icon + .arrow-icon{
  147. margin-left: 20rpx;
  148. }
  149. }
  150. }
  151. .diary-cont{
  152. padding: 120rpx 60rpx 0 26rpx;
  153. .text{
  154. width: 72%;
  155. margin: auto;
  156. font-weight: 500;
  157. position: relative;
  158. &::before{
  159. content: '“';
  160. position: absolute;
  161. top: -85rpx;
  162. left: -90rpx;
  163. font-size: 140rpx;
  164. color: rgba(33, 153, 248, 0.2);
  165. }
  166. &::after{
  167. content: '”';
  168. position: absolute;
  169. bottom: -130rpx;
  170. right: -110rpx;
  171. font-size: 140rpx;
  172. color: rgba(33, 153, 248, 0.2);
  173. }
  174. }
  175. .photo{
  176. width: 100%;
  177. height: 420rpx;
  178. margin-top: 90rpx;
  179. border: 10rpx solid #d0e6fb;
  180. box-shadow: 0 4rpx 8rpx 0 rgba(0, 0, 0, 0.1);
  181. position: relative;
  182. &::before{
  183. content: '';
  184. position: absolute;
  185. z-index: 2;
  186. right: -34rpx;
  187. top: 0;
  188. background: rgba(33, 153, 248, 0.56);
  189. transform: rotate(38deg);
  190. width: 102rpx;
  191. height: 30rpx;
  192. }
  193. .img{
  194. width: 100%;
  195. height: 100%;
  196. object-fit: cover;
  197. }
  198. }
  199. }
  200. }
  201. }
  202. </style>