qiyejl.vue 5.4 KB

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