personjl.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="contaienr">
  3. <view class="bg">
  4. <image class="bgimg" src="../../static/jf/bj_blue@2x.png"></image>
  5. </view>
  6. <view class="content">
  7. <view class="topbox">
  8. <view class="con">
  9. <view class="icon_con">
  10. <image class="img" src="../../static/jf/icon_people_blue_24@2x.png"></image>
  11. </view>
  12. <view class="info_con">
  13. <view class="title">{{dataList.gmfmc}}</view>
  14. <view class="stit">{{dataList.gmfzjh}}</view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="cell_item" style="margin-top: 24rpx;">
  19. <view class="title">购买方信息</view>
  20. <view style="margin: 12rpx 0;height: 1rpx;background: #E7E7E7;"></view>
  21. <view class="description">
  22. <view class="name">购买方名称</view> <view class="other">{{dataList.gmfmc}}</view>
  23. <view class="name">购买方证件号</view> <view class="other">{{dataList.gmfzjh}}</view>
  24. <view class="name">购买方电话</view> <view class="other">{{dataList.gmflxdh}}</view>
  25. </view>
  26. </view>
  27. <view class="cell_item" style="margin-top: 24rpx;">
  28. <view class="title">购买记录</view>
  29. <view style="margin: 12rpx 0;height: 1rpx;background: #E7E7E7;"></view>
  30. <view class="description">
  31. <view class="name">汽油型号</view> <view class="other">{{dataList.gmqyxh}}</view>
  32. <view class="name">汽油升数</view> <view class="other">{{dataList.gmss}}</view>
  33. <view class="name">购买用途</view> <view class="other">{{dataList.gmyt}}</view>
  34. <view class="name">购买时间</view> <view class="other">{{dataList.createTime}}</view>
  35. <view class="name">是否合规购油</view> <view class="other">{{dataList.sfhggy==1?'是':'否'}}</view>
  36. <view class="name">派出所文件</view> <view class="other">
  37. <view class="album">
  38. <view class="album__content">
  39. <u-album :urls="[dataList.jyzzp]" keyName="src2"></u-album>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. import { jyzSellDetail } from "@/api/jfsc.js"
  50. export default{
  51. data(){
  52. return{
  53. dataList:{},
  54. urls1: [{
  55. src2: 'https://cdn.uviewui.com/uview/album/1.jpg',
  56. }]
  57. }
  58. },
  59. onLoad(option) {
  60. uni.showLoading({
  61. title: '加载中'
  62. });
  63. jyzSellDetail(option.id).then(res=>{
  64. this.dataList = res.data
  65. }).finally(()=>{
  66. uni.hideLoading()
  67. })
  68. },
  69. methods:{
  70. back(){
  71. uni.navigateBack({
  72. delta: 1
  73. });
  74. },
  75. goPage(url){
  76. uni.navigateTo({
  77. url:url
  78. })
  79. }
  80. }
  81. }
  82. </script>
  83. <style lang="scss">
  84. /deep/ .uni-navbar__content{
  85. border-bottom: none !important;
  86. }
  87. .contaienr{
  88. box-sizing: border-box;
  89. background: #F8F8F8;
  90. position: relative;
  91. min-height: 100vh;
  92. .cell_item{
  93. background: #FFFFFF;
  94. box-shadow: 0rpx 2rpx 16rpx 0rpx rgba(0,0,0,0.08);
  95. border-radius: 16rpx;
  96. padding: 24rpx;
  97. box-sizing: border-box;
  98. background: #FFF;
  99. position: relative;
  100. .description{
  101. display: grid;
  102. grid-template-columns: 33.3% 66.66%;
  103. view{
  104. padding: 6rpx 0;
  105. }
  106. .name{
  107. height: 40rpx;
  108. font-family: PingFangSC, PingFang SC;
  109. font-weight: 400;
  110. font-size: 28rpx;
  111. color: #999999;
  112. line-height: 40rpx;
  113. text-align: left;
  114. font-style: normal;
  115. }
  116. .other{
  117. min-height: 40rpx;
  118. font-family: PingFangSC, PingFang SC;
  119. font-weight: 400;
  120. font-size: 28rpx;
  121. color: #111111;
  122. line-height: 40rpx;
  123. text-align: left;
  124. font-style: normal;
  125. }
  126. }
  127. .title{
  128. height: 44rpx;
  129. font-family: PingFangSC, PingFang SC;
  130. font-weight: 500;
  131. font-size: 32rpx;
  132. color: #111111;
  133. line-height: 44rpx;
  134. text-align: left;
  135. font-style: normal;
  136. }
  137. }
  138. .bg{
  139. position: absolute;
  140. top: 0;
  141. left: 0;
  142. right: 0;
  143. .bgimg{
  144. width: 100%;
  145. }
  146. }
  147. .content{
  148. padding: 0 24rpx;
  149. background: #F8F8F8;
  150. }
  151. .topbox{
  152. height: 192rpx;
  153. position: relative;
  154. width: 100%;
  155. .con{
  156. height: 144rpx;
  157. background: linear-gradient( 180deg, #F0F5FF 0%, #FFFFFF 100%);
  158. box-shadow: 0rpx 2rpx 16rpx 0rpx rgba(0,0,0,0.08);
  159. border-radius: 16rpx;
  160. border: 2rpx solid #FFFFFF;
  161. display: grid;
  162. grid-template-columns: 130rpx calc(100% - 130rpx);
  163. position: absolute;
  164. width: 100%;
  165. left:0;
  166. bottom: 0;
  167. .img{
  168. width: 96rpx;
  169. height: 96rpx;
  170. margin-top: 24rpx;
  171. }
  172. .icon_con{
  173. text-align: center;
  174. }
  175. .info_con{
  176. .title{
  177. height: 44rpx;
  178. font-family: PingFangSC, PingFang SC;
  179. font-weight: 500;
  180. font-size: 32rpx;
  181. color: #111111;
  182. line-height: 44rpx;
  183. text-align: left;
  184. font-style: normal;
  185. margin-top: 33rpx;
  186. white-space: nowrap; /* 确保文本在一行内显示 */
  187. overflow: hidden; /* 隐藏溢出的内容 */
  188. text-overflow: ellipsis; /* 使用省略号表示文本溢出 */
  189. }
  190. .stit{
  191. height: 34rpx;
  192. font-family: PingFangSC, PingFang SC;
  193. font-weight: 400;
  194. font-size: 24rpx;
  195. color: #111111;
  196. line-height: 34rpx;
  197. text-align: left;
  198. font-style: normal;
  199. white-space: nowrap; /* 确保文本在一行内显示 */
  200. overflow: hidden; /* 隐藏溢出的内容 */
  201. text-overflow: ellipsis; /* 使用省略号表示文本溢出 */
  202. }
  203. }
  204. }
  205. }
  206. }
  207. </style>