detail.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <view>
  3. <view class="data">
  4. <view class="address">
  5. <view class="img">
  6. <image src="/static/icon/address.png" mode="widthFix"></image>
  7. </view>
  8. <view class="content">
  9. <text>宁夏冬美小区</text>
  10. <text>银川市兴庆区解放东路477号</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="data" >
  15. <view class="info">
  16. <view class="top">
  17. <view class="left">
  18. <u-icon name="hourglass-half-fill" :size="30" top="2" color="rgb(94,94,94)"></u-icon>
  19. <view class="title">订单号:<text>45217845689442452111</text></view>
  20. </view>
  21. <view class="copy">
  22. <text>复制</text>
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="content" >
  27. <text >标题:</text>
  28. <text >代拿滑板到二楼</text>
  29. </view>
  30. <view class="content" >
  31. <text >发布时间:</text>
  32. <text >2020-10-27 17:00:22</text>
  33. </view>
  34. <view class="content" >
  35. <text >联系人:</text>
  36. <text >黄明潘</text>
  37. </view>
  38. <view class="content" >
  39. <text >联系微信:</text>
  40. <text >hmp1049127947</text>
  41. </view>
  42. <view class="content" >
  43. <view class="alignCenter">
  44. <text >联系电话:</text>
  45. </view>
  46. <view class="phone">
  47. <text class="alignCenter">19124812874</text>
  48. <image src="http://139.9.185.150/upload/bf61acb4-22fc-4812-9f80-2f59a4cd949f-phone.png" mode="widthFix"></image>
  49. </view>
  50. </view>
  51. <view class="content" >
  52. <text >价格:</text>
  53. <text class="price">¥4.00</text>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="data" >
  59. <view class="account">
  60. <view class="top">
  61. <u-icon name="account" :size="30" top="2" color="rgb(94,94,94)"></u-icon>
  62. <text>会员信息</text>
  63. </view>
  64. <view class="item">
  65. <u-avatar :show-sex ="true" size="110" src="https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg"></u-avatar>
  66. <view class="alignCenter name" >
  67. plsteins
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="data">
  73. <view class="cu-card dynamic no-card " style="margin: 10rpx 0;">
  74. <view class="cu-item shadow">
  75. <!-- 1张图片 -->
  76. <view class=" grid flex-sub col-1" style="height: 300rpx;" v-if="dataDetail.picArray.length==1">
  77. <view class="bg-img only-img" :style="{backgroundImage: 'url(' + dataDetail.picArray[0] + ')'}">
  78. </view>
  79. </view>
  80. <!-- 多张图片 -->
  81. <view class=" grid flex-sub col-3 grid-square" v-else>
  82. <view class="bg-img" :style="{backgroundImage: 'url(' + item1 + ')'}"
  83. v-for="(item1,index1) in dataDetail.picArray" :key="index1">
  84. </view>
  85. </view>
  86. </view>
  87. <view class="need-desc">
  88. <text>需求内容:</text>
  89. <text class="content">
  90. 小熊USB小风扇迷你超静音手持电风扇便携式随身小型电动充电宿舍【全新包邮】原价40闲置30到手+微信请备注
  91. </text>
  92. </view>
  93. </view>
  94. </view>
  95. <u-divider height="80" bg-color="#f1f1f1">没有更多了</u-divider>
  96. </view>
  97. </template>
  98. <script>
  99. export default {
  100. data() {
  101. return {
  102. dataDetail:{
  103. picArray:[
  104. 'https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg',
  105. 'https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg',
  106. 'https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg',
  107. ]
  108. }
  109. }
  110. },
  111. methods: {
  112. }
  113. }
  114. </script>
  115. <style lang="scss">
  116. .alignCenter{
  117. display: flex;flex-direction: column;justify-content: center;
  118. }
  119. .data {
  120. background-color: #FFFFFF;
  121. width: 700rpx;
  122. margin:20rpx auto;
  123. border-radius: 14rpx;
  124. box-sizing: border-box;
  125. padding: 16rpx;
  126. font-size: 28rpx;
  127. border-bottom: 1rpx solid #b6b6b6;
  128. }
  129. // 地址
  130. .address{
  131. margin: 20rpx auto;
  132. display: flex;
  133. .img{
  134. margin: 20rpx;
  135. display: flex;
  136. flex-direction: column;
  137. justify-content: center;
  138. align-items: center;
  139. image{
  140. width: 42rpx;
  141. }
  142. }
  143. .content{
  144. display: flex;
  145. flex-direction: column;
  146. margin: 10rpx 0;
  147. text{
  148. color: #a1a1a1;
  149. font-size: 28rpx;
  150. }
  151. text:first-child{
  152. margin-bottom: 20rpx;
  153. color: #333;
  154. font-weight: 800;
  155. font-size: 30rpx;
  156. }
  157. }
  158. }
  159. //基本信息
  160. .info{
  161. .top {
  162. display: flex;
  163. justify-content: space-between;
  164. padding: 20rpx 0;
  165. border-bottom: 1rpx solid #e2e2e2;
  166. .left {
  167. font-size: 28rpx;
  168. display: flex;
  169. justify-content: space-between;
  170. .title {
  171. margin: 0 10rpx;
  172. font-weight: bold;
  173. text{
  174. font-weight: 500;
  175. }
  176. }
  177. }
  178. .copy{
  179. padding-right: 20rpx;
  180. color: $base-btn-color;
  181. text-decoration: underline;
  182. }
  183. }
  184. .item {
  185. margin: 30rpx;
  186. display: flex;
  187. flex-direction: column;
  188. .content{
  189. padding: 16rpx 0;
  190. display: flex;
  191. justify-content: space-between;
  192. .price{
  193. color: #e54d42;
  194. font-size: 32rpx;
  195. font-weight: 700;
  196. }
  197. .phone{
  198. display: flex;
  199. text{
  200. margin-right: 10rpx;
  201. }
  202. image{
  203. width: 50rpx;
  204. }
  205. }
  206. }
  207. }
  208. }
  209. //会员信息
  210. .account{
  211. .top{
  212. padding: 20rpx 0;
  213. display: flex;
  214. border-bottom: 1rpx solid #e2e2e2;
  215. font-weight: 800;
  216. text{
  217. padding-left: 10rpx;
  218. }
  219. }
  220. .item{
  221. padding: 20rpx;
  222. display: flex;
  223. .name{
  224. padding-left: 40rpx;
  225. font-size: 32rpx;
  226. }
  227. }
  228. }
  229. .need-desc{
  230. padding-top: 20rpx;
  231. font-weight: 600;
  232. line-height: 48rpx;
  233. .content{
  234. font-weight: 500;
  235. }
  236. }
  237. </style>